Source-Changes-HG archive

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

[src/trunk]: src/tools/compat Add getline(3) compat glue.



details:   https://anonhg.NetBSD.org/src/rev/157570b553ab
branches:  trunk
changeset: 770943:157570b553ab
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Nov 03 14:13:53 2011 +0000

description:
Add getline(3) compat glue.

diffstat:

 tools/compat/compat_defs.h      |  7 ++++++-
 tools/compat/configure          |  4 ++--
 tools/compat/configure.ac       |  6 +++---
 tools/compat/nbtool_config.h.in |  5 ++++-
 4 files changed, 15 insertions(+), 7 deletions(-)

diffs (76 lines):

diff -r 5c6f6842941c -r 157570b553ab tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Thu Nov 03 10:12:57 2011 +0000
+++ b/tools/compat/compat_defs.h        Thu Nov 03 14:13:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.81 2011/09/05 07:38:52 jdc Exp $     */
+/*     $NetBSD: compat_defs.h,v 1.82 2011/11/03 14:13:53 joerg Exp $   */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -276,6 +276,11 @@
 char *fparseln(FILE *, size_t *, size_t *, const char [3], int);
 #endif
 
+#if !HAVE_GETLINE
+ssize_t getdelim(char **, size_t *, int, FILE *);
+ssize_t getline(char **, size_t *, FILE *);
+#endif
+
 #if !HAVE_ISSETUGID
 int issetugid(void);
 #endif
diff -r 5c6f6842941c -r 157570b553ab tools/compat/configure
--- a/tools/compat/configure    Thu Nov 03 10:12:57 2011 +0000
+++ b/tools/compat/configure    Thu Nov 03 14:13:53 2011 +0000
@@ -4981,8 +4981,8 @@
 fi
 
 for ac_func in atoll asprintf asnprintf basename devname dirfd dirname \
-       esetfunc fgetln flock fpurge __fpurge futimes getopt getopt_long \
-       group_from_gid gid_from_group \
+       esetfunc fgetln flock fpurge __fpurge futimes getline \
+       getopt getopt_long group_from_gid gid_from_group \
        heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
        mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
        pwrite raise_default_signal random setenv \
diff -r 5c6f6842941c -r 157570b553ab tools/compat/configure.ac
--- a/tools/compat/configure.ac Thu Nov 03 10:12:57 2011 +0000
+++ b/tools/compat/configure.ac Thu Nov 03 14:13:53 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.73 2011/08/14 20:22:42 apb Exp $
+#      $NetBSD: configure.ac,v 1.74 2011/11/03 14:13:53 joerg Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -146,8 +146,8 @@
 # Library functions (where a .h check isn't enough).
 AC_FUNC_ALLOCA
 AC_CHECK_FUNCS(atoll asprintf asnprintf basename devname dirfd dirname \
-       esetfunc fgetln flock fpurge __fpurge futimes getopt getopt_long \
-       group_from_gid gid_from_group \
+       esetfunc fgetln flock fpurge __fpurge futimes getline \
+       getopt getopt_long group_from_gid gid_from_group \
        heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
        mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
        pwrite raise_default_signal random setenv \
diff -r 5c6f6842941c -r 157570b553ab tools/compat/nbtool_config.h.in
--- a/tools/compat/nbtool_config.h.in   Thu Nov 03 10:12:57 2011 +0000
+++ b/tools/compat/nbtool_config.h.in   Thu Nov 03 14:13:53 2011 +0000
@@ -1,6 +1,6 @@
 /* nbtool_config.h.in.  Generated automatically from configure.ac by autoheader.  */
 
-/*      $NetBSD: nbtool_config.h.in,v 1.26 2011/08/14 20:25:01 apb Exp $    */
+/*      $NetBSD: nbtool_config.h.in,v 1.27 2011/11/03 14:13:53 joerg Exp $    */
  
 #ifndef __NETBSD_NBTOOL_CONFIG_H__
 #define __NETBSD_NBTOOL_CONFIG_H__
@@ -267,6 +267,9 @@
 /* Define if you have the `futimes' function. */
 #undef HAVE_FUTIMES
 
+/* Define if you have the `getline' function. */
+#undef HAVE_GETLINE
+
 /* Define if you have the `getopt' function. */
 #undef HAVE_GETOPT
 



Home | Main Index | Thread Index | Old Index