Mercurial > hg > xemacs-beta
comparison lib-src/gnuclient.c @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | b8cc9ab3f761 |
children | 697ef44129c6 |
comparison
equal
deleted
inserted
replaced
409:301b9ebbdf3b | 410:de805c49cfc1 |
---|---|
24 Author: Andy Norman (ange@hplb.hpl.hp.com), based on | 24 Author: Andy Norman (ange@hplb.hpl.hp.com), based on |
25 'etc/emacsclient.c' from the GNU Emacs 18.52 distribution. | 25 'etc/emacsclient.c' from the GNU Emacs 18.52 distribution. |
26 | 26 |
27 Please mail bugs and suggestions to the XEmacs maintainer. | 27 Please mail bugs and suggestions to the XEmacs maintainer. |
28 */ | 28 */ |
29 | |
30 /* #### This file should be a windows-mode, not console-mode program under | |
31 Windows. (i.e. its entry point should be WinMain.) gnuattach functionality, | |
32 to the extent it's used at all, should be retrieved using a script that | |
33 calls the i.exe wrapper program, to obtain stdio handles. | |
34 | |
35 #### For that matter, both the functionality of gnuclient and gnuserv | |
36 should be merged into XEmacs itself using a -remote arg, just like | |
37 Netscape and other modern programs. | |
38 | |
39 --ben */ | |
29 | 40 |
30 /* | 41 /* |
31 * This file incorporates new features added by Bob Weiner <weiner@mot.com>, | 42 * This file incorporates new features added by Bob Weiner <weiner@mot.com>, |
32 * Darrell Kindred <dkindred@cmu.edu> and Arup Mukherjee <arup@cmu.edu>. | 43 * Darrell Kindred <dkindred@cmu.edu> and Arup Mukherjee <arup@cmu.edu>. |
33 * GNUATTACH support added by Ben Wing <wing@xemacs.org>. | 44 * GNUATTACH support added by Ben Wing <wing@xemacs.org>. |
46 #include "getopt.h" | 57 #include "getopt.h" |
47 | 58 |
48 #include <stdio.h> | 59 #include <stdio.h> |
49 #include <stdlib.h> | 60 #include <stdlib.h> |
50 #include <sys/types.h> | 61 #include <sys/types.h> |
51 #define DONT_ENCAPSULATE | |
52 #include <sysfile.h> | 62 #include <sysfile.h> |
53 | 63 |
54 #ifdef HAVE_STRING_H | 64 #ifdef HAVE_STRING_H |
55 #include <string.h> | 65 #include <string.h> |
56 #endif /* HAVE_STRING_H */ | 66 #endif /* HAVE_STRING_H */ |
188 if (filename[0] && filename[0] == '/') | 198 if (filename[0] && filename[0] == '/') |
189 { | 199 { |
190 /* Absolute (unix-style) pathname. Do nothing */ | 200 /* Absolute (unix-style) pathname. Do nothing */ |
191 strcat (fullpath, filename); | 201 strcat (fullpath, filename); |
192 } | 202 } |
193 #ifdef __CYGWIN32__ | 203 #ifdef CYGWIN |
194 else if (filename[0] && filename[0] == '\\' && | 204 else if (filename[0] && filename[0] == '\\' && |
195 filename[1] && filename[1] == '\\') | 205 filename[1] && filename[1] == '\\') |
196 { | 206 { |
197 /* This path includes the server name (something like | 207 /* This path includes the server name (something like |
198 "\\server\path"), so we assume it's absolute. Do nothing to | 208 "\\server\path"), so we assume it's absolute. Do nothing to |