Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dd895f49
Commit
dd895f49
authored
Oct 06, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Remove the symlink() implementation.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee213bcb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
55 deletions
+2
-55
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
config.h.in
include/config.h.in
+0
-3
port.h
include/wine/port.h
+2
-9
Makefile.in
libs/port/Makefile.in
+0
-3
symlink.c
libs/port/symlink.c
+0
-38
No files found.
configure
View file @
dd895f49
...
@@ -17919,7 +17919,6 @@ for ac_func in \
...
@@ -17919,7 +17919,6 @@ for ac_func in \
setproctitle
\
setproctitle
\
setprogname
\
setprogname
\
sigprocmask
\
sigprocmask
\
symlink
\
sysinfo
\
sysinfo
\
tcdrain
\
tcdrain
\
thr_kill2
thr_kill2
...
...
configure.ac
View file @
dd895f49
...
@@ -2150,7 +2150,6 @@ AC_CHECK_FUNCS(\
...
@@ -2150,7 +2150,6 @@ AC_CHECK_FUNCS(\
setproctitle \
setproctitle \
setprogname \
setprogname \
sigprocmask \
sigprocmask \
symlink \
sysinfo \
sysinfo \
tcdrain \
tcdrain \
thr_kill2
thr_kill2
...
...
include/config.h.in
View file @
dd895f49
...
@@ -687,9 +687,6 @@
...
@@ -687,9 +687,6 @@
/* Define to 1 if `_u._ext.nscount6' is a member of `struct __res_state'. */
/* Define to 1 if `_u._ext.nscount6' is a member of `struct __res_state'. */
#undef HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6
#undef HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6
/* Define to 1 if you have the `symlink' function. */
#undef HAVE_SYMLINK
/* Define to 1 if you have the <syscall.h> header file. */
/* Define to 1 if you have the <syscall.h> header file. */
#undef HAVE_SYSCALL_H
#undef HAVE_SYSCALL_H
...
...
include/wine/port.h
View file @
dd895f49
...
@@ -50,6 +50,7 @@
...
@@ -50,6 +50,7 @@
#if defined(_WIN32) && !defined(__CYGWIN__)
#if defined(_WIN32) && !defined(__CYGWIN__)
#include <direct.h>
#include <direct.h>
#include <errno.h>
#include <io.h>
#include <io.h>
#include <process.h>
#include <process.h>
...
@@ -57,6 +58,7 @@ static inline void *dlopen(const char *name, int flags) { return NULL; }
...
@@ -57,6 +58,7 @@ static inline void *dlopen(const char *name, int flags) { return NULL; }
static
inline
void
*
dlsym
(
void
*
handle
,
const
char
*
name
)
{
return
NULL
;
}
static
inline
void
*
dlsym
(
void
*
handle
,
const
char
*
name
)
{
return
NULL
;
}
static
inline
int
dlclose
(
void
*
handle
)
{
return
0
;
}
static
inline
int
dlclose
(
void
*
handle
)
{
return
0
;
}
static
inline
const
char
*
dlerror
(
void
)
{
return
"No dlopen support on Windows"
;
}
static
inline
const
char
*
dlerror
(
void
)
{
return
"No dlopen support on Windows"
;
}
static
inline
int
symlink
(
const
char
*
from
,
const
char
*
to
)
{
errno
=
ENOSYS
;
return
-
1
;
}
#ifdef _MSC_VER
#ifdef _MSC_VER
/* The UCRT headers in the Windows SDK #error out if we #define snprintf.
/* The UCRT headers in the Windows SDK #error out if we #define snprintf.
...
@@ -94,13 +96,4 @@ static inline const char *dlerror(void) { return "No dlopen support on Windows";
...
@@ -94,13 +96,4 @@ static inline const char *dlerror(void) { return "No dlopen support on Windows";
#define M_PI_2 1.570796326794896619
#define M_PI_2 1.570796326794896619
#endif
#endif
/****************************************************************
* Function definitions (only when using libwine_port)
*/
#ifndef HAVE_SYMLINK
int
symlink
(
const
char
*
from
,
const
char
*
to
);
#endif
#endif
/* !defined(__WINE_WINE_PORT_H) */
#endif
/* !defined(__WINE_WINE_PORT_H) */
libs/port/Makefile.in
View file @
dd895f49
STATICLIB
=
libwine_port.a
STATICLIB
=
libwine_port.a
C_SRCS
=
\
symlink.c
libs/port/symlink.c
deleted
100644 → 0
View file @
ee213bcb
/*
* symlink function
*
* Copyright 2008 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>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifndef HAVE_SYMLINK
int
symlink
(
const
char
*
from
,
const
char
*
to
)
{
errno
=
ENOSYS
;
return
-
1
;
}
#endif
/* HAVE_SYMLINK */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment