Loading nixos/modules/security/wrappers/wrapper.c +0 −8 Original line number Diff line number Diff line Loading @@ -26,8 +26,6 @@ // aborts when false, printing the failed expression #define ASSERT(expr) ((expr) ? (void) 0 : assert_failure(#expr)) // aborts when returns non-zero, printing the failed expression and errno #define MUSTSUCCEED(expr) ((expr) ? print_errno_and_die(#expr) : (void) 0) extern char **environ; Loading @@ -48,12 +46,6 @@ static noreturn void assert_failure(const char *assertion) { abort(); } static noreturn void print_errno_and_die(const char *assertion) { fprintf(stderr, "Call `%s` in NixOS's wrapper.c failed: %s\n", assertion, strerror(errno)); fflush(stderr); abort(); } int get_last_cap(unsigned *last_cap) { FILE* file = fopen("/proc/sys/kernel/cap_last_cap", "r"); if (file == NULL) { Loading Loading
nixos/modules/security/wrappers/wrapper.c +0 −8 Original line number Diff line number Diff line Loading @@ -26,8 +26,6 @@ // aborts when false, printing the failed expression #define ASSERT(expr) ((expr) ? (void) 0 : assert_failure(#expr)) // aborts when returns non-zero, printing the failed expression and errno #define MUSTSUCCEED(expr) ((expr) ? print_errno_and_die(#expr) : (void) 0) extern char **environ; Loading @@ -48,12 +46,6 @@ static noreturn void assert_failure(const char *assertion) { abort(); } static noreturn void print_errno_and_die(const char *assertion) { fprintf(stderr, "Call `%s` in NixOS's wrapper.c failed: %s\n", assertion, strerror(errno)); fflush(stderr); abort(); } int get_last_cap(unsigned *last_cap) { FILE* file = fopen("/proc/sys/kernel/cap_last_cap", "r"); if (file == NULL) { Loading