Change 11075 by jhi@alpha on 2001/07/02 12:53:48

        SysV IPC semops use native shorts, not forced-to-16-bit-shorts.

Affected files ...

... //depot/perl/pod/perlfunc.pod#247 edit

Differences ...

==== //depot/perl/pod/perlfunc.pod#247 (text) ====
Index: perl/pod/perlfunc.pod
--- perl/pod/perlfunc.pod.~1~   Mon Jul  2 07:00:06 2001
+++ perl/pod/perlfunc.pod       Mon Jul  2 07:00:06 2001
@@ -4068,12 +4068,12 @@
 Calls the System V IPC function semop to perform semaphore operations
 such as signalling and waiting.  OPSTRING must be a packed array of
 semop structures.  Each semop structure can be generated with
-C<pack("sss", $semnum, $semop, $semflag)>.  The number of semaphore
+C<pack("s!3", $semnum, $semop, $semflag)>.  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 $semnum of semaphore id $semid:
 
-    $semop = pack("sss", $semnum, -1, 0);
+    $semop = pack("s!3", $semnum, -1, 0);
     die "Semaphore trouble: $!\n" unless semop($semid, $semop);
 
 To signal the semaphore, replace C<-1> with C<1>.  See also
End of Patch.

Reply via email to