tech-userlevel archive

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

Re: cp/mv and extended attributes preservation



On Tue, Jul 26, 2011 at 11:30:06PM -0400, Mouse wrote:
> > The only problem with putting it in a library is that we will need to
> > decide what API we [w]ant to promote: the ugly one from FreeBSD or
> > the [one] from Linux.
> 
> Or we could invent our own.
> All the cool ki^W^Wother OSes are doing it.

This is because specification did not tell about API prototypes, so 
everyone has its own solution. Linux has this (we fully implement it):
 getxattr lgetxattr fgetxattr
 setxattr lsetxattr fsetxattr
 listxattr llistxattr flistxattr
 removexattr lremovexattr fremovexattr

Darwin has nearly the same (no l* function but there is an option flag
to follow links or not).

FreeBSD has the thing we imported. IRIX has another API, and so on.

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index