First public contribution.
1 /** @file ../include/sys/ipc.h
5 /** @fn ftok(const char *pathname, int proj_id)
8 @return The ftok function will return -1 if pathname does not exist or if it cannot be accessed by the calling process.
9 On success the generated key_t value is returned.
11 The ftok function attempts to create a unique key suitable for use with the msgget , semget and shmget functions given the pathname of an existing file and a user-selectable id.
13 The specified pathname must specify an existing file that is accessible to the calling process
14 or the call will fail.
15 Also, note that links to files will return the
16 same key, given the same id.
20 #include <sys/types.h>
26 char *pathame = "C:\XXX";
29 if ((fkey = ftok(pathame, proj_id)) == -1) {
43 @capability Deferred @ref RFs::Entry(const TDesC16&, TEntry&)
52 To store information needed in determining permissions to perform an ipc operation.
58 /** @var ipc_perm::cuid
62 /** @var ipc_perm::cgid
66 /** @var ipc_perm::uid
70 /** @var ipc_perm::gid
74 /** @var ipc_perm::mode
78 /** @var ipc_perm::seq
79 sequence X (to generate unique ipcid)
82 /** @var ipc_perm::key
83 user specified msg or sem or shm key
89 SVID required constants (same values as system 5). create entry if key does not exist.
97 SVID required constants (same values as system 5). fail if key exists.
100 @externallyDefinedApi
105 SVID required constants (same values as system 5). error if request must wait.
108 @externallyDefinedApi
116 @externallyDefinedApi
124 @externallyDefinedApi
132 @externallyDefinedApi
141 @externallyDefinedApi