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
0fbd5569
Commit
0fbd5569
authored
Dec 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Add a stub replacement for symlink().
parent
921e6624
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
0 deletions
+49
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
port.h
include/wine/port.h
+4
-0
Makefile.in
libs/port/Makefile.in
+1
-0
symlink.c
libs/port/symlink.c
+38
-0
No files found.
configure
View file @
0fbd5569
...
...
@@ -17787,6 +17787,7 @@ esac
for
ac_func
in
\
_pclose
\
_popen
\
...
...
@@ -17851,6 +17852,7 @@ for ac_func in \
strtold
\
strtoll
\
strtoull
\
symlink
\
tcgetattr
\
thr_kill2
\
timegm
\
...
...
configure.ac
View file @
0fbd5569
...
...
@@ -1417,6 +1417,7 @@ AC_CHECK_FUNCS(\
strtold \
strtoll \
strtoull \
symlink \
tcgetattr \
thr_kill2 \
timegm \
...
...
include/config.h.in
View file @
0fbd5569
...
...
@@ -765,6 +765,9 @@
/* Define to 1 if `st_mtim' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_MTIM
/* Define to 1 if you have the `symlink' function. */
#undef HAVE_SYMLINK
/* Define to 1 if you have the <syscall.h> header file. */
#undef HAVE_SYSCALL_H
...
...
include/wine/port.h
View file @
0fbd5569
...
...
@@ -341,6 +341,10 @@ int strcasecmp(const char *str1, const char *str2);
# endif
#endif
/* !defined(HAVE_STRCASECMP) */
#ifndef HAVE_SYMLINK
int
symlink
(
const
char
*
from
,
const
char
*
to
);
#endif
#ifndef HAVE_USLEEP
int
usleep
(
unsigned
int
useconds
);
#endif
/* !defined(HAVE_USLEEP) */
...
...
libs/port/Makefile.in
View file @
0fbd5569
...
...
@@ -29,6 +29,7 @@ C_SRCS = \
strcasecmp.c
\
strerror.c
\
strncasecmp.c
\
symlink.c
\
usleep.c
all
:
$(MODULE)
...
...
libs/port/symlink.c
0 → 100644
View file @
0fbd5569
/*
* 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