Mercurial > emacs
comparison lib-src/emacsclient.c @ 478:84799f3f3488
*** empty log message ***
author | Michael I. Bushnell <mib@gnu.org> |
---|---|
date | Thu, 09 Jan 1992 06:37:22 +0000 |
parents | 3cc2c5136064 |
children | 8b101799ff37 |
comparison
equal
deleted
inserted
replaced
477:ab9a55b26bd4 | 478:84799f3f3488 |
---|---|
1 /* Client process that communicates with GNU Emacs acting as server. | 1 /* Client process that communicates with GNU Emacs acting as server.` |
2 Copyright (C) 1986, 1987 Free Software Foundation, Inc. | 2 Copyright (C) 1986, 1987 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 |
49 #include <sys/types.h> | 49 #include <sys/types.h> |
50 #include <sys/socket.h> | 50 #include <sys/socket.h> |
51 #include <sys/un.h> | 51 #include <sys/un.h> |
52 #include <stdio.h> | 52 #include <stdio.h> |
53 #include <errno.h> | 53 #include <errno.h> |
54 | |
55 #ifndef SERVER_HOME_DIR | |
56 #include <sys/stat.h> | |
57 #endif | |
54 | 58 |
55 extern int sys_nerr; | 59 extern int sys_nerr; |
56 extern char *sys_errlist[]; | 60 extern char *sys_errlist[]; |
57 extern int errno; | 61 extern int errno; |
58 | 62 |
64 int s, i; | 68 int s, i; |
65 FILE *out; | 69 FILE *out; |
66 struct sockaddr_un server; | 70 struct sockaddr_un server; |
67 char *homedir, *cwd, *str; | 71 char *homedir, *cwd, *str; |
68 char string[BUFSIZ]; | 72 char string[BUFSIZ]; |
73 #ifndef SERVER_HOME_DIR | |
74 struct stat statbfr; | |
75 #endif | |
69 | 76 |
70 char *getenv (), *getwd (); | 77 char *getenv (), *getwd (); |
71 int geteuid (); | 78 int geteuid (); |
72 | 79 |
73 if (argc < 2) | 80 if (argc < 2) |