macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / gen / alarm.c
index dc1b54c..ee4ef6c 100644 (file)
@@ -1,20 +1,23 @@
 /*
  * Copyright (c) 1983 Regents of the University of California.
 /*
  * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
  */
 
  */
 
-#ifndef lint
-static char sccsid[] = "@(#)alarm.c    5.1 (Berkeley) %G%";
-#endif not lint
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)alarm.c    5.5 (Berkeley) %G%";
+#endif /* LIBC_SCCS and not lint */
 
 /*
  * Backwards compatible alarm.
  */
 #include <sys/time.h>
 
 /*
  * Backwards compatible alarm.
  */
 #include <sys/time.h>
+#include <unistd.h>
 
 
+unsigned int
 alarm(secs)
 alarm(secs)
-       int secs;
+       unsigned int secs;
 {
        struct itimerval it, oitv;
        register struct itimerval *itp = &it;
 {
        struct itimerval it, oitv;
        register struct itimerval *itp = &it;