home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / tcpip / amitcp-support / wustl-ftpdaemon / src / utmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-29  |  1.4 KB  |  40 lines

  1. /* Copyright (c) 1988 The Regents of the University of California. All rights
  2.  * reserved.
  3.  *
  4.  * Redistribution and use in source and binary forms are permitted provided
  5.  * that: (1) source distributions retain this entire copyright notice and
  6.  * comment, and (2) distributions including binaries display the following
  7.  * acknowledgement:  ``This product includes software developed by the
  8.  * University of California, Berkeley and its contributors'' in the
  9.  * documentation or other materials provided with the distribution and in all
  10.  * advertising materials mentioning features or use of this software. Neither
  11.  * the name of the University nor the names of its contributors may be used
  12.  * to endorse or promote products derived from this software without specific
  13.  * prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT
  14.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE
  15.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16.  * PURPOSE.
  17.  *
  18.  * @(#)utmp.h   5.10 (Berkeley) 6/1/90 */
  19.  
  20. #define _PATH_UTMP  "/etc/utmp"
  21. #define _PATH_WTMP  "/usr/adm/wtmp"
  22. #define _PATH_LASTLOG   "/usr/adm/lastlog"
  23.  
  24. #define UT_NAMESIZE 8
  25. #define UT_LINESIZE 8
  26. #define UT_HOSTSIZE 16
  27.  
  28. struct lastlog {
  29.     time_t ll_time;
  30.     char ll_line[UT_LINESIZE];
  31.     char ll_host[UT_HOSTSIZE];
  32. };
  33.  
  34. struct utmp {
  35.     char ut_line[UT_LINESIZE];
  36.     char ut_name[UT_NAMESIZE];
  37.     char ut_host[UT_HOSTSIZE];
  38.     long ut_time;
  39. };
  40.