HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man9/!!!intro.9
________________________________________________________________
___ ___
m
glossary(9) glossary(9)
magic number
The first word of an a.out-format or archive le. This word contains the system ID,
which states what machine (hardware) the file will run on, and the file type (executable,
sharable executable, archive, etc.).
major number
A number used exclusively to create special files that enable I/O to or from specific devices.
This number indicates which device driver to use for the device. Refer to mknod(2) and the
System Administrator manual supplied with your system for details.
message catalog
Program strings, such as program messages and prompts, are stored in a message catalog
corresponding to a particular geographical area. Retrieval of a string from a message
catalog is based on the value of the user’s LANG environment variable (see LANG).
message queue identifier (msqid)
A unique positive integer created by a msgget(2) system call. Each msqid has a message
queue and a data structure associated with it. The data structure is referred to as
msqid_ds and contains the following members:
struct
ipc_perm msg_perm; /* operation permission */
ulong msg_qnum; /* number of msgs on q */
ulong msg_qbytes; /* max number of bytes on q */
ulong msg_cbytes; /* current number of bytes on q */
ushort msg_lspid; /* pid of last msgsnd operation */
ushort msg_lrpid; /* pid of last msgrcv operation */
time_t msg_stime; /* last msgsnd time */
time_t msg_rtime; /* last msgrcv time */
time_t msg_ctime; /* last change time */
/* Times measured in secs since */
/* 00:00:00 GMT, Jan. 1, 1970 */
Message queue identifiers can be created using ftok(3C).
msg_perm is a ipc_perm structure that specifies the message operation permission (see
below). This structure includes the following members:
ushort cuid; /* creator user id */
ushort cgid; /* creator group id */
ushort uid; /* user id */
ushort gid; /* group id */
ushort mode; /* r/w permission */
msg_qnum
is the number of messages currently on the queue. msg_qbytes is the max-
imum number of bytes allowed on the queue. msg_lspid is the process id of the last pro-
cess that performed a msgsnd operation. msg_lrpid is the process id of the last process
that performed a msgrcv operation. msg_stime is the time of the last msgsnd opera-
tion, msg_rtime is the time of the last msgrcv operation, and msg_ctime is the time
of the last msgctl(2) operation that changed a member of the above structure.
message operation permissions
In the msgop(2) and msgctl(2) system call descriptions, the permission required for an
operation is indicated for each operation. Whether a particular process has these permis-
sions for an object is determined by the object’s permission mode bits as follows:
00400 Read by user
00200 Write by user
00060 Read, Write by group
00006 Read, Write by others
Read and Write permissions on a msqid are granted to a process if one or more of the fol-
lowing are true:
The process’s effective user ID is superuser.
The process’s effective user ID matches
msg_perm.[c]uid in the data structure
associated with
msqid and the appropriate bit of the ‘‘user’’ portion (0600) of
msg_perm.mode is set.
Section 912 11 HP-UX Release 11i: December 2000
___
___