Commit Graph

1444 Commits

Author SHA1 Message Date
itojun 80c664d730 implement -u <len>. PR 13676 2002-01-31 07:54:50 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
augustss d904dc6dd8 Make it compile again (vmstat change fallout). 2002-01-28 13:10:01 +00:00
skrll 04206c0a21 Install the man page on a.out systems as well so that the man set is the
same for all.
2002-01-23 15:10:24 +00:00
skrll 43a1bb37fd Add a uuencoded binary of a.out arm32 ld.so and update Makefile to extract
on ELF platforms.

This file was created using the following revisions:

	ld.h,v 1.2 1998/12/17 23:36:38 pk
	malloc.c,v 1.7 2000/11/28 06:01:34 mycroft
	rtld.c,v 1.82 2001/09/20 20:55:29 wiz
	shlib.c,v 1.18 2000/05/27 06:53:30 matt
	shlib.h,v 1.1 1998/12/15 23:16:14 pk

arm32 specific files:

	md-static-funcs.c,v 1.1 1997/10/17 21:25:42 mark
	md.c,v 1.11 1999/02/27 03:34:05 tv
	md.h,v 1.4 2000/05/28 01:53:05 matt
	mdprologue.S,v 1.1 1997/10/17 21:25:59 mark
2002-01-22 16:27:51 +00:00
tron ace258d3b2 Handle ".Xr" commands with text after the section number probably.
This fixes PR bin/15253 by Thomas Klausner.
2002-01-21 12:21:31 +00:00
lukem 0d1261454e in closedataconn(), only close the passive data fd if the main data
descriptor was set by dataconn().  this fixes a problem for clients (such
as lynx and netscape) that only sent PASV/EPSV after a transfer (RETR, LIST,
STOR) started and returned 150.  certain command sequences could return 550
(etc) before setting up the dataconn(), and would run into this bug. netbsd's
ftp didn't hit this bug because it always sends PASV/EPSV before a new
transfer command.
2002-01-21 11:25:20 +00:00
itojun 9a09fa34fb reject SIZE request for ascii file if it exceeds 10k. 2002-01-17 05:21:47 +00:00
wiz ec571c2b63 Sort sections, drop effectively empty section. 2002-01-15 02:29:01 +00:00
wiz 4a62f5dc2d Drop an unnecessary .Pp. 2002-01-15 02:28:41 +00:00
wiz 65eb66d185 Whitespace and punctuation nits, comment out an option that does not concern NetBSD. 2002-01-15 02:28:22 +00:00
wiz 7642cb7ddf Whitespace nits. 2002-01-15 02:27:15 +00:00
wiz 888bbaf308 Whitespace nits, sort SEE ALSO. 2002-01-15 02:27:03 +00:00
wiz c0196b8ad0 Whitespace nits. 2002-01-15 02:26:48 +00:00
wiz 42f6cf520c Whitespace nits, sort sections. 2002-01-15 02:25:49 +00:00
wiz 35f640eded Punctuation nit. 2002-01-15 02:25:08 +00:00
wiz 110806f773 Sort sections. 2002-01-15 02:24:28 +00:00
wiz 02dda53455 Whitespace nit, mark up AUTHORS section, use standard headers, sort sections, end sentences with dots. 2002-01-15 02:24:15 +00:00
wiz b519c70ad7 Whitespace nit. 2002-01-15 02:23:28 +00:00
wiz 0e2b950705 Whitespace nits, sort SEE ALSO. 2002-01-15 02:23:17 +00:00
wiz 3b66e5c46d Drop some unnecessary .Pps. 2002-01-15 02:22:54 +00:00
wiz a493296832 Whitespace nits and fix xref section. 2002-01-15 02:22:28 +00:00
wiz 93b02fcb18 Sort sections and fix punctuation nit. 2002-01-15 02:22:11 +00:00
wiz b5fd5ad5b4 Sort sections and SEE ALSO. 2002-01-15 02:21:49 +00:00
wiz ec1b82e5ef Whitespace nits, sort sections. 2002-01-15 02:21:30 +00:00
wiz e705d08049 Whitespace nits, sort sections, end sentences with dots. 2002-01-15 02:21:13 +00:00
wiz 9a07d0cef5 Whitespace nits. 2002-01-15 02:20:50 +00:00
wiz d62151d8f4 Drop some unnecessary .Pps, sort SEE ALSO, whitespace nits. 2002-01-15 02:20:37 +00:00
wiz f427fba7da Sort sections. 2002-01-15 02:19:36 +00:00
wiz e83c534de9 Formatting improvements, sort SEE ALSO and sections. 2002-01-15 02:19:26 +00:00
christos 94faea123b - fix whitespace nits.
- change error checking philosophy: instead of returning errors to the
  upper layer only to fail silently and exit there, or die of unexpected
  NULL pointers bail out and print an error immediately. Add emalloc/estrdup
  to simplify. This change removed a bunch of code.
- fix size_t/int confusion
- cast argument to isspace(3) to unsigned char
- ? : statement is not an lvalue, so don't take its address.
- unlink the file before we open it, because we chmod it to readonly.
- misc KNF
2002-01-11 18:33:03 +00:00
itojun da4f6b8247 daemon(3) should be used prior to file descriptor setups. 2002-01-11 05:18:11 +00:00
eeh 0edae4622b Do not attempt to relocate any pltrela entries that are not JMP_SLOT on sparc64. 2002-01-06 03:54:42 +00:00
tv f8e3b0e1e5 Revert rev. 1.30 (partly). If MKPICINSTALL=no in mk.conf, libc_pic.a will
NOT be installed by the time we build here.

However, allow the link to look in both src/lib/libc and $DESTDIR/usr/lib.
2002-01-04 19:08:04 +00:00
lukem dc75a614e2 - Allow RTLD_DEFAULT_LIBRARY_PATH to be overridden.
- If ${SHLIBDIR} != ${LIBDIR}, then set RTLD_DEFAULT_LIBRARY_PATH to
  ${SHLIBDIR}:${LIBDIR}
2001-12-28 05:44:22 +00:00
lukem a5d8d0231c if SHLINKDIR != /usr/libexec, install compat symlink 2001-12-28 05:30:24 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
2001-12-28 01:32:37 +00:00
soren dc53bf3cba Sync getopt() / man page with actual getopt options. 2001-12-20 20:10:33 +00:00
thorpej b3827960df Grumble. Put compiler options back into CPPFLAGS for now, since
they're needed to build .S files with the correct PIC options.

XXX Really needs cleanup in <bsd.*.mk> to do this properly.
2001-12-20 19:20:02 +00:00
thorpej 8438068b4a Small whitespace fix. 2001-12-20 06:54:25 +00:00
thorpej 7b26e004dc Update README. Still not complete. 2001-12-20 06:49:03 +00:00
thorpej 04eaa333b6 Upon further investigation, do NOT include an addend in RELATIVE
relations (the addend should always be zero, but this is safer).
2001-12-20 02:32:49 +00:00
thorpej fe822e84da Include the addend in GLOB_DAT relocations (!!). 2001-12-20 02:23:24 +00:00
thorpej 240ebfc364 * Move The Alpha R(RELATIVE) handling into an Alpha-specific code block,
thus isolating the "iffy hueristic" from the rest of the relocation code.
* In the "iffy hueristic", use _GOT_END_, not _DYNAMIC.
* Include the addend in Alpha R(RELATIVE) relocations.
2001-12-16 08:23:25 +00:00
thorpej 7dcc71da1d Don't put compiler options into CPPFLAGS. 2001-12-14 22:21:45 +00:00
thorpej 151a90b5ce ...and the other other missing notice. 2001-12-14 22:11:47 +00:00
thorpej d63d6c6cea Add other missing copyright notice. 2001-12-14 22:07:23 +00:00
fvdl 02f3677f38 Add missing copyright notice. 2001-12-14 21:33:59 +00:00
thorpej 6d9f5579ab Garbage-collect the OLD_GOT stuff. 2001-12-14 21:25:22 +00:00
thorpej c7e9af3ef0 binutils-current ld emits DT_TEXTREL into _DYNAMIC on arm-elf. Handle
this.
2001-12-14 21:21:27 +00:00