Mercurial > emacs
comparison lib-src/emacsserver.c @ 26083:134b57acef68
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.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Tue, 19 Oct 1999 07:17:20 +0000 |
parents | 95f7147cb572 |
children | a3e7758ab661 |
comparison
equal
deleted
inserted
replaced
26082:3002a7df8351 | 26083:134b57acef68 |
---|---|
1 /* Communication subprocess for GNU Emacs acting as server. | 1 /* Communication subprocess for GNU Emacs acting as server. |
2 Copyright (C) 1986, 1987, 1992, 1994 Free Software Foundation, Inc. | 2 Copyright (C) 1986, 1987, 1992, 1994, 1999 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GNU Emacs. | 4 This file is part of GNU Emacs. |
5 | 5 |
6 GNU Emacs is free software; you can redistribute it and/or modify | 6 GNU Emacs is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
24 This program accepts communication from client (program emacsclient.c) | 24 This program accepts communication from client (program emacsclient.c) |
25 and passes their commands (consisting of keyboard characters) | 25 and passes their commands (consisting of keyboard characters) |
26 up to the Emacs which then executes them. */ | 26 up to the Emacs which then executes them. */ |
27 | 27 |
28 #define NO_SHORTNAMES | 28 #define NO_SHORTNAMES |
29 #include <../src/config.h> | |
29 #include <signal.h> | 30 #include <signal.h> |
30 #include <../src/config.h> | |
31 #undef read | |
32 #undef write | |
33 #undef open | |
34 #undef close | |
35 #undef signal | 31 #undef signal |
36 | 32 |
37 #if !defined (HAVE_SOCKETS) && !defined (HAVE_SYSVIPC) | 33 #if !defined (HAVE_SOCKETS) && !defined (HAVE_SYSVIPC) |
38 #include <stdio.h> | 34 #include <stdio.h> |
39 | 35 |
61 #include <errno.h> | 57 #include <errno.h> |
62 #include <sys/stat.h> | 58 #include <sys/stat.h> |
63 | 59 |
64 #ifdef HAVE_UNISTD_H | 60 #ifdef HAVE_UNISTD_H |
65 #include <unistd.h> | 61 #include <unistd.h> |
66 #endif | |
67 | |
68 #ifdef STDC_HEADERS | |
69 #include <stdlib.h> | |
70 #endif | 62 #endif |
71 | 63 |
72 #ifndef errno | 64 #ifndef errno |
73 extern int errno; | 65 extern int errno; |
74 #endif | 66 #endif |