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
e2930741
Commit
e2930741
authored
Jan 08, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added configure check for readlink.
parent
36048242
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
0 deletions
+45
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+5
-0
port.h
include/wine/port.h
+4
-0
Makefile.in
libs/port/Makefile.in
+1
-0
readlink.c
libs/port/readlink.c
+32
-0
No files found.
configure
View file @
e2930741
...
...
@@ -15484,6 +15484,7 @@ fi
for
ac_func
in
\
_lwp_create
\
_lwp_self
\
...
...
@@ -15519,6 +15520,7 @@ for ac_func in \
popen
\
pread
\
pwrite
\
readlink
\
rfork
\
select
\
sendmsg
\
...
...
configure.ac
View file @
e2930741
...
...
@@ -1040,6 +1040,7 @@ AC_CHECK_FUNCS(\
popen \
pread \
pwrite \
readlink \
rfork \
select \
sendmsg \
...
...
include/config.h.in
View file @
e2930741
...
...
@@ -722,6 +722,11 @@
#undef HAVE_PWRITE
/*
Define to 1 if you have the `readlink'
function. */
#undef HAVE_READLINK
/*
Define to 1 if you have the <regex.h>
header file. */
#undef HAVE_REGEX_H
...
...
include/wine/port.h
View file @
e2930741
...
...
@@ -248,6 +248,10 @@ ssize_t pread( int fd, void *buf, size_t count, off_t offset );
ssize_t
pwrite
(
int
fd
,
const
void
*
buf
,
size_t
count
,
off_t
offset
);
#endif
/* HAVE_PWRITE */
#ifndef HAVE_READLINK
int
readlink
(
const
char
*
path
,
char
*
buf
,
size_t
size
);
#endif
/* HAVE_READLINK */
#ifndef HAVE_SIGSETJMP
# include <setjmp.h>
typedef
jmp_buf
sigjmp_buf
;
...
...
libs/port/Makefile.in
View file @
e2930741
...
...
@@ -18,6 +18,7 @@ C_SRCS = \
mkstemps.c
\
pread.c
\
pwrite.c
\
readlink.c
\
sigsetjmp.c
\
spawn.c
\
statfs.c
\
...
...
libs/port/readlink.c
0 → 100644
View file @
e2930741
/*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 */
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