#endif /* NeedWidePrototypes */
waitType exitcode )
{
+#if !defined(CSRG_BASED) /* we cannot do this on BSD ... */
struct utmp utmp; /* local struct for new entry */
struct utmp *u; /* pointer to entry in utmp file */
int fd;
#endif
#endif /* !sun */
+#endif /* !CSRG_BASED */
}
struct utmp *u; /* pointer to entry in utmp file */
int status = 1; /* return code */
+#if !defined(CSRG_BASED)
while ( (u = getutent()) != NULL ) {
if ( (strncmp(u->ut_id, utmpId, 4) == 0 ) &&
}
endutent();
+#endif
return (status);
}
int ChildReady = 0;
-#if !defined(SYSV) || defined(hpux) || defined(_AIX) || defined(__uxp__) || defined (__osf__) || defined(linux)
+#if !defined(SYSV) || defined(hpux) || defined(_AIX) || defined(__uxp__) || defined (__osf__) || defined(linux) || defined(CSRG_BASED)
static SIGVAL
ChildNotify( int arg )
{
* do process accounting...
*/
+#if !defined(CSRG_BASED)
Account(d, NULL, NULL, pid, DEAD_PROCESS, status);
+#endif
/*
* do process accounting...
*/
+#if !defined(CSRG_BASED)
Account(d, NULL, NULL, pid, DEAD_PROCESS, status);
+#endif
switch (d->status)
{
* are already in use...
*/
+#if !defined(CSRG_BASED)
if (d->utmpId == NULL) {
int i;
char *p, *q;
}
#endif
}
+#endif
}
if (NULL == d->authFile)
}
}
#endif
+#if !defined(CSRG_BASED)
Account(d, "LOGIN", line, getpid(), LOGIN_PROCESS, status);
+#endif
}
if (!WaitForServer (d))
else
if ((d->displayType.location == Local) || !dt_shutdown ) {
/* don't remove the console */
+#if !defined(CSRG_BASED)
Account(d, NULL, NULL, 0, DEAD_PROCESS, status);
+#endif
RemoveDisplay (d);
}
}
/*
* do process accounting...
*/
+#if !defined(CSRG_BASED)
Account(d, "LOGIN", NULL, getpid(), LOGIN_PROCESS, status);
+#endif
#ifdef _AIX
Debug("Checking for a getty on line %s.\n", utmp.ut_line);
+#if !defined(CSRG_BASED)
setutent();
rvalue = FALSE;
}
endutent();
+#endif /* !CSRG_BASED */
return rvalue;
}