#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:57+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man7/svipc.7:40 #, no-wrap msgid "SVIPC" msgstr "" #. type: TH #: man-pages/man7/svipc.7:40 #, no-wrap msgid "2013-02-12" msgstr "" #. type: TH #: man-pages/man7/svipc.7:40 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man7/svipc.7:40 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man7/svipc.7:41 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:43 msgid "svipc - System V interprocess communication mechanisms" msgstr "" #. type: SH #: man-pages/man7/svipc.7:43 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:48 #, no-wrap msgid "" "B<#include Esys/msg.hE>\n" "B<#include Esys/sem.hE>\n" "B<#include Esys/shm.hE>\n" msgstr "" #. type: SH #: man-pages/man7/svipc.7:49 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:56 msgid "" "This manual page refers to the Linux implementation of the System V " "interprocess communication (IPC) mechanisms: message queues, semaphore sets, " "and shared memory segments. In the following, the word I means an " "instantiation of one among such mechanisms." msgstr "" #. type: SS #: man-pages/man7/svipc.7:56 #, no-wrap msgid "Resource access permissions" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:64 msgid "" "For each resource, the system uses a common structure of type I to store information needed in determining permissions to perform " "an IPC operation. The I structure includes the following members:" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:74 #, no-wrap msgid "" "struct ipc_perm {\n" " uid_t cuid; /* creator user ID */\n" " gid_t cgid; /* creator group ID */\n" " uid_t uid; /* owner user ID */\n" " gid_t gid; /* owner group ID */\n" " unsigned short mode; /* r/w permissions */\n" "};\n" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:84 msgid "" "The I member of the I structure defines, with its lower 9 " "bits, the access permissions to the resource for a process executing an IPC " "system call. The permissions are interpreted as follows:" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:88 #, no-wrap msgid " 0400 Read by user.\n" " 0200 Write by user.\n" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:91 #, no-wrap msgid " 0040 Read by group.\n" " 0020 Write by group.\n" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:94 #, no-wrap msgid " 0004 Read by others.\n" " 0002 Write by others.\n" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:102 msgid "" "Bits 0100, 0010, and 0001 (the execute bits) are unused by the system. " "Furthermore, \"write\" effectively means \"alter\" for a semaphore set." msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:105 msgid "" "The same system header file also defines the following symbolic constants:" msgstr "" #. type: TP #: man-pages/man7/svipc.7:105 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:108 msgid "Create entry if key doesn't exist." msgstr "" #. type: TP #: man-pages/man7/svipc.7:108 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:111 msgid "Fail if key exists." msgstr "" #. type: TP #: man-pages/man7/svipc.7:111 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:114 msgid "Error if request must wait." msgstr "" #. type: TP #: man-pages/man7/svipc.7:114 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:117 msgid "Private key." msgstr "" #. type: TP #: man-pages/man7/svipc.7:117 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:120 msgid "Remove resource." msgstr "" #. type: TP #: man-pages/man7/svipc.7:120 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:123 msgid "Set resource options." msgstr "" #. type: TP #: man-pages/man7/svipc.7:123 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:126 msgid "Get resource options." msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:135 msgid "" "Note that B is a I type, while all the other symbolic " "constants are flag fields and can be OR'ed into an I type variable." msgstr "" #. type: SS #: man-pages/man7/svipc.7:135 #, no-wrap msgid "Message queues" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:143 msgid "" "A message queue is uniquely identified by a positive integer (its I) " "and has an associated data structure of type I, defined in " "Isys/msg.hE>, containing the following members:" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:156 #, no-wrap msgid "" "struct msqid_ds {\n" " struct ipc_perm msg_perm;\n" " msgqnum_t msg_qnum; /* no of messages on queue */\n" " msglen_t msg_qbytes; /* bytes max on a queue */\n" " pid_t msg_lspid; /* PID of last msgsnd(2) call */\n" " pid_t msg_lrpid; /* PID of last msgrcv(2) call */\n" " time_t msg_stime; /* last msgsnd(2) time */\n" " time_t msg_rtime; /* last msgrcv(2) time */\n" " time_t msg_ctime; /* last change time */\n" "};\n" msgstr "" #. type: TP #: man-pages/man7/svipc.7:158 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:163 msgid "" "I structure that specifies the access permissions on the message " "queue." msgstr "" #. type: TP #: man-pages/man7/svipc.7:163 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:166 msgid "Number of messages currently on the message queue." msgstr "" #. type: TP #: man-pages/man7/svipc.7:166 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:170 msgid "Maximum number of bytes of message text allowed on the message queue." msgstr "" #. type: TP #: man-pages/man7/svipc.7:170 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:175 msgid "ID of the process that performed the last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:175 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:180 msgid "ID of the process that performed the last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:180 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:185 msgid "Time of the last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:185 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:190 msgid "Time of the last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:190 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:196 msgid "" "Time of the last system call that changed a member of the I " "structure." msgstr "" #. type: SS #: man-pages/man7/svipc.7:196 #, no-wrap msgid "Semaphore sets" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:204 msgid "" "A semaphore set is uniquely identified by a positive integer (its I) " "and has an associated data structure of type I, defined in " "Isys/sem.hE>, containing the following members:" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:213 #, no-wrap msgid "" "struct semid_ds {\n" " struct ipc_perm sem_perm;\n" " time_t sem_otime; /* last operation time */\n" " time_t sem_ctime; /* last change time */\n" " unsigned long sem_nsems; /* count of sems in set */\n" "};\n" msgstr "" #. type: TP #: man-pages/man7/svipc.7:215 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:220 msgid "" "I structure that specifies the access permissions on the semaphore " "set." msgstr "" #. type: TP #: man-pages/man7/svipc.7:220 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:225 msgid "Time of last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:225 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:231 msgid "" "Time of last B(2) system call that changed a member of the above " "structure or of one semaphore belonging to the set." msgstr "" #. type: TP #: man-pages/man7/svipc.7:231 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:239 msgid "" "Number of semaphores in the set. Each semaphore of the set is referenced by " "a nonnegative integer ranging from B<0> to I." msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:243 msgid "" "A semaphore is a data structure of type I containing the " "following members:" msgstr "" #. unsigned short semncnt; /* nr awaiting semval to increase */ #. unsigned short semzcnt; /* nr awaiting semval = 0 */ #. type: Plain text #: man-pages/man7/svipc.7:252 #, no-wrap msgid "" "struct sem {\n" " int semval; /* semaphore value */\n" " int sempid; /* PID for last operation */\n" "};\n" msgstr "" #. type: TP #: man-pages/man7/svipc.7:254 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:257 msgid "Semaphore value: a nonnegative integer." msgstr "" #. type: TP #: man-pages/man7/svipc.7:257 #, no-wrap msgid "I" msgstr "" #. .TP #. .I semncnt #. Number of processes suspended awaiting for #. .I semval #. to increase. #. .TP #. .I semznt #. Number of processes suspended awaiting for #. .I semval #. to become zero. #. type: Plain text #: man-pages/man7/svipc.7:271 msgid "" "ID of the last process that performed a semaphore operation on this " "semaphore." msgstr "" #. type: SS #: man-pages/man7/svipc.7:271 #, no-wrap msgid "Shared memory segments" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:279 msgid "" "A shared memory segment is uniquely identified by a positive integer (its " "I) and has an associated data structure of type I, " "defined in Isys/shm.hE>, containing the following members:" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:292 #, no-wrap msgid "" "struct shmid_ds {\n" " struct ipc_perm shm_perm;\n" " size_t shm_segsz; /* size of segment */\n" " pid_t shm_cpid; /* PID of creator */\n" " pid_t shm_lpid; /* PID, last operation */\n" " shmatt_t shm_nattch; /* no. of current attaches */\n" " time_t shm_atime; /* time of last attach */\n" " time_t shm_dtime; /* time of last detach */\n" " time_t shm_ctime; /* time of last change */\n" "};\n" msgstr "" #. type: TP #: man-pages/man7/svipc.7:294 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:299 msgid "" "I structure that specifies the access permissions on the shared " "memory segment." msgstr "" #. type: TP #: man-pages/man7/svipc.7:299 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:302 msgid "Size in bytes of the shared memory segment." msgstr "" #. type: TP #: man-pages/man7/svipc.7:302 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:305 msgid "ID of the process that created the shared memory segment." msgstr "" #. type: TP #: man-pages/man7/svipc.7:305 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:312 msgid "" "ID of the last process that executed a B(2) or B(2) system " "call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:312 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:315 msgid "Number of current alive attaches for this shared memory segment." msgstr "" #. type: TP #: man-pages/man7/svipc.7:315 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:320 msgid "Time of the last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:320 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:325 msgid "Time of the last B(2) system call." msgstr "" #. type: TP #: man-pages/man7/svipc.7:325 #, no-wrap msgid "I" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:331 msgid "Time of the last B(2) system call that changed I." msgstr "" #. type: SH #: man-pages/man7/svipc.7:331 #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:348 msgid "" "B(1), B(1), B(1), B(2), B(2), B(2), " "B(2), B(2), B(2), B(2), B(2), " "B(2), B(2), B(2), B(2), B(3)" msgstr "" #. type: SH #: man-pages/man7/svipc.7:348 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man7/svipc.7:356 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""