Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Move declarations of getdelim() and getline() from t...
details: https://anonhg.NetBSD.org/src/rev/9e65e6a77397
branches: trunk
changeset: 329322:9e65e6a77397
user: kleink <kleink%NetBSD.org@localhost>
date: Mon May 19 16:04:10 2014 +0000
description:
Move declarations of getdelim() and getline() from the (incorrect) ANSI C
section to POSIX-2008. From Jarmo Jaakkola in PR standards/48788.
diffstat:
include/stdio.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 9aaa36fdc051 -r 9e65e6a77397 include/stdio.h
--- a/include/stdio.h Mon May 19 15:57:04 2014 +0000
+++ b/include/stdio.h Mon May 19 16:04:10 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdio.h,v 1.88 2013/05/04 18:30:14 christos Exp $ */
+/* $NetBSD: stdio.h,v 1.89 2014/05/19 16:04:10 kleink Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -242,9 +242,6 @@
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, ...)
__printflike(1, 2);
@@ -526,6 +523,9 @@
#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \
defined(_NETBSD_SOURCE)
FILE *fmemopen(void * __restrict, size_t, const char * __restrict);
+ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
+ FILE * __restrict);
+ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
#endif
#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
Home |
Main Index |
Thread Index |
Old Index