1 /**
2  * The pledge() system call forces the current process into a
3  * restricted-service operating mode. A process which attempts a
4  * restricted operation is killed with an uncatchable SIGABRT,
5  * delivering a core file if possible.
6  */
7 
8 module openbsd.pledge;
9 
10 version (OpenBSD):
11 extern (C):
12 nothrow:
13 @nogc:
14 
15 /**
16  * restrict system operations
17  * Return values: 0 for success, -1 for failure
18  */
19 int pledge(const char *promises, const char *execpromises);