From 57ddf70a5720847c0fe6237e7476f83b57754a67 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 20 Apr 2011 19:57:58 +0000 Subject: [PATCH] sync with reality (prototype of open is varyadic) --- lib/libc/sys/open.2 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/libc/sys/open.2 b/lib/libc/sys/open.2 index 77f8339fea31..e5aff1c5797f 100644 --- a/lib/libc/sys/open.2 +++ b/lib/libc/sys/open.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: open.2,v 1.49 2011/04/11 00:21:45 wiz Exp $ +.\" $NetBSD: open.2,v 1.50 2011/04/20 19:57:58 christos Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)open.2 8.2 (Berkeley) 11/16/93 .\" -.Dd April 10, 2011 +.Dd April 20, 2011 .Dt OPEN 2 .Os .Sh NAME @@ -40,7 +40,7 @@ .Sh SYNOPSIS .In fcntl.h .Ft int -.Fn open "const char *path" "int flags" "mode_t mode" +.Fn open "const char *path" "int flags" "..." .Sh DESCRIPTION The file name specified by .Fa path @@ -72,10 +72,10 @@ Do not block on open or for data to become available. .It Dv O_APPEND Append to the file on each write. .It Dv O_CREAT -Create the file if it does not exist, in which case the file is -created with mode -.Ar mode -as described in +Create the file if it does not exist. +The third argument of type +.Ft mode_t +is used to compute the mode bits of the file as described in .Xr chmod 2 and modified by the process' umask value (see .Xr umask 2 ) .