Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh ksh: Drop support for systems without POSIX lstat(2)
details: https://anonhg.NetBSD.org/src/rev/ac31f1b1b45c
branches: trunk
changeset: 354798:ac31f1b1b45c
user: kamil <kamil%NetBSD.org@localhost>
date: Fri Jun 30 03:35:16 2017 +0000
description:
ksh: Drop support for systems without POSIX lstat(2)
diffstat:
bin/ksh/config.h | 5 +----
bin/ksh/ksh_stat.h | 8 ++------
2 files changed, 3 insertions(+), 10 deletions(-)
diffs (40 lines):
diff -r 0306b4c7b85c -r ac31f1b1b45c bin/ksh/config.h
--- a/bin/ksh/config.h Fri Jun 30 03:32:28 2017 +0000
+++ b/bin/ksh/config.h Fri Jun 30 03:35:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: config.h,v 1.48 2017/06/30 03:32:28 kamil Exp $ */
+/* $NetBSD: config.h,v 1.49 2017/06/30 03:35:16 kamil Exp $ */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
@@ -72,9 +72,6 @@
/* Define if you have a sane <termios.h> header file */
#define HAVE_TERMIOS_H 1
-/* Define if you have a lstat() function in your C library */
-#define HAVE_LSTAT 1
-
/* Define if you have a sane <termio.h> header file */
/* #undef HAVE_TERMIO_H */
diff -r 0306b4c7b85c -r ac31f1b1b45c bin/ksh/ksh_stat.h
--- a/bin/ksh/ksh_stat.h Fri Jun 30 03:32:28 2017 +0000
+++ b/bin/ksh/ksh_stat.h Fri Jun 30 03:35:16 2017 +0000
@@ -1,15 +1,11 @@
-/* $NetBSD: ksh_stat.h,v 1.2 1997/01/12 19:12:00 tls Exp $ */
+/* $NetBSD: ksh_stat.h,v 1.3 2017/06/30 03:35:16 kamil Exp $ */
/* Wrapper around the ugly sys/stat includes/ifdefs */
-/* $NetBSD: ksh_stat.h,v 1.2 1997/01/12 19:12:00 tls Exp $ */
+/* $NetBSD: ksh_stat.h,v 1.3 2017/06/30 03:35:16 kamil Exp $ */
/* assumes <sys/types.h> already included */
#include <sys/stat.h>
-#ifndef HAVE_LSTAT
-# define lstat(path, buf) stat(path, buf)
-#endif /* HAVE_LSTAT */
-
#ifdef STAT_MACROS_BROKEN
# undef S_ISREG
# undef S_ISDIR
Home |
Main Index |
Thread Index |
Old Index