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
61a70360
Commit
61a70360
authored
Jun 26, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use sys/inotify.h if it exists instead of hardcoding the system calls.
parent
6a392a8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
3 deletions
+12
-3
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
config.h.in
include/config.h.in
+3
-0
change.c
server/change.c
+6
-3
No files found.
configure
View file @
61a70360
...
...
@@ -5740,6 +5740,7 @@ done
for
ac_header
in
\
AudioUnit/AudioUnit.h
\
Carbon/Carbon.h
\
...
...
@@ -5824,6 +5825,7 @@ for ac_header in \
sys/event.h
\
sys/exec_elf.h
\
sys/filio.h
\
sys/inotify.h
\
sys/ioctl.h
\
sys/ipc.h
\
sys/limits.h
\
...
...
configure.ac
View file @
61a70360
...
...
@@ -347,6 +347,7 @@ AC_CHECK_HEADERS(\
sys/event.h \
sys/exec_elf.h \
sys/filio.h \
sys/inotify.h \
sys/ioctl.h \
sys/ipc.h \
sys/limits.h \
...
...
include/config.h.in
View file @
61a70360
...
...
@@ -828,6 +828,9 @@
/* Define to 1 if you have the <sys/filio.h> header file. */
#undef HAVE_SYS_FILIO_H
/* Define to 1 if you have the <sys/inotify.h> header file. */
#undef HAVE_SYS_INOTIFY_H
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
...
...
server/change.c
View file @
61a70360
...
...
@@ -65,7 +65,10 @@
/* inotify support */
#if defined(__linux__) && defined(__i386__)
#ifdef HAVE_SYS_INOTIFY_H
#include <sys/inotify.h>
#define USE_INOTIFY
#elif defined(__linux__) && defined(__i386__)
#define SYS_inotify_init 291
#define SYS_inotify_add_watch 292
...
...
@@ -114,7 +117,7 @@ static inline int inotify_add_watch( int fd, const char *name, unsigned int mask
return
ret
;
}
static
inline
int
inotify_r
emove
_watch
(
int
fd
,
int
wd
)
static
inline
int
inotify_r
m
_watch
(
int
fd
,
int
wd
)
{
int
ret
;
__asm__
__volatile__
(
"pushl %%ebx;
\n\t
"
...
...
@@ -568,7 +571,7 @@ static void free_inode( struct inode *inode )
if
(
inode
->
wd
!=
-
1
)
{
inotify_r
emove
_watch
(
get_unix_fd
(
inotify_fd
),
inode
->
wd
);
inotify_r
m
_watch
(
get_unix_fd
(
inotify_fd
),
inode
->
wd
);
list_remove
(
&
inode
->
wd_entry
);
}
list_remove
(
&
inode
->
ino_entry
);
...
...
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