Commit Graph

607 Commits

Author SHA1 Message Date
Michal Janusz Miroslaw eaee47e755 Fixed typo in comment. 2003-04-19 02:48:34 +00:00
Michal Janusz Miroslaw 9786b058df On Linux: avoid blocking in DOSFS_OpenDir_VFAT if specified path is
not a directory.
2003-04-19 02:47:08 +00:00
Michal Janusz Miroslaw ac1d1056d4 Refuse to read non-block device set in config.
Avoid blocking on open if user sets device to unconnected pipe.
2003-04-17 02:13:01 +00:00
Uwe Bonnes 0de21b651e FindFirstFile on root directory should fail. 2003-04-17 02:10:04 +00:00
Alexandre Julliard cce7e25827 Make DRIVE_FindRootW really behave like DRIVE_FindRoot. 2003-04-08 03:58:42 +00:00
Mike Hearn 1fc2142a28 Correct the error code returned when a file does not exist. 2003-04-04 22:05:10 +00:00
Adam Gundy 8e94fbf305 Don't read uninitialized data when a '$' is found. 2003-03-30 01:35:07 +00:00
Alexandre Julliard 5537dbbf40 Replaced WINE_CHECK_STRUCT_MEMBER autoconf macro by the standard
AC_CHECK_MEMBERS. Added check for si_fd in siginfo_t.
2003-03-28 00:36:12 +00:00
Alexandre Julliard 3e588e3a57 Implemented file change notifications, based on a patch by Mike
McCormack.
2003-03-26 23:41:43 +00:00
Gerald Pfeifer 7a9119207c Add trailing full-stop to warning in DIR_GetPath(). 2003-03-25 00:33:12 +00:00
Stefan Leichter b56950864b Moved implementation of GetPrivateProfileInt from ascii to unicode. 2003-03-23 20:03:13 +00:00
Gerald Pfeifer 181dfdde77 Tweak error message in PROFILE_UsageWineIni(). 2003-03-20 19:22:24 +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
Tony Lambregts 2e24a148bf Replace DPRINTF with TRACE. 2003-03-15 00:12:42 +00:00
Alexandre Julliard 6bf8542dd5 Fixed int conversion in GetPrivateProfileInt so that all the tests
succeed.
2003-03-04 04:40:01 +00:00
Enrico Horn 75d7b15236 Simple way to get the label of mixed-mode cd. 2003-03-04 02:15:19 +00:00
Alexandre Julliard 28d65b1ac9 MoveFile[AW] should simply call MoveFileEx[AW]. Should fix issue
reported by Roderick Colenbrander.
2003-02-26 20:28:37 +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 43690e9e47 Removed no longer needed inclusion of heap.h. 2003-01-24 00:54:58 +00:00
Marcus Meissner f63e5b646a Remove errno.h from files that do not need it. 2003-01-23 22:51:04 +00:00
Gerald Pfeifer 66fd8c29a2 Properly cast struct sockaddr_in* to struct sockaddr* where needed. 2003-01-23 21:20:19 +00:00
Robert Shearman bda22de541 - Add some stubs.
- Implement kernel32.FatalExit.
2003-01-13 20:44:13 +00:00
Shachar Shemesh 85a52cb27c Removed the FIXMEs when performing MoveFileEx with
MOVEFILE_DELAY_UNTIL_REBOOT, as wineboot will now take care of it.
2003-01-11 21:03:18 +00:00
Shachar Shemesh 44fb75f62c Set correct last error if the path contains wildcard characters. 2003-01-10 01:44:24 +00:00
Dimitrie O. Paun 297f3d898d Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them. 2003-01-07 20:36:20 +00:00
Alberto Massari c019f53568 Add stub implementation for ReplaceFile. 2003-01-02 19:24:42 +00:00
Uwe Bonnes 6e9ae17bf7 DRIVE_Init: Use strtoulW to initialize the drive serial number. 2002-12-23 01:35:49 +00:00
György 'Nog' Jeney f7694794de - Reimplement time functions using ntdll functions.
- Some cleanups.
2002-12-13 20:30:06 +00:00
Dimitrie O. Paun 737d4be892 Move excpt.h out of include/msvcrt/ as it does not conflict with any
standard Unix header.
2002-12-12 23:34:01 +00:00
Francois Gouget e948ad1fc7 Fix the error codes returned by DeleteFile{A,W} to match NT.
Adapt the DeleteFileA error code checks to take into account variations
between Win9x and NT.
Test DeleteFile(NULL).
Add tests for DeleteFileW.
On NT, calling _lclose on an already closed handle will cause memory
corruption and thus sometimes crash -> removed the relevant test.
Skip the Unicode tests when on Win9x.
2002-12-12 03:54:01 +00:00
György 'Nog' Jeney 4d6ba25d4b - Implement RtlLocalTimeToSystemTime and RtlSystemTimeToLocalTime.
- Use new time functions to reimplement FileTimeToLocalTime and
  LocalTimeToFileTime.
2002-12-11 00:19:56 +00:00
Stefan Leichter 5e2b3131d0 Moved implementation of GetDiskFreeSpaceEx from ascii to unicode. 2002-12-07 23:47:01 +00:00
Martin Wilck 60cba9999c Fixed some problems with asynchronous file IO. 2002-11-30 01:48:32 +00:00
Alexandre Julliard 11f361a29c Removed no longer needed PROFILE_LoadWineIni(). 2002-11-23 02:24:53 +00:00
Alexandre Julliard d16a64e327 Removed support for converting old format config, everybody should
have converted by now.
Removed log info from wineinstall, this info is already in ChangeLog.
2002-11-22 20:44:13 +00:00
Andrew John Hughes ed800c69c8 Build ntdll with -DSTRICT. 2002-11-21 03:45:01 +00:00
Ryan Cumming 4cda16e03b Implemented GetFileSizeEx (based on a patch by Steve Lustbader). 2002-11-15 04:12:10 +00:00
Dmitry Timoshkov db45e1ea28 Maintain lower cased file names in the Wine config directory. 2002-11-13 19:47:22 +00:00
Ryan Cumming 768d98e7e9 - Silence annoying "Empty path passed" error.
- Set error correctly when an empty path is passed to DeleteFile.
2002-11-08 18:52:18 +00:00
Alexandre Julliard d427f731f0 Make COMSPEC point to wcmd.exe, not command.com. 2002-11-04 22:49:11 +00:00
György 'Nog' Jeney 1aad87acc5 Copy the necessary data from the unicode struct to the ascii one in
DOSFS_FindNext.
2002-10-28 18:49:52 +00:00
Alexandre Julliard 64e047fed3 Get rid of FILE_ATTRIBUTE_SYMLINK (based on a patch by Bill Medland). 2002-10-25 03:32:10 +00:00
Patrik Stridvall cf07e10017 Don't use wine/unicode.h in the header files, include it directly
where needed instead.
2002-10-23 20:20:59 +00:00
Patrik Stridvall 1298eb4053 Fixed mismatches between the Wine headers and the Microsoft headers. 2002-10-23 18:50:10 +00:00
Alexandre Julliard 996baf6379 Transmit the Windows PATH to child processes using the WINEPATH
variable.
2002-10-09 18:35:01 +00:00
György 'Nog' Jeney 4610c0a902 Check for an empty string in DOSFS_FindNextEx to avoid an unnecessary
failure.
2002-09-27 22:03:44 +00:00
Francois Gouget bba4bb1bc4 Remove references to PCVOID and LPUINT.
Remove types that don't exist on Windows.
2002-09-17 01:35:09 +00:00
Martin Wilck 6a504be56f - Return correct error codes.
- Fix behaviour if files are on different Wine drives
  - delete source if copy successful
  - try rename() - files may be on the same Unix file system.
- Try copy/delete if rename() fails: files may be on the same DOS
  drive, but on different Unix file systems.
2002-09-17 01:27:55 +00:00
Marcus Meissner 065d537939 Fixed "conditional expr is always true due to being unsigned < 0"
problem.
2002-09-17 00:00:30 +00:00
Dimitrie O. Paun 14fb095758 Mark files starting with a dot as FA_HIDDEN.
Add configuration option 'ShowDotFiles' to turn this feature off.
2002-09-16 22:44:38 +00:00
Marcus Meissner 2a5c146067 info->u.smb_dir is a pointer, errors are signaled by NULL. 2002-09-16 19:27:15 +00:00
Alexandre Julliard dafbc3f73f Removed remaining references to advapi32 registry functions from
kernel functions.
2002-09-13 18:52:01 +00:00
Martin Wilck b18d32cff0 Wait timeout must be 0 if bWait == FALSE. 2002-09-13 17:55:33 +00:00
Alexandre Julliard 81bdcf126f Removed references to advapi32 registry functions from some of the
kernel functions.
2002-09-13 17:47:44 +00:00
Alexandre Julliard 1668870f38 Fixed warnings caused by new winternl.h. 2002-09-12 22:28:01 +00:00
Patrik Stridvall 9c1de6de30 Moved all the content of the DDK files ntdef.h and ntddk.h to
winternl.h.
2002-09-12 22:07:02 +00:00
Martin Wilck 2b54cf91fc Fix the behavior of GetOverlappedResult() and WSAGetOverlappedResult()
with non-manual-reset (auto-reset) events in the OVERLAPPED structures.
2002-09-12 17:56:30 +00:00
Michael Beach 81ac4f2c3d Fixed buffer size in DIR_TryModulePath for Win32 modules. 2002-09-12 17:51:07 +00:00
Patrik Stridvall 51e6c0ccb1 MSVC compatibility fixes. 2002-08-31 19:04:14 +00:00
Alexandre Julliard dba83c8bfc Added wine_get_user_name function and got rid of some of the getpwuid
portability stuff.
More portable printf formats for 64-bit types.
2002-08-27 18:30:53 +00:00
Alexandre Julliard 96d05d1559 Fixed permission check when renaming a directory (based on a patch by
Andriy Palamarchuk).
2002-08-27 01:29:07 +00:00
Dmitry Timoshkov d75aed2c92 Convert most of the file APIs to Unicode. 2002-08-27 01:13:58 +00:00
Patrik Stridvall 57bf45067a MSVC compatibility fixes. 2002-08-26 21:53:24 +00:00
Patrik Stridvall d016f819f1 Added include protection for unistd.h and sys/time.h. 2002-08-17 00:43:16 +00:00
Patrik Stridvall 4325554aef Fixed some issues found by winapi_check. 2002-08-09 01:07:29 +00:00
Juergen Schmied 712caf3596 - Fixed possible loss of data with given overlapped structure on a
file opened in non overlapped mode.
- Fixme for file-lock functions.
2002-08-03 19:11:33 +00:00
Eric Pouech 7fcae15632 Made the calls to (Read|Write)Console through a function pointer to
ease up ntdll/kernel separation.
2002-07-31 18:46:43 +00:00
Rafael Kitover 530d50c827 Changed dos_handles to store dups of stdio/out/err as per Ove Kaaven's
suggestion.
2002-07-31 17:44:30 +00:00
Alexandre Julliard 267ca68253 Fixed HANDLE<->HFILE conversions, since they will be different types
when handles are void*.
2002-07-31 17:20:00 +00:00
Rein Klazes e1db8bd0e2 Repair SetLastError in FindNextFileA. 2002-07-20 18:53:09 +00:00
Mike McCormack 963985b303 First go at reading directories on public SMB shares. 2002-07-19 03:17:19 +00:00
Andreas Mohr 2996c57fba Fixed uninitialized HKEYs. 2002-07-16 01:11:12 +00:00
Alexandre Julliard 2cbcb32354 Fixed handling of drives with "/" path (thanks to Marcus Meissner). 2002-07-10 20:45:21 +00:00
Gregg Mattinson 7c4cb515b6 Cast void* to char* for pointer arithmetic. 2002-07-03 21:10:43 +00:00
Alexandre Julliard 958732d21c Fixed warnings. 2002-07-02 02:09:39 +00:00
Mike McCormack e921e4664d Return the correct length when getting a complete section in
PROFILE_GetString.
2002-07-01 18:12:47 +00:00
Alexandre Julliard 4c5c7e7a04 Fixed regression caused by previous change. 2002-06-21 19:00:13 +00:00
Alexandre Julliard 4144b5b8fc Create the server directory and socket file in /tmp.
Use fcntl file locking to ensure exclusion on the server socket and to
better recover from crashes.
Flush the registry before closing the socket to avoid timeouts on the
client side.
Moved get_config_dir functionality to libwine.
2002-06-20 23:21:27 +00:00
Alexandre Julliard dcf0beac22 Make sure that DRIVE_FindDriveRoot always returns an absolute path. 2002-06-20 23:13:06 +00:00
Alexandre Julliard 034e39b2fe Check access rights before renaming or deleting files (based on
patches by Uwe Bonnes and Dmitry Timoshkov).
2002-06-05 00:47:38 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard be367c7270 Added wine_server_fd_to_handle to replace FILE_DupUnixHandle. 2002-05-30 20:40:02 +00:00
Vincent Béron a032277311 - Fixed GetSystemTimeAdjustment prototype and added it to winbase.h.
- Fixed DosDateTimeToFileTime, FileTimeToDosDateTime,
  LocalFileTimeToFileTime, FileTimeToLocalFileTime and
  SystemTimeToFileTime.
