home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / comm / amitcp-3.0ß2.lha / AmiTCP / netinclude / utmp.h < prev   
C/C++ Source or Header  |  1994-02-24  |  3KB  |  78 lines

  1. #ifndef    UTMP_H
  2. #define    UTMP_H
  3. /*
  4. **      $Filename: utmp.h $
  5. **    $Release$
  6. **      $Revision: 3.2 $
  7. **      $Date: 1994/02/24 04:34:23 $
  8. **
  9. **    Definitions of utmp and lastlog structures for 32 bit C compilers
  10. **
  11. **    Copyright © 1993 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  12. **                  Helsinki University of Technology, Finland.
  13. **                  All rights reserved.
  14. */
  15.  
  16. /*
  17.  * Copyright (c) 1988 The Regents of the University of California.
  18.  * All rights reserved.
  19.  *
  20.  * Redistribution and use in source and binary forms, with or without
  21.  * modification, are permitted provided that the following conditions
  22.  * are met:
  23.  * 1. Redistributions of source code must retain the above copyright
  24.  *    notice, this list of conditions and the following disclaimer.
  25.  * 2. Redistributions in binary form must reproduce the above copyright
  26.  *    notice, this list of conditions and the following disclaimer in the
  27.  *    documentation and/or other materials provided with the distribution.
  28.  * 3. All advertising materials mentioning features or use of this software
  29.  *    must display the following acknowledgement:
  30.  *    This product includes software developed by the University of
  31.  *    California, Berkeley and its contributors.
  32.  * 4. Neither the name of the University nor the names of its contributors
  33.  *    may be used to endorse or promote products derived from this software
  34.  *    without specific prior written permission.
  35.  *
  36.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  37.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  38.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  39.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  40.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  41.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  42.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  43.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  44.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  45.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  46.  * SUCH DAMAGE.
  47.  *
  48.  *    @(#)utmp.h    5.11 (Berkeley) 4/3/91
  49.  */
  50.  
  51. #define    _PATH_UTMP    "AmiTCP:log/utmp"
  52. #define    _PATH_WTMP    "AmiTCP:log/wtmp"
  53. #define    _PATH_LASTLOG    "AmiTCP:log/lastlog"
  54.  
  55. #define    UT_NAMESIZE    32
  56. #define    UT_LINESIZE    32
  57. #define    UT_HOSTSIZE    64
  58.  
  59. struct lastlog {
  60.   long    ll_time;                /* the login time */
  61.   uid_t ll_uid;                        /* user ID */
  62.   char  ll_name[UT_NAMESIZE];        /* the login name */
  63.   char    ll_host[UT_HOSTSIZE];        /* where the login originated */
  64. };
  65.  
  66. #define ll_line ll_host
  67.  
  68. struct utmp {
  69.   long      ut_time;                /* the login time */
  70.   long    ut_sid;            /* session ID */
  71.   char    ut_name[UT_NAMESIZE];        /* the login name */
  72.   char    ut_host[UT_HOSTSIZE];        /* where the login originated */
  73. };
  74.  
  75. #define ut_line ut_host
  76.  
  77. #endif /* !UTMP_H */
  78.