02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

intro(2) intro(2)<br />

memory-operation pennlsslon (described later in this section).<br />

This structure includes the following members:<br />

ushort cuid;<br />

ushort cgid;<br />

ushort uid;<br />

ushort gid;<br />

ushort mode;<br />

/* creator user IO */<br />

/* creator group IO */<br />

/* user IO */<br />

/* group IO */<br />

/* r/w permission */<br />

shm_segsz specifies the size of the shared memory segment.<br />

shm _ cpid is the process ID of the process that created the<br />

shared memory identifier. shm Ipid is the process ID of the last<br />

process that performed a shmop(2) operation. shm nattch is<br />

the number of processes that currently have this segment attached.<br />

shm atime is the time of the last shmat operation,<br />

shm=dtime is the time of the last shmdt operation, and<br />

shm ctime is the time of the last shmctl(2) operation that<br />

changed one of the members of the structure outlined earlier.<br />

IPC PERMISSIONS<br />

In the msgop(2) and msgctl(2) system-call descriptions, the<br />

pennission required for an operation is interpreted as follows:<br />

00400 Read by user.<br />

00200 Write by user.<br />

00060 Read/write by group.<br />

00006 Read/write by others.<br />

Message Operation Permissions<br />

Read and write permissions on a msqid are granted to a process if<br />

one or more of the following are true.<br />

February, 1990<br />

Revision C<br />

The effective user ID of the process is the superuser.<br />

The effective user ID of the process matches<br />

msg perm. [c]uid in the data structure associated with<br />

msqid, and the appropriate bit of the "user" portion (0600)<br />

ofmsg_perm.modeisset<br />

The effective user ID of the process does not match<br />

msgyerm. [c]uid, the effective group ID of the process<br />

matches msgyerm. [c]gid, and the appropriate bit of the<br />

"group" portion (060) ofmsgyerm.mode is set.<br />

The effective user ID of the process does not match<br />

msgyerm. [c]uid, the effective group ID of the process<br />

does not match msgyerm. [c]gid, and the appropriate bit<br />

of the "other" portion (06) ofmsgyerm.mode is set<br />

17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!