docs/104707: [fix] manpage: clock_gettime is in time.h instead of sys/time.h

Simun Mikecin numisemis at yahoo.com
Mon Oct 23 11:30:20 UTC 2006


>Number:         104707
>Category:       docs
>Synopsis:       [fix] manpage: clock_gettime is in time.h instead of sys/time.h
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 23 11:30:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Simun Mikecin
>Release:        FreeBSD 6.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD plasma 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #1: Mon Sep 4 11:44:55 CEST 2006 root at plasma:/usr/obj/usr/src.6/sys/PLASMA i386


	
>Description:
As defined in:

http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html

clock_* functions and struct timespec should be defined in time.h instead of
sys/time.h. Actual time.h contains the right definition, it's just the man
page that is wrong.
>How-To-Repeat:
>Fix:
--- clock_gettime.2.orig	Sat Jul  3 01:52:13 2004
+++ clock_gettime.2	Mon Oct 23 13:15:03 2006
@@ -44,7 +44,7 @@
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
-.In sys/time.h
+.In time.h
 .Ft int
 .Fn clock_gettime "clockid_t clock_id" "struct timespec *tp"
 .Ft int
@@ -73,7 +73,7 @@
 The structure pointed to by
 .Fa tp
 is defined in
-.In sys/time.h
+.In time.h
 as:
 .Pp
 .Bd -literal
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list