1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-14 09:39:42 +00:00
Commit Graph

39 Commits

Author SHA1 Message Date
Gerd Moellmann
c3d7eab2ba (main): Cast geteuid in sprintf to int.
From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2001-10-09 10:16:26 +00:00
Eli Zaretskii
317ad01ee7 (main) <homedir>: Make its declaration conditional
on SERVER_HOME_DIR, to avoid compiler warnings.
2001-01-02 13:52:04 +00:00
Paul Eggert
4ee9629e2b Add support for large files. Merge glibc 2.1.2.
* b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c,
movemail.c, pop.c:
Do not include <stdlib.h>, as <config.h> does this now.

* b2m.c, emacsserver.c, etags.c, profile.c:
Include <config.h> before any system include files.

* emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c,
test-distrib.c:
(read, write, open, close): Do not undef.

* getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix:
(const): Do not define if HAVE_CONFIG_H; that's config.h's job.

* getopt.h: Adopt glibc 2.1.2.
1999-10-19 07:17:20 +00:00
Andreas Schwab
1ee65e5c81 Include <stdlib.h> if available. Don't declare errno if it's a macro. 1999-08-30 15:07:30 +00:00
Karl Heuer
c5fee54517 (main): Move the dynamic allocation of
system_name outside of the SERVER_HOME_DIR conditional.
1999-08-14 04:08:25 +00:00
Karl Heuer
bbe73f056f (perror_1, fatal_error): Don't compile unless needed. 1999-02-22 20:51:02 +00:00
Richard M. Stallman
40beb971f4 (main): Eliminate arbitrary limit on 1999-01-16 21:44:56 +00:00
Richard M. Stallman
0169bb47b2 Whitespace change. 1998-10-10 21:20:48 +00:00
Richard M. Stallman
5fb29af43c (main): Null-terminate system_name. 1998-10-10 21:20:22 +00:00
Andreas Schwab
4e7ef1d6c5 Include <unistd.h> if available.
(main, handle_signals, perror_1, fatal_error): Explicitly declare
return types.  Add forward declarations.
1998-04-06 10:14:26 +00:00
Richard M. Stallman
57b1f7206f (main): use SOCKLEN_TYPE for fromlen, if it is defined. 1997-08-14 04:16:00 +00:00
Karl Heuer
3bd8b59d60 Fix 1996-09-02 change. 1996-10-22 17:34:26 +00:00
Erik Naggum
4893a43797 (main): Declare `fromlen' as size_t, undo previous change. 1996-09-07 01:06:09 +00:00
Richard M. Stallman
37de9e5d47 (main): Declare `fromunix' as size_t. 1996-09-04 15:20:19 +00:00
Richard M. Stallman
8fb25e2680 Include signal.h properly;
delete the duplicate includes for it.
1996-09-02 05:45:58 +00:00
Richard M. Stallman
d8888efa0f On fatal signal, delete socket-file:
Include signal.h.
(xmalloc, fatal, error): New functions.
(delete_socket, handle_signals): New functions.
(progname, socket_name): New variables.
[HAVE_SOCKETS] (main): Call handle_signals; set the new variables.
1996-09-02 05:39:36 +00:00
Karl Heuer
d283640e03 Undo previous change. 1996-07-16 22:39:31 +00:00
Karl Heuer
c275f129ae [__GNU_LIBRARY__]: Use size_t for fromlen. 1996-07-15 21:26:39 +00:00
Miles Bader
cbd1aee2b1 (main) [HAVE_SOCKETS]: Call rewind before writing to infile. 1996-07-03 02:05:29 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Karl Heuer
cbf5f47c32 (main): Do chmod based on existing permission. 1996-01-03 04:23:26 +00:00
Richard M. Stallman
ccd318fb5b Make all error messages start with `Error: '.
(fatal_error, perror_1): New functions, use throughout.
1995-06-28 20:10:12 +00:00
Richard M. Stallman
1e523e3da8 Test NO_SOCKETS_IN_FILE_SYSTEM. 1995-04-11 01:44:46 +00:00
Richard M. Stallman
d1e203d20c Use BSD sockets whenever available, even if HAVE_SYSVIPC. 1995-03-15 23:32:19 +00:00
Richard M. Stallman
021eac48bf [HAVE_SYSVIPC]: Include sys/utsname.h.
(main): If socket/mqueue name is in home dir, add in the host name.
Rename .emacs_server to .emacs-server-....
1994-12-07 07:38:00 +00:00
Richard M. Stallman
b8a0f2d8ab [SYSV_IPC] (main): Catch SIGHUP as well. Don't
call kill with pid 0.  Handle EINTR when receiving messages.
1994-10-18 11:23:18 +00:00
Roland McGrath
86af296ba1 [! SYSVIPC] (main): Fix uses of FD_* macros: fd_set arg is a pointer,
descriptor arg comes first.
1994-10-10 04:55:59 +00:00
Karl Heuer
b38bab94e5 (FD_*) [HAVE_SOCKETS & !HAVE_SYSVIPC]: If not already defined, use simple
32-bit versions of these macros.
(main) [HAVE_SOCKETS & !HAVE_SYSVIPC]: Use these macros.
1994-09-17 00:02:50 +00:00
Richard M. Stallman
2f3179987f [SYSV_IPC] (main): Make a separate process
so we can listen for multiple requests.
1994-08-08 07:08:17 +00:00
Richard M. Stallman
ae24c599eb (main): Add casts to avoid warnings. 1994-08-01 07:43:30 +00:00
Richard M. Stallman
f662f9b05b (main): Don't declare geteuid.
Don't declare getenv if convex.
1994-06-23 19:26:02 +00:00
Richard M. Stallman
9e3891de7c (main) [HAVE_SYSVIPC]: Reverse test of fork value. 1994-02-08 23:57:30 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
908d6b8719 Include types.h before file.h. 1993-07-20 05:16:51 +00:00
Jim Blandy
2fdfe0796e * emacsserver.c (main): When we're passing a `struct sockaddr_un'
to bind or accept, cast the pointer, to avoid warnings on systems
	which declare prototypes for this.
1993-06-09 12:41:31 +00:00
Richard M. Stallman
5ed8e09c1d #undef signal. 1993-06-01 08:08:38 +00:00
Jim Blandy
d4327fecc1 entered into RCS 1992-04-24 08:11:28 +00:00
Jim Blandy
1464f5d50e *** empty log message *** 1991-12-21 07:03:14 +00:00
Richard M. Stallman
d953f30677 Initial revision 1991-03-04 02:59:40 +00:00