search for: 250755f

Displaying 2 results from an estimated 2 matches for "250755f".

Did you mean: 2502552
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
...d-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/include/stdlib.h | 9 ++++++++- usr/klibc/Kbuild | 2 +- usr/klibc/posix_openpt.c | 14 -------------- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/usr/include/stdlib.h b/usr/include/stdlib.h index c2d6264..250755f 100644 --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -83,7 +83,14 @@ static __inline__ void srandom(unsigned int __s) __extern int unlockpt(int); __extern char *ptsname(int); -__extern int posix_openpt(int); + +static __inline__ int posix_openpt(int __mode) +{ + __extern int open(con...
2016 Feb 01
0
[klibc:master] stdlib.h: include <fcntl.h> for inline of posix_grantpt()
...namespace pollution is not a major concern in klibc, add <fcntl.h> to support the inline of posix_grantpt(). Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/include/stdlib.h | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/include/stdlib.h b/usr/include/stdlib.h index 250755f..123eddc 100644 --- a/usr/include/stdlib.h +++ b/usr/include/stdlib.h @@ -10,6 +10,7 @@ #include <stddef.h> #include <malloc.h> +#include <fcntl.h> #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0