Deleted Added
full compact
clock_getcpuclockid.c (239347) clock_getcpuclockid.c (254398)
1/*
2 * Copyright (c) 2012 David Xu <davidxu@FreeBSD.org>.
3 * 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

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2012 David Xu <davidxu@FreeBSD.org>.
3 * 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

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/gen/clock_getcpuclockid.c 239347 2012-08-17 02:26:31Z davidxu $");
28__FBSDID("$FreeBSD: stable/9/lib/libc/gen/clock_getcpuclockid.c 254398 2013-08-16 06:40:12Z davidxu $");
29
30#include <errno.h>
31#include <time.h>
32#include <unistd.h>
33#include <sys/time.h>
34
35clockid_t
36clock_getcpuclockid(pid_t pid, clockid_t *clock_id)
37{
38 return clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id);
39}
29
30#include <errno.h>
31#include <time.h>
32#include <unistd.h>
33#include <sys/time.h>
34
35clockid_t
36clock_getcpuclockid(pid_t pid, clockid_t *clock_id)
37{
38 return clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id);
39}