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 />

struct */<br />

ushort msg_ qnum; /* number of msgs on q */<br />

ushort msg_qbytes; /* max number of bytes on q */<br />

ushort msg_lspid; /* pid of last msgsnd<br />

operation */<br />

ushort msg_lrpid: /* pid of last msgrcv<br />

operation */<br />

time t msg_stime: /* last msgsnd time */<br />

time t msg_rtime: /* last msgrcv time */<br />

-<br />

time t msg_ctime:<br />

-<br />

/* last change time */<br />

/* times measured in secs<br />

since 00:00:00 GMT, 1/1/70 */<br />

msgyerm is an ipcyerm structure that specifies the message<br />

operation permission (described later). This structure includes the<br />

following members:<br />

ushort cuid: /* creator user 10 */<br />

ushort cgid: /* creator group 10 */<br />

ushort uid: /* user 10 */<br />

ushort gid: /* group 10 */<br />

ushort mode: /* r/w permission */<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 performed<br />

a msgsnd operation. msg lrpid is the process ID of<br />

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

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

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

msg - ctime is the time of the last msgctl(2) operation that<br />

changed a member of the msgyerm structure.<br />

Semaphore Identifier<br />

A semaphore identifier (semid) is a unique positive integer created<br />

by a semget(2) system call. Each semid has a set of semaphores<br />

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

to as semid _ ds and contains the following members:<br />

struct ipc_perm sem_perm: /* operation permission<br />

ushort sem_nsems;<br />

time t sem otime:<br />

time-t sem=ctime:<br />

struct */<br />

/* number of sems in set */<br />

/* last operation time */<br />

/* last change time */<br />

/* times measured in sees since<br />

00:00:00 GMT, 1/1/1970 */<br />

semyerm is an ipc_perm structure that specifies the semaphore<br />

operation permission (described later in this section). This<br />

February, 1990 15<br />

Revision C

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

Saved successfully!

Ooh no, something went wrong!