| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: kpause.9,v 1.5 2008/08/06 07:08:31 skrll Exp $ | | 1 | .\" $NetBSD: kpause.9,v 1.6 2011/04/25 22:08:18 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" This code is derived from software contributed to The NetBSD Foundation | | 6 | .\" This code is derived from software contributed to The NetBSD Foundation |
7 | .\" by Andrew Doran. | | 7 | .\" by Andrew Doran. |
8 | .\" | | 8 | .\" |
9 | .\" Redistribution and use in source and binary forms, with or without | | 9 | .\" Redistribution and use in source and binary forms, with or without |
10 | .\" modification, are permitted provided that the following conditions | | 10 | .\" modification, are permitted provided that the following conditions |
11 | .\" are met: | | 11 | .\" are met: |
12 | .\" 1. Redistributions of source code must retain the above copyright | | 12 | .\" 1. Redistributions of source code must retain the above copyright |
13 | .\" notice, this list of conditions and the following disclaimer. | | 13 | .\" notice, this list of conditions and the following disclaimer. |
14 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 14 | .\" 2. Redistributions in binary form must reproduce the above copyright |
| @@ -92,34 +92,34 @@ will be released once the LWP has prepar | | | @@ -92,34 +92,34 @@ will be released once the LWP has prepar |
92 | before | | 92 | before |
93 | .Fn kpause | | 93 | .Fn kpause |
94 | returns. | | 94 | returns. |
95 | .El | | 95 | .El |
96 | .\" ------------------------------------------------------------ | | 96 | .\" ------------------------------------------------------------ |
97 | .Sh RETURN VALUES | | 97 | .Sh RETURN VALUES |
98 | .Fn kpause | | 98 | .Fn kpause |
99 | returns 0 when waking up spontaneously. | | 99 | returns 0 when waking up spontaneously. |
100 | Otherwise, | | 100 | Otherwise, |
101 | It returns an error number. | | 101 | It returns an error number. |
102 | .\" ------------------------------------------------------------ | | 102 | .\" ------------------------------------------------------------ |
103 | .Sh ERRORS | | 103 | .Sh ERRORS |
104 | .Bl -tag -width Er | | 104 | .Bl -tag -width Er |
105 | .It Bq Er EWOULDBLOCK | | | |
106 | The timeout expired. | | | |
107 | .It Bq Er ERESTART | | | |
108 | .Fn kpause | | | |
109 | returned as a result of a signal with | | | |
110 | .Dv SA_RESTART | | | |
111 | property. | | | |
112 | .It Bq Er EINTR | | 105 | .It Bq Er EINTR |
113 | .Fn kpause | | 106 | .Fn kpause |
114 | returned due to other reasons. | | 107 | returned due to other reasons. |
115 | Typically as a result of a signal without | | 108 | Typically as a result of a signal without |
116 | .Dv SA_RESTART | | 109 | .Dv SA_RESTART |
117 | property. | | 110 | property. |
| | | 111 | .It Bq Er ERESTART |
| | | 112 | .Fn kpause |
| | | 113 | returned as a result of a signal with |
| | | 114 | .Dv SA_RESTART |
| | | 115 | property. |
| | | 116 | .It Bq Er EWOULDBLOCK |
| | | 117 | The timeout expired. |
118 | .El | | 118 | .El |
119 | .\" ------------------------------------------------------------ | | 119 | .\" ------------------------------------------------------------ |
120 | .Sh SEE ALSO | | 120 | .Sh SEE ALSO |
121 | .Xr sigaction 2 , | | 121 | .Xr sigaction 2 , |
122 | .Xr errno 9 , | | | |
123 | .Xr condvar 9 , | | 122 | .Xr condvar 9 , |
124 | .Xr mstohz 9 , | | 123 | .Xr errno 9 , |
125 | .Xr hz 9 | | 124 | .Xr hz 9 , |
| | | 125 | .Xr mstohz 9 |