Commit Graph

76 Commits

Author SHA1 Message Date
Rein Klazes b08f958157 In int21_ioctl - get device data-, set the "is console" bits if the
device handle is a tty or a proper console io handle.
2005-01-14 16:21:07 +00:00
Eric Pouech bcfa5b0900 ReadFile and WriteFile must be passed a parameter for the number of
handled bytes when no overlapped operation is done.
2004-12-22 18:38:31 +00:00
Eric Pouech eefb72c826 Fixed copy&paste error. 2004-12-13 12:04:14 +00:00
Francois Gouget 3bb5b093e8 Assorted spelling fixes. 2004-10-22 22:27:51 +00:00
Hans Leidekker 719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Markus Amsler 843e58d3bb Respect given buffer size in GET EXTENDED COUNTRY INFORMATION. 2004-09-08 19:05:43 +00:00
Markus Amsler c9b7791198 Fix filename terminator table, correct exclude_last value. 2004-09-07 22:45:58 +00:00
Andreas Mohr 6c3ef7e77d - fix int21 block device read/write
- moved device block access log messages to inner function used by two
  different places
- removed bogus CloseHandle()
2004-09-07 20:26:58 +00:00
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Markus Amsler 9af457edd8 Add DOS editing key support in BUFFERED INPUT. 2004-08-14 00:49:39 +00:00
Markus Amsler ff828161fd Make FINDFIRST working with /. 2004-08-13 00:39:58 +00:00
Markus Amsler 448dc4fa1e Fixed drive mapping in GET ALLOCATION. 2004-08-09 23:39:12 +00:00
Marcus Meissner f4c813f74b Remove lvalue casts that are no longer supported. 2004-07-12 19:53:24 +00:00
Alexandre Julliard 225c6d2cee Check for non-existent directory in INT21_SetCurrentDirectory to
return a proper error when the directory is not on the current drive.
2004-06-17 04:26:17 +00:00
Rein Klazes a1e8ba9fc2 In INT21_GetFreeDiskSpace adjust the sectors-per-cluster value to make
the total number of clusters fit in a 16 bit register.
2004-06-03 23:20:35 +00:00
Jukka Heinonen 6844c3b59b Implement DOS7 canonicalize path function as a conversion to short
file name.
2004-04-26 20:05:30 +00:00
Alexandre Julliard 73d9e1a62f Fixed/updated the file attributes defines. 2004-04-19 23:11:31 +00:00
Alexandre Julliard bd1fdeddaa Update the drive environment strings when changing the current
directory from 16-bit or DOS code.
2004-04-16 00:08:11 +00:00
Alexandre Julliard 1a833442a1 Replaced create_file server requests by a call to NtCreateFile. 2004-04-14 04:31:55 +00:00
Alexandre Julliard 49b2f6d964 Get rid of the removable media handling in the server. 2004-04-06 23:41:01 +00:00
Alexandre Julliard 22508e576f FindFirstFile can return an empty short name if the long name is a
valid DOS name, fixed callers to handle that properly.
2004-03-17 01:50:27 +00:00
Alexandre Julliard 014099caf5 Changed the create_file server request to take NtCreateFile flags
instead of CreateFileW ones (based on a patch by Eric Pouech).
2004-03-12 01:56:49 +00:00
Alexandre Julliard 8045ad5c0e Removed some unnecessary definitions from file.h.
Got rid of drive.h.
2004-03-09 23:51:02 +00:00
Alexandre Julliard 16de1f7aff Changed handling of special DOS devices to use real file handles
instead of the server device object.
2004-02-24 01:07:52 +00:00
Eric Pouech 768008fa20 - got rid of FILE_Dup2 export from kernel32
- move all dos handle related code into dlls/kernel32
2004-01-14 04:34:20 +00:00
Steven Edwards cfcc449324 Porting fixes. 2003-11-26 22:29:30 +00:00
Uwe Bonnes 111b1cbf68 INT21_GetFreeDiskSpace(): The drive parameter is found in the DL
register.
2003-11-25 03:26:14 +00:00
Alexandre Julliard 436eda3071 Removed task.h. 2003-11-25 00:42:26 +00:00
Alexandre Julliard e983652363 Moved a number of DOS definitions out of the global headers and into
winedos private files. Removed the msdos.h header.
2003-11-15 00:13:20 +00:00
Alexandre Julliard adfa5e101f Repaired INT21_FindFirst/FindNext. 2003-11-14 06:22:32 +00:00
Eric Pouech 8ca6cadab1 - moved the remaining of int21 calls to dlls/winedos
- disabled drive enabling/disabling as well as disk serial number
  writing (for DLL separation issues)
