Alexandre Julliard
4be18ce16b
server: Remove some dead initializations (Clang).
2024-09-11 22:51:45 +02:00
Brendan Shanks
9b4e3718ed
server: Replace sprintf with snprintf to avoid deprecation warnings on macOS.
2024-03-28 19:51:35 +01:00
Brendan Shanks
6b4eae4088
server: Fix compile error on FreeBSD/NetBSD.
...
F_GETPATH is currently only implemented on macOS.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56047
2023-12-27 12:14:14 +01:00
Marc-Aurel Zent
7b1fe26bb0
server: Add cross-platform get_path_from_fd function.
2023-11-28 22:58:42 +01:00
Jinoh Kang
9090229e67
server: Use the token owner instead of the token user for default object owner.
...
Also, replace the token user with the token owner for the default DACL
as well. Wine currently selects domain_users_sid as the token owner, so
use that. This is required to pass the advapi32:security test which
expects the security descriptor owner SID to be referenced in the DACL
as well.
2022-07-20 22:33:44 +02:00
Alexandre Julliard
990cc1c64b
server: Define a server-side structure for SID.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-25 12:32:11 +01:00
Huw Davies
6fdae1979b
configure: Stop checking for poll.h and sys/poll.h - always use poll.h.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-31 17:56:54 +01:00
Alexandre Julliard
c954e5b9e6
server: Avoid using wine/port.h.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 18:03:11 +02:00
Zebediah Figura
4f1c7ba5f9
server: Cancel asyncs through fd_ops.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-09 22:30:45 +02:00
Zebediah Figura
101082253f
server: Do not forbid closing fd handles in other processes.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-23 12:29:10 +01:00
Alexandre Julliard
d6ef9401b3
server: Use the object type information to implement access mapping.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-05 22:53:46 +01:00
Alexandre Julliard
c6f2aacb57
server: Add a type descriptor to all server objects.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-04 21:25:32 +01:00
Alexandre Julliard
2e51f9aae3
server: Add an object operation to retrieve an object name.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-22 16:55:08 +02:00
Alexandre Julliard
2633a5c1ae
server: Avoid using interlocked functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-02 15:10:14 +02:00
Damjan Jovanovic
07c2e8581a
configure: Link wineserver to libinotify if necessary.
...
Outside Linux, wineserver fails to link when sys/inotify.h
is present, as it tries to find inotify symbols in libc,
which doesn't have them. The inotify symbols are in libinotify.so.
Detect it properly, and link to it where available.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-22 20:27:30 +02:00
Jacek Caban
b2a546c92d
server: Introduce kernel_object struct for generic association between server and kernel objects.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-26 13:55:15 +01:00
Dmitry Timoshkov
bfa98dbb1b
server: Map FILE_NOTIFY_CHANGE_LAST_ACCESS to IN_MODIFY.
...
Using IN_ACCESS leads to generating stray change notifications.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-07 18:32:25 +01:00
Dmitry Timoshkov
48e5273cd5
server: Don't stop processing change notifications when name length is 0.
...
It's legitimate to receive a notification with len = 0.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-07 18:32:21 +01:00
Jacek Caban
04094a6669
server: Use server_get_file_info for all info classes not implemented on client side.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-24 16:58:08 +02:00
Jacek Caban
6b08e60f03
server: Introduce get_file_info request for server-side NtQueryInformationFile implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 12:19:43 +01:00
Jacek Caban
2ab2f31f18
server: Allow server side NtQueryVolumeInformationFile implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 09:39:52 +02:00
Jacek Caban
7b33613fc4
server: Make fd_queue_async infallible.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-05 10:43:14 +02:00
Jacek Caban
fa0dfe5967
server: Store fd reference in async object for unqueued asyncs.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-28 12:29:04 +02:00
Jacek Caban
a3acdf117f
server: Pass existing async object to fd_queue_async.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-22 20:20:50 +01:00
Jacek Caban
64dc8f5c48
server: Store iosb in async object.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-05 16:11:03 +01:00
Jacek Caban
ad1e0609a0
server: Get rid of no loner used cancel_async from fd_ops.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-01 13:50:59 +01:00
Alexandre Julliard
80f3fda934
server: Add support for maintaining a client-side directory cache.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-02 14:39:16 +09:00
Alexandre Julliard
f55db7882d
server: Add link_name and unlink_name object operations.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-04 21:07:19 +09:00
Qian Hong
ef3ed04cdc
server: Fix type name of directory file.
2015-06-05 14:32:27 +09:00
Alexandre Julliard
193667ecd7
ntdll: Fix handling of async cancellation for directory changes.
2015-05-07 16:02:26 +09:00
Alexandre Julliard
837b39b202
server: Add read and write fd member functions.
...
Also rename no_flush() to no_fd_flush() for consistency.
2015-05-06 09:07:42 +09:00
Felix Janda
e3faab267c
server: Add missing includes of poll.h.
2014-06-12 18:05:08 +02:00
Francois Gouget
c7cb3e6cb2
configure: Use errno.h instead of the non-standard sys/errno.h header.
2011-12-15 17:46:38 +01:00
Piotr Caban
be5a757c7a
server: Don't report rename events when file is moved between directories.
2011-01-19 14:13:58 +01:00
Piotr Caban
b614a15328
server: Return multiple events in read_changes.
2011-01-19 14:13:33 +01:00
Alexandre Julliard
0ae3816264
server: Use the syscall function instead of inline assembly.
2010-12-23 16:10:12 +01:00
Piotr Caban
f4e64a442f
server: Handle more inotify mask values.
2010-12-17 13:26:03 +01:00
Rob Shearman
f12f8503a3
server: Fix symbol was not declared and using plain integer as NULL pointer sparse warnings.
2010-01-22 12:18:37 +01:00
Ben Peddell
b419df1de4
server: Include user groups in file mode calculation when user is file owner.
2009-12-11 17:47:30 +01:00
Paul Chitescu
923524951a
server: Only check if permission bits changed before calling fchmod().
2009-12-08 17:42:32 +01:00
Alexandre Julliard
42806f32e9
server: Add support for opening files from a specified root directory.
2009-12-01 17:38:24 +01:00
Alexandre Julliard
da1784bb9e
server: Don't use the cached file mode when setting the security descriptor.
2009-08-17 17:26:51 +02:00
Alexandre Julliard
74a63029c7
server: Properly initialize mode and uid for file and directory objects.
2009-08-17 17:18:54 +02:00
Alexandre Julliard
61a70360e6
server: Use sys/inotify.h if it exists instead of hardcoding the system calls.
2009-06-26 15:45:03 +02:00
Alexandre Julliard
9ed42d2709
server: Get rid of the unused count parameter in fd_queue_async().
2008-12-26 12:33:31 +01:00
Alexandre Julliard
a7b3efde0e
server: Store the async handle inside the async_data_t structure.
2008-12-26 12:33:21 +01:00
Paul Bryan Roberts
6435a5ddab
server: Clone file_get_sd() and file_set_fd() for directories.
2008-11-07 12:01:51 +01:00
Francois Gouget
8a18e0e43a
Assorted spelling fixes.
2008-04-07 13:36:18 +02:00
Alexandre Julliard
037afca5a5
server: Unlink remaining children inodes when deleting the parent.
2008-02-28 10:50:57 +01:00
Alexandre Julliard
8382eb01b2
server: Return correct object types in the get_directory_entry request.
2007-12-05 18:16:42 +01:00