Commit e9354974 authored by Daniel Hsu's avatar Daniel Hsu

*** empty log message ***

svn path=/trunk/boinc/; revision=3593
parent 3c05860c
......@@ -1104,7 +1104,7 @@ AC_DEFUN([SAH_HEADER_STDCXX],[
#
# Revision Log:
# $Log$
# Revision 1.104 2004/06/15 22:32:57 boincadm
# Revision 1.105 2004/06/15 23:56:12 dhsu
# *** empty log message ***
#
# Revision 1.1 2003/12/11 18:38:24 korpela
......
......@@ -13639,3 +13639,14 @@ Daniel 15 June 2004
gallery.inc
profile.inc
Daniel 15 June 2004
- client: put all_logins_idle under an ifdef to check for
availability of {set,get}utent. TODO: implement these for BSD.
aclocal.m4
config.h.in
configure
configure.ac
client/
hostinfo_unix.C
......@@ -435,7 +435,10 @@ inline bool user_idle(time_t t, struct utmp* u) {
return device_idle(t, tty);
}
#ifdef HAVE_UTMP_H
inline bool all_logins_idle(time_t t) {
// TODO: {get,set}utent unavailable on bsd
#if defined(HAVE_SETUTENT) && defined(HAVE_GETUTENT)
struct utmp* u;
setutent();
......@@ -444,8 +447,10 @@ inline bool all_logins_idle(time_t t) {
return false;
}
}
#endif
return true;
}
#endif
void CLIENT_STATE::check_idle() {
#ifdef HAVE__DEV_TTY1
......@@ -454,7 +459,9 @@ void CLIENT_STATE::check_idle() {
time_t idle_time =
time(NULL) - (long) (60 * global_prefs.idle_time_to_run);
user_idle = true
#ifdef HAVE_UTMP_H
&& (!check_all_logins || all_logins_idle(idle_time))
#endif
#ifdef HAVE__DEV_MOUSE
&& device_idle(idle_time, "/dev/mouse") // solaris, linux
#endif
......
......@@ -30,6 +30,9 @@
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
/* Define to 1 if you have the `getutent' function. */
#undef HAVE_GETUTENT
/* Define to 1 if you have the <glaux.h> header file. */
#undef HAVE_GLAUX_H
......@@ -141,6 +144,9 @@
/* Define to 1 if you have the `setpriority' function. */
#undef HAVE_SETPRIORITY
/* Define to 1 if you have the `setutent' function. */
#undef HAVE_SETUTENT
/* Define to 1 if you have the `sigaction' function. */
#undef HAVE_SIGACTION
......
......@@ -7316,7 +7316,9 @@ fi
for ac_func in gethostname gettimeofday mkdir select socket strstr uname lockf flock strftime setpriority wait4 strlcpy strlcat sigaction
for ac_func in gethostname gettimeofday mkdir select socket strstr uname lockf flock strftime setpriority wait4 strlcpy strlcat sigaction getutent setutent
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
......
......@@ -112,7 +112,7 @@ dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_VPRINTF
AC_FUNC_WAIT3
AC_CHECK_FUNCS(gethostname gettimeofday mkdir select socket strstr uname lockf flock strftime setpriority wait4 strlcpy strlcat sigaction)
AC_CHECK_FUNCS(gethostname gettimeofday mkdir select socket strstr uname lockf flock strftime setpriority wait4 strlcpy strlcat sigaction getutent setutent)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment