Module: wine Branch: master Commit: ee213bcbeacae19e6e7cc3526312caee3c49a172 URL: https://source.winehq.org/git/wine.git/?a=commit;h=ee213bcbeacae19e6e7cc3526...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Oct 6 10:17:41 2021 +0200
libport: Remove the readlink() implementation.
Signed-off-by: Alexandre Julliard julliard@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 */