aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (stat): Check for directory ending in separator whenGeoff Voelker1999-08-061-2/+4
| | | | doing readdir fast path.
* (get_emacs_configuration): Use GetVersionEx toGeoff Voelker1999-06-241-3/+31
| | | | | handle NT5.0 correctly. Include build number in configuration. w32heap.c (osinfo_cache): New variable.
* (sys_strerror): New function.Andrew Innes1999-06-161-0/+95
|
* (init_environment): Change argv[0] to contain the full path to Emacs.Andrew Innes1999-01-301-2/+6
|
* (w32_get_long_filename): Handle root dirs correctly.Geoff Voelker1998-12-101-2/+2
|
* (check_windows_init_file): Use decode_env_path whenGeoff Voelker1998-12-031-2/+4
| | | | using EMACSLOADPATH.
* (stat): GetFileInformationByHandle can legitimately fail, so don'tAndrew Innes1998-11-031-16/+17
| | | | rely on it succeeding.
* (check_windows_init_file): Also look in load path specifiedGeoff Voelker1998-10-271-2/+5
| | | | in environment.
* (init_ntproc): Check for Windows init file.Geoff Voelker1998-10-071-36/+37
| | | | (term_ntproc): Do not check for it here.
* (stat): Fall-back to default behaviour when we cannot getRichard M. Stallman1998-08-141-4/+4
| | | | accurate information on file attributes.
* (is_unc_volume, open_unc_volume, read_unc_volume,Geoff Voelker1998-06-171-5/+143
| | | | | | close_unc_volume, unc_volume_file_attributes): New functions. (wnet_enum_handle): New variable. (opendir, readdir, closedir, sys_access, stat): Handle UNC volumes.
* (sys_rename): On some network drives, rename fails withRichard M. Stallman1998-06-161-3/+3
| | | | EACCES instead of EEXIST if target already exists.
* (sys_rename): Don't examine errno if rename didn't fail.Richard M. Stallman1998-06-101-2/+3
|
* #include sys/file.hKarl Heuer1998-06-051-33/+113
| | | | | | | | | | | | | (sys_access): Provide our own implementation which recognizes D_OK. (is_exec): New function. (stat): Use it. (init_environment): Set TMPDIR to an existing directory. Abort if none of the usual places is available. (sys_rename): On Windows 95, choose a temp name that includes the original file's base name and use an explicit loop rather than calling mktemp. Only attempt to unlink the newname if the rename fails, rather than second-guessing whether the old and new names refer to the same file.
* (sys_rename): Handle filenames with accented characters.Geoff Voelker1998-05-301-5/+17
| | | | (stat): Handle "c:/.." and "/.." specially.
* (stat, get_long_basename): Fail if filename contains anyRichard M. Stallman1998-05-121-2/+6
| | | | characters that are illegal in file names.
* (sys_socket): Make sockets non-inheritable.Geoff Voelker1998-04-241-1/+1
|
* (fstat, utime): New functions; these are provided inGeoff Voelker1998-04-231-5/+144
| | | | | | | conjunction with stat to make handling of file timestamps consistent. (convert_from_time_t): Fix calculation of low-order bits. (sys_unlink): Allow read-only files to be unlinked as on Unix.
* (sys_read): Clear carriage return flag.Geoff Voelker1998-04-171-8/+68
| | | | | | | Report normal EOF when read fails if nothing in buffer. Only read more if more remaining. (check_windows_init_file): New function. (term_ntproc): Invoke check_windows_init_file.
* (sys_pipe): Use binary pipe I/O unconditionally.Eli Zaretskii1998-04-151-10/+2
|
* (min, max): Define as macros.Karl Heuer1998-04-091-0/+5
|
* (unrequest_sigio, request_sigio): Fix prototype.Karl Heuer1998-04-091-4/+4
|
* Include stddef.h.Geoff Voelker1997-09-031-233/+690
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (getwd): Delete macro. (startup_dir): New variable. (getwd): Return directory in which Emacs started. (init_user_info): Set SHELL environment variable if not set. (parse_root, get_long_basename, w32_get_long_filename): New functions. (init_environment): Look for CMDPROXY. Make sure that PATH and COMSPEC are capitalized in the environment. Record startup directory. (get_emacs_configuration, sys_rename): Use OS_WIN95. (map_w32_filename): Calculate returned string correctly. (sys_fopen): Use _fdopen. (sys_link): Support NTFS links. (sys_rename): Use a long file name for temporary name. (sys_pipe): Make pipes binary and non-inheritable. (sys_read, sys_write): Spoof text mode translation for pipes and sockets. (hashval): Simplify. (generate_inode_val): Use long file name version of file. (stat): Optimize by using active readdir info. Set fake_inode to 0 for directories. Set fake_inode to xor of file indexes for files. Don't use generate_inode_val to set inode value. (volume_info_data): Renamed from volume_info. (volume_info, fixed_drives, volume_cache): New variables. (DRIVE_INDEX, VOLINFO_STILL_VALID): New macros. (lookup_volume_info, add_volume_info, GetCachedVolumeInformation): New functions. (get_volume_info): Use volume_info_data. Use GetCachedVolumeInformation. (init_ntproc): No longer restrict to one DOS subprocess. Use CRT _open and _fdopen. Cache fixed drive information.
* (sys_shutdown): New function.Geoff Voelker1997-07-101-0/+24
|
* Rebuild Vsystem_configuration at startup.Geoff Voelker1997-01-201-0/+6
|
* Change all uses of win95, winnt, and win32Geoff Voelker1997-01-201-6/+6
| | | | | | | into Windows 95, Windows NT, and W32, respectively. Expand "win" substring in variables referring to Microsoft Windows constructs into "windows". Canonicalize header comments to use same terminology.
* (get_emacs_configuration): Return windows95 instead of win95.Richard M. Stallman1997-01-151-1/+1
|
* Use new names for w32 filesGeoff Voelker1996-11-191-2/+2
|
* Change identifiers of the form win32* to w32*.Geoff Voelker1996-11-191-28/+28
|
* (normalize_filename): Always lower-case drive letters, even on systemsMiles Bader1996-07-071-7/+33
| | | | | | | | that preserve case in filenames. (sys_rename): Do not delete newname if only changing case. On Windows 95, use our version of mktemp (not the MSVC version) and give the temp name a long extension to ensure the final rename works as expected.
* Delete restrict_dos_process.Richard M. Stallman1996-06-121-7/+5
|
* (restrict_dos_process): Renamed from can_run_dos_process.Richard M. Stallman1996-06-121-3/+14
| | | | (init_ntproc): Refer to restrict_dos_process.
* (init_environment): Read PRELOAD_WINSOCK from registry ifRichard M. Stallman1996-06-081-28/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | not set in environment. (winsock_inuse) [HAVE_SOCKETS]: New variable. (have_winsock) [HAVE_SOCKETS]: Obsolete variable removed. (term_winsock) [HAVE_SOCKETS]: Only unload winsock library if there are no active sockets still open, and if the cleanup function succeeds. Return TRUE if winsock is unloaded. (init_winsock) [HAVE_SOCKETS]: Load winsock if not already loaded, and return TRUE if winsock support is available. Unload winsock immediately if new parameter load_now is false. Check that WSAStartup supports the winsock version we requested. (set_errno, check_errno, sys_socket, sys_bind, sys_connect, sys_htons, sys_ntohs, sys_inet_addr, sys_gethostname, sys_gethostbyname, sys_getservbyname, sys_close, sys_read, sys_write) [HAVE_SOCKETS]: Check winsock_lib instead of have_winsock to determine if winsock support is available. (sys_socket, sys_close) [HAVE_SOCKETS]: Count sockets in use. (init_ntproc) [HAVE_SOCKETS]: Only load winsock library on startup if PRELOAD_WINSOCK is set in environment (or registry).
* (sys_mktemp): Complete rewrite.Richard M. Stallman1996-06-071-1/+45
|
* (init_winsock): Dynamically link to SetHandleInformation.Richard M. Stallman1996-06-061-11/+34
| | | | | (sys_socket): If possible, use SetHandleInformation to make socket handle non-inheritable to avoid a bug in NT.
* (normalize_filename): New function.Richard M. Stallman1996-06-031-12/+63
| | | | | | (dostounix_filename, unixtodos_filename): Use it. (readdir): Convert upper case file names to lower case if win32-downcase-file-names is non-nil.
* (get_volume_info): Always update *pPath correctly, even ifKarl Heuer1996-05-221-3/+0
| | | | UNC header is incomplete.
* (_sys_read_ahead): Handle sleep here.Karl Heuer1996-05-171-4/+34
| | | | | (sys_read): Not here. (init_ntproc): Initialize can_run_dos_process, dos_process_running.
* (sys_read): Introduce a small delay before reading fromKarl Heuer1996-05-151-0/+2
| | | | | | a pipe or socket to allow more data to be buffered; otherwise, process output is read one byte at a time on fast machines (which is slow).
* (map_win32_filename): If not a fat volume, cvt name to dos.Richard M. Stallman1996-05-111-5/+7
|
* (nt_stat, nt_ctime): Functions deleted.Geoff Voelker1996-05-031-706/+1685
| | | | Undefine macros of CRT functions.
* (rename): New function.Geoff Voelker1996-03-291-0/+102
|
* (nt_stat): Use alloca instead of xmalloc.Geoff Voelker1996-01-211-9/+112
| | | | | | (get_unassigned_drive_letter, is_toplevel_share_name, stat_toplevel_share): New functions for stat on remote shares. (readdir): Use IS_ANY_SEP.
* Update FSF's address in the preamble.Erik Naggum1996-01-151-15/+16
|
* (getuid): Only return root uid if Administrator.Geoff Voelker1996-01-041-2/+16
| | | | (geteuid): Return getuid.
* (nt_get_resource, init_environment): Defined.Geoff Voelker1995-11-071-0/+107
| | | | | (prepare_standard_handles, restore_standard_handles) [HAVE_NTGUI]: Don't duplicate or restore standard handles.
* Indentation change.Richard M. Stallman1995-10-081-31/+31
|
* (PASSWD_FIELD_SIZE): Defined.Geoff Voelker1995-06-301-6/+21
| | | | | | (the_passwd_name, the_passwd_passwd, the_passwd_gecos, the_passwd_dir, the_passwd_shell, getpwuid): Use PASSWD_FIELD_SIZE. (get_emacs_configuration): Check if processor macros are defined.
* Include config.h before stdio.h.Geoff Voelker1995-06-101-1/+1
|
* Change Vuser_real_name to Vuser_real_login_name.Karl Heuer1995-05-301-5/+5
|