[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check a file's modify time is at epoch 0?

From: Eli Schwartz
Subject: Re: How to check a file's modify time is at epoch 0?
Date: Mon, 4 Nov 2019 10:03:32 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0

On 10/30/19 11:49 PM, Eli Schwartz wrote:
> On 10/30/19 5:47 PM, Chet Ramey wrote:
>> On 10/27/19 10:00 PM, Eli Schwartz wrote:
>>> Chet -- when I try to compile finfo.c, I get this warning:
>>> finfo.c: In function ‘printst’:
>>> finfo.c:277:7: warning: implicit declaration of function ‘major’
>>> [-Wimplicit-function-declaration]
>>>   277 |  ma = major (st->st_rdev);
>>>       |       ^~~~~
>>> finf.o.c:278:7: warning: implicit declaration of function ‘minor’
>>> [-Wimplicit-function-declaration]
>>>   278 |  mi = minor (st->st_rdev);
>>>       |       ^~~~~
>>> If I add an #include <sys/sysmacros.h> then it compiles okay and I can
>>> load it and it works as expected.
>> Interesting. On Linux, <sys/sysmacros.h> is usually included from
>> <sys/types.h> if __USE_BSD is defined (as it is, apparently, on RHEL,
>> through one of the twisty maze of defines in <features.h>).
> Looking through glibc history, this seems to have been deprecated in
> glibc 2.25 and fully dropped in 2.28 -- note that Arch Linux is on 2.30
> already.

This does not seem to be fixed in the latest devel push -- is it planned
in the next one, perhaps?

Eli Schwartz
Arch Linux Bug Wrangler and Trusted User

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]