Commit graph

77 commits

Author SHA1 Message Date
Karl Heuer
67004ffb7a (get_system_name): Remove restriction on hostname size. 1994-02-02 06:20:58 +00:00
Richard M. Stallman
f389294647 (mkdir): Use MKDIR_PROTOTYPE if defined. 1994-01-26 20:55:19 +00:00
Richard M. Stallman
25ab68afb8 (request_sigio, unrequest_sigio): Add new versions of
these routines for the CX/UX operating system.
(sys_signal) [SA_RESTART]: Set this flag.
1994-01-15 13:04:09 +00:00
Richard M. Stallman
0f0ea22919 (sys_siglist) [sun]: Additional Sun-specific signal names. 1994-01-12 16:19:09 +00:00
Roland McGrath
bb4bc8e2ed Restore big block of #ifdef and #include lines for fcntl.h and friends,
apparently accidentally removed in 1994-01-03T07:21:12Z!rms@gnu.org.
1994-01-09 06:15:39 +00:00
Roland McGrath
7088d1cad7 [! VMS]: Don't declare sys_errlist here.
[! HAVE_STRERROR] (strerror): New function.
(dup2): Use strerror instead of sys_errlist.
1994-01-08 21:36:18 +00:00
Richard M. Stallman
207bdbdb29 [MSDOS]: #include <dos.h>, "dosfns.h", "msdos.h", and
<sys/param.h> needed for the following changes, but not <sys/ioctl.h>
(discard_tty_input) [MSDOS]: Do it by reading till no more keys available.
(init_baud_rate) [MSDOS]: Assume highest possible speed.
(sys_suspend) [MSDOS]: Save default directory.  Call via system, not via fork.
(emacs_get_tty, emacs_set_tty) [MSDOS]: Don't do anything.
(init_sys_modes) [MSDOS]: Use raw mode.
(get_frame_size) [MSDOS]: Get from bios.
(reset_sys_modes) [MSDOS]: Back to cooked mode.
(start_of_text) [MSDOS]: Reference _tstart.
(select) [MSDOS]: Don't use signals, use sleeping.
(init_sys_modes) [MSDOS]: Initialize internal terminal.
1994-01-08 09:18:29 +00:00
Richard M. Stallman
4f8804a1e5 (get_system_name): If the official name of the host is
not a fully qualified domain name, then try to find one in the
list of alternate names.
1994-01-03 07:21:12 +00:00
Richard M. Stallman
56b185250f [VMS] (wait_for_kbd_input): Call prepare_menu_bars. 1993-12-23 02:02:36 +00:00
Richard M. Stallman
1db6401ccd (closedir): Test BROKEN_CLOSEDIR, not INTERRUPTIBLE_CLOSE. 1993-11-26 10:40:27 +00:00
Richard M. Stallman
71f06467fd (init_baud_rate): Avoid referring to sg uninitialized. 1993-11-25 05:41:47 +00:00
Richard M. Stallman
cfdc57af95 (closedir): Pass on the value from sys_closedir.
Do use this definition, if INTERRUPTIBLE_CLOSE.
1993-11-24 08:02:26 +00:00
Richard M. Stallman
f4a7e5bd47 (getwd): If getcwd returns 0, we return 0.
(getwd for VMS): Likewise.

(read_input_waiting): read_socket_hook
delivers events, not characters.  Make buf smaller
in the case where we actually call read itself.
1993-11-23 11:06:13 +00:00
Richard M. Stallman
e89a2cd50e (sys_suspend): Use EMACS_GETPGRP macro. 1993-11-10 20:02:50 +00:00
Richard M. Stallman
a00d55893e (read_input_waiting): Don't mess with meta bit
if read_socket_hook is nonzero.

