1 /* 2 * Copyright 2006-2010 Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _BSD_UNISTD_H_ 6 #define _BSD_UNISTD_H_ 7 8 9 #include_next <unistd.h> 10 #include <features.h> 11 12 13 #ifdef _DEFAULT_SOURCE 14 15 16 #define L_SET SEEK_SET 17 #define L_INCR SEEK_CUR 18 #define L_XTND SEEK_END 19 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 void endusershell(void); 26 char *getpass(const char *prompt); 27 char *getusershell(void); 28 int issetugid(void); 29 void setusershell(void); 30 31 int getentropy(void *buf, size_t buflen); 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 38 #endif 39 40 41 #endif /* _BSD_UNISTD_H_ */ 42