Commit graph

89 commits

Author SHA1 Message Date
Jason Rumney
950090be06 (init_environment): Set emacs_dir correctly when running
emacs from the build directory.
2004-10-19 19:09:37 +00:00
Jason Rumney
e0c181ddf1 Rename w32_num_mouse_buttons from Vw32_num_mouse_buttons.
Use const more consistently.
2004-05-17 21:33:16 +00:00
Jason Rumney
78806724fe (_sys_read_ahead): Use w32_pipe_read_delay. 2004-05-17 21:05:58 +00:00
Lars Hansen
3d19b64595 (struct the_group): Added.
(getgrgid): Added.
2003-11-22 23:01:18 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Jason Rumney
cb72110db2 (sys_pipe): Protect against file descriptor overflow. 2003-08-27 22:57:54 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Ben Key
9785d95b98 Revisited my earlier fix for the following entry in etc/PROBLEMS: 'Emacs 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 2002-12-18 06:16:28 +00:00
Jason Rumney
670773af77 Doc fix 2002-11-27 23:48:33 +00:00
Jason Rumney
30a32e0ea1 (sys_write): Avoid non-blocking mode, which is not fully
supported.
2002-11-25 23:30:19 +00:00
Ben Key
f60ae425e9 Added a partial implementation of play-sound-internal for Windows. Fixed 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. 2002-11-17 22:35:26 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Jason Rumney
bc5fdfc7b2 (init_environment): Remove EMACSLOCKDIR.
(stat): Swap _S_IFDIR and _S_IFREG.
2002-06-13 20:41:33 +00:00
Jason Rumney
81b91e8934 (init_environment): Remove EMACSLOCKDIR. 2002-06-13 18:41:17 +00:00
Jason Rumney
ecd270eb5c (sys_getpeername, fcntl): New functions.
(_sys_read_ahead): Temporarily block on non-blocking sockets.
2002-05-03 20:40:03 +00:00
Stefan Monnier
7d03293297 (check_windows_init_file): Update call to openp. 2002-04-30 01:02:01 +00:00
Jason Rumney
93e0f0da4b (stat, fstat): Use file index information to generate
inodes for directories where available.
2002-04-28 18:52:26 +00:00
Juanma Barranquero
a0ad186021 (sys_accept): Don't hide variable `s'. 2002-04-08 16:45:43 +00:00
Jason Rumney
962955c574 (init_winsock): Dynamically load new server and UDP
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.
2002-03-20 20:38:44 +00:00
Pavel Janík
4838e624ad Include <config.h>. 2002-01-01 19:15:26 +00:00
Eli Zaretskii
bf7943066e (emacs_root_dir): New function. 2001-12-19 19:00:44 +00:00
Stefan Monnier
c0ec53ad99 Update calls to openp. 2001-10-12 03:37:43 +00:00
Gerd Moellmann
32c82ac0a1 Don't define min/max. 2001-10-08 08:08:08 +00:00
Gerd Moellmann
302f0b2912 (sys_open): Try to open file without _O_CREAT first, to be
able to write to hidden and system files.  Make file handles
non-inheritable.
2001-04-10 12:15:25 +00:00
Jason Rumney
aca583b261 (init-environment): Duplicate local string before putenv. 2001-02-09 09:57:04 +00:00
Andrew Innes
cc14250a79 (init_environment): Add a version-independent site-lisp
directory to EMACSLOADPATH, after the version dependent one.
2001-01-19 14:56:06 +00:00
Jason Rumney
253574a62d (init_environment, sys_shutdown, sys_pipe): Remove unused
variables.
2001-01-13 00:00:26 +00:00
Andrew Innes
18e070ac54 (w32_strerror): New function. 2000-12-18 23:50:26 +00:00
Andrew Innes
cfb5e8555e (sys_rename): Only check errno against EEXIST, and not
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.
2000-12-17 23:14:55 +00:00
Jason Rumney
69fb0241f4 (init_environment): Set LANG environment variable based on
locale settings, if not set.
2000-11-24 21:30:06 +00:00
Andrew Innes
971bce757c (_ANONYMOUS_UNION) [__GNUC__]: New define
(_ANONYMOUS_STRUCT) [__GNUC__]: New define.
2000-09-03 17:41:20 +00:00
Andrew Innes
a302c7ae2b (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
(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.
2000-08-22 22:49:27 +00:00
Andrew Innes
ca149beb3f (init_environment): Install code from 20.7 for providing
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.
2000-07-05 16:00:13 +00:00
Gerd Moellmann
9ab8560dc2 Use the term invalid' instead of illegal'. 2000-05-16 14:29:08 +00:00
Jason Rumney
20af483168 (init_environment): Set Vw32_num_mouse_buttons here. 2000-02-27 21:28:38 +00:00
Andrew Innes
8f900f6e16 (sigmask): New function (does nothing).
(sigunblock): Ditto.
2000-02-06 23:37:46 +00:00
Geoff Voelker
b19cc00c30 (stat): Check for directory ending in separator when
doing readdir fast path.
1999-08-06 20:40:36 +00:00
Geoff Voelker
c5247da267 (get_emacs_configuration): Use GetVersionEx to
handle NT5.0 correctly.  Include build number in configuration.
w32heap.c (osinfo_cache): New variable.
1999-06-24 22:05:14 +00:00
Andrew Innes
d8fcc1b984 (sys_strerror): New function. 1999-06-16 20:00:19 +00:00
Andrew Innes
aa7b87b0b2 (init_environment): Change argv[0] to contain the full path to Emacs. 1999-01-30 18:48:57 +00:00
Geoff Voelker
4f8ac0b2d6 (w32_get_long_filename): Handle root dirs correctly. 1998-12-10 05:43:07 +00:00
Geoff Voelker
a0b9c8385f (check_windows_init_file): Use decode_env_path when
using EMACSLOADPATH.
1998-12-03 03:14:46 +00:00
Andrew Innes
01f31dfb5f (stat): GetFileInformationByHandle can legitimately fail, so don't
rely on it succeeding.
1998-11-03 22:39:04 +00:00
Geoff Voelker
96ef7d42fb (check_windows_init_file): Also look in load path specified
in environment.
1998-10-27 23:42:26 +00:00
Geoff Voelker
d54abccd47 (init_ntproc): Check for Windows init file.
(term_ntproc): Do not check for it here.
1998-10-07 19:47:48 +00:00
Richard M. Stallman
710ea1b88d (stat): Fall-back to default behaviour when we cannot get
accurate information on file attributes.
1998-08-14 03:47:10 +00:00
Geoff Voelker
9d3355d178 (is_unc_volume, open_unc_volume, read_unc_volume,
close_unc_volume, unc_volume_file_attributes): New functions.
(wnet_enum_handle): New variable.
(opendir, readdir, closedir, sys_access, stat): Handle UNC volumes.
1998-06-17 04:22:58 +00:00
Richard M. Stallman
f313ee82af (sys_rename): On some network drives, rename fails with
EACCES instead of EEXIST if target already exists.
1998-06-16 04:33:08 +00:00
Richard M. Stallman
58f0cb7e31 (sys_rename): Don't examine errno if rename didn't fail. 1998-06-10 21:00:39 +00:00
Karl Heuer
b3308d2eb9 #include sys/file.h
(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.
1998-06-05 16:08:32 +00:00