summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-11 08:19:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-11 08:19:23 +0000
commitea2b5ef6d751420797c96208ee3824f54bf1d97a (patch)
tree2043c2c7d3a9eab8e7a04668d280f39d8708e213 /pod
parentd28f7c377ae191ca53d9157f124642cf323614a0 (diff)
downloadperl-ea2b5ef6d751420797c96208ee3824f54bf1d97a.tar.gz
Add sysio large file support testing.
p4raw-id: //depot/cfgperl@3956
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod18
1 files changed, 17 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 3e10038eef..d5456d2e34 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4435,11 +4435,20 @@ FILENAME, MODE, PERMS.
The possible values and flag bits of the MODE parameter are
system-dependent; they are available via the standard module C<Fcntl>.
+See the documentation of your operating system's C<open> to see which
+values and flag bits are available. You may combine several flags
+using the C<|>-operator.
+
+Some of the most common values are C<O_RDONLY> for opening the file in
+read-only mode, C<O_WRONLY> for opening the file in write-only mode,
+and C<O_RDWR> for opening the file in read-write mode, and.
+
For historical reasons, some values work on almost every system
supported by perl: zero means read-only, one means write-only, and two
means read/write. We know that these values do I<not> work under
OS/390 & VM/ESA Unix and on the Macintosh; you probably don't want to
-use them in new code.
+se them in new code, use thhe constants discussed in the preceding
+paragraph.
If the file named by FILENAME does not exist and the C<open> call creates
it (typically because MODE includes the C<O_CREAT> flag), then the value of
@@ -4448,6 +4457,13 @@ the PERMS argument to C<sysopen>, Perl uses the octal value C<0666>.
These permission values need to be in octal, and are modified by your
process's current C<umask>.
+In many systems the C<O_EXCL> flag is available for opening files in
+exclusive mode. This is B<not> locking: exclusiveness means here that
+if the file already exists, sysopen() fails. The C<O_EXCL> wins
+C<O_TRUNC>.
+
+Sometimes you may want to truncate an already-existing file: C<O_TRUNC>.
+
You should seldom if ever use C<0644> as argument to C<sysopen>, because
that takes away the user's option to have a more permissive umask.
Better to omit it. See the perlfunc(1) entry on C<umask> for more