Mercurial > emacs
comparison src/sysdep.c @ 621:eca8812e61cd
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Fri, 24 Apr 1992 08:11:54 +0000 |
parents | e2782df984a2 |
children | 2bb7f23b7ea5 |
comparison
equal
deleted
inserted
replaced
620:88a29c720fa7 | 621:eca8812e61cd |
---|---|
108 #else /* not 4.1 */ | 108 #else /* not 4.1 */ |
109 #include <sys/wait.h> | 109 #include <sys/wait.h> |
110 #endif /* not 4.1 */ | 110 #endif /* not 4.1 */ |
111 #endif /* BSD */ | 111 #endif /* BSD */ |
112 | 112 |
113 #ifdef AIX | |
114 /* Get files for keyboard remapping */ | |
115 #define HFNKEYS 2 | |
116 #include <sys/hft.h> | |
117 #include <sys/devinfo.h> | |
118 #endif | |
119 | |
120 /* Get rid of LLITOUT in 4.1, since it is said to stimulate kernel bugs. */ | |
121 #ifdef BSD4_1 | |
122 #undef LLITOUT | |
123 #define LLITOUT 0 | |
124 #endif /* 4.1 */ | |
125 | |
126 #ifdef BROKEN_TIOCGWINSZ | 113 #ifdef BROKEN_TIOCGWINSZ |
127 #undef TIOCGWINSZ | 114 #undef TIOCGWINSZ |
128 #endif | 115 #endif |
129 | 116 |
130 #ifdef USG | 117 #ifdef USG |
141 #include <sys/stream.h> | 128 #include <sys/stream.h> |
142 #include <sys/ptem.h> | 129 #include <sys/ptem.h> |
143 #endif | 130 #endif |
144 #endif /* TIOCGWINSZ */ | 131 #endif /* TIOCGWINSZ */ |
145 #endif /* USG */ | 132 #endif /* USG */ |
146 | |
147 #ifdef NEED_BSDTTY | |
148 #include <sys/bsdtty.h> | |
149 #endif | |
150 | |
151 #if defined (HPUX) && defined (HAVE_PTYS) | |
152 #include <sys/ptyio.h> | |
153 #endif | |
154 | |
155 #ifdef AIX | |
156 #include <sys/pty.h> | |
157 #include <unistd.h> | |
158 #endif /* AIX */ | |
159 | |
160 #ifdef SYSV_PTYS | |
161 #include <sys/tty.h> | |
162 #include <sys/pty.h> | |
163 #endif | |
164 | |
165 /* saka@pfu.fujitsu.co.JP writes: | |
166 FASYNC defined in this file. But, FASYNC don't working. | |
167 so no problem, because unrequest_sigio only need. */ | |
168 #if defined (pfa) | |
169 #include <sys/file.h> | |
170 #endif | |
171 | 133 |
172 extern int quit_char; | 134 extern int quit_char; |
173 | 135 |
174 #include "screen.h" | 136 #include "screen.h" |
175 #include "window.h" | 137 #include "window.h" |
2346 * Emulate rename using unlink/link. Note that this is | 2308 * Emulate rename using unlink/link. Note that this is |
2347 * only partially correct. Also, doesn't enforce restriction | 2309 * only partially correct. Also, doesn't enforce restriction |
2348 * that files be of same type (regular->regular, dir->dir, etc). | 2310 * that files be of same type (regular->regular, dir->dir, etc). |
2349 */ | 2311 */ |
2350 | 2312 |
2313 #ifndef HAVE_RENAME | |
2314 | |
2351 rename (from, to) | 2315 rename (from, to) |
2352 char *from; | 2316 char *from; |
2353 char *to; | 2317 char *to; |
2354 { | 2318 { |
2355 if (access (from, 0) == 0) | 2319 if (access (from, 0) == 0) |
2360 return (0); | 2324 return (0); |
2361 } | 2325 } |
2362 return (-1); | 2326 return (-1); |
2363 } | 2327 } |
2364 | 2328 |
2329 #endif | |
2330 | |
2365 /* Set priority value to PRIO. */ | 2331 /* Set priority value to PRIO. */ |
2366 | 2332 |
2367 void | 2333 int |
2368 setpriority (which, who, prio) | 2334 setpriority (which, who, prio) |
2369 int which, who, prio; | 2335 int which, who, prio; |
2370 { | 2336 { |
2371 int nice (); | 2337 int nice (); |
2372 | 2338 |