Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7b4e10c7
Commit
7b4e10c7
authored
Dec 01, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Remove the usleep() function replacement.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
db7c934f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
69 deletions
+6
-69
configure
configure
+1
-3
configure.ac
configure.ac
+1
-3
clipboard.c
dlls/winex11.drv/clipboard.c
+3
-3
config.h.in
include/config.h.in
+0
-6
port.h
include/wine/port.h
+0
-5
Makefile.in
libs/port/Makefile.in
+1
-2
usleep.c
libs/port/usleep.c
+0
-47
No files found.
configure
View file @
7b4e10c7
...
...
@@ -17778,7 +17778,6 @@ for ac_func in \
readdir
\
readlink
\
sched_yield
\
select
\
setproctitle
\
setprogname
\
settimeofday
\
...
...
@@ -17787,8 +17786,7 @@ for ac_func in \
symlink
\
sysinfo
\
tcdrain
\
thr_kill2
\
usleep
thr_kill2
do
:
as_ac_var
=
`
$as_echo
"ac_cv_func_
$ac_func
"
|
$as_tr_sh
`
...
...
configure.ac
View file @
7b4e10c7
...
...
@@ -2187,7 +2187,6 @@ AC_CHECK_FUNCS(\
readdir \
readlink \
sched_yield \
select \
setproctitle \
setprogname \
settimeofday \
...
...
@@ -2196,8 +2195,7 @@ AC_CHECK_FUNCS(\
symlink \
sysinfo \
tcdrain \
thr_kill2 \
usleep
thr_kill2
)
CFLAGS="$ac_save_CFLAGS"
...
...
dlls/winex11.drv/clipboard.c
View file @
7b4e10c7
...
...
@@ -95,7 +95,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(clipboard);
/* Maximum wait time for selection notify */
#define SELECTION_RETRIES 500
/* wait for .5 seconds */
#define SELECTION_WAIT 1
000
/* u
s */
#define SELECTION_WAIT 1
/* m
s */
#define SELECTION_UPDATE_DELAY 2000
/* delay between checks of the X11 selection */
...
...
@@ -458,7 +458,7 @@ static BOOL convert_selection( Display *display, Window win, Atom selection,
Bool
res
=
XCheckTypedWindowEvent
(
display
,
win
,
SelectionNotify
,
&
event
);
if
(
res
&&
event
.
xselection
.
selection
==
selection
&&
event
.
xselection
.
target
==
format
->
atom
)
return
read_property
(
display
,
win
,
event
.
xselection
.
property
,
type
,
data
,
size
);
us
leep
(
SELECTION_WAIT
);
S
leep
(
SELECTION_WAIT
);
}
ERR
(
"Timed out waiting for SelectionNotify event
\n
"
);
return
FALSE
;
...
...
@@ -1691,7 +1691,7 @@ static BOOL read_property( Display *display, Window w, Atom prop,
if
(
res
&&
xe
.
xproperty
.
atom
==
prop
&&
xe
.
xproperty
.
state
==
PropertyNewValue
)
break
;
us
leep
(
SELECTION_WAIT
);
S
leep
(
SELECTION_WAIT
);
}
if
(
i
>=
SELECTION_RETRIES
||
...
...
include/config.h.in
View file @
7b4e10c7
...
...
@@ -762,9 +762,6 @@
/* Define to 1 if you have the <Security/Security.h> header file. */
#undef HAVE_SECURITY_SECURITY_H
/* Define to 1 if you have the `select' function. */
#undef HAVE_SELECT
/* Define to 1 if you have the `setproctitle' function. */
#undef HAVE_SETPROCTITLE
...
...
@@ -1118,9 +1115,6 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `usleep' function. */
#undef HAVE_USLEEP
/* Define to 1 if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
...
...
include/wine/port.h
View file @
7b4e10c7
...
...
@@ -277,10 +277,6 @@ int readlink( const char *path, char *buf, size_t size );
int
symlink
(
const
char
*
from
,
const
char
*
to
);
#endif
#ifndef HAVE_USLEEP
int
usleep
(
unsigned
int
useconds
);
#endif
/* !defined(HAVE_USLEEP) */
extern
int
mkstemps
(
char
*
template
,
int
suffix_len
);
#else
/* NO_LIBWINE_PORT */
...
...
@@ -292,7 +288,6 @@ extern int mkstemps(char *template, int suffix_len);
#define lstat __WINE_NOT_PORTABLE(lstat)
#define pread __WINE_NOT_PORTABLE(pread)
#define pwrite __WINE_NOT_PORTABLE(pwrite)
#define usleep __WINE_NOT_PORTABLE(usleep)
#endif
/* NO_LIBWINE_PORT */
...
...
libs/port/Makefile.in
View file @
7b4e10c7
...
...
@@ -12,5 +12,4 @@ C_SRCS = \
pwrite.c
\
readlink.c
\
spawn.c
\
symlink.c
\
usleep.c
symlink.c
libs/port/usleep.c
deleted
100644 → 0
View file @
db7c934f
/*
* usleep function
*
* Copyright 1996 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_USLEEP
int
usleep
(
unsigned
int
useconds
)
{
#if defined(__EMX__)
DosSleep
(
useconds
);
return
0
;
#elif defined(__BEOS__)
return
snooze
(
useconds
);
#elif defined(HAVE_SELECT)
struct
timeval
delay
;
delay
.
tv_sec
=
useconds
/
1000000
;
delay
.
tv_usec
=
useconds
%
1000000
;
select
(
0
,
0
,
0
,
0
,
&
delay
);
return
0
;
#else
/* defined(__EMX__) || defined(__BEOS__) || defined(HAVE_SELECT) */
errno
=
ENOSYS
;
return
-
1
;
#endif
/* defined(__EMX__) || defined(__BEOS__) || defined(HAVE_SELECT) */
}
#endif
/* HAVE_USLEEP */
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