chflagsat(2).
    Dag-Erling Smørgrav 
    des at des.no
       
    Sun Mar 17 10:02:28 UTC 2013
    
    
  
Konstantin Belousov <kostikbel at gmail.com> writes:
> Pawel Jakub Dawidek <pjd at FreeBSD.org> writes:
> > Note that the name chflagsat was carefully choosen instead of
> > fchflagsat, to not repeat POSIX (more likely Linux) mistakes of using
> > fchmodat, fchownat, futimesat, etc. names when they really shouldn't
> > start with an 'f'.
> This is the only point I do not agree with the patch. I prefer to have
> the syscall name consistent with the other syscalls.
So do I, which is why I agree with Pawel's decision to call it
chflagsat() instead of fchflagsat():
int	openat(int, const char *, int, ...);
int	faccessat(int, const char *, int, int);
int	linkat(int, const char *, int, const char *, int);
ssize_t	readlinkat(int, const char * __restrict, char * __restrict, size_t);
int	symlinkat(const char *, int, const char *);
int	unlinkat(int, const char *, int);
etc.
Unfortunately, we also have
int	fchownat(int, const char *, uid_t, gid_t, int);
which makes as little sense as fchflagsat().
DES
-- 
Dag-Erling Smørgrav - des at des.no
    
    
More information about the freebsd-arch
mailing list