Subversion Repositories tendra.SVN

Rev

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 "posix", "sys/types.h" ;
29
 
30
/* This type is abstracted */
31
+IF %% __STRICT_POSIX %%
32
+TYPEDEF gid_t ~grp_gid_t ;
33
+ELSE
34
+TYPE ( arith ) ~grp_gid_t.1 ;
35
+MACRO gid_t __grp_gid2gid ( ~grp_gid_t ) ;
36
+MACRO ~grp_gid_t __gid2grp_gid ( gid_t ) ;
37
+IFNDEF ~building_libs
38
%%
39
#pragma accept conversion __grp_gid2gid
40
#pragma accept conversion __gid2grp_gid
41
%%
42
%%%
43
#include <grp.h>
44
#define __grp_gid2gid( X )	( gid_t ) ( X )
45
#define __gid2grp_gid( X )	( __local_grp_gid_t ) ( X )
46
%%%
47
+ENDIF
48
+ENDIF
49
 
50
+FIELD struct group {
51
    char *gr_name ;
52
    ~grp_gid_t gr_gid ;
53
    char **gr_mem ;
54
} ;
55
 
56
+FUNC struct group *getgrnam ( const char * ) ;
57
+FUNC struct group *getgrgid ( gid_t ) ;