Skip to content

Commit 873c6b7

Browse files
committed
Add pkey_* to generated sys/mman.h. Fix formatting.
1 parent 6e1e1b1 commit 873c6b7

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

libc/include/sys/mman.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,41 @@ functions:
101101
arguments:
102102
- type: void *
103103
- type: size_t
104+
- name: pkey_alloc
105+
standards:
106+
- Linux
107+
return_type: int
108+
arguments:
109+
- type: unsigned int
110+
- type: unsigned int
111+
- name: pkey_free
112+
standards:
113+
- Linux
114+
return_type: int
115+
arguments:
116+
- type: int
117+
- name: pkey_get
118+
standards:
119+
- GNUExtensions
120+
return_type: int
121+
arguments:
122+
- type: int
123+
- name: pkey_mprotect
124+
standards:
125+
- Linux
126+
return_type: int
127+
arguments:
128+
- type: void *
129+
- type: size_t
130+
- type: int
131+
- type: int
132+
- name: pkey_set
133+
standards:
134+
- GNUExtensions
135+
return_type: int
136+
arguments:
137+
- type: int
138+
- type: unsigned int
104139
- name: posix_madvise
105140
standards:
106141
- POSIX

libc/src/sys/mman/pkey_mprotect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef LLVM_LIBC_SRC_SYS_MMAN_PKEY_MPROTECT_H
1010
#define LLVM_LIBC_SRC_SYS_MMAN_PKEY_MPROTECT_H
1111

12-
#include "src/__support/macros/config.h"
1312
#include "hdr/types/size_t.h"
13+
#include "src/__support/macros/config.h"
1414

1515
namespace LIBC_NAMESPACE_DECL {
1616

0 commit comments

Comments
 (0)