This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Gas vs irregular files


Hello,

 This patch:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gas/input-file.c.diff?r1=1.11&r2=1.12&cvsroot=src

breaks setups that invoke gas on non-regular files, e.g. like:

$ as -o /dev/null /dev/null

which may be used to check for supported command line options.  And I find
the new setup breaking the *nix tradition of treating all files the same
as far as possible.  The ChangeLog entry states it's for detecting
directories -- if so, it should do that explicitly with S_ISDIR().  And
why has it be done at all?  If a system doesn't support reading
directories, it'll refuse to do so.  For example Linux returns -EISDIR
when trying to read() from a descriptor referring to a directory.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]