aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
Commit message (Collapse)AuthorAgeFilesLines
* (init_environment): Set emacs_dir correctly when runningJason Rumney2004-10-191-0/+26
| | | | emacs from the build directory.
* Rename w32_num_mouse_buttons from Vw32_num_mouse_buttons.Jason Rumney2004-05-171-5/+5
| | | | Use const more consistently.
* (_sys_read_ahead): Use w32_pipe_read_delay.Jason Rumney2004-05-171-2/+2
|
* (struct the_group): Added.Lars Hansen2003-11-221-0/+14
| | | | (getgrgid): Added.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (sys_pipe): Protect against file descriptor overflow.Jason Rumney2003-08-271-4/+15
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-108/+108
|
* Revisited my earlier fix for the following entry in etc/PROBLEMS: 'Emacs ↵Ben Key2002-12-181-31/+76
| | | | built on Windows 9x/ME crashes at startup on Windows XP, or Emacs builtpart of on XP crashes at startup on Windows 9x/ME.' Fixed several Windows API errors detected by BoundsChecker
* Doc fixJason Rumney2002-11-271-1/+1
|
* (sys_write): Avoid non-blocking mode, which is not fullyJason Rumney2002-11-251-0/+16
| | | | supported.
* Added a partial implementation of play-sound-internal for Windows. Fixed ↵Ben Key2002-11-171-7/+176
| | | | the following entry in etc/PROBLEMS: Emacs built on Windows 9x/ME crashes at startup on Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-2/+2
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* (init_environment): Remove EMACSLOCKDIR.Jason Rumney2002-06-131-1/+1
| | | | (stat): Swap _S_IFDIR and _S_IFREG.
* (init_environment): Remove EMACSLOCKDIR.Jason Rumney2002-06-131-1/+0
|
* (sys_getpeername, fcntl): New functions.Jason Rumney2002-05-031-2/+73
| | | | (_sys_read_ahead): Temporarily block on non-blocking sockets.
* (check_windows_init_file): Update call to openp.Stefan Monnier2002-04-301-1/+1
|
* (stat, fstat): Use file index information to generateJason Rumney2002-04-281-36/+33
| | | | inodes for directories where available.
* (sys_accept): Don't hide variable `s'.Juanma Barranquero2002-04-081-3/+3
|
* (init_winsock): Dynamically load new server and UDPJason Rumney2002-03-201-87/+249
| | | | | | | | socket functions. (socket_to_fd): New function. (sys_socket): Use it. (sys_setsockopt, sys_listen, sys_getsockname, sys_accept) (sys_recvfrom, sys_sendto): New wrapper functions.
* Include <config.h>.Pavel Janík2002-01-011-1/+5
|
* (emacs_root_dir): New function.Eli Zaretskii2001-12-191-0/+15
|
* Update calls to openp.Stefan Monnier2001-10-121-1/+1
|
* Don't define min/max.Gerd Moellmann2001-10-081-5/+0
|
* (sys_open): Try to open file without _O_CREAT first, to beGerd Moellmann2001-04-101-3/+9
| | | | | able to write to hidden and system files. Make file handles non-inheritable.
* (init-environment): Duplicate local string before putenv.Jason Rumney2001-02-091-1/+1
|
* (init_environment): Add a version-independent site-lispAndrew Innes2001-01-191-1/+1
| | | | directory to EMACSLOADPATH, after the version dependent one.
* (init_environment, sys_shutdown, sys_pipe): Remove unusedJason Rumney2001-01-131-5/+2
| | | | variables.
* (w32_strerror): New function.Andrew Innes2000-12-181-0/+19
|
* (sys_rename): Only check errno against EEXIST, and notAndrew Innes2000-12-171-3/+3
| | | | | | EACCES, when determining whether rename failed because the target exists. This was resulting in indefinite looping on Windows 9x if the source file was locked by another process.
* (init_environment): Set LANG environment variable based onJason Rumney2000-11-241-2/+19
| | | | locale settings, if not set.
* (_ANONYMOUS_UNION) [__GNUC__]: New defineAndrew Innes2000-09-031-0/+4
| | | | (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
* (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.Andrew Innes2000-08-221-22/+65
| | | | | | | | | | | | | | | | (add_volume_info): Use xstrdup. (init_environment): Call _access. (check_windows_init_file): Call _close. (init_user_info): Call _putenv. (init_environment): Call _putenv and _strdup. (init_ntproc): Reset volume info cache on startup. (unc_volume_file_attributes): (open_unc_volume): Make arg const. (gettimeofday): Use struct timeb, not struct _timeb. (map_w32_filename, read_unc_volume): Fix compile warning. (sys_strerror): Use sys_nerr instead of _sys_nerr. Use sys_errlist instead of _sys_errlist. (get_emacs_configuration_options): New function.
* (init_environment): Install code from 20.7 for providingAndrew Innes2000-07-051-52/+119
| | | | | | | | default values for environment variables, based on the executable's own location. (map_w32_filename): Handle filenames that are longer than MAX_PATH. (sys_socket): Install socket inheritance bug fix from 20.7.
* Use the term `invalid' instead of `illegal'.Gerd Moellmann2000-05-161-2/+2
|
* (init_environment): Set Vw32_num_mouse_buttons here.Jason Rumney2000-02-271-0/+6
|
* (sigmask): New function (does nothing).Andrew Innes2000-02-061-0/+12
| | | | (sigunblock): Ditto.
* (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.