haiku/headers/compatibility/bsd/unistd.h
Jérôme Duval 4169a972ee POSIX: move getentropy(2) from libbsd
Specified in POSIX.1-2024
https://www.austingroupbugs.net/view.php?id=1134
Change-Id: Ie715a102aa6f7764bc639e0a1874a6c7f7d81019
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7846
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-07-16 16:09:00 +00:00

40 lines
549 B
C

/*
* Copyright 2006-2010 Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _BSD_UNISTD_H_
#define _BSD_UNISTD_H_
#include_next <unistd.h>
#include <features.h>
#ifdef _DEFAULT_SOURCE
#define L_SET SEEK_SET
#define L_INCR SEEK_CUR
#define L_XTND SEEK_END
#ifdef __cplusplus
extern "C" {
#endif
void endusershell(void);
char *getpass(const char *prompt);
char *getusershell(void);
int issetugid(void);
void setusershell(void);
#ifdef __cplusplus
}
#endif
#endif
#endif /* _BSD_UNISTD_H_ */