1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 13:10:57 -08:00
Commit graph

117 commits

Author SHA1 Message Date
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Juanma Barranquero
43e9fc935f (_wsa_errlist): Fix typo in error message.
(init_environment): Ignore any environment variable
from the registry having a null value.
2007-06-20 08:49:12 +00:00
Juanma Barranquero
aa5ee2a374 (_wsa_errlist): Fix typo in error message.
(init_environment): Ignore any environment variable
from the registry having a null value.
2007-06-20 08:31:09 +00:00
Jason Rumney
7425851806 (get_process_times_fn): New function pointer.
(globals_of_w32): Intialize it if present in kernel32.dll.
(w32_get_internal_run_time): New function.
2007-06-14 15:58:13 +00:00
Juanma Barranquero
10aabbf959 (init_user_info): Fix weird formatting not following GNU coding guidelines. 2007-06-14 10:01:04 +00:00
Eli Zaretskii
22189f791f (stat, get_long_basename, is_unc_volume): Use _mbspbrk instead of strpbrk. 2007-02-23 18:40:41 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Kim F. Storm
9bfb11f906 Wrap function headers. 2006-12-27 21:55:59 +00:00
Kim F. Storm
7046f19146 (_sys_wait_accept): Fix handle leak. 2006-12-21 12:47:06 +00:00
Jason Rumney
a8c3a596c2 (shutdown_handler): New function to exit cleanly on shutdown.
(globals_of_w32): Register it as a signal handler.
2006-09-03 22:51:22 +00:00
Eli Zaretskii
ed91b2add3 (w32_valid_pointer_p): New function. 2006-08-05 13:01:10 +00:00
Eli Zaretskii
69b72317ae (convert_time): Use explicit long double constants to ensure long double
arithmetics is used throughout.
2006-07-21 17:28:23 +00:00
Kim F. Storm
64570b36c5 (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
(init_winsock): Load them.  Use ws2_32.dll.
(sys_listen): Undo last change.  Just set FILE_LISTEN flag.
(sys_accept): Undo last change.  Instead, set child status to
STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
sys_select will wakeup the reader thread.
(_sys_wait_accept): New function used by reader thread to wait for
an incoming connection on a server socket.
2006-07-14 14:18:40 +00:00
Kim F. Storm
26fb7bc422 Fix high cpu load for server sockets.
(pfn_WSAEventSelect): New function ptr.
(init_winsock): Load it.
(sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
char_avail event object to FD_ACCEPT.
(sys_accept): Check FILE_LISTEN flag.  Set event mask on new
socket's char_avail event object to FD_READ|FD_CLOSE.
2006-07-14 09:29:32 +00:00
Eli Zaretskii
892eb23701 (init_environment): Simplify code that calls ExpandEnvironmentStrings and make
buf1[] and buf2[] more visible for easier debugging.
2006-05-19 19:29:36 +00:00
Eli Zaretskii
e00b99c818 (init_environment): Perform the processing of environment variables on a copy
of default variables and their values, not on the original.
2006-05-19 19:05:07 +00:00
Luc Teirlinck
c50a2aa682 (check_windows_init_file): Use Fget_load_suffixes instead of Vload_suffixes. 2006-02-27 02:07:37 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Eli Zaretskii
7559f399d1 (sys_close): If FD is outside [0..MAXDESC) limits, pass it directly to _close.
(sys_dup): Protect against new_fd larger than fd_info[] can handle.
(sys_read): If FD is outside [0..MAXDESC) limits, pass it directly to _read.
(sys_write):  If FD is outside [0..MAXDESC) limits, pass it directly to _write.
2006-01-20 19:12:39 +00:00
Kim F. Storm
acc23b87a7 (check_windows_init_file): Fix allocation of error buffer. 2005-09-12 10:27:02 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Jason Rumney
2d5324c520 (init_environment): Default HOME directory to user's
appdata directory if possible.
2005-07-14 22:32:50 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Eli Zaretskii
2d5ab4bf85 (sys_chown): New function. 2005-06-24 10:39:56 +00:00
Eli Zaretskii
a5a389bb74 (sys_setsockopt): Change arg 4 to `const void *'. In the
call to pfn_setsockopt, cast optval to `const char *'.
2005-06-05 19:13:37 +00:00
Eli Zaretskii
6e60256665 (gettimeofday): Use struct _timeb, not struct timeb.
(open_unc_volume): Cast return value of map_w32_filename, to avoid
compiler warnings.
2005-06-04 20:39:15 +00:00
Jason Rumney
52c7f9eea2 2004-11-08 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
* w32select.c: Summary: Thorough rework to implement Unicode
        clipboard operations and delayed rendering.

        Drop last_clipboard_text and related code, keep track of
        ownership via clipboard_owner instead.  Drop old #if0
        sections.

        (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
        (clipboard_owner, modifying_clipboard, cfg_coding_system)
        (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
        (current_coding_system, current_requires_encoding)
        (current_num_nls, current_clipboard_type, current_lcid): New
        static variables.

        (convert_to_handle_as_ascii, convert_to_handle_as_coded)
        (render, render_all, run_protected, lisp_error_handler)
        (owner_callback, create_owner, setup_config)
        (enum_locale_callback, cp_from_locale, coding_from_cp): New
        local functions.

        (term_w32select, globals_of_w32select): New global functions.

        (Fw32_set_clipboard_data): Ignore parameter FRAME, use
        clipboard_owner instead.  Use delayed rendering and provide
        all text formats.  Provide CF_LOCALE if necessary.

        (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
        CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
        available.  Force DOS line-ends for decoding.

        (Fx_selection_exists_p): Handle CF_UNICODETEXT.

        (syms_of_w32select): Init and register new variables.

        * w32.h: Add prototypes for globals_of_w32select and
        term_w32select.  Make the neighboring K&R declarations into
        prototypes, too.

        * emacs.c: Include w32.h to get function prototypes.
        (main): Call globals_of_w32select.

        * w32.c (term_ntproc): Call term_w32select.

        * mule-cmds.el (set-locale-environment): Remove call to
        set-selection-coding-system on Windows.

        * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
2005-02-15 23:19:26 +00:00
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