summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/clock_settime.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-28 03:18:23 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-02-28 03:18:23 +0000
commit675d62ac876ffe4719580d45b8c9469934ccf6d7 (patch)
treee666bd4a1d816842c070e4928715d66b82655fc2 /libc/sysdeps/linux/common/clock_settime.c
parentfd666fca933f7241ff75d06ff36c9282fd443335 (diff)
downloaduClibc-alpine-675d62ac876ffe4719580d45b8c9469934ccf6d7.tar.bz2
uClibc-alpine-675d62ac876ffe4719580d45b8c9469934ccf6d7.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/common/clock_settime.c')
-rw-r--r--libc/sysdeps/linux/common/clock_settime.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/common/clock_settime.c b/libc/sysdeps/linux/common/clock_settime.c
index e2ec03f78..6ad7872ae 100644
--- a/libc/sysdeps/linux/common/clock_settime.c
+++ b/libc/sysdeps/linux/common/clock_settime.c
@@ -2,26 +2,11 @@
* clock_settime() for uClibc
*
* Copyright (C) 2005 by Peter Kjellerstedt <pkj@axis.com>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Library General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
- * for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#define settimeofday __settimeofday
-
-#define _GNU_SOURCE
#include "syscalls.h"
#include <time.h>
#include <sys/time.h>
@@ -29,6 +14,8 @@
#ifdef __NR_clock_settime
_syscall2(int, clock_settime, clockid_t, clock_id, const struct timespec*, tp);
#else
+libc_hidden_proto(settimeofday)
+
int clock_settime(clockid_t clock_id, const struct timespec* tp)
{
struct timeval tv;