Date: Thu, 17 Apr 1997 09:24:50 -0700 (PDT) From: stb@freebsd.org To: freebsd-gnats-submit@freebsd.org Subject: bin/3315: sys/time.h defines timespec with ts_sec instead of tv_sec Message-ID: <199704171624.JAA18590@freefall.freebsd.org> Resent-Message-ID: <199704171630.JAA18900@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 3315 >Category: bin >Synopsis: sys/time.h defines timespec with ts_sec instead of tv_sec >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 17 09:30:04 PDT 1997 >Last-Modified: >Originator: Stefan Bethke >Organization: >Release: 2.1.5 >Environment: >Description: sys/time.h defines struct timespec with members ts_sec and ts_nsec. Solaris 2, Irix 6.2, Digital UNIX 4.0c, and AIX 4.1 all define the members as tv_sec and tv_nsec (although in different files). >How-To-Repeat: Try compiling mit-pthreads. >Fix: *** time.h.orig Thu Apr 17 18:14:41 1997 --- time.h Thu Apr 17 18:15:11 1997 *************** *** 50,57 **** * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { ! long ts_sec; /* seconds */ ! long ts_nsec; /* and nanoseconds */ }; #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ --- 50,57 ---- * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { ! long tv_sec; /* seconds */ ! long tv_nsec; /* and nanoseconds */ }; #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704171624.JAA18590>