2002-05-30 20:05:48 +00:00
Jason Edmeades 922a5e4681 Silence fixme in unnecessary situation, add missing \n to another fixme. 2002-05-28 22:38:54 +00:00
Alexandre Julliard 55e845d11b Removed most inclusions of options.h.
Removed a few no longer used PROFILE_* functions.
2002-05-23 19:40:18 +00:00
Steven Edwards 48ac89b627 Add check for <sys/ioctl.h>. 2002-05-19 22:25:02 +00:00
Alexandre Julliard 9bb05fc48e Specify the complete source file list for a dll inside the main
makefile and get rid of the subdirectories makefiles.
2002-05-14 18:36:54 +00:00
Andreas Mohr 470a3f93eb Make PROFILE_GetString account for default value in all cases. 2002-05-11 22:59:41 +00:00
Juergen Schmied 6b27977ab5 Use long names, not 8.3 names in environment. 2002-05-09 19:35:22 +00:00
Michael Wetherell 70c42d822f Fix handling of unix absolute paths in DOSFS_GetFullName and
GetShortPathNameA.
Handle '..' in paths in DRIVE_FindDriveRoot.
2002-05-08 00:29:17 +00:00
Jason Edmeades ffb3d784d9 Ensure correct full path returned when GetFullPathName supplied a path
relative from the root of the drive 'eg '\windows\system'.
2002-05-05 21:01:43 +00:00
Mike McCormack 9414adf75e Implement NetBIOS resolution for UNC pathnames. 2002-05-05 20:29:15 +00:00
Marcus Meissner 77fbbcf30d FindClose: protect the GlobalLock for pagefaults too. 2002-05-04 18:28:36 +00:00
Rizsanyi Zsolt e7c6d17b3e Implemented IOCTL_SCSI_GET_ADDRESS for non true scsi cdrom drives
(only on linux).
Initialize registry under HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/Scsi.
Added IOCTL_CDROM_MEDIA_REMOVAL support.
2002-05-01 22:25:41 +00:00
Martin Wilck ff1f320ac8 Fixed some bugs in my recently submitted patch series. 2002-04-26 18:31:19 +00:00
Martin Wilck 9ca4285a9f Fixed ReadFile() semantics when reading asynchronously on sockets.
Provide more accurate status codes than STATUS_UNSUCCESSFUL.
2002-04-25 22:58:59 +00:00
Martin Wilck af16c98f71 Implemented overlapped WSARecvFrom(), WSASendTo(), and
WSAGetOverlappedResult().
Fixed shutdown() to work correctly for overlapped sockets (do not
actually do a shutdown() system call as long as there are pending
overlapped requests).
Also added correct error reporting when trying to read or write on a
shut down connection, also for ReadFile()/WriteFile() calls.
2002-04-25 21:34:24 +00:00
Martin Wilck ef79c38e76 Avoid segfault with overlapped WriteFile() calls. 2002-04-23 19:27:51 +00:00
Eric Pouech ac24236d9a Always close fd when reading super block. 2002-04-22 22:34:00 +00:00
Martin Wilck e0587d4a64 GetOverlappedResult: Return ERROR_IO_INCOMPLETE if IO still pending.
ReadFile / WriteFile: Use GetOverlappedResult() to check for immediate
completion.
2002-04-17 16:46:06 +00:00
Martin Wilck 08867f7149 - Need a "cleanup" method.
- calling the "call_completion" method unconditionally in finish_async
  (introduced by me) was wrong, because the thread may never be in an
  alertable wait state -> call it only if user completion function is present.
