diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-10 10:36:00 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-10 10:36:00 +0100 |
commit | f368589492fa19e62049f2f654e4127216515bc6 (patch) | |
tree | a7e22ac831ee8e0193d3f9e717babc24a4f2c793 /libgloss/msp430/msp430-sim.ld | |
parent | 48511f3d3847c35352d09cded56e25f0c1b22bc9 (diff) | |
download | cygnal-f368589492fa19e62049f2f654e4127216515bc6.tar.gz cygnal-f368589492fa19e62049f2f654e4127216515bc6.tar.bz2 cygnal-f368589492fa19e62049f2f654e4127216515bc6.zip |
Revamp acl_extended_fd/acl_extended_file to avoid open(2) call
Calling open from acl_extended_file{_nofollow} indiscriminately may hang
if the file is a FIFO. Ultimately the FIFO implementation needs a thorough
rewrite, but for the time being we better do what stat(2) and friends do:
Just create an fhandler directly.
* sec_posixacl.cc (__acl_extended_fh): New static function calling
fhandler::facl.
(acl_extended_fd): Just call __acl_extended_fh.
(__acl_extended_file): Take just a path_conv as parameter and
create temporary fhandler to call __acl_extended_fh.
(acl_extended_file): Create path_conv from incoming path and
call __acl_extended_file on it.
(acl_extended_file_nofollow): Ditto.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'libgloss/msp430/msp430-sim.ld')
0 files changed, 0 insertions, 0 deletions