Re: [PATCH] libselinux: drop unused stdio_ext.h header file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 26, 2016 at 8:05 AM, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote:
> On 09/24/2016 01:10 PM, william.c.roberts@xxxxxxxxx wrote:
>> From: William Roberts <william.c.roberts@xxxxxxxxx>
>>
>> Nothing was being used from the stdio_ext.h header file, so
>> remove it. Additionally, Mac builds, required for the
>> Android build, do not have this header.
>>
>> Change-Id: Ic61c87fcda79ffebeef93a20a2b3802f048bb0b0
>> Signed-off-by: William Roberts <william.c.roberts@xxxxxxxxx>
>
> Thanks, applied. However, technically this was because an earlier change
> from you dropped the use of __fsetlocking(), so we may need to restore
> this at some point if that becomes an issue.

Doubtful, unless its heavily threaded you wont see much of
a change between the locking and unlocked variants. If do
need to restore this, I think the approach would be create
an selinux_fileio.c and .h file and hide all the platform deltas
in there.

>
>> ---
>>  libselinux/src/label_file.c | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/libselinux/src/label_file.c b/libselinux/src/label_file.c
>> index 7156825..8ff1170 100644
>> --- a/libselinux/src/label_file.c
>> +++ b/libselinux/src/label_file.c
>> @@ -10,7 +10,6 @@
>>  #include <stdarg.h>
>>  #include <string.h>
>>  #include <stdio.h>
>> -#include <stdio_ext.h>
>>  #include <ctype.h>
>>  #include <errno.h>
>>  #include <limits.h>
>>
>
> _______________________________________________
> Selinux mailing list
> Selinux@xxxxxxxxxxxxx
> To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
> To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



-- 
Respectfully,

William C Roberts
_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux