Mercurial > emacs
view src/s/irix5-2.h @ 79232:7970215aa6e5
Add a wrapper for getenv so it also checks the registry on Windows.
Suggestion and algorithm by Eli Zaretskii.
Code partially based on w32_get_resource and init_environment (w32.c).
(xmalloc): New function by Kroly Lrentey (backported from the trunk).
(quote_file_name): Use it.
(egetenv): New wrapper for getenv.
(get_current_dir_name, decode_options, get_server_config, set_local_socket,
set_socket, main): Use egetenv, not getenv.
(w32_get_resource, w32_getenv) [WINDOWSNT]: New functions.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 26 Oct 2007 15:39:06 +0000 |
parents | 695cf19ef79e |
children | 375f2633d815 |
line wrap: on
line source
#include "irix5-0.h" /* as of version 5.2, irix no longer uses flock, according to jackr@wpd.sgi.com. */ #undef MAIL_USE_FLOCK /* C-g in select is not handled properly with restartable system calls. So don't use them. */ #undef SA_RESTART /* schoepf@goofy.zdv.Uni-Mainz.de reports he needed -lw with X11R6 on Irix 5.3. I don't know which Irix version that need starts with. */ #define NEED_LIBW /* Looking at the wtmp file in filelock.c causes a crash for jpff@maths.bath.ac.uk. Note that irix6-0.h does not include this file, only irix5-0.h. */ #define NO_WTMP_FILE /* arch-tag: e2f820c1-2a3e-4cee-b5f1-6ce8ab21f439 (do not change this comment) */