Skip to contentSkip to conversation

libselinux: drop unused stdio_ext.h header file

PATCH Applied [email protected] 3 participants 4 messages Sep 24, 2016 – Sep 26, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libselinux: drop unused stdio_ext.h header file

From: William Roberts <[email protected]>

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
---
 libselinux/src/label_file.c | 1 -
 1 file changed, 1 deletion(-)
libselinux/src/label_file.c +0 -1
index 7156825..8ff1170 100644
@@ -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>
Signature · 1 line
1.9.1
#1 lore raw
Quoted 7 lines · On Sat, Sep 24, 2016 at 10:10 AM, <[email protected]> wrote:

From: William Roberts <[email protected]>

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

Rather thean resending this, I forgot to drop the change-id when I cherry-picked it,
can you just ammend it?

<snip>

#2 lore raw
In reply to [email protected]
Quoted 8 lines · On 09/24/2016 01:10 PM, [email protected] wrote:

From: William Roberts <[email protected]>

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

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.

Quoted 17 lines
---
 libselinux/src/label_file.c | 1 -
 1 file changed, 1 deletion(-)
libselinux/src/label_file.c +0 -1
index 7156825..8ff1170 100644
@@ -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>
#3 lore raw
Quoted 7 lines · Stephen Smalley
Quoted 6 lines · On 09/24/2016 01:10 PM, [email protected] wrote:

From: William Roberts <[email protected]>

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.

Quoted 6 lines
Quoted 2 lines
Change-Id Ic61c87fcda79ffebeef93a20a2b3802f048bb0b0

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.

Quoted 24 lines
Quoted 11 lines
---
 libselinux/src/label_file.c | 1 -
 1 file changed, 1 deletion(-)
libselinux/src/label_file.c +0 -0
index 7156825..8ff1170 100644

libselinux/src/label_file.c line 15

Quoted 7 lines
libselinux/src/label_file.c +0 -1
@@ -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
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to [email protected].

Signature · 3 lines
Respectfully,

William C Roberts