acl-devel
[Top][All Lists]
Advanced

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

Re: [Acl-devel] About <sys/attributes.h> in attr_list manpage


From: Andreas Grünbacher
Subject: Re: [Acl-devel] About <sys/attributes.h> in attr_list manpage
Date: Tue, 3 Jul 2018 10:40:54 +0200

Hi,

2018-07-02 14:34 GMT+02:00 Lu Fengqi <address@hidden>:
> Hi all,
>
> The following on the attr_list manpage puzzled me. There is no
> attributes.h file in my system /usr/include/sys directory (including
> Fedora 28/Centos 7.5/Ubuntu 16.04/Arch Linux).
>
> ATTR_LIST(3)
>
> NAME
>        attr_list, attr_listf - list the names of the user attributes of
>        a filesystem object
>
>        C SYNOPSIS
>               #include <sys/attributes.h>
>                         ^^^
>
> In addition, I found that <sys/attributes.h> is only given in the
> attr_list manpage, and the others are <attr/attributes.h>. Does this
> indicate that the attr_list manpage is wrong? Or do you know which
> package will provide(even if it is no longer) <sys/attributes.h>?
> Any information you can provide me would be greatly appreciated.
>
> $git grep "attributes.h" man/man3/
> man/man3/attr_get.3:.B #include <attr/attributes.h>
> man/man3/attr_list.3:.B #include <sys/attributes.h>
> man/man3/attr_multi.3:.B #include <attr/attributes.h>
> man/man3/attr_remove.3:.B #include <attr/attributes.h>
> man/man3/attr_set.3:.B #include <attr/attributes.h>

that's a bug in the man page. The history of that file is really
weird. I've pushed a fix.

> BTW, I got these following warning when I compile the fsstress. So I'd
> like to replace these deprecated function with glibc version. Any
> suggestions?

That would be nice, fsstress would lose the libattr dependency.

> For example, are some behaviors inconsistent?

Not really, except that attr_multi don't really exist. (It's only
emulated in libattr.) But fsstress probably doesn't even use it.

> warning: 'attr_list' is deprecated: Use listxattr or llistxattr instead
> [-Wdeprecated-declarations]
> warning: 'attr_remove' is deprecated: Use removexattr or lremovexattr
> instead [-Wdeprecated-declarations]
> warning: 'attr_set' is deprecated: Use setxattr or lsetxattr instead
> [-Wdeprecated-declarations]

Thanks,
Andreas



reply via email to

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