diff options
| author | Kacper Fiedorowicz <kf@efab.pl> | 2026-01-03 18:44:51 +0100 |
|---|---|---|
| committer | Kacper Fiedorowicz <kf@efab.pl> | 2026-01-03 18:44:51 +0100 |
| commit | 6018e17637264a9561b37be699c3d53b6661de23 (patch) | |
| tree | 8546c9fa94358e7d6daaad5f11ac53e61be97ad5 /include | |
| parent | ab21f339a33abb1144f3c0f5c4285324e7e88392 (diff) | |
Diffstat (limited to 'include')
| -rw-r--r-- | include/aio.h | 11 | ||||
| -rw-r--r-- | include/alloca.h | 5 | ||||
| -rw-r--r-- | include/arpa/inet.h | 9 | ||||
| -rw-r--r-- | include/assert.h | 5 | ||||
| -rw-r--r-- | include/bits/in_addr.h | 5 | ||||
| -rw-r--r-- | include/complex.h | 6 | ||||
| -rw-r--r-- | include/devctl.h | 6 | ||||
| -rw-r--r-- | include/elf.h | 5 |
8 files changed, 11 insertions, 41 deletions
diff --git a/include/aio.h b/include/aio.h index 0ac9c7d6..4518b23a 100644 --- a/include/aio.h +++ b/include/aio.h @@ -1,13 +1,10 @@ -#ifndef __AIO_H -#define __AIO_H +#pragma once -#include <stddef.h> -#include <time.h> #define __BITS_SIGEVENT_H_ -#include <bits/sigevent.h> +#include "bits/sigevent.h" #define __BITS_TIMESPEC_H_ -#include <bits/timespec.h> +#include "bits/timespec.h" #define AIO_CANCELED 0 #define AIO_NOTCANCELED 1 @@ -42,5 +39,3 @@ ssize_t aio_return(struct aiocb *); int aio_suspend(const struct aiocb *const[], int, const struct timespec *); int aio_write(struct aiocb *); int lio_listio(int, struct aiocb *restrict const[restrict], int, struct sigevent *restrict); - -#endif diff --git a/include/alloca.h b/include/alloca.h index b70f6572..a3522055 100644 --- a/include/alloca.h +++ b/include/alloca.h @@ -1,6 +1,3 @@ -#ifndef __ALLOCA_H -#define __ALLOCA_H +#pragma once #define alloca(__size) __builtin_alloca(__size) - -#endif diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 478fb1ac..44999b03 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -1,10 +1,7 @@ -#ifndef __ARPA_INET_H -#define __ARPA_INET_H +#pragma once -#include <stdint.h> #define __BITS_IN_ADDR_H_ -#include <bits/in_addr.h> -#undef __BITS_IN_ADDR_H_ +#include "bits/in_addr.h" #define INET_ADDRSTRLEN 16 #define INET6_ADDRSTRLEN 46 @@ -23,5 +20,3 @@ in_addr_t inet_addr(const char *); char *inet_ntoa(struct in_addr); const char *inet_ntop(int, const void *restrict, char *restrict, socklen_t); int inet_pton(int, const char *restrict, void *restrict); - -#endif diff --git a/include/assert.h b/include/assert.h index 49550e39..04ec025b 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,14 +1,11 @@ -#ifndef __ASSERT_H -#define __ASSERT_H +#pragma once #ifdef NDEBUG #define assert(ignore) ((void)0) #else #define assert(__expr) ((__expr) ? (void)0 : __assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, #__expr)) -#endif _Noreturn void __assert(const char *_Nonnull __file, int __line, const char *_Nonnull __func, const char *_Nonnull __expr); - #endif diff --git a/include/bits/in_addr.h b/include/bits/in_addr.h index 1d7ac0af..54aa6e3e 100644 --- a/include/bits/in_addr.h +++ b/include/bits/in_addr.h @@ -1,5 +1,4 @@ -#ifndef __BITS_IN_ADDR_H -#define __BITS_IN_ADDR_H +#pragma once #ifndef __BITS_IN_ADDR_H_ #error "Internal header — include the public API header instead." @@ -10,5 +9,3 @@ typedef __UINT32_TYPE__ in_addr_t; struct in_addr { in_addr_t s_addr; }; - -#endif diff --git a/include/complex.h b/include/complex.h index e8cec9cc..e1430f7e 100644 --- a/include/complex.h +++ b/include/complex.h @@ -1,7 +1,5 @@ -#ifndef __COMPLEX_H -#define __COMPLEX_H +#pragma once -#include <complex.h> #define complex _Complex #define _Complex_I (__extension__(0.0f + 1.0fi)) #define imaginary _Imaginary @@ -78,5 +76,3 @@ double complex ctanh(double complex); float complex ctanhf(float complex); long double complex ctanhl(long double complex); long double complex ctanl(long double complex); - -#endif diff --git a/include/devctl.h b/include/devctl.h index 6948af13..573ec821 100644 --- a/include/devctl.h +++ b/include/devctl.h @@ -1,9 +1,5 @@ -#ifndef __DEVCTL_H -#define __DEVCTL_H +#pragma once -#include <stddef.h> typedef __SIZE_TYPE__ size_t; int posix_devctl(int, int, void *restrict, size_t, int *restrict); - -#endif diff --git a/include/elf.h b/include/elf.h index ea2014a6..fdff052f 100644 --- a/include/elf.h +++ b/include/elf.h @@ -1,5 +1,4 @@ -#ifndef __ELF_H -#define __ELF_H +#pragma once #include <stdint.h> @@ -402,5 +401,3 @@ typedef struct { uint64_t a_val; } a_un; } Elf64_auxv_t; - -#endif |
