Module: wine
Branch: master
Commit: ee213bcbeacae19e6e7cc3526312caee3c49a172
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ee213bcbeacae19e6e7cc352…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Oct 6 10:17:41 2021 +0200
libport: Remove the readlink() implementation.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 -
configure.ac | 1 -
include/config.h.in | 3 ---
include/wine/port.h | 4 ----
libs/port/Makefile.in | 1 -
libs/port/readlink.c | 32 --------------------------------
6 files changed, 42 deletions(-)
diff --git a/configure b/configure
index 3de53b0255b..6ca64c1fcfd 100755
--- a/configure
+++ b/configure
@@ -17915,7 +17915,6 @@ for ac_func in \
posix_fallocate \
prctl \
proc_pidinfo \
- readlink \
sched_yield \
setproctitle \
setprogname \
diff --git a/configure.ac b/configure.ac
index c0fa6ec37c8..d1f23bcc9e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2146,7 +2146,6 @@ AC_CHECK_FUNCS(\
posix_fallocate \
prctl \
proc_pidinfo \
- readlink \
sched_yield \
setproctitle \
setprogname \
diff --git a/include/config.h.in b/include/config.h.in
index db58743fe46..7d7393c19db 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -510,9 +510,6 @@
/* Define to 1 if you have the <QuickTime/ImageCompression.h> header file. */
#undef HAVE_QUICKTIME_IMAGECOMPRESSION_H
-/* Define to 1 if you have the `readlink' function. */
-#undef HAVE_READLINK
-
/* Define to 1 if the system has the type `request_sense'. */
#undef HAVE_REQUEST_SENSE
diff --git a/include/wine/port.h b/include/wine/port.h
index f3b39582f9c..be8e5463a14 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -99,10 +99,6 @@ static inline const char *dlerror(void) { return "No dlopen support on Windows";
* Function definitions (only when using libwine_port)
*/
-#ifndef HAVE_READLINK
-int readlink( const char *path, char *buf, size_t size );
-#endif /* HAVE_READLINK */
-
#ifndef HAVE_SYMLINK
int symlink(const char *from, const char *to);
#endif
diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in
index 392aa2ad713..7daaa9c845d 100644
--- a/libs/port/Makefile.in
+++ b/libs/port/Makefile.in
@@ -1,5 +1,4 @@
STATICLIB = libwine_port.a
C_SRCS = \
- readlink.c \
symlink.c
diff --git a/libs/port/readlink.c b/libs/port/readlink.c
deleted file mode 100644
index 24f7084c9a8..00000000000
--- a/libs/port/readlink.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * readlink function
- *
- * Copyright 2004 Alexandre Julliard
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-#include "config.h"
-#include "wine/port.h"
-
-#include <errno.h>
-
-#ifndef HAVE_READLINK
-int readlink( const char *path, char *buf, size_t size )
-{
- errno = -ENOSYS;
- return -1;
-}
-#endif /* HAVE_READLINK */
Module: wine
Branch: master
Commit: 6d2cf0230ef6f1ecf415c5f591f276798be3f80a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6d2cf0230ef6f1ecf415c5f5…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Oct 6 10:17:27 2021 +0200
libport: Remove the lstat() implementation.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
configure | 1 -
configure.ac | 1 -
include/config.h.in | 3 ---
include/wine/port.h | 4 ----
libs/port/Makefile.in | 1 -
libs/port/lstat.c | 29 -----------------------------
6 files changed, 39 deletions(-)
diff --git a/configure b/configure
index 50c29234c80..3de53b0255b 100755
--- a/configure
+++ b/configure
@@ -17908,7 +17908,6 @@ for ac_func in \
getifaddrs \
getrandom \
kqueue \
- lstat \
mach_continuous_time \
pipe2 \
port_create \
diff --git a/configure.ac b/configure.ac
index 42f97efb4a4..c0fa6ec37c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2139,7 +2139,6 @@ AC_CHECK_FUNCS(\
getifaddrs \
getrandom \
kqueue \
- lstat \
mach_continuous_time \
pipe2 \
port_create \
diff --git a/include/config.h.in b/include/config.h.in
index e27b23f658f..db58743fe46 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -348,9 +348,6 @@
/* Define to 1 if you have the <linux/videodev2.h> header file. */
#undef HAVE_LINUX_VIDEODEV2_H
-/* Define to 1 if you have the `lstat' function. */
-#undef HAVE_LSTAT
-
/* Define to 1 if you have the <lwp.h> header file. */
#undef HAVE_LWP_H
diff --git a/include/wine/port.h b/include/wine/port.h
index 6e05d73d05a..f3b39582f9c 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -99,10 +99,6 @@ static inline const char *dlerror(void) { return "No dlopen support on Windows";
* Function definitions (only when using libwine_port)
*/
-#ifndef HAVE_LSTAT
-int lstat(const char *file_name, struct stat *buf);
-#endif /* HAVE_LSTAT */
-
#ifndef HAVE_READLINK
int readlink( const char *path, char *buf, size_t size );
#endif /* HAVE_READLINK */
diff --git a/libs/port/Makefile.in b/libs/port/Makefile.in
index 9b36c6c5a3b..392aa2ad713 100644
--- a/libs/port/Makefile.in
+++ b/libs/port/Makefile.in
@@ -1,6 +1,5 @@
STATICLIB = libwine_port.a
C_SRCS = \
- lstat.c \
readlink.c \
symlink.c
diff --git a/libs/port/lstat.c b/libs/port/lstat.c
deleted file mode 100644
index 346b412a8b1..00000000000
--- a/libs/port/lstat.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * lstat function
- *
- * Copyright 1996 Alexandre Julliard
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- */
-
-#include "config.h"
-#include "wine/port.h"
-
-#ifndef HAVE_LSTAT
-int lstat(const char *file_name, struct stat *buf)
-{
- return stat( file_name, buf );
-}
-#endif /* HAVE_LSTAT */