/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* bos72Q src/bos/usr/include/login.h 1.13.1.1 */ /* */ /* Licensed Materials - Property of IBM */ /* */ /* COPYRIGHT International Business Machines Corp. 1988,2019 */ /* All Rights Reserved */ /* */ /* US Government Users Restricted Rights - Use, duplication or */ /* disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ /* */ /* IBM_PROLOG_END_TAG */ /* @(#)94 1.13.1.1 src/bos/usr/include/login.h, cmdsauth, bos72Q, q2019_13A4 2/6/19 00:44:49 */ /* * COMPONENT_NAME: (CMDSAUTH) * * FUNCTIONS: * * ORIGINS: 27 * * (C) COPYRIGHT International Business Machines Corp. 1988, 1994 * All Rights Reserved * Licensed Materials - Property of IBM * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ #ifndef _H_LOGIN #define _H_LOGIN #include #ifdef __cplusplus extern "C" { #endif /* * Security library function definitions */ #ifdef _NO_PROTO int ckuserID(); #else /* ! _NO_PROTO */ int ckuserID (char *, int); #endif /* _NO_PROTO */ /* prolog */ /* modes for checking the user account and identification */ #define S_LOGIN 0x1 /* check for logins */ #define S_RLOGIN 0x2 /* check for remote logins */ #define S_SU 0x4 /* check for su */ #define S_TSM 0x8 /* check for Terminal state manager */ #define S_DAEMON 0x10 /* check for allowing batch programs */ #define S_DIST_CLNT 0x20 /* similar to S_DAEMON, but no login time and no daemon check */ #define S_DIST_SERV 0x40 /* similar to S_DAEMON, but with host allow/deny and tty check */ #define S_FTP 0x80 /* check for FTP logins */ #define S_SWROLE 0x100 /* check for swrole */ #define S_PRIMARY 0x1 /* primary authentication requested */ #define S_SECONDARY 0x2 /* secondary authentication requested */ /* for lastlog structure */ #define LL_LINELEN 32 /* terminal path length */ #define LL_HOSTLEN 32 /* hostname length */ /* struct to record last logins */ struct lastlog { time_t ll_time; /* time of last login */ char ll_line[LL_LINELEN]; /* terminal where last login took place */ char ll_host[LL_HOSTLEN]; /* hostname where last login took place */ }; #ifdef __cplusplus } #endif #endif /* _H_LOGIN */