Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – tendra.SVN – Blame – /branches/tendra5/src/lib/apis/svid3/utmp.h – Rev 2

Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+USE "svid3", "", "config" ;
29
+IF %% __SYSV_SOFTWARE_DEVELOPMENT %%
30
+USE "svid3", "sys/types.h" ;
31
 
32
+NAT ~utmp_user_size, ~utmp_id_size, ~utmp_line_size ;
33
 
34
/* This type is abstracted */
35
+IF %% __STRICT_SYSV %%
36
+TYPEDEF pid_t ~utmp_pid_t ;
37
+ELSE
38
+TYPE ( int ) ~utmp_pid_t.1 ;
39
+MACRO pid_t __utmp_pid2pid ( ~utmp_pid_t ) ;
40
+MACRO ~utmp_pid_t __pid2utmp_pid ( pid_t ) ;
41
+IFNDEF ~building_libs
42
%%
43
#pragma accept conversion __utmp_pid2pid
44
#pragma accept conversion __pid2utmp_pid
45
%%
46
%%%
47
#include <utmp.h>
48
#define __utmp_pid2pid( X )	( pid_t ) ( X )
49
#define __pid2utmp_pid( X )	( __local_utmp_pid_t ) ( X )
50
%%%
51
+ENDIF
52
+ENDIF
53
 
54
+TYPE struct utmp ;
55
+FIELD struct utmp {
56
    char ut_user [ ~utmp_user_size ] ;
57
    char ut_id [ ~utmp_id_size ] ;
58
    char ut_line [ ~utmp_line_size ] ;
59
    ~utmp_pid_t ut_pid ;
60
    short ut_type ;
61
} ;
62
 
63
+CONST int EMPTY, RUN_LVL, BOOT_TIME, OLD_TIME, NEW_TIME, INIT_PROCESS ;
64
+CONST int LOGIN_PROCESS, USER_PROCESS, DEAD_PROCESS, ACCOUNTING ;
65
 
66
+FUNC struct utmp *getutent ( void ) ;
67
+FUNC struct utmp *getutid ( const struct utmp * ) ;
68
+FUNC struct utmp *getutline ( const struct utmp * ) ;
69
+FUNC void setutent ( void ) ;
70
+FUNC void endutent ( void ) ;
71
/* Errors in book? */
72
+FUNC struct utmp *pututline ( const struct utmp * ) ;
73
+FUNC int utmpname ( const char * ) ;
74
 
75
+ENDIF