sem_getvalue.3 (26b6c45a92c8eae91cad4a7ce8935e08d2e5d368) | sem_getvalue.3 (15096da3f462004928a91bd809b41fbb4d4c36f2) |
---|---|
1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 51 unchanged lines hidden (view full) --- 60The 61.Fa sem 62argument 63points to an invalid semaphore. 64.El 65.Sh SEE ALSO 66.Xr sem_post 3 , 67.Xr sem_trywait 3 , | 1.\" Copyright (C) 2000 Jason Evans <jasone@FreeBSD.org>. 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 51 unchanged lines hidden (view full) --- 60The 61.Fa sem 62argument 63points to an invalid semaphore. 64.El 65.Sh SEE ALSO 66.Xr sem_post 3 , 67.Xr sem_trywait 3 , |
68.Xr sem_wait 3 , 69.Xr sem 4 | 68.Xr sem_wait 3 |
70.Sh STANDARDS 71The 72.Fn sem_getvalue 73function conforms to 74.St -p1003.1-96 . 75.Pp 76The value of the semaphore is never negative, even if there are threads blocked 77on the semaphore. 78.Tn POSIX 79is somewhat ambiguous in its wording with regard to 80what the value of the semaphore should be if there are blocked waiting threads, 81but this behavior is conformant, given the wording of the specification. | 69.Sh STANDARDS 70The 71.Fn sem_getvalue 72function conforms to 73.St -p1003.1-96 . 74.Pp 75The value of the semaphore is never negative, even if there are threads blocked 76on the semaphore. 77.Tn POSIX 78is somewhat ambiguous in its wording with regard to 79what the value of the semaphore should be if there are blocked waiting threads, 80but this behavior is conformant, given the wording of the specification. |