Update of /cvsroot/fink/fink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1845

Modified Files:
        lockwait.in 
Log Message:
Document fcntl flock struct


Index: lockwait.in
===================================================================
RCS file: /cvsroot/fink/fink/lockwait.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- lockwait.in 30 Aug 2005 20:02:35 -0000      1.4
+++ lockwait.in 18 Oct 2005 23:09:15 -0000      1.5
@@ -21,6 +21,14 @@
        
        print STDERR "Locking it\n" if $debug;
        ### Note this pack() is specific  to OS X and Darwin!!!
+       # fcntl.h declares:
+       #   struct flock {
+       #       off_t   l_start;    /* starting offset */
+       #       off_t   l_len;      /* len = 0 means until end of file */
+       #       pid_t   l_pid;      /* lock owner */
+       #       short   l_type;     /* lock type: read/write, etc. */
+       #       short   l_whence;   /* type of l_start */
+       #   };
        my $struct_flock = pack("lllliss", (0, 0), (0, 0), 0, F_WRLCK, 
SEEK_SET);
        unless (fcntl(LOCK, F_SETLK, $struct_flock)) {
                die "lockwait: Can't get lock: $!" unless $! == EAGAIN || $! == 
EACCES;



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to