Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit change tests for fgetln.



details:   https://anonhg.NetBSD.org/src/rev/8f8bf2d23dfc
branches:  trunk
changeset: 343583:8f8bf2d23dfc
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 15 16:14:39 2016 +0000

description:
change tests for fgetln.

diffstat:

 lib/libedit/config.h |  4 ++--
 lib/libedit/sys.h    |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r e7f02c9110be -r 8f8bf2d23dfc lib/libedit/config.h
--- a/lib/libedit/config.h      Mon Feb 15 15:56:33 2016 +0000
+++ b/lib/libedit/config.h      Mon Feb 15 16:14:39 2016 +0000
@@ -20,8 +20,8 @@
 /* Define to 1 if you have the <fcntl.h> header file. */
 #define HAVE_FCNTL_H 1
 
-/* Define to 1 if you have the `fgetln' function. */
-#define HAVE_FGETLN 1
+/* Define to 1 if you have the `getline' function. */
+#define HAVE_GETLINE 1
 
 /* Define to 1 if you have the `fork' function. */
 #define HAVE_FORK 1
diff -r e7f02c9110be -r 8f8bf2d23dfc lib/libedit/sys.h
--- a/lib/libedit/sys.h Mon Feb 15 15:56:33 2016 +0000
+++ b/lib/libedit/sys.h Mon Feb 15 16:14:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys.h,v 1.18 2016/02/11 19:21:04 christos Exp $        */
+/*     $NetBSD: sys.h,v 1.19 2016/02/15 16:14:39 christos Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -88,8 +88,8 @@
 #endif
 
 #ifndef HAVE_FGETLN
-#define        fgetln libedit_fgetln
-char   *fgetln(FILE *fp, size_t *len);
+#define        getline libedit_getline
+ssize_t        getline(char **line, size_t *len, FILE *fp);
 #endif
 
 #ifndef HAVE_WCSDUP



Home | Main Index | Thread Index | Old Index