sem_destroy.3 (c23155a43a8fbd8404b4d7bca71c292e92fb4870) sem_destroy.3 (096841eceb6f1e33621f6688cd52239f87d99c31)
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

--- 57 unchanged lines hidden (view full) ---

66There are currently threads blocked on the semaphore that
67.Fa sem
68points to.
69.El
70.Sh SEE ALSO
71.Xr sem_init 3
72.Sh STANDARDS
73.Fn sem_destroy
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

--- 57 unchanged lines hidden (view full) ---

66There are currently threads blocked on the semaphore that
67.Fa sem
68points to.
69.El
70.Sh SEE ALSO
71.Xr sem_init 3
72.Sh STANDARDS
73.Fn sem_destroy
74conforms to ISO/IEC 9945-1 ANSI/IEEE
75.Pq Dq Tn POSIX
76Std 1003.1 1996 Edition.
74conforms to
75.St -p1003.1-96 .
77.Pp
78POSIX does not define the behavior of
79.Fn sem_destroy
80if called while there are threads blocked on
81.Fa sem ,
82but this implementation is guaranteed to return -1 and set
83.Va errno
84to
85.Er EBUSY
86if there are threads blocked on
87.Fa sem .
76.Pp
77POSIX does not define the behavior of
78.Fn sem_destroy
79if called while there are threads blocked on
80.Fa sem ,
81but this implementation is guaranteed to return -1 and set
82.Va errno
83to
84.Er EBUSY
85if there are threads blocked on
86.Fa sem .