- added volume management prototypes to include/winbase.h
- started DefineDosDevice (needed by first item in this list)
- removed int21 specific code from dlls/kernel
2003-11-14 04:54:39 +00:00
Jukka Heinonen 02a23461ae Implement fat32 extended free space function.
Make fat32 calls reset carry flag explicitly.
2003-11-03 22:13:25 +00:00
Jukka Heinonen 181a7cca2b Moved drive parameter block (DPB) routines to winedos. 2003-10-27 22:06:10 +00:00
Rolf Kalbermatter 76f13deb26 Use INVALID_FILE_ATTRIBUTES to test for failure of
GetFileAttributesA/W and not -1 or 0xFFFFFFFF.
2003-10-16 19:12:49 +00:00
Michael Stefaniuc 11346f94d1 Silence the FIXME's produced by a check for a dos32 extender. 2003-09-22 19:32:51 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Sylvain Petreolle f20026e7eb Changed some functions to reset CFLAG on success.
Added some traces.
2003-09-03 00:09:29 +00:00
Jukka Heinonen 7fb4957873 Make DOS process exit using ExitProcess instead of ExitThread.
Make calling DOS exit functions from DPMI either return to StartPM or
print error message if not allowed by DPMI specification.
2003-09-02 00:52:36 +00:00
Jukka Heinonen e827269a99 Migrate create/open file functions to winedos.
Some fixes based on patch by Ferenc Wagner.
2003-06-16 01:18:01 +00:00
Jukka Heinonen 4cbc69a223 Move get current directory and set current directory int21
subfunctions into winedos. Fix quite a few bugs in the implementation
of these functions.
2003-06-13 18:05:18 +00:00
Jukka Heinonen f07dfff17b Migrate most int21 ioctl routines to winedos.
Migrate int21 set drive routine to winedos.
2003-06-04 20:17:52 +00:00
Jukka Heinonen 3da6ff753e Added some long filename functions. 2003-05-20 17:49:04 +00:00
Jukka Heinonen c646408568 Move get current drive int21 function to winedos.
Fix spelling mistakes.
Add some drive handling helper routines.
2003-05-19 21:40:05 +00:00
Alexandre Julliard 3b4143aea0 Thomas Mertes <thomas.mertes_at_gmx.at>
Implement file control block (FCB) functions:
  INT21_OpenFileUsingFCB [0x0f],
  INT21_CloseFileUsingFCB [0x10],
  INT21_SequenialReadFromFCB [0x14],
  INT21_SequenialWriteToFCB [0x15],
  INT21_ReadRandomRecordFromFCB [0x21],
  INT21_WriteRandomRecordToFCB [0x22],
  INT21_RandomBlockReadFromFCB [0x27],
  INT21_RandomBlockWriteToFCB [0x28].
2003-05-15 22:54:43 +00:00
Jukka Heinonen cadffabd2d Make read from stdin use buffered input code and redirect stderr to
console.
2003-05-11 03:30:24 +00:00
Jukka Heinonen 643e8740d5 Report errors to applications when illegal dates are passed to set
system date call (required by many installation checks).
2003-05-06 00:12:52 +00:00
Jukka Heinonen e2ae56e0b9 Remove obsolete code from DOSVM_Wait.
Prepare DOSVM_Wait for handling nested interrupts in both real and
protected mode.
Provide temporary workaround for keyboard related deadlock.
2003-05-02 20:12:52 +00:00
Jukka Heinonen 013f89465c Moved dosconf.c to winedos. 2003-04-21 23:22:53 +00:00
Jukka Heinonen 31f35146b9 Return correct segment for VESA information.
Check oem number/version flag first and after that overwrite condition
code.
2003-04-08 19:41:03 +00:00
Jukka Heinonen 6f6eb82dfc Add prototype for GetCompressedFileSize. Move some int21 functions to
winedos. Improve file attribute functions.
2003-03-30 03:04:37 +00:00