svn commit: r255486 - in head/lib/libc: gen sys

Bryan Drewery bdrewery at FreeBSD.org
Thu Sep 12 11:41:28 UTC 2013


On 9/12/2013 6:36 AM, Hiroki Sato wrote:
> Bryan Drewery <bdrewery at FreeBSD.org> wrote
>   in <201309120053.r8C0rc7H082015 at svn.freebsd.org>:
> 
> bd> Author: bdrewery (ports committer)
> bd> Date: Thu Sep 12 00:53:38 2013
> bd> New Revision: 255486
> bd> URL: http://svnweb.freebsd.org/changeset/base/255486
> bd>
> bd> Log:
> bd>   Consistently reference file descriptors as "fd". 55 other manpages
> bd>   used "fd", while these used "d" and "filedes".
> bd>
> bd>   MFC after:	1 week
> bd>   Approved by:	gjb
> bd>   Approved by:	re (delphij)
> 
>  I think this kind of changes need a consensus because several POSIX
>  functions use "filedes" in the specification document.  r254484 by
>  pjd was a similar change (s/type/af/ in gethostbyaddr()).
> 
>  In SUSv4, fdopen() uses "filedes" and openat() uses "fd", for
>  example.  Consistency throughout our manual pages is generally good.
>  However, I also see the benefit of using the same expression as the
>  specification even if it is inconsistent.  What do you think?
> 
> -- Hiroki
> 

I did notice that 'filedes' was referenced in some specs, but it's very
weird to open multiple manpages and expect 'fd' and find 'd' and rework
my brain to understand that 'd' or 'filedes' is just a 'fd'. Takes a
second of thinking.

It was "surprising" to me when I noticed it, especially given how many
used 'fd'.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130912/e4a82b45/attachment.sig>


More information about the svn-src-head mailing list