Hi,..
I received this reply to the utimes() bug report you asked me to forward.
---------- Forwarded message ---------
From: Juan Manuel Guerrero (juan.guerrero@gmx.de) [via
djgpp@delorie.com] <djgpp@delorie.com>
Date: Sat, 25 Jul 2020 at 16:49
Subject: Re: Bug report -- utimes()
To: <djgpp@delorie.com>
Sorry, but I do not fully understannd this.
DJGPP provides utime() and utimes() that fully conform to 4.3BSD, POSIX.1-2001
with regards to their arguments. There is nothing like a const struct timestruct
Reply from Schilling:
---------- Forwarded message ---------
From: Joerg Schilling<schily@schily.net>
Date: Sat, 25 Jul 2020 at 18:10
Subject: Re: Fwd: Bug report -- utimes() To:<awik32@gmail.com>,<joerg@schily.net>
"A. Wik"<awik32@gmail.com> wrote:
Hi,...
I received this reply to the utimes() bug report you asked me to forward.
---------- Forwarded message ---------
From: Juan Manuel Guerrero (juan.guerrero@gmx.de) [via
djgpp@delorie.com]<djgpp@delorie.com>
Date: Sat, 25 Jul 2020 at 16:49
Subject: Re: Bug report -- utimes()
To:<djgpp@delorie.com>
Sorry, but I do not fully understannd this.
DJGPP provides utime() and utimes() that fully conform to 4.3BSD, POSIX.1-2001
with regards to their arguments. There is nothing like a const struct
timestruct
OK, this was a typo, but the problem seems to be a wrong protoype for utimes()
in DJGPP.
The bug is in
c:/djgpp/include/sys/time.h:41:46: note: expected 'struct timeval *' but argument is of type 'const struct timeval *'
41 | int utimes(const char *_file, struct timeval _tvp[2]);
and the standard says:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/utimes.html
Jörg
--
EMail:joerg@schily.net (home) Jörg Schilling D-13353 Berlin joerg.schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (0 / 16) |
Uptime: | 29:35:22 |
Calls: | 5,571 |
Calls today: | 1 |
Files: | 11,684 |
Messages: | 5,128,298 |