diff options
author | Marcel Telka <marcel.telka@nexenta.com> | 2015-02-14 02:07:49 +0100 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2015-02-19 15:07:28 -0500 |
commit | a6d8852a981f3ee28e9755ad33299b3652f35761 (patch) | |
tree | 4bb64b7110fdaca93937d7ccaef495ed2eed24ef /usr/src | |
parent | e32019a621e42d2ff484adc1c4b4420a115b6b72 (diff) | |
download | illumos-gate-a6d8852a981f3ee28e9755ad33299b3652f35761.tar.gz |
5617 open(2): The RETURN VALUES section should mention openat()
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/man/man2/open.2 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/src/man/man2/open.2 b/usr/src/man/man2/open.2 index 0978f5a3e5..dc6e3ec240 100644 --- a/usr/src/man/man2/open.2 +++ b/usr/src/man/man2/open.2 @@ -1,4 +1,5 @@ '\" te +.\" Copyright 2015 Nexenta Systems, Inc. All rights reserved. .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved. .\" Copyright 1989 AT&T .\" Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. @@ -10,7 +11,7 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH OPEN 2 "Dec 23, 2014" +.TH OPEN 2 "Feb 14, 2015" .SH NAME open, openat \- open a file .SH SYNOPSIS @@ -445,10 +446,10 @@ The largest value that can be represented correctly in an object of type \fBoff_t\fR is established as the offset maximum in the open file description. .SH RETURN VALUES .LP -Upon successful completion, the \fBopen()\fR function opens the file and return -a non-negative integer representing the lowest numbered unused file descriptor. -Otherwise, \fB\(mi1\fR is returned, \fBerrno\fR is set to indicate the error, -and no files are created or modified. +Upon successful completion, both \fBopen()\fR and \fBopenat()\fR functions open +the file and return a non-negative integer representing the lowest numbered +unused file descriptor. Otherwise, \fB\(mi1\fR is returned, \fBerrno\fR is set +to indicate the error, and no files are created or modified. .SH ERRORS .LP The \fBopen()\fR and \fBopenat()\fR functions will fail if: |