sleep.9 (f4d874a1db833173112c1f9fe338994fc82cc882) | sleep.9 (b92a189eb9b32f7e9db74343d46434b554a67d04) |
---|---|
1.\" 2.\" Copyright (c) 1996 Joerg Wunsch 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 86 unchanged lines hidden (view full) --- 95Sleeps at most 96.Ar timo 97\&/ hz seconds (0 means no timeout). If 98.Ar pri 99includes the 100.Dv PCATCH 101flag, signals are checked before and after sleeping, else signals are 102not checked. Returns 0 if awakened, | 1.\" 2.\" Copyright (c) 1996 Joerg Wunsch 3.\" 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 86 unchanged lines hidden (view full) --- 95Sleeps at most 96.Ar timo 97\&/ hz seconds (0 means no timeout). If 98.Ar pri 99includes the 100.Dv PCATCH 101flag, signals are checked before and after sleeping, else signals are 102not checked. Returns 0 if awakened, |
103.Dv EWOULDBLOCK | 103.Er EWOULDBLOCK |
104if the timeout expires. If 105.Dv PCATCH 106is set and a signal needs to be delivered, | 104if the timeout expires. If 105.Dv PCATCH 106is set and a signal needs to be delivered, |
107.Dv ERESTART | 107.Er ERESTART |
108is returned if the current system call should be restarted if 109possible, and | 108is returned if the current system call should be restarted if 109possible, and |
110.Dv EINTR | 110.Er EINTR |
111is returned if the system call should be interrupted by the signal | 111is returned if the system call should be interrupted by the signal |
112.Pq return Dv EINTR . | 112.Pq return Er EINTR . |
113.Pp 114.Nm Msleep 115is a variation on tsleep. The parameter 116.Ar mtx 117is a mutex, which will be exited before sleeping, and entered before 118.Nm msleep 119returns. If 120.Ar pri --- 137 unchanged lines hidden --- | 113.Pp 114.Nm Msleep 115is a variation on tsleep. The parameter 116.Ar mtx 117is a mutex, which will be exited before sleeping, and entered before 118.Nm msleep 119returns. If 120.Ar pri --- 137 unchanged lines hidden --- |