History log of /external/toybox/toys/other/lspci.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
46409d50e5632b28b88cfa4991fffef9adaa490d 15-Jun-2016 Rob Landley <rob@landley.net> Add readlink0() and readlinkat0() which null terminate the data.
/external/toybox/toys/other/lspci.c
7a3f53ba446ae2600763ee37b7f8dcc91de3ec5f 03-Aug-2015 Rob Landley <rob@landley.net> Mark command-local functions static.
/external/toybox/toys/other/lspci.c
9ab563b8a170aee0b8b82ca32e9f70a689112b6a 25-Nov-2014 Rob Landley <rob@landley.net> Tweak the "ignoring return value" fortify workaround for readlinkat.

We zero the buffer and if the link read fails that's left alone, so
it's ok for the symlink not to be there. Unfortunately, typecasting the
return value to (void) doesn't shut up gcc, and having an if(); with the
semicolon on the same line doesn't shut up llvm. (The semicolon on a new
line would, but C does not have significant whitespace and I'm not going
to humor llvm if it plans to start.)

So far, empty curly brackets consistently get the warning to shut up.
/external/toybox/toys/other/lspci.c
f6c28b6e0017ac36190ee31132721a1c9e30f2b6 22-Nov-2014 Rob Landley <rob@landley.net> As long as Android's going to require fortify, fixup the warnings it generates.
/external/toybox/toys/other/lspci.c
6a77734d1b1ac1938abbc33014b60cfb49828824 12-Aug-2014 Rob Landley <rob@landley.net> Promote lspci.
/external/toybox/toys/other/lspci.c