WWWWAAAARRRRNNNNIIIINNNNGGGG: Do not attempt to mix buffered I/O (like
_r_e_a_d_(_) or <FH>) with _s_e_l_e_c_t_(_). You have to use
_s_y_s_r_e_a_d_(_) instead.
semctl ID,SEMNUM,CMD,ARG
Calls the System V IPC function semctl. If CMD is
&IPC_STAT or &GETALL, then ARG must be a variable
which will hold the returned semid_ds structure or
semaphore value array. Returns like ioctl: the
undefined value for error, "0 but true" for zero,
or the actual return value otherwise.
semget KEY,NSEMS,FLAGS
Calls the System V IPC function semget. Returns
the semaphore id, or the undefined value if there
is an error.
semop KEY,OPSTRING
Calls the System V IPC function semop to perform
16/Feb/96 perl 5.002 with 49
PERLFUNC(1) User Contributed Perl Documentation PERLFUNC(1)
semaphore operations such as signaling and
waiting. OPSTRING must be a packed array of semop
structures. Each semop structure can be generated
with ppppaaaacccckkkk((((""""ssssssssssss"""",,,, $$$$sssseeeemmmmnnnnuuuummmm,,,, $$$$sssseeeemmmmoooopppp,,,, $$$$sssseeeemmmmffffllllaaaagggg)))). The
number of semaphore operations is implied by the
length of OPSTRING. Returns TRUE if successful,
or FALSE if there is an error. As an example, the
following code waits on semaphore $$$$sssseeeemmmmnnnnuuuummmm of