From 624254b18ae5a756baabbcd881faf1440e36151f Mon Sep 17 00:00:00 2001 From: Stephen Compall Date: Sun, 8 Apr 2012 14:51:45 +0200 Subject: Better describe open arguments [BZ #6649] * manual/llio.texi (Opening and Closing Files): Add cross reference to explain mode argument. --- manual/llio.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manual/llio.texi') diff --git a/manual/llio.texi b/manual/llio.texi index 1da612accb..acafed315e 100644 --- a/manual/llio.texi +++ b/manual/llio.texi @@ -78,11 +78,11 @@ declared in @file{unistd.h}. @comment fcntl.h @comment POSIX.1 @deftypefun int open (const char *@var{filename}, int @var{flags}[, mode_t @var{mode}]) -The @code{open} function creates and returns a new file descriptor -for the file named by @var{filename}. Initially, the file position +The @code{open} function creates and returns a new file descriptor for +the file named by @var{filename}. Initially, the file position indicator for the file is at the beginning of the file. The argument -@var{mode} is used only when a file is created, but it doesn't hurt -to supply the argument in any case. +@var{mode} (@pxref{Permission Bits}) is used only when a file is +created, but it doesn't hurt to supply the argument in any case. The @var{flags} argument controls how the file is to be opened. This is a bit mask; you create the value by the bitwise OR of the appropriate -- cgit 1.4.1