Doc bug in 4.2 utimes(2)

Scott Hankerson scottha at azure.UUCP
Sun Jan 22 13:51:46 AEST 1984


The documentation for utimes(2) claims that it should be declared
as follows:
	
	utimes(file, tvp)
	char *file;
	struct timeval *tvp[2];

The declaration for tvp is incorrect though.  It should be

	struct timeval tvp[2];

Both the manual page and the lint library need to be updated.
You get interesting results when you give the kernel a pointer
when it expects the time in seconds.  (pointers, at least on
VAXen, tend to look like fairly large negative numbers).

					Scott Hankerson



More information about the Comp.unix.wizards mailing list