aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
Commit message (Collapse)AuthorAgeFilesLines
* (w32_get_resource): Remove unused variable `ok'.Juanma Barranquero2007-10-251-1/+0
|
* (init_environment): Fix tiny memory leak.Juanma Barranquero2007-10-251-0/+1
|
* (w32_get_resource): Always close registry keys.Jason Rumney2007-09-291-0/+2
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* (_wsa_errlist): Fix typo in error message.Juanma Barranquero2007-06-201-21/+19
| | | | | (init_environment): Ignore any environment variable from the registry having a null value.
* (stat, get_long_basename, is_unc_volume): Use _mbspbrk instead of strpbrk.Eli Zaretskii2007-02-231-4/+9
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Wrap function headers.Kim F. Storm2006-12-271-5/+10
|
* (_sys_wait_accept): Fix handle leak.Kim F. Storm2006-12-211-2/+2
|
* (shutdown_handler): New function to exit cleanly on shutdown.Jason Rumney2006-09-031-0/+24
| | | | (globals_of_w32): Register it as a signal handler.
* (w32_valid_pointer_p): New function.Eli Zaretskii2006-08-051-0/+22
|
* (convert_time): Use explicit long double constants to ensure long doubleEli Zaretskii2006-07-211-3/+4
| | | | arithmetics is used throughout.
* (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.Kim F. Storm2006-07-141-14/+44
| | | | | | | | | | (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.
* Fix high cpu load for server sockets.Kim F. Storm2006-07-141-2/+14
| | | | | | | | | (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.
* (init_environment): Simplify code that calls ExpandEnvironmentStrings and makeEli Zaretskii2006-05-191-11/+8
| | | | buf1[] and buf2[] more visible for easier debugging.
* (init_environment): Perform the processing of environment variables on a copyEli Zaretskii2006-05-191-4/+15
| | | | of default variables and their values, not on the original.
* (check_windows_init_file): Use Fget_load_suffixes instead of Vload_suffixes.Luc Teirlinck2006-02-271-1/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (sys_close): If FD is outside [0..MAXDESC) limits, pass it directly to _close.Eli Zaretskii2006-01-201-9/+9
| | | | | | (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.
* (check_windows_init_file): Fix allocation of error buffer.Kim F. Storm2005-09-121-1/+3
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
|
* (init_environment): Default HOME directory to user'sJason Rumney2005-07-141-2/+37
| | | | appdata directory if possible.
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (sys_chown): New function.Eli Zaretskii2005-06-241-0/+8
|
* (sys_setsockopt): Change arg 4 to `const void *'. In theEli Zaretskii2005-06-051-2/+2
| | | | call to pfn_setsockopt, cast optval to `const char *'.
* (gettimeofday): Use struct _timeb, not struct timeb.Eli Zaretskii2005-06-041-2/+2
| | | | | (open_unc_volume): Cast return value of map_w32_filename, to avoid compiler warnings.
* 2004-11-08 Benjamin Riefenstahl <[email protected]>Jason Rumney2005-02-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* (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
|