alarm.3 (1574) | alarm.3 (17222) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993, 1994 2.\" The Regents of the University of California. 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, this list of conditions and the following disclaimer. --- 39 unchanged lines hidden (view full) --- 48.Pp 49The 50.Fn alarm 51function 52waits a count of 53.Ar seconds 54before asserting the terminating signal 55.Dv SIGALRM . | 1.\" Copyright (c) 1980, 1991, 1993, 1994 2.\" The Regents of the University of California. 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, this list of conditions and the following disclaimer. --- 39 unchanged lines hidden (view full) --- 48.Pp 49The 50.Fn alarm 51function 52waits a count of 53.Ar seconds 54before asserting the terminating signal 55.Dv SIGALRM . |
56When the signal has successfully been caught, | |
57.Fn alarm | 56.Fn alarm |
58returns the amount of time left on the clock. | 57returns the amount of time unexpired 58from any previously pending alarm. |
59The maximum number of 60.Ar seconds 61allowed 62is 2147483647. 63.Pp 64If an alarm has been set with 65.Fn alarm , 66another call to --- 20 unchanged lines hidden --- | 59The maximum number of 60.Ar seconds 61allowed 62is 2147483647. 63.Pp 64If an alarm has been set with 65.Fn alarm , 66another call to --- 20 unchanged lines hidden --- |