Alexandre Julliard
01dd1ffdc2
ntdll: Implement FSCTL_DISMOUNT_VOLUME for MacOSX.
2006-10-03 14:54:21 +02:00
Alexandre Julliard
753c8706f5
server: Only call gettimeofday once per poll loop.
2006-08-10 16:42:09 +02:00
Alexandre Julliard
c82789264b
server: Added support for kqueue() as an alternative to poll() on FreeBSD.
2006-08-04 22:11:00 +02:00
Alexandre Julliard
2f4072740e
server: Abstract the epoll functions a bit more.
2006-08-03 19:56:55 +02:00
Alexandre Julliard
4d1d49b78a
server: Round up the timeout for poll() to avoid redundant calls.
2006-07-27 14:39:50 +02:00
Alexandre Julliard
40723f795b
server: Make the create_async function take an absolute timeout.
2006-07-26 11:47:42 +02:00
Alexandre Julliard
0fa7170dc3
server: Fixed a compiler warning on MacOSX.
2006-06-15 14:14:31 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Eric Pouech
2e0b5336f6
Suppress some false-positives reported by valgrind.
2006-01-27 16:17:51 +01:00
Alexandre Julliard
8b0feb253b
server: Make the FILE_SHARE_DELETE sharing checks depend on DELETE
...
access instead of on the FILE_DELETE_ON_CLOSE flag (based on a patch
by Mike McCormack).
2006-01-27 15:50:38 +01:00
Alexandre Julliard
471782ae29
server: Allow opening a directory with write access (based on a patch
...
by Mike McCormack).
2006-01-25 15:06:48 +01:00
Mike McCormack
9a7124e815
server: Modify open_fd to create an fd without a user.
...
Create a set_fd_user function.
Update create_file() to use the above functions.
2006-01-24 13:30:55 +01:00
Mike McCormack
213e01e606
server: Make sure to release the fd we grabbed in all cases.
2006-01-17 13:13:14 +01:00
Alexandre Julliard
770c4a1551
server: Don't enable polling on regular files in add_queue.
2005-12-12 17:20:03 +01:00
Alexandre Julliard
a510a7e117
server: Added access rights mapping to file objects.
2005-12-12 16:46:17 +01:00
Alexandre Julliard
28beba31d6
server: Added infrastructure for access rights mapping.
2005-12-12 14:57:40 +01:00
Alexandre Julliard
67505c00af
server: Support for opening devices.
...
Added support for opening devices directly with the server when they
don't correspond to a Unix file.
2005-12-12 14:27:45 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Vitaliy Margolen
baffcb95d3
Add name_lookup function in object_ops.
2005-11-22 14:55:42 +00:00
Alexandre Julliard
f8037bddce
Make the unmount_device request take a handle to the device file
...
itself instead of a handle to a file opened on the device.
2005-10-27 11:20:50 +00:00
Alexandre Julliard
f62f6e8fe1
Don't cache file descriptors open on removable devices.
2005-08-24 18:33:50 +00:00
Alexandre Julliard
964815bc42
Added an unmount_device request that invalidates all file descriptors
...
open on a given Unix device.
2005-08-08 15:11:03 +00:00
Alexandre Julliard
49b7fdcfc0
Removed the broken mmap64 configure check, and moved the
...
_FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
need the define include it.
2005-08-03 21:25:10 +00:00
Alexandre Julliard
d4325152db
Added a separate device object to keep track of inodes that are on the
...
same device.
2005-07-30 19:09:43 +00:00
Alexandre Julliard
c132542470
Renamed fd to unix_fd in the closed_fd structure to make the code a
...
bit clearer.
2005-07-28 10:48:57 +00:00
Robert Shearman
37773dda84
Make mailslots use as much of the default async fd implementation as
...
possible.
2005-07-14 12:18:05 +00:00
Mike McCormack
390bc5f52f
Don't include winbase.h when it's not necessary.
2005-06-21 09:46:15 +00:00
Mike McCormack
66e5ce3066
Remove unnecessary includes.
2005-06-20 10:35:36 +00:00
Robert Shearman
3795709344
Change code style of form "if( x )" to "if (x)" for consistency.
2005-06-10 19:54:46 +00:00
Alexandre Julliard
b9b1ea9c9f
Added a close_handle method to the object operations, and use it to
...
implement registry notifications and the strange behavior of
CloseHandle on winstation/desktop handles.
2005-06-09 15:39:52 +00:00
Robert Shearman
d6a4e34a60
- Add a default asynchronous I/O implementation.
...
- Make file objects use it.
2005-06-07 20:09:01 +00:00
Robert Shearman
c516571481
- Use NULL instead of 0 for all non-handle pointers.
...
- Fix non-ANSI function declarations.
- Make a function static.
2005-05-25 18:41:09 +00:00
Mike McCormack
f92fff66a2
Implemented NtSignalAndWaitForSingleObject.
2005-04-24 17:35:52 +00:00
Eric Pouech
7001d6ed34
Clean-up async IO internal functions.
2005-03-29 11:40:10 +00:00
Steven Edwards
5727918424
Added a check for poll.h.
2005-03-04 12:38:36 +00:00
Alexandre Julliard
aa34768677
Convert the object wait queue to a standard list.
2005-03-01 11:49:58 +00:00
Alexandre Julliard
b1aad5d86f
Regular files are always ready for I/O, no need to poll on them.
2005-02-25 14:02:20 +00:00
Alexandre Julliard
dd81ac50a9
Convert async I/O queues to standard lists.
2005-02-24 17:06:31 +00:00
Alexandre Julliard
e432d54fd7
Fixed potential crash in fd_dump function.
2005-02-03 10:45:18 +00:00
Eric Pouech
4634447d6b
- got rid of include/async.h
...
- fixed some overlapped issues in socket handling
- moved kernel32.CancelIo implementation to ntdll
2005-01-14 19:54:38 +00:00
Peter Chapman
505dfdefb5
Fix up several inline assembler blocks so that they produce correct
...
code with the -fomit-frame-pointer gcc flag.
2004-12-02 18:19:25 +00:00
Alexandre Julliard
626aa3366f
Added fallback syscalls for epoll functions.
2004-10-27 01:03:30 +00:00
Alexandre Julliard
969f57c24a
Added support for epoll() as an alternative to poll() (based on the
...
work of Shachar Shemesh and Mike McCormack).
2004-09-23 04:48:24 +00:00
Alexandre Julliard
4949a717c4
Moved timeout processing to a separate function.
2004-09-20 19:14:35 +00:00
Alexandre Julliard
17c775f13c
Take care to not close the file handle if there are outstanding locks
...
and the directory options don't match.
2004-09-09 00:28:36 +00:00
Alexandre Julliard
15e12daf03
Converted the timeout list to use the standard list functions.
2004-09-08 04:17:31 +00:00
Alexandre Julliard
0a6af13982
Make sure to run through the poll loop once before processing newly
...
added timers (reported by Mike McCormack).
2004-09-07 23:28:14 +00:00
Alexandre Julliard
6a27b48895
Fd type is no longer used, get rid of it.
2004-08-18 00:04:58 +00:00
Alexandre Julliard
60287d0ac2
Make sure we don't truncate the file on open before we have checked
...
the sharing modes (thanks to Dmitry Timoshkov for the test case).
2004-05-22 03:15:04 +00:00
Alexandre Julliard
ad9b799324
Reimplemented CreateDirectoryW and RemoveDirectoryW using ntdll
...
functions.
2004-04-27 02:27:09 +00:00
Alexandre Julliard
684b65cd52
Added support for FILE_DIRECTORY_FILE and FILE_NON_DIRECTORY_FILE open
...
options.
2004-04-16 04:31:35 +00:00
Alexandre Julliard
18c08d307a
Removed the get_file_info request.
2004-04-08 19:09:04 +00:00
Alexandre Julliard
9ff78729fa
Moved FILE_DELETE_ON_CLOSE support to the inode object so that we
...
really wait for the last close.
Added FILE_SHARE_DELETE support.
2004-04-02 19:50:49 +00:00
Alexandre Julliard
74bd1e47ed
Check file sharing permissions based on the file inode instead of the
...
file name.
Added regression test for sharing permissions.
2004-03-27 20:48:42 +00:00
Wim Lewis
99a01c03d3
EOVERFLOW does not exist on OpenBSD.
2004-01-02 20:11:35 +00:00
Alexandre Julliard
f3f435ffa1
Added wine_server_release_fd function to release the fd returned by
...
wine_server_handle_to_fd. Fixed a couple of potential fd leaks.
2003-12-01 23:01:12 +00:00
Alexandre Julliard
b23aa94321
One more workaround for a missing NFS lock daemon.
2003-07-03 18:12:02 +00:00
Eric Pouech
412d37f6e6
- adapted kernel32 so that it no longer (directly) manages console
...
handles as wineserver handles
- console input handle object is no longer waitable (input record
synchronisation is now implemented as a simple semaphore), and removed
FD_TYPE_CONSOLE from fd types in wineserver
- console handles now always have their two lower bit set so one can
distinguish a console handle from a kernel object handle
- implemented some undocumented kernel32 console related APIs
(CloseConsoleHandle, GetConsoleInputWaitHandle, OpenConsoleW,
VerifyConsoleIoHandle, DuplicateConsoleHandle)
- allowed a few kernel32 APIs to take console pseudo-handles
(FlushFileBuffer, GetFileType, WaitFor*Object*)
- simplified the console inheritance at process creation
- in console tests, no longer create a console if one already exists
2003-06-21 02:07:10 +00:00
Mike McCormack
ef8b94622a
- rewrite of the named pipe code
...
- allow NtFileFlushBuffers to wait
- allow DisconnectNamedPipe to invalidate client cached fd
- fix the pipe test now that one extra test passes
2003-05-15 04:22:45 +00:00
Alexandre Julliard
b932723a8c
Ignore locking failures caused by missing NFS locking daemon.
...
Handle EINVAL the same way as EOVERFLOW.
2003-05-11 02:45:33 +00:00
Bill Medland
3f7c3ff76e
Fix for client accessing a named pipe after the server closes it.
2003-04-17 02:14:04 +00:00
Alexandre Julliard
9037f4bbfe
Added generic signal handling mechanism based on pipes to synchronize
...
signals with the main poll loop.
2003-03-26 01:32:18 +00:00
Alexandre Julliard
d71ba930ab
Ignore fcntl failure when setting a write lock on a read only file.
2003-03-21 21:31:35 +00:00
Gerald Pfeifer
6dcc1af7fb
Fix signature of open_fd().
2003-03-18 18:26:44 +00:00
Alexandre Julliard
ce61349334
Implemented file locking functions (partly based on my old Corel
...
patch). Added a few regression tests.
2003-03-18 05:04:33 +00:00
Alexandre Julliard
580da246f5
Added an inode object to keep track of all file descriptors open for a
...
given file.
Plugged a couple of potential file descriptor leaks.
2003-03-12 22:38:14 +00:00
Alexandre Julliard
e66207ebfc
Moved all references to file descriptors out of the generic object
...
structure.
Changed the poll()-related routines to deal with file descriptors
instead of objects and integrated poll support into fd.c.
2003-02-19 00:33:32 +00:00
Alexandre Julliard
cf27a7fa3b
Changed fd operations to take a struct fd instead of a struct object.
...
Removed get_file_info function from object operations.
Added get_device_id request to avoid abusing get_file_info.
2003-02-14 20:27:09 +00:00
Alexandre Julliard
863637b158
Started moving functions that deal with Unix file descriptors to a
...
separate fd object. This will be needed for file locking.
2003-01-30 00:26:44 +00:00