Mercurial > hg > xemacs-beta
comparison lib-src/gnudoit.c @ 78:c7528f8e288d r20-0b34
Import from CVS: tag r20-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:05:42 +0200 |
parents | 131b0175ea99 |
children | 1ce6082ce73f |
comparison
equal
deleted
inserted
replaced
77:6cb4f478e7bc | 78:c7528f8e288d |
---|---|
33 #include <stdio.h> | 33 #include <stdio.h> |
34 #include <sys/types.h> | 34 #include <sys/types.h> |
35 #include <unistd.h> | 35 #include <unistd.h> |
36 | 36 |
37 #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && !defined(INTERNET_DOMAIN_SOCKETS) | 37 #if !defined(SYSV_IPC) && !defined(UNIX_DOMAIN_SOCKETS) && !defined(INTERNET_DOMAIN_SOCKETS) |
38 main () | 38 int |
39 main (int argc, char *argv[]) | |
39 { | 40 { |
40 fprintf (stderr,"Sorry, the Emacs server is only supported on systems that have\n"); | 41 fprintf (stderr,"Sorry, the Emacs server is only supported on systems that have\n"); |
41 fprintf (stderr,"Unix Domain sockets, Internet Domain sockets or System V IPC.\n"); | 42 fprintf (stderr,"Unix Domain sockets, Internet Domain sockets or System V IPC.\n"); |
42 exit (1); | 43 exit (1); |
43 } /* main */ | 44 } /* main */ |
44 #else /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */ | 45 #else /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */ |
45 | 46 |
46 void | 47 int |
47 main(argc,argv) | 48 main(int argc, char *argv[]) |
48 int argc; | |
49 char *argv[]; | |
50 { | 49 { |
51 int qflg = 0; /* don't wait around for | 50 int qflg = 0; /* don't wait around for |
52 * gnu emacs to eval cmd */ | 51 * gnu emacs to eval cmd */ |
53 int errflg = 0; /* option error */ | 52 int errflg = 0; /* option error */ |
54 int c; /* char from getopt */ | 53 int c; /* char from getopt */ |
144 else | 143 else |
145 #else /* !SYSV_IPC */ | 144 #else /* !SYSV_IPC */ |
146 disconnect_from_server(s,!qflg); | 145 disconnect_from_server(s,!qflg); |
147 #endif /* !SYSV_IPC */ | 146 #endif /* !SYSV_IPC */ |
148 | 147 |
149 exit(0); | 148 return 0; |
150 | 149 |
151 } /* main */ | 150 } /* main */ |
152 | 151 |
153 #endif /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */ | 152 #endif /* SYSV_IPC || UNIX_DOMAIN_SOCKETS || INTERNET_DOMAIN_SOCKETS */ |