Thu Mar 8 22:12:52 2012 UTC ()
Merge error descriptions for same error code.


(wiz)
diff -r1.5 -r1.6 src/lib/librt/sem_open.3

cvs diff -r1.5 -r1.6 src/lib/librt/sem_open.3 (expand / switch to unified diff)

--- src/lib/librt/sem_open.3 2012/03/08 21:59:29 1.5
+++ src/lib/librt/sem_open.3 2012/03/08 22:12:52 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: sem_open.3,v 1.5 2012/03/08 21:59:29 joerg Exp $ 1.\" $NetBSD: sem_open.3,v 1.6 2012/03/08 22:12:52 wiz Exp $
2.\" 2.\"
3.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 3.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>.
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice(s), this list of conditions and the following disclaimer as 10.\" notice(s), this list of conditions and the following disclaimer as
11.\" the first lines of this file unmodified other than the possible 11.\" the first lines of this file unmodified other than the possible
12.\" addition of one or more copyright notices. 12.\" addition of one or more copyright notices.
13.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice(s), this list of conditions and the following disclaimer in 14.\" notice(s), this list of conditions and the following disclaimer in
@@ -130,43 +130,41 @@ returns @@ -130,43 +130,41 @@ returns
130and the global variable 130and the global variable
131.Va errno 131.Va errno
132is set to indicate the error. 132is set to indicate the error.
133.Pp 133.Pp
134.Rv -std sem_close sem_unlink 134.Rv -std sem_close sem_unlink
135.Sh ERRORS 135.Sh ERRORS
136The 136The
137.Fn sem_open 137.Fn sem_open
138function will fail if: 138function will fail if:
139.Bl -tag -width Er 139.Bl -tag -width Er
140.It Bq Er EACCES 140.It Bq Er EACCES
141The semaphore exists and the permissions specified by 141The semaphore exists and the permissions specified by
142.Fa oflag 142.Fa oflag
143at the time it was created deny access to this process. 143at the time it was created deny access to this process;
144.It Bq Er EACCES 144or the semaphore does not exist, but permission to create it is denied.
145The semaphore does not exist, but permission to create it is denied. 
146.It Bq Er EEXIST 145.It Bq Er EEXIST
147.Dv O_CREAT 146.Dv O_CREAT
148and 147and
149.Dv O_EXCL 148.Dv O_EXCL
150are set but the semaphore already exists. 149are set but the semaphore already exists.
151.It Bq Er EINTR 150.It Bq Er EINTR
152The call was interrupted by a signal. 151The call was interrupted by a signal.
153.It Bq Er EINVAL 152.It Bq Er EINVAL
154The 153The
155.Fn sem_open 154.Fn sem_open
156operation is not supported for the given 155operation is not supported for the given
157.Fa name . 156.Fa name ;
158.It Bq Er EINVAL 157or the
159The 
160.Fa value 158.Fa value
161argument is greater than 159argument is greater than
162.Dv SEM_VALUE_MAX . 160.Dv SEM_VALUE_MAX .
163.\"FreeBSD never returns EMFILE 161.\"FreeBSD never returns EMFILE
164.\".It Bq Er EMFILE 162.\".It Bq Er EMFILE
165.\"Too many semaphores are in use by this process. 163.\"Too many semaphores are in use by this process.
166.It Bq Er ENAMETOOLONG 164.It Bq Er ENAMETOOLONG
167The 165The
168.Fa name 166.Fa name
169argument is too long. 167argument is too long.
170.It Bq Er ENFILE 168.It Bq Er ENFILE
171The system limit on semaphores has been reached. 169The system limit on semaphores has been reached.
172.It Bq Er ENOENT 170.It Bq Er ENOENT