Re: utimes/futimes/lutimes syscalls

Ulrich Drepper (drepper@redhat.com)
Fri, 11 Jul 2003 23:38:55 -0700


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-25728-1057992050-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Mosberger wrote:

> Do you have this backwards? ia64 has utimes(), but not utime(). The
> same should be true for Alpha.

Yes, it was meant to say "why not for archs *other than* ...".

I attach the x86 version of the change.

- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/D6z/2ijCOnn/RHQRAl8uAKClUPu1rNyaND4F90tZB1+y9+IfAgCfcs49
ihs1EesN3+egIbHHdE00H2c=
=HK+M
-----END PGP SIGNATURE-----

--=_courier-25728-1057992050-0001-2
Content-Type: text/plain; name=d-kernel-utimes; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="d-kernel-utimes"

--- linux-2.5/arch/i386/kernel/entry.S-old 2003-07-07 15:56:22.000000000 -0700
+++ linux-2.5/arch/i386/kernel/entry.S 2003-07-11 22:46:02.000000000 -0700
@@ -876,6 +876,7 @@ ENTRY(sys_call_table)
.long sys_clock_nanosleep
.long sys_statfs64
.long sys_fstatfs64
- .long sys_tgkill
+ .long sys_tgkill /* 270 */
+ .long sys_utimes

nr_syscalls=(.-sys_call_table)/4
--- linux-2.5/include/asm-i386/unistd.h-old 2003-07-07 15:56:22.000000000 -0700
+++ linux-2.5/include/asm-i386/unistd.h 2003-07-11 22:45:21.000000000 -0700
@@ -276,8 +276,9 @@
#define __NR_statfs64 268
#define __NR_fstatfs64 269
#define __NR_tgkill 270
+#define __NR_utimes 271

-#define NR_syscalls 271
+#define NR_syscalls 272

/* user-visible error numbers are in the range -1 - -124: see <asm-i386/errno.h> */

--=_courier-25728-1057992050-0001-2--