This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
generic utimes
- From: Bruno Haible <bruno at clisp dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 16:18:49 +0200 (CEST)
- Subject: generic utimes
Hi Roland,
As you said, my first implementations of the generic futimes() and lutimes()
did not handle a second argument = NULL correctly. That was because the
generic utimes() doesn't either.
2002-09-17 Bruno Haible <bruno@clisp.org>
* sysdeps/generic/utimes.c: If tvp==NULL, return ENOSYS, not EINVAL.
diff -r -c3 glibc-20020910.bak/sysdeps/generic/utimes.c glibc-20020910/sysdeps/generic/utimes.c
*** glibc-20020910.bak/sysdeps/generic/utimes.c Tue Jul 10 23:00:34 2001
--- glibc-20020910/sysdeps/generic/utimes.c Tue Sep 17 02:22:06 2002
***************
*** 1,4 ****
! /* Copyright (C) 1991, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
--- 1,4 ----
! /* Copyright (C) 1991, 1995-1997, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
***************
*** 27,33 ****
const char *file;
const struct timeval tvp[2];
{
! if (file == NULL || tvp == NULL)
{
__set_errno (EINVAL);
return -1;
--- 27,33 ----
const char *file;
const struct timeval tvp[2];
{
! if (file == NULL)
{
__set_errno (EINVAL);
return -1;