public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* The naming of at()s is a difficult matter
@ 2006-02-12  3:33 H. Peter Anvin
  2006-02-12 10:37 ` Jan Engelhardt
  2006-02-12 14:41 ` Jim Meyering
  0 siblings, 2 replies; 17+ messages in thread
From: H. Peter Anvin @ 2006-02-12  3:33 UTC (permalink / raw)
  To: linux-kernel, 'austin-group-l@opengroup.org',
	Ulrich Drepper

I have noticed that the new ...at() system calls are named in what
appears to be a completely haphazard fashion.  In Unix system calls,
an f- prefix means it operates on a file descriptor; the -at suffix (a
prefix would have been more consistent, but oh well) similarly
indicates it operates on a (directory fd, pathname) pair.

However, some system calls, in particular fchownat, futimesat,
fchmodat and faccessat add the f- prefix for what appears to be
absolutely no good reason.  Logically, these system calls should be
named chownat, utimesat, chmodat, and accessat.

I understand some of this braindamage comes from Solaris, but some of
these calls do not.  We should avoid it if at all possible, and I
would recommend at least introducing aliases with the sane names.

         -hpa

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-02-14 18:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-12  3:33 The naming of at()s is a difficult matter H. Peter Anvin
2006-02-12 10:37 ` Jan Engelhardt
2006-02-12 17:42   ` H. Peter Anvin
2006-02-13 14:09   ` Joerg Schilling
2006-02-13 15:56     ` H. Peter Anvin
2006-02-14  8:17     ` Jan Engelhardt
2006-02-14 15:09       ` Joerg Schilling
2006-02-14 15:21         ` H. Peter Anvin
2006-02-14 16:13           ` Matthew Frost
2006-02-14 17:00           ` Joerg Schilling
2006-02-14 17:35             ` H. Peter Anvin
2006-02-14 18:07         ` Jan Engelhardt
2006-02-14 18:12           ` H. Peter Anvin
2006-02-14 18:17             ` Jan Engelhardt
2006-02-14 18:53             ` Joerg Schilling
2006-02-14 18:51           ` Joerg Schilling
2006-02-12 14:41 ` Jim Meyering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox