Changeset 8807


Ignore:
Timestamp:
Mar 17, 2008, 7:13:36 AM (12 years ago)
Author:
gb
Message:

windows_open() takes 8-bit strings, until we fix FD-OPEN.
un-botch windows_syscall_table.
Treat (HANDLE)(-2L) as NULL (leftover dlfcn cruft.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/windows-calls.c

    r8789 r8807  
    5151
    5252
    53 
     53#if 0
    5454__int64
    5555windows_open(wchar_t *path, int flag, int mode)
    5656{
    57   WSYSCALL_RETURN(_wopen(path, flag|O_BINARY, mode));
     57  WSYSCALL_RETURN(_wopen(path, flag, mode));
    5858}
    59 
     59#else
     60__int64
     61windows_open(char *path, int flag, int mode)
     62{
     63  WSYSCALL_RETURN(_open(path, flag, mode));
     64}
     65#endif
    6066__int64
    6167windows_close(int fd)
     
    114120  windows_close,
    115121  windows_read,
     122  windows_write,
     123  windows_fchmod,
    116124  windows_lseek,
    117   windows_fchmod,
    118125  windows_stat,
    119126  windows_fstat,
     
    127134windows_find_symbol(void *handle, char *name)
    128135{
     136  if (handle == ((void *)-2L)) {
     137    handle = NULL;
     138  }
    129139  if (handle != NULL) {
    130140    return GetProcAddress(handle, name);
Note: See TracChangeset for help on using the changeset viewer.