usleep.c (1574) | usleep.c (11659) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)usleep.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ 37 38#include <sys/time.h> | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#if defined(LIBC_SCCS) && !defined(lint) 35static char sccsid[] = "@(#)usleep.c 8.1 (Berkeley) 6/4/93"; 36#endif /* LIBC_SCCS and not lint */ 37 38#include <sys/time.h> |
39#include <sys/signal.h> | 39#include |
40#include <unistd.h> 41 42#define TICK 10000 /* system clock resolution in microseconds */ 43#define USPS 1000000 /* number of microseconds in a second */ 44 45#define setvec(vec, a) \ 46 vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0 47 --- 52 unchanged lines hidden --- | 40#include <unistd.h> 41 42#define TICK 10000 /* system clock resolution in microseconds */ 43#define USPS 1000000 /* number of microseconds in a second */ 44 45#define setvec(vec, a) \ 46 vec.sv_handler = a; vec.sv_mask = vec.sv_onstack = 0 47 --- 52 unchanged lines hidden --- |