Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 1998 17:31:06 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-committers@FreeBSD.ORG, jb@FreeBSD.ORG
Subject:   Re: cvs commit: src/usr.bin/fetch util.c
Message-ID:  <199802200631.RAA04226@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:
>    usr.bin/fetch        util.c 
>  Log:
>  time() needs a pointer to a time_t, but tv_sec in a timeval is a
>  long (yuk). So give time() what it wants and let the compiler
>  promote the variable when it is assigned to tv_sec.

Applications should use timespecs instead of timevals to avoid this
problem, but here there is no need to use either.  Simply use utime2()
instead of utimes(2).  utime(2) fits properly with POSIX stat(2) and
time(3).  Reports of utime(2)'s obsoletion are premature.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802200631.RAA04226>