Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | 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 "xpg3", "sys/types.h" ;
29
+USE "xpg3", "sys/ipc.h" ;
30
 
31
+CONST int MSG_NOERROR ;
32
 
33
/* These are unsigned short in xpg3, unsigned long in sysv */
34
+IF %% __STRICT_SYSV %%
35
+TYPEDEF unsigned long ~msg_q_t ;
36
+TYPEDEF unsigned long ~msg_l_t ;
37
+ELSE
38
+IF %% __STRICT_XPG3 %%
39
+TYPEDEF unsigned short ~msg_q_t.1 ;
40
+TYPEDEF unsigned short ~msg_l_t.1 ;
41
+ELSE
42
+TYPE ( int ) ~msg_q_t.2 ;
43
+TYPE ( int ) ~msg_l_t.2 ;
44
+ENDIF
45
+ENDIF
46
 
47
/* This type has been abstracted */
48
+IF %% __STRICT_XPG3 %%
49
+TYPEDEF pid_t ~msg_pid_t ;
50
+ELSE
51
+TYPE ( int ) ~msg_pid_t.1 ;
52
+ENDIF
53
 
54
+FIELD struct msqid_ds {
55
    struct ipc_perm msg_perm ;
56
    ~msg_q_t msg_qnum ;
57
    ~msg_l_t msg_qbytes ;
58
    ~msg_pid_t msg_lspid ;
59
    ~msg_pid_t msg_lrpid ;
60
    time_t msg_stime ;
61
    time_t msg_rtime ;
62
    time_t msg_ctime ;
63
} ;
64
 
65
+FUNC int msgget ( key_t, int ) ;
66
+FUNC int msgrcv ( int, void *, size_t, long, int ) ;
67
+FUNC int msgsnd ( int, const void *, size_t, int ) ;
68
 
69
+IFNDEF ~building_libs
70
+FUNC int msgctl ( int, int, struct msqid_ds * ) ;
71
+ELSE
72
+FUNC int __old_msgctl | msgctl.1 ( int, int, struct msqid_ds * ) ;
73
%%%
74
#define __old_msgctl( A, B, C )		msgctl ( A, B, C )
75
%%%
76
+ENDIF