| @@ -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 |
130 | and the global variable | | 130 | and the global variable |
131 | .Va errno | | 131 | .Va errno |
132 | is set to indicate the error. | | 132 | is 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 |
136 | The | | 136 | The |
137 | .Fn sem_open | | 137 | .Fn sem_open |
138 | function will fail if: | | 138 | function will fail if: |
139 | .Bl -tag -width Er | | 139 | .Bl -tag -width Er |
140 | .It Bq Er EACCES | | 140 | .It Bq Er EACCES |
141 | The semaphore exists and the permissions specified by | | 141 | The semaphore exists and the permissions specified by |
142 | .Fa oflag | | 142 | .Fa oflag |
143 | at the time it was created deny access to this process. | | 143 | at the time it was created deny access to this process; |
144 | .It Bq Er EACCES | | 144 | or the semaphore does not exist, but permission to create it is denied. |
145 | The 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 |
148 | and | | 147 | and |
149 | .Dv O_EXCL | | 148 | .Dv O_EXCL |
150 | are set but the semaphore already exists. | | 149 | are set but the semaphore already exists. |
151 | .It Bq Er EINTR | | 150 | .It Bq Er EINTR |
152 | The call was interrupted by a signal. | | 151 | The call was interrupted by a signal. |
153 | .It Bq Er EINVAL | | 152 | .It Bq Er EINVAL |
154 | The | | 153 | The |
155 | .Fn sem_open | | 154 | .Fn sem_open |
156 | operation is not supported for the given | | 155 | operation is not supported for the given |
157 | .Fa name . | | 156 | .Fa name ; |
158 | .It Bq Er EINVAL | | 157 | or the |
159 | The | | | |
160 | .Fa value | | 158 | .Fa value |
161 | argument is greater than | | 159 | argument 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 |
167 | The | | 165 | The |
168 | .Fa name | | 166 | .Fa name |
169 | argument is too long. | | 167 | argument is too long. |
170 | .It Bq Er ENFILE | | 168 | .It Bq Er ENFILE |
171 | The system limit on semaphores has been reached. | | 169 | The system limit on semaphores has been reached. |
172 | .It Bq Er ENOENT | | 170 | .It Bq Er ENOENT |