Skip to content

Commit

Permalink
misc: cleanup includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Snaipe committed Aug 10, 2020
1 parent 10a4166 commit f010838
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 15 deletions.
2 changes: 0 additions & 2 deletions capable.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
*/

#include <err.h>
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include <syscall.h>
#include <unistd.h>
Expand Down
6 changes: 1 addition & 5 deletions enter.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,16 @@
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <inttypes.h>
#include <limits.h>
#include <sched.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/personality.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <syscall.h>

#include "capable.h"
#include "enter.h"
Expand Down
2 changes: 0 additions & 2 deletions init.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/prctl.h>
#include <sys/ptrace.h>
#include <sys/wait.h>
#include <unistd.h>

#include "sig.h"
Expand Down
2 changes: 0 additions & 2 deletions mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
Expand Down
2 changes: 2 additions & 0 deletions mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#ifndef MOUNT_H
# define MOUNT_H

# include <stddef.h>

struct mount_entry {
char *source;
char *target;
Expand Down
6 changes: 3 additions & 3 deletions outer.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>

#include "capable.h"
Expand Down
1 change: 0 additions & 1 deletion timens.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <time.h>
#include "timens.h"
Expand Down
3 changes: 3 additions & 0 deletions timens.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#ifndef TIME_H_
# define TIME_H_

# include <stddef.h>
# include <time.h>

enum {
MAX_CLOCK = 11, // CLOCK_TAI

Expand Down
2 changes: 2 additions & 0 deletions userns.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
# define USERNS_H_

# include <stdbool.h>
# include <stddef.h>
# include <stdint.h>
# include <sys/types.h>

enum {
MAX_USER_MAPPINGS = 340, /* as of linux 4.15, c.f. user_namespaces(7) */
Expand Down

0 comments on commit f010838

Please sign in to comment.