- We need two constant "ops" objects, one with and one without call_completion
  method (the event field may NOT be used to determine whether the completion
  must be called or not).
2002-04-14 19:34:57 +00:00
Stefan Leichter f25efa0660 Compile fixes for gcc 2.7.2.3. 2002-04-11 17:34:46 +00:00
Martin Wilck 2b47fb3cee - separate cleanly between async scheduling and file IO related issues.
- make the API compatible with other types of async requests (e.g. for
  sockets).
- remove exports of async IO related functions for DLL separation.
2002-04-05 22:53:57 +00:00
Alexandre Julliard 1bb69a0c09 Make GetFullPathName fail if input path name is empty. 2002-04-02 02:46:27 +00:00
Francois Gouget 34372dcbf0 Fix SetFileAttributes to honor the umask (rather than making files
world-writable).
2002-03-29 18:17:35 +00:00
Patrik Stridvall f89d4a8673 Fixed some issues found by winapi_check. 2002-03-23 21:39:05 +00:00
Alexandre Julliard 8d1550d1c6 Export the FILE_GetUnixHandle functionality from ntdll. 2002-03-23 18:48:12 +00:00
Gerald Pfeifer c8764e4de0 Add missing #includes for FreeBSD and Solaris. 2002-03-19 02:06:25 +00:00
Mike McCormack fc93261150 Begin to make wine an SMB client. 2002-03-12 19:24:04 +00:00
Mike McCormack 4a6b990ce8 Set an overlapped hEvent before calling any APCs. 2002-03-11 01:19:29 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andreas Mohr 8f925ae5c8 Implemented "App Paths" registry key support for SearchPath(). 2002-02-27 18:49:40 +00:00
Andreas Mohr c8dcafc65e Fixed overflow and signed/unsigned behaviour. 2002-02-27 18:49:06 +00:00
Peter Hunnisett 73ab649ced New file msvcrt/excpt.h. Move some stuff out of winnt.h into it. 2002-02-25 20:10:35 +00:00
Gerhard W. Gruber 814a3fa2a1 MoveFileEx now enters the files in the registry when the boot delay
flag is set.
2002-02-22 21:30:22 +00:00
Jukka Heinonen 34f5563dab Added missing break statement. 2002-02-12 18:45:06 +00:00
Gerhard Gruber 024a0ac158 WritePrivateProfileSection should allow to create duplicate keys
because it takes the buffer as it is without any modifications.
2002-02-05 19:44:54 +00:00
Jukka Heinonen fd33517a41 Added support for DOS EMS memory. 2002-01-29 17:55:21 +00:00
Aric Stewart c43985b275 GetDiskFreeSpace needs to set the last error on failure. 2002-01-29 02:45:23 +00:00
Marcus Meissner 4589a07499 Handle section==NULL (error) in WritePrivateProfileStringA. 2002-01-21 23:36:53 +00:00
Alexandre Julliard 45342a35fe Fixed function prototype that confused winapi_extract. 2002-01-21 17:37:24 +00:00
Dmitry Timoshkov 4291e45c98 Fix return value of GetWindowsDirectoryA/W and GetSystemDirectoryA/W. 2002-01-18 18:53:11 +00:00
Eric Pouech 5cc6105b39 Changed the Wine internal cdrom interface to the NT model. 2002-01-13 01:44:00 +00:00
Martin Wilck 88cd32b2d1 More general approach to file descriptor types and flags. 2002-01-09 20:30:51 +00:00
Martin Wilck 718b1b711b Add server side support for async IO on files.
Use pread/pwrite to read/write from the offset specified in the
overlapped structure.
2002-01-07 21:02:15 +00:00
Mike McCormack 99a5cfea91 - Attempt write before going overlapped in Writefile.
- Fix return codes in WriteFileEx.
2002-01-07 18:11:28 +00:00
Mike McCormack de339f3021 Implement CancelIo properly. 2002-01-07 18:06:59 +00:00
Mehmet Yasar 39e001962b Do not save empty sections names. 2002-01-04 18:24:37 +00:00
Mike McCormack 9119543795 Set an overlapped's hEvent for ReadFile/WriteFile in an overlapped
completion function, not in ReadFileEx or WriteFileEx.
2002-01-01 01:11:32 +00:00
Alexandre Julliard 193cf50a09 Removed some of the calls to HEAP_strdup* functions. 2002-01-01 00:24:30 +00:00
Mike McCormack 5d754fc958 Don't return from overlapped ReadFile on EAGAIN and other non-fatal
errors.
2001-12-21 19:16:33 +00:00
Mike McCormack 6f011c0847 - move async activation into the server
- implement async queues
2001-12-20 00:07:05 +00:00
Mike McCormack 27cf4a41c2 Implemented timed-out non-overlapped ReadFile. 2001-12-19 18:48:29 +00:00
Alexandre Julliard 9caa71eef4 Redesign of the server communication protocol to allow arbitrary sized
data to be exchanged.
Split request and reply structures to make backwards compatibility
easier.
Moved many console functions to dlls/kernel, added code page support,
changed a few requests to behave properly with the new protocol.
2001-11-30 18:46:42 +00:00
Eric Pouech 0b83d4cbc6 New console code based on Win32 windows. 2001-11-23 23:04:58 +00:00
Andreas Mohr 9cef2d0b1d - fix wrong hexadecimal GetLastError() output
- misc fixes
- changed my email address
2001-11-19 02:30:01 +00:00
François Gouget 1425941e29 Fix the #include order for config.h.
Add #include "config.h" directives where needed.
2001-11-06 20:57:11 +00:00
Ove Kaaven 708a846a88 Save a disk file's drive type in the server object. 2001-10-24 00:23:25 +00:00
Francois Gouget 3bb9a36ee0 Spelling, grammar and a bit of comment formatting fixes. 2001-10-22 19:04:32 +00:00
Andreas Mohr e15badb478 Cosmetics. 2001-10-21 15:18:15 +00:00
Mike McCormack ea4f32c4eb Separate code to overlapped timeouts into FILE_GetTimeout. 2001-10-17 17:45:11 +00:00
Francois Gouget 386cf6e342 When including 'wine/port.h', include it first.
Remove redundant 'config.h' includes.
2001-10-14 16:25:47 +00:00
Eric Pouech 3bbeb72d3f Pass security attributes for DOSFS creation. 2001-10-14 16:08:45 +00:00
Mike McCormack 9e1fc62651 Do overlapped reads if and only if the file was opened with
FILE_FLAG_OVERLAPPED.
2001-10-10 20:26:58 +00:00
Gerard Patel d6bd28222e GetDiskFreeSpaceEx should accept an input like "C:". 2001-10-08 22:15:39 +00:00
Eric Pouech c73316db5b - fixed copy&paste bug (GENERIC_WRITE instead of GENERIC_READ)
- when getting the type of a handle, it has to be done even if no fd
  is attached to it (console for example)
2001-10-08 20:57:12 +00:00
Mike McCormack 568c67e173 Make serial fd blocking mode depend on FILE_FLAG_OVERLAPPED. 2001-10-08 20:40:57 +00:00
Mike McCormack ff58be5c7f Fetch a handle type in FILE_GetUnixHandle. 2001-10-04 16:18:15 +00:00
Andreas Mohr f359895daf Yet another documentation/message text patch. 2001-10-02 17:49:20 +00:00
Uwe Bonnes ef3d022c62 Check for NULL path argument in DeleteFile. 2001-10-02 17:40:33 +00:00