ANNOUNCE: Version 3.20-1 released

ISP List isp-list at TULSACONNECT.COM
Fri Jun 14 15:57:03 IST 2002


>Write to me if you need it.
>
>Michael

Michael,

Looks like he did include it:

lock.pl ->

         # $^O returns:
         #  Linux: "linux"
         #  OpenBSD: "openbsd"
         #  Solaris: "solaris"
         #  SunOS4: "sunos"
         #  AIX: "aix"
         #  IRIX: "irix"
         #

         if (/bsd/) {

             Log::InfoLog("Creating hardcoded struct_flock subroutine for
$^O (BSD-type)");

             # from "man fcntl" and /usr/include/sys/fcntl.h on OBSD 2.7:
             #     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 */
             #     };
             #
             # FreeBSD exim.tulsaconnect.com 4.5-RELEASE FreeBSD
4.5-RELEASE #0: Sun May
             # 19 23:53:40 CDT 2002
             #
             # from /usr/include/sys/fcntl.h:
             #
             # /*
             #  * Advisory file segment locking data type -
             #  * information passed to system by user
             #  */
             # 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 */
             # };

Up till now I was using the lock.pl that (you?) or someone posted to the
list a while back.

--Mike



More information about the MailScanner mailing list