1 /* 2 * Copyright 2006-2010 Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _BSD_STDIO_H_ 6 #define _BSD_STDIO_H_ 7 8 9 #include_next <stdio.h> 10 #include <features.h> 11 12 13 #if defined(_DEFAULT_SOURCE) || defined(_GNU_SOURCE) 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 char *fgetln(FILE *stream, size_t *_length); 21 22 int asprintf(char **ret, char const *format, ...) __PRINTFLIKE(2,3); 23 int vasprintf(char **ret, char const *format, va_list ap); 24 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 31 #endif 32 33 34 #endif /* _BSD_STDIO_H_ */ 35