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
13eafa04
Commit
13eafa04
authored
Dec 27, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Get rid of the replacement function for gettid.
parent
185f6370
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
49 deletions
+4
-49
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
+0
-4
Makefile.in
libs/port/Makefile.in
+0
-1
gettid.c
libs/port/gettid.c
+0
-38
main.c
loader/main.c
+4
-1
No files found.
configure
View file @
13eafa04
...
...
@@ -12753,7 +12753,6 @@ for ac_func in \
getopt_long
\
getpagesize
\
getpwuid
\
gettid
\
gettimeofday
\
getuid
\
kqueue
\
...
...
configure.ac
View file @
13eafa04
...
...
@@ -1904,7 +1904,6 @@ AC_CHECK_FUNCS(\
getopt_long \
getpagesize \
getpwuid \
gettid \
gettimeofday \
getuid \
kqueue \
...
...
include/config.h.in
View file @
13eafa04
...
...
@@ -226,9 +226,6 @@
/* Define to 1 if you have the `getservbyport' function. */
#undef HAVE_GETSERVBYPORT
/* Define to 1 if you have the `gettid' function. */
#undef HAVE_GETTID
/* Define to 1 if you have the `gettimeofday' function. */
#undef HAVE_GETTIMEOFDAY
...
...
include/wine/port.h
View file @
13eafa04
...
...
@@ -248,10 +248,6 @@ int futimes(int fd, const struct timeval *tv);
size_t
getpagesize
(
void
);
#endif
/* HAVE_GETPAGESIZE */
#ifndef HAVE_GETTID
pid_t
gettid
(
void
);
#endif
/* HAVE_GETTID */
#ifndef HAVE_ISINF
int
isinf
(
double
x
);
#endif
...
...
libs/port/Makefile.in
View file @
13eafa04
...
...
@@ -9,7 +9,6 @@ C_SRCS = \
getopt.c
\
getopt1.c
\
getpagesize.c
\
gettid.c
\
interlocked.c
\
isinf.c
\
isnan.c
\
...
...
libs/port/gettid.c
deleted
100644 → 0
View file @
185f6370
/*
* gettid function
*
* Copyright 2003 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_GETTID
pid_t
gettid
(
void
)
{
#if defined(__linux__) && defined(__i386__)
pid_t
ret
;
__asm__
(
"int $0x80"
:
"=a"
(
ret
)
:
"0"
(
224
)
/* SYS_gettid */
);
if
(
ret
<
0
)
ret
=
-
1
;
return
ret
;
#else
return
-
1
;
/* FIXME */
#endif
}
#endif
/* HAVE_GETTID */
loader/main.c
View file @
13eafa04
...
...
@@ -30,6 +30,9 @@
#ifdef HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
#ifdef HAVE_SYS_SYSCALL_H
# include <sys/syscall.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
...
...
@@ -104,7 +107,7 @@ static void check_command_line( int argc, char *argv[] )
/* separate thread to check for NPTL and TLS features */
static
void
*
needs_pthread
(
void
*
arg
)
{
pid_t
tid
=
gettid
(
);
pid_t
tid
=
syscall
(
SYS_gettid
);
/* check for NPTL */
if
(
tid
!=
-
1
&&
tid
!=
getpid
())
return
(
void
*
)
1
;
/* check for TLS glibc */
...
...
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