[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI Threading & File Locking



At 23.31 +0900 2000.02.26, Joel Rees wrote:
>I looked in the archives for this, and somebody said there is a FAQ that
>says that flock() is not available on the Mac. I looked in the on-line
>FAQs and the pods and find no such FAQ. So I read in the perl faq pod
>about files and it says in there that flock() should be the UNIX flock(),
>or call fcntl() if flock() is not available, or call lockf() if fcntl()
>is not available. It may even use a different form of native locking. If
>none of the above is available, it causes a fatal (compile time?) error.
>
>I don't see any specific information that requires me to understand that
>flock() should not work on MacPerl.

See perlport.pod (which does not currently come with MacPerl, but comes
with every perl 5.004_05 and later), which lists all known functions which
do not work or work differently on various platforms than the expected Unix
behavior.  From perlport:

=09flock FILEHANDLE,OPERATION

=09=09Not implemented (Mac=A0OS, VMS, RISC=A0OS, VOS).

=09=09Available only on Windows NT (not on Windows 95). (Win32)


--=20
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey =3D ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

# =3D=3D=3D=3D=3D Want to unsubscribe from this list?
# =3D=3D=3D=3D=3D Send mail with body "unsubscribe" to macperl-request@macp=
erl.org