mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 23:30:07 +00:00
* sysdeps/unix/sysv/linux/adjtime.c: Correctly use
ADJ_OFFSET_SS_READ.
This commit is contained in:
parent
0ab7632d38
commit
e093c24743
@ -1,5 +1,8 @@
|
||||
2008-03-24 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/adjtime.c: Correctly use
|
||||
ADJ_OFFSET_SS_READ.
|
||||
|
||||
* sysdeps/unix/sysv/linux/bits/sched.h: Add new CLONE_* flags,
|
||||
remove CLONE_STOPPED.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998, 2002, 2004, 2007
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998, 2002, 2004, 2007, 2008
|
||||
Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
@ -71,14 +71,16 @@ ADJTIME (const struct TIMEVAL *itv, struct TIMEVAL *otv)
|
||||
return -1;
|
||||
}
|
||||
tntx.offset = tmp.tv_usec + tmp.tv_sec * 1000000L;
|
||||
tntx.modes = ADJ_OFFSET_SINGLESHOT;
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef ADJ_OFFSET_SS_READ
|
||||
tntx.modes = ADJ_OFFSET_SS_READ;
|
||||
#else
|
||||
tntx.modes = ADJ_OFFSET_SINGLESHOT;
|
||||
tntx.modes = 0;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
tntx.modes = 0;
|
||||
|
||||
#if defined ADJ_OFFSET_SS_READ && !defined __ASSUME_ADJ_OFFSET_SS_READ
|
||||
again:
|
||||
|
Loading…
Reference in New Issue
Block a user