This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/12881] New: {get,set}timeofday declared with incorrect '__nonnull' attribute
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sun, 12 Jun 2011 12:24:46 +0000
- Subject: [Bug libc/12881] New: {get,set}timeofday declared with incorrect '__nonnull' attribute
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12881
Summary: {get,set}timeofday declared with incorrect '__nonnull'
attribute
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: aurelien@aurel32.net
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Created attachment 5790
--> http://sourceware.org/bugzilla/attachment.cgi?id=5790
Patch to fix the issue
On Linux it is valid to call {get,set}timeofday() with a null timeval
pointer and non-null timezone pointer. This will get or set the
kernel's local time offset, which is used for converting timestamps on
brain-dead filesystems like VFAT. settimeofday(NULL, tz) is also used
to fix the system time during the boot process if the RTC is set to
local time for compatibility with a similarly brain-dead operating
system.
Patch to fix the problem is attached.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.