Dr Andrew Scott G7VAV

My photo
 
April 2024
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12


utmpx.h
001: /* Copyright (C) 1997, 1998, 1999, 2003 Free Software Foundation, Inc.
002:    This file is part of the GNU C Library.
003: 
004:    The GNU C Library is free software; you can redistribute it and/or
005:    modify it under the terms of the GNU Lesser General Public
006:    License as published by the Free Software Foundation; either
007:    version 2.1 of the License, or (at your option) any later version.
008: 
009:    The GNU C Library is distributed in the hope that it will be useful,
010:    but WITHOUT ANY WARRANTY; without even the implied warranty of
011:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012:    Lesser General Public License for more details.
013: 
014:    You should have received a copy of the GNU Lesser General Public
015:    License along with the GNU C Library; if not, write to the Free
016:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
017:    02111-1307 USA.  */
018: 
019: #ifndef _UTMPX_H
020: #define _UTMPX_H        1
021: 
022: #include <features.h>
023: #include <sys/time.h>
024: 
025: /* Required according to Unix98.  */
026: #ifndef __pid_t_defined
027: typedef __pid_t pid_t;
028: # define __pid_t_defined
029: #endif
030: 
031: /* Get system dependent values and data structures.  */
032: #include <bits/utmpx.h>
033: 
034: #ifdef __USE_GNU
035: /* Compatibility names for the strings of the canonical file names.  */
036: # define UTMPX_FILE     _PATH_UTMPX
037: # define UTMPX_FILENAME _PATH_UTMPX
038: # define WTMPX_FILE     _PATH_WTMPX
039: # define WTMPX_FILENAME _PATH_WTMPX
040: #endif
041: 
042: /* For the getutmp{,x} functions we need the `struct utmp'.  */
043: #ifdef __USE_GNU
044: struct utmp;
045: #endif
046: 
047: 
048: __BEGIN_DECLS
049: 
050: /* Open user accounting database.
051: 
052:    This function is a possible cancellation point and therefore not
053:    marked with __THROW.  */
054: extern void setutxent (void);
055: 
056: /* Close user accounting database.
057: 
058:    This function is a possible cancellation point and therefore not
059:    marked with __THROW.  */
060: extern void endutxent (void);
061: 
062: /* Get the next entry from the user accounting database.
063: 
064:    This function is a possible cancellation point and therefore not
065:    marked with __THROW.  */
066: extern struct utmpx *getutxent (void);
067: 
068: /* Get the user accounting database entry corresponding to ID.
069: 
070:    This function is a possible cancellation point and therefore not
071:    marked with __THROW.  */
072: extern struct utmpx *getutxid (__const struct utmpx *__id);
073: 
074: /* Get the user accounting database entry corresponding to LINE.
075: 
076:    This function is a possible cancellation point and therefore not
077:    marked with __THROW.  */
078: extern struct utmpx *getutxline (__const struct utmpx *__line);
079: 
080: /* Write the entry UTMPX into the user accounting database.
081: 
082:    This function is a possible cancellation point and therefore not
083:    marked with __THROW.  */
084: extern struct utmpx *pututxline (__const struct utmpx *__utmpx);
085: 
086: 
087: #ifdef __USE_GNU
088: /* Change name of the utmpx file to be examined.
089: 
090:    This function is not part of POSIX and therefore no official
091:    cancellation point.  But due to similarity with an POSIX interface
092:    or due to the implementation it is a cancellation point and
093:    therefore not marked with __THROW.  */
094: extern int utmpxname (__const char *__file);
095: 
096: /* Append entry UTMP to the wtmpx-like file WTMPX_FILE.
097: 
098:    This function is not part of POSIX and therefore no official
099:    cancellation point.  But due to similarity with an POSIX interface
100:    or due to the implementation it is a cancellation point and
101:    therefore not marked with __THROW.  */
102: extern void updwtmpx (__const char *__wtmpx_file,
103:                       __const struct utmpx *__utmpx);
104: 
105: 
106: /* Copy the information in UTMPX to UTMP.
107: 
108:    This function is not part of POSIX and therefore no official
109:    cancellation point.  But due to similarity with an POSIX interface
110:    or due to the implementation it is a cancellation point and
111:    therefore not marked with __THROW.  */
112: extern void getutmp (__const struct utmpx *__utmpx,
113:                      struct utmp *__utmp);
114: 
115: /* Copy the information in UTMP to UTMPX.
116: 
117:    This function is not part of POSIX and therefore no official
118:    cancellation point.  But due to similarity with an POSIX interface
119:    or due to the implementation it is a cancellation point and
120:    therefore not marked with __THROW.  */
121: extern void getutmpx (__const struct utmp *__utmp,
122:                       struct utmpx *__utmpx);
123: #endif
124: 
125: __END_DECLS
126: 
127: #endif /* utmpx.h  */
128: 


for client 3.131.110.169
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/