Commit Graph

21 Commits

Author SHA1 Message Date
Pavel Roskin
5b2bd08768 * configure.in: Remove test for SCO UNIX. Remove all references
to SCO_FLAVOR everywhere.  SCO flavor is rather unsavory now.
2003-06-18 04:47:17 +00:00
Andrew V. Samoilov
8384e94b0b * cons.handler.c (set_attr) [__FreeBSD__]: Fix compilation.
Reported by Dmitry Alexeyev <dmi_a@qnx.org.ru>.
2003-03-22 17:27:21 +00:00
Andrew V. Samoilov
8e810942f8 * cons.handler.c (set_attr) [__FreeBSD__]: Eliminate cmd array. 2003-03-05 19:38:50 +00:00
Pavel Roskin
818b4956ea * cons.handler.c (console_init) [__FreeBSD__]: Fix the amount of
allocated memory.
(console_save) [__FreeBSD__]: Doen't exit on error, just return.
2003-03-05 17:52:58 +00:00
Pavel Roskin
7092f9e1e2 * cons.handler.c (show_console_contents_freebsd): Rewrite
to use screen library (S-Lang or ncurses).  Direct output is
unreliable when the screen library is active.
2003-03-05 09:29:31 +00:00
Pavel Roskin
6b986e7547 Don't include main.h - it's not needed. 2003-02-27 05:01:40 +00:00
Pavel Roskin
e65f20852b * cons.handler.c: Put checks for rxvt extensions in one place.
Simplify FreeBSD code.
2003-02-27 04:57:58 +00:00
Pavel Roskin
a8a0f0c17a * cons.handler.c: Add implementation for FreeBSD 4.x and 5.x. 2003-02-26 19:14:52 +00:00
Pavel Roskin
c785d4195b * global.h: Move fcntl.h inclusion here. Define O_BINARY.
* mountlist.c: Remove more includes already handled in global.h.
2002-09-23 06:43:22 +00:00
Pavel Roskin
6979a9fddf * Makefile.am: Rename LIBDIR to DATADIR, since it refers to
pkgdatadir now.  Install cons.saver to pkglibdir, pass it to the
compiler as LIBDIR.
* cons.handler.c (handle_console): Use LIBDIR.
* main.c (OS_Setup): Use DATADIR instead of LIBDIR.  Rename
MC_LIBDIR to MC_DATADIR.
2002-09-22 00:13:32 +00:00
Pavel Roskin
2af1e85990 * cons.handler.c (handle_console): Use _exit(), not exit() in
the child.
2002-08-20 00:04:49 +00:00
Pavel Roskin
c11389facb * global.h: Include io.h, pwd.h, grp.h and utime.h. Adjust all
sources not to include them and to include global.h at the right
place.
2001-09-07 17:52:19 +00:00
Pavel Roskin
689c3fb9ac Replace "Can't" with "Cannot" everywhere. 2001-08-14 00:55:34 +00:00
Pavel Roskin
5c56eb0c5a * cons.handler.c: Reorganize includes. Fix warnings on BSD.
* rxvt.c (rxvt_extensions): Make static.
* main.c (sigchld_handler_no_subshell) [!__linux__]: Don't try
to restart cons.saver.
* subshell.c (sigchld_handler) [!__linux__]: Likewise.
2001-06-22 23:29:18 +00:00
Pavel Roskin
8c1534e4e6 * cons.handler.c (handle_console): Remove useless default.
* ext.c (regex_command): Initialize include_target_len.
* find.c [HAVE_GNOME]: Eliminate untyped declarations.
* fsusage.c: Remove untyped declaration of statfs().
[_AIX && _I386]: Rename statfs to aix_statfs and move
it before get_fs_usage(). Define statfs to aix_statfs.
2001-06-14 23:28:54 +00:00
Pavel Roskin
26ae59b93e * cons.handler.c: Include "global.h" for exit(). 2001-04-06 16:24:27 +00:00
Pavel Roskin
0c940743b3 * cons.handler.c (handle_console): Check the result of ttyname(). 2001-01-27 07:08:05 +00:00
Pavel Roskin
e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Timur Bakeyev
a39568367e Glibing..... (2)
Wed Jan 27 03:17:44 1999  Timur Bakeyev <mc@bat.ru>

	* Converted memory managment to Glib. Now we use g_new()/g_malloc()/
	g_strdup()/g_free() routings. Also, copy_strings() replaced by
	g_strconcat(), strcasecmp() -> g_strcasecmp(),and sprintf() by
	g_snprintf().

	* Some sequences of malloc()/sprintf() changed to g_strdup_printf().

	* mad.[ch]: Modified, to work with new GLib's memory managment. Fixed
	a missing #undef for tempnam, which caused dead loop. Add several new
	functions to emulate GLib memory managment.

	*main.c, mad.[ch]: Add a new switch  "-M", which allows to redirect MAD
	messages to the file.

	* util.[ch], utilunix.c: Modified, deleted our variants of strcasecmp()
	and strdup() - we have g_ equivalences. Remove get_full_name() - it is
	similar to concat_dir_and_file(). Some other tricks with g_* functions.

	* global.h: Modified, extended. Now it is main memory mangment include -
	i.e. all inclusions of <stdlib.h>, <malloc.h>, <glib.h>, "fs.h", "mem.h",
	"util.h" and "mad.h" done there. This elimanates problem with proper or-
	der of #include's.

	* All around the source - changed order of #include's, most of them gone
	to global.h (see above), minor changes, like "0" -> NULL in string func-
	tions.
1999-01-27 01:08:30 +00:00
Miguel de Icaza
77c27f6130 Make program relocatable trough MCHOME variable, patch from Ludovic Drolez 1998-08-26 20:23:10 +00:00
Miguel de Icaza
eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00