History

posix: clean up system includes

Sigrid Solveig Haflínudóttir committed 10 months ago

Commit fa2750c1 parent 65844522 files · +5 −13Browse files

Showing the changes to src (2 of 2 files). Show all

Unified · Split

2 files
  1. src/posix/platform.h +0 −13
  2. src/posix/sys.c +5 −0
src/posix/platform.h+0−13
@@ -13,30 +13,20 @@ · 12 unmodified lines
13#endif13#endif
14#include <assert.h>14#include <assert.h>
15#include <ctype.h>15#include <ctype.h>
16#include <errno.h>
17#include <fcntl.h>16#include <fcntl.h>
18#include <float.h>17#include <float.h>
19#include <inttypes.h>18#include <inttypes.h>
20#include <limits.h>19#include <limits.h>
21#include <locale.h>
22#include <math.h>20#include <math.h>
23#include <setjmp.h>21#include <setjmp.h>
24#include <stdbool.h>22#include <stdbool.h>
25#include <stdarg.h>23#include <stdarg.h>
26#include <stdio.h>24#include <stdio.h>
27#include <stddef.h>
28#include <stdint.h>25#include <stdint.h>
29#include <stdlib.h>26#include <stdlib.h>
30#include <string.h>27#include <string.h>
31#include <strings.h>28#include <strings.h>
32#include <sys/mman.h>
33#include <sys/stat.h>
34#include <sys/time.h>
35#include <sys/types.h>
36#include <time.h>
37#include <unistd.h>29#include <unistd.h>
38#include <wctype.h>
39#include <wchar.h>
40 30
41#if defined(__linux__)31#if defined(__linux__)
42#define __os_name__ "linux"32#define __os_name__ "linux"
@@ -63,9 +53,6 @@ extern char *os_version; · 20 unmodified lines
63#error pointer size unknown53#error pointer size unknown
64#elif __SIZEOF_POINTER__ == 854#elif __SIZEOF_POINTER__ == 8
65#define BITS6455#define BITS64
66#if defined(__aarch64__)
67#define FWD_BIT (1ULL<<55)
68#endif
69#endif56#endif
70 57
71typedef sigjmp_buf sl_jmp_buf;58typedef sigjmp_buf sl_jmp_buf;
src/posix/sys.c+5−0
@@ -1,5 +1,10 @@
1#include "slpriv.h"1#include "slpriv.h"
2#include "timefuncs.h"2#include "timefuncs.h"
3#include <errno.h>
4#include <locale.h>
5#include <sys/mman.h>
6#include <sys/time.h>
7#include <time.h>
3 8
4static usize pagesize = 4096;9static usize pagesize = 4096;
5#define PAGEALIGNED(x) (((x) + pagesize-1) & ~(pagesize-1))10#define PAGEALIGNED(x) (((x) + pagesize-1) & ~(pagesize-1))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t