(LPASS8, LNOFLSH): Move definitions earlier.
(child_setup_tty): Turn on LPASS8.
1993-11-10 08:30:22 +00:00
Richard M. Stallman
1bf96fb5d0 (child_setup_tty): Make the pty handle 8-bit characters. 1993-11-06 05:14:07 +00:00
Brian Fox
b95520f5be (sys_write): Keep trying to write out the data until
all of the data is written, or until we receive an error which is
not an interrupted write.
1993-09-22 18:08:51 +00:00
Richard M. Stallman
739f36e243 (bzero, bcopy, bcmp): Don't define as functions
if they are defined as macros.
1993-09-12 12:36:30 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
64e971c33b (stuff_char): Use input_fd.
(narrow_foreground_group, widen_foreground_group, init_sys_modes)
(init_baud_rate, init_sigio, request_sigio, unrequest_sigio): Likewise.
(change_input_fd): New function.
1993-09-08 16:55:53 +00:00
Richard M. Stallman
039f26a48f (mkdir, rmdir): Use wait_for_termination to wait.
Redirect descriptors 0...2 to /dev/null.
1993-08-15 04:28:05 +00:00
Richard M. Stallman
94c8642adf Include syswait.h. 1993-08-15 03:53:33 +00:00
Jim Blandy
23524fb950 * config.h.in: Add #undefs for HAVE_MKDIR and HAVE_RMDIR, for
configure to edit.
* sysdep.c [not HAVE_MKDIR] (mkdir): New function, taken from tar,
for use on systems lacking the mkdir function.
[not HAVE_RMDIR] (rmdir): New function, taken from tar, for use on
systems lacking the rmdir function.
1993-08-03 07:02:38 +00:00
Richard M. Stallman
0e18d8ef78 (vfork): Move this outside the USG conditional. 1993-08-03 02:40:31 +00:00
Jim Blandy
46f2fdac02 * xterm.c, sysdep.c (F_SETOWN_BUG): Defined.
* m/dpx2.h: New file.
1993-07-18 06:27:15 +00:00
Jim Blandy
19c7afdf57 * sysdep.c (rename): Make arguments const. autoconf #defines
const away on systems which don't have it; any system with
	prototypes will declare the arguments const (the ones to which I
	have access do); and systems without prototypes won't notice.
1993-06-19 21:07:02 +00:00
Jim Blandy
5a570e3721 Changes for Irix 4.0, tested this time:
* s/irix4-0.h: Get rid of our fake definitions for setpgrp and
	getpgrp.
	* callproc.c (Fcall_process): Go ahead and use the USG calling
	convention for setpgrp.
	* ymakefile (pre-crt0.o): Add rule for this.  Perhaps it will help
	separate-source-directory compilation.
	* emacs.c (shut_down_emacs): Some USG systems #define
	EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems.
	* sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and
	non-USG.
	* process.c [IRIX] (create_process): Don't put child in process
	group zero before opening the tty; Irix is like USG in this
	regard.
1993-06-18 23:33:20 +00:00
Jim Blandy
65aa44ac9b Changes for correct pgrp behavior; approach suggested by Bob
Glickstein <bobg@zindigo.z-code.com>:
	* m/iris4d.h (LIB_STANDARD): Do list -lbsd here.
	* s/irix4-0.h (getpgrp, setpgrp): #define these to call BSDgetpgrp
	and BSDsetpgrp.
	(GETPGRP_NO_ARG): Don't #define this.
	* emacs.c (main): Don't test GETPGRP_NO_ARG.
	* sysdep.c (sys_suspend): Don't test GETPGRP_NO_ARG.

	* config.h.in (HAVE_CLOSEDIR): Add an #undef for autoconf to
	change.
	* sysdep.c (closedir): Only define this if autoconf can't find
	HAVE_CLOSEDIR.  If we're running under solaris (defined (sun) &&
	defined (USG5_4)), then don't free the buffer separately.
1993-06-17 04:58:27 +00:00
Jim Blandy
1b929d2579 * sysdep.c (closedir): Don't free directory buffer if it looks
like it and the DIR were malloced together.
1993-06-16 20:31:01 +00:00
Jim Blandy
37fd7901b2 * sysdep.c [ultrix] (init_sys_modes): Don't set LLITOUT; it
disables the meta key.
1993-06-16 20:02:58 +00:00
Jim Blandy
a6d570c637 * sysdep.c (child_setup_tty): Remove duplicate settings for VQUIT
and VINTR.
1993-06-12 17:46:44 +00:00
Jim Blandy
9ae8f99795 Interact properly with shells lacking job control (sh, rc, es...)
* sysdep.c [BSD] (inherited_pgroup): New variable.
	(narrow_foreground_group, widen_foreground_group): New functions.
	(init_sys_modes): Call narrow_foreground_group.
	(reset_sys_modes): Call widen_foreground_group.
	* emacs.c [BSD] (inherited_pgroup): Add extern declaration.
	[BSD] (main): Set inherited_pgroup, and put ourselves in our own
	pgroup.
1993-06-11 16:22:03 +00:00
Jim Blandy
411c533fd2 * sysdep.c: Remove clause for DGUX support of FASYNC; add clause
to #undef FASYNC if BROKEN_FASYNC is #defined.
1993-06-10 06:21:19 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
d7272cff92 (init_baud_rate) [HAVE_TERMIOS]: Use cfgetospeed. 1993-06-07 23:57:08 +00:00
Richard M. Stallman
92c995de73 (wait_for_termination): Fix sigpause in POSIX_SIGNALS case.
(init_sys_modes): Disable VLNEXT char.
Also VWERASE, VREPRINT, VDISCARD.

(sys_suspend): Handle GETPGRP_NO_ARG.
1993-06-04 05:22:19 +00:00
Richard M. Stallman
056956218a (wait_for_termination): Delete LINUX conditionals. 1993-05-31 01:12:05 +00:00
Richard M. Stallman
e6cc330751 (child_setup_tty) [AIX SIGNALS_VIA_CHARACTERS]: Install
something usefull in the VQUIT and VINTR.
(emacs_set_tty): Try only 10 times to call tcsetattr.
Don't use memcmp to test what it did.
1993-05-30 21:37:57 +00:00
Richard M. Stallman
9ab714c7b0 (wait_for_termination): Add POSIX_SIGNALS alternative. 1993-05-30 18:34:54 +00:00
Richard M. Stallman
4a785b6e96 (sys_signal): Use 0, not NULL, to set sa_flags. 1993-05-30 04:46:39 +00:00
Jim Blandy
70080de127 * sysdep.c (sys_siglist): Comment out #endif trailer. 1993-05-29 20:44:59 +00:00
Richard M. Stallman
4ca7594fbd (gettimeofday): Don't store in *tzp if tzp is 0. 1993-05-29 05:05:40 +00:00
Jim Blandy
50b8cf6032 * systty.h (HAVE_LTCHARS, HAVE_TCHARS): New macros; define them if
we have those structures, but *don't* define them if we have
	TERMIOS, whose functions take care of those parameters; that
	screws up AIX.
	(struct emacs_tty): Test those symbols, instead of the ioctl
	commands.
	* sysdep.c (emacs_get_tty, emacs_set_tty, new_ltchars, new_tchars,
	init_sys_modes): Same.
1993-05-27 02:12:20 +00:00
Richard M. Stallman
f8a8031332 [HAVE_SOCKETS]: Include socket.h, netdb.h.
(get_system_name) [HAVE_SOCKETS]: Use gethostbyname.
1993-05-26 23:14:00 +00:00
Richard M. Stallman
5f3461a550 (wait_for_termination) [LINUX]: Use the UNIPLUS alternative. 1993-05-25 23:23:53 +00:00
Richard M. Stallman
280073d7a6 (wait_for_termination): Don't use the BSD alternative for LINUX. 1993-05-25 23:22:08 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Richard M. Stallman
4c8975adc5 (wait_for_termination): Copy code from 18.59 (but sans BSD4_1 alternatives). 1993-05-21 23:42:36 +00:00
Jim Blandy
ffafc79306 * sysdep.c (sys_suspend): Set synch_process_alive, so that
wait_for_termination has something to wait for.
1993-05-21 22:33:45 +00:00
Jim Blandy
00eaaa321c Some changes from Michael K. Johnson for Linux.
* sysdep.c (sys_siglist): Don't define this if HAVE_SYS_SIGLIST is
	#defined.  That lets the system provide it, if it has it.
	* syssignal.h (sigmask): Only define this if <signal.h> hasn't
	given us a definition already.
	* syssignal.h (sys_sigpause): Fix argument in prototype.
	* sysdep.c (init_signals): The masks are called empty_mask and
	full_mask, not signal_empty_mask and signal_full_mask.
	(signal_handler_t): Moved ....
	* syssignal.h: ... to here.
	* systty.h (EMACS_SET_TTY_PGRP): Call tcsetpgrp with the correct
	arguments.
	* emacs.c (main): Don't try to establish signal handlers for
	SIGBUS and SIGSYS unless they're actually #defined.
1993-05-19 22:01:35 +00:00