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/unistd.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
# Main body from posix
29
+IMPLEMENT "posix", "unistd.h", "u_proto" ;
30
 
31
+SUBSET "u_old" := {
32
    # Different from posix
33
    +USE "svid3", "sys/types.h" ;
34
    +FUNC char *getcwd ( char *, size_t ) ;
35
    +FUNC ssize_t read ( int, void *, size_t ) ;
36
    +FUNC ssize_t write ( int, const void *, size_t ) ;
37
} ;
38
 
39
# Added in xpg3
40
+IMPLEMENT "xpg3", "unistd.h", "u_plus" ;
41
+FUNC void swab ( char *, char *, int ) ;
42
 
43
+IF 0
44
+CONST int _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE ;
45
+ENDIF
46
 
47
+CONST int _SC_PAGESIZE ;
48
 
49
/* I had missed these */
50
+FUNC int lockf ( int, int, long ) ;
51
+CONST int F_ULOCK, F_LOCK, F_TLOCK, F_TEST ;
52
 
53
/* These don't really belong anywhere */
54
+FUNC int fattach ( int, const char * ) ;
55
+FUNC int fchdir ( int ) ;
56
+FUNC int fchown ( int, uid_t, gid_t ) ;
57
+FUNC int fdetach ( const char * ) ;
58
+FUNC pid_t getpgid ( pid_t ) ;
59
+FUNC pid_t getsid ( pid_t ) ;
60
+FUNC char *gettxt ( char *, char * ) ;
61
+FUNC int lchown ( const char *, uid_t, gid_t ) ;
62
+FUNC int ptrace ( int, pid_t, int, int ) ;
63
+FUNC int readlink ( const char *, char *, int ) ;
64
+FUNC int stime ( const time_t * ) ;
65
+FUNC int symlink ( const char *, const char * ) ;
66
+FUNC void sync ( void ) ;
67
 
68
# setgroups needs privileged user status
69
+FUNC int setgroups ( int, const gid_t * ) ;