| 1 |
module core.sys.linux.unistd; |
| 2 |
|
| 3 |
public import core.sys.posix.unistd; |
| 4 |
|
| 5 |
version (linux): |
| 6 |
extern(C): |
| 7 |
nothrow: |
| 8 |
@nogc: |
| 9 |
|
| 10 |
// Additional seek constants for sparse file handling |
| 11 |
// from Linux's unistd.h, stdio.h, and linux/fs.h |
| 12 |
// (see http://man7.org/linux/man-pages/man2/lseek.2.html) |
| 13 |
enum { |
| 14 |
/// Offset is relative to the next location containing data |
| 15 |
SEEK_DATA = 3, |
| 16 |
/// Offset is relative to the next hole (or EOF if file is not sparse) |
| 17 |
SEEK_HOLE = 4 |
| 18 |
} |
| 19 |
|
| 20 |
/// Prompt for a password without echoing it. |
| 21 |
char* getpass(const(char)* prompt); |
| 22 |
|
| 23 |
// Exit all threads in a process |
| 24 |
void exit_group(int status); |
| 25 |
|
| 26 |
/// Close all open file descriptors greater or equal to `lowfd` |
| 27 |
void closefrom(int lowfd); |