diff options
| author | roy <roy@NetBSD.org> | 2009-07-13 22:19:24 +0000 |
|---|---|---|
| committer | roy <roy@NetBSD.org> | 2009-07-13 22:19:24 +0000 |
| commit | d4a3cf6a5aef5c137222dd3e8a87eddc29abc91d (patch) | |
| tree | 97a247476cb40e5115c4736c6cbb48ad86e066cf /include | |
| parent | 585ce9eda67a8cb4ff17fd3ad93ec619d6e8f4a8 (diff) | |
Add implementations for getdelim(3) and getline(3).
Diffstat (limited to 'include')
| -rw-r--r-- | include/stdio.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index f8934a17995..85c6b909814 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.73 2008/09/21 16:59:46 christos Exp $ */ +/* $NetBSD: stdio.h,v 1.74 2009/07/13 22:19:24 roy Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,6 +46,10 @@ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif +#ifdef _BSD_SSIZE_T_ +typedef _BSD_SSIZE_T_ ssize_t; +#undef _BSD_SSIZE_T_ +#endif #include <sys/null.h> @@ -236,6 +240,9 @@ long ftell(FILE *); size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict); int getc(FILE *); int getchar(void); +ssize_t getdelim(char ** __restrict, size_t * __restrict, int, + FILE * __restrict); +ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict); void perror(const char *); int printf(const char * __restrict, ...) __attribute__((__format__(__printf__, 1, 2))); |
