NetBSD Problem Report #10346
Received: (qmail 20957 invoked from network); 12 Jun 2000 18:19:26 -0000
Message-Id: <200006121819.LAA06749@nbwww.isc.org>
Date: Mon, 12 Jun 2000 11:19:26 -0700 (PDT)
From: trevin@eyring.com
Reply-To: trevin@eyring.com
To: gnats-bugs@gnats.netbsd.org
Subject: `struct itimerspec' is declared in <time.h> but not defined
X-Send-Pr-Version: www-1.0
>Number: 10346
>Category: lib
>Synopsis: `struct itimerspec' is declared in <time.h> but not defined
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jun 12 18:20:01 +0000 2000
>Closed-Date: Mon Apr 10 10:02:20 +0000 2006
>Last-Modified: Mon Apr 10 10:02:20 +0000 2006
>Originator: Trevin Beattie
>Release: 1.4.2
>Organization:
Eyring Corporation
>Environment:
NetBSD tuktu.eyring.com 1.4.2 NetBSD 1.4.2 (TUKTU) #0: Thu Mar 23 09:25:10 MST 2000 root@tuktu.eyring.com:/usr/src/sys/arch/i386/compile/TUKTU i386 unknown
>Description:
A program which calls timer_settime() needs a struct itimerspec to fill
out and pass to the function. But compilation fails with the error:
ntpdate.c: In function `init_alarm':
ntpdate.c:1349: storage size of `ntpdate_itimer' isn't known
(BTW: There are no man pages for the timer_XXX() function either.)
>How-To-Repeat:
Grab the xntp3-5.93e sources and try to compile ntpdate.
>Fix:
A `struct itimerspec' must contain at least the following members
(in no particular order):
struct timespec it_value;
struct timespec it_interval;
A proper fix cannot be suggested without knowing the exact definition
used in compiling the timer_XXX() functions in the C library.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: rtr@netbsd.org
State-Changed-When: Sat, 25 Mar 2006 01:03:34 +0000
State-Changed-Why:
timer_XXX() functions now have manpages
sys/time.h (included by time.h) defines struct itimerspec today at least.
happy to close the pr?
State-Changed-From-To: feedback->closed
State-Changed-By: rtr@netbsd.org
State-Changed-When: Mon, 10 Apr 2006 10:02:20 +0000
State-Changed-Why:
waited for feedback and got none
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.