01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

INTR0 (2) INTR0 (2)<br />

The process's effective user ID is super-user.<br />

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

owner of the file and the appropriate access bit of the<br />

"owner" portion (0700) of the file mode is set.<br />

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

of the owner of the file, and the process's effective group<br />

ID matches the group of the file and the appropriate<br />

access bit of the "group" portion (070) of the file mode is<br />

set.<br />

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

of the owner of the file, and the process's effective group<br />

ID does not match the group ID of the file, and the<br />

appropriate access bit of the "other" portion (07) of the<br />

file mode is set.<br />

Otherwise, the corresponding permissions are denied.<br />

Message Queue Identifier<br />

A message queue identifier (msqid) is a unique positive integer<br />

created by a msgget(2) system call. Each msqid has a message<br />

queue and a data structure associated with it. The data structure<br />

is referred to as msqid_ds and contains the following members:<br />

struct<br />

ushort<br />

ushort<br />

ushort<br />

ushort<br />

time_t<br />

time_t<br />

time_t<br />

ipc_perm msg_perm;<br />

msg_qnum;<br />

msg_qbytes;<br />

msg_lspid;<br />

msg_lrpid;<br />

msg_stime;<br />

msg_rtime;<br />

msg_ctime;<br />

I* operation permission struct *I<br />

I* number of msgs on q *I<br />

I* max number of bytes on q *I<br />

I* pid of last msgsnd operation *I<br />

I* pid of last msgrcv operation *I<br />

I* last msgsnd time *I<br />

I* last msgrcv time *I<br />

I* last change time *I<br />

I* Times measured in sees since *I<br />

I* 00:00:00 GMT, Jan. 1, 1970 *I<br />

Msg_perm is a ipc_perm structure that specifies the message<br />

operation permission (see below). This structure includes the fol­<br />

lowing members:<br />

ushort<br />

ushort<br />

ushort<br />

ushort<br />

ushort<br />

cuid;<br />

cgid;<br />

uid;<br />

gid;<br />

mode;<br />

I* creator user i d *I<br />

I* creator group id *I<br />

I* user id *I<br />

I* group id *I<br />

I* r lw permission *I<br />

Msg_qnum is the number of messages currently on the queue.<br />

Msg_qbytes is the maximum number of bytes allowed on the<br />

queue. Msg_lspid is the process id of the last process that per-<br />

formed a msgsnd operation. Msg_lrpid is the process id of the<br />

last process that performed a msgrcv operation. Msg_stime is<br />

the time of the last msgsnd operation, msg_rtime is the time of<br />

the last msgrcv operation, and msg_ctime is the time of the last<br />

msgctl(2) operation that changed a member of the above structure.<br />

Message Operation Permissions.<br />

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

- 6-<br />

-�

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

Saved successfully!

Ooh no, something went wrong!