Commit Graph

481 Commits

Author SHA1 Message Date
Philippe Charnier 99e2b73dd8 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:37:43 +00:00
Philippe Charnier c92c0f2628 .Sh AUTHOR -. .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:37:22 +00:00
John Polstra 59f198d1ff Enable rtld-elf when building an ELF system on the i386. 1998-03-07 19:43:48 +00:00
John Polstra 3124c3e093 Import the ELF dynamic linker. This is the ElfKit version with
quite a few enhancements and bug fixes.  There are still some known
deficiencies, but it should be adequate to get us started with ELF.

Submitted by:	John Polstra <jdp@polstra.com>
1998-03-07 19:24:35 +00:00
Daniel O'Callaghan 20d2e1ee59 PR: 5812
Pointed-in-the-right-driection-by: Mike Smith and Steve Price

Close syslogging before calling ls_main()
1998-02-25 07:10:57 +00:00
Eivind Eklund f5c57d05c1 Make ftpd log IP-addresses in addition to hostnames. 1998-02-24 08:45:57 +00:00
David E. O'Brien f97d7807ad MFS. 1998-02-18 10:53:16 +00:00
John Polstra 663690b388 Implement dladdr. 1998-02-06 16:46:46 +00:00
Philippe Charnier 81389de071 Convert to mdoc. Header -> Id. Typo. 1998-02-03 07:30:22 +00:00
Poul-Henning Kamp 55d6f63f1c Remove lfs_cleanerd 1998-01-30 12:36:10 +00:00
Poul-Henning Kamp 4f4a34fffa Disable lfs_cleanerd 1998-01-30 12:35:10 +00:00
Bruce Evans 81d50a41f6 Merged just enough files from Lite2 in lfs_cleanerd to convert from
MOUNT_LFS to "lfs" in one place.  The merge was painful because it
conflicted with cosmetic FreeBSD changes.  lfs_cleanerd still compiles
cleanly but has aproximately the same chance of working as before (0).
1998-01-20 14:41:53 +00:00
Bill Paul e4a0e42ba8 Make these programs compile and work correctly now that /usr/include/rpcsvc
has been ANSI-fied.

Pointed out by: bde
1998-01-19 23:13:38 +00:00
Bruce Evans cc03533c8d Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
Philippe Charnier 4493ca0bce Add missing dot. 1998-01-07 07:56:15 +00:00
Philippe Charnier fcccc2999a Remove unused #includes and make it compile again with -DDEBUG. Use syslog()
instead of errx() when being a daemon.
1998-01-07 07:54:18 +00:00
Philippe Charnier 859c540701 Remove unused #include. Display if inetd started us in case of failure. 1998-01-07 07:51:00 +00:00
Philippe Charnier 09c4476e4e Typos. 1998-01-07 07:44:01 +00:00
Masafumi Max NAKANE b1d9db7283 Typo fix: bootgw -> bootpgw 1997-12-29 13:59:28 +00:00
Warner Losh a82e63028f style(9) nits
Submitted by:	bde
1997-12-26 23:36:43 +00:00
Warner Losh d83662583c sprintf->snprintf paranoia
Obtained from: OpenBSD (?)
1997-12-24 19:39:57 +00:00
Warner Losh 45b3189258 Be extra paranoid about the length of data returned from gethostbyaddr or
gethostbyname.
Submitted by:	Julian Assange
1997-12-24 19:38:18 +00:00
Warner Losh d3a9dd61ac sprintf->snprintf paranoia. The one thing that looks like a hole in
the diff is in an ifdef that isn't enabled for FreeBSD.
Obtained from:	OpenBSD(?)
1997-12-24 19:21:09 +00:00
Warner Losh e760ef2c35 Various sprintf -> snprintf fixes.
Minor style fix (strcpy(foo,"") -> *foo = '\0')
Obtained from:	OpenBSD(?)
1997-12-24 19:13:23 +00:00
Warner Losh 9bc34f7ce1 Use snprintf rather than printf out of paranoia
Obtained from:	OpenBSD
1997-12-24 18:56:03 +00:00
Philippe Charnier 5802420635 Typo. 1997-12-18 07:39:27 +00:00
Philippe Charnier 20e9e8236d Cosmetic in usage string. 1997-12-15 07:19:41 +00:00
Philippe Charnier 27eed7e3b4 Use full path in synopsis. Sort #includes. Use .Tn for NIS. 1997-12-08 07:49:56 +00:00
Philippe Charnier 38de36c41c Sync with diffs I found in kerberised versions: -Wall, no `;' in macros. 1997-12-08 07:46:53 +00:00
John Polstra 6210388a93 Make emacs work again. This is a workaround for the fact that the
emacs a.out file, self-generated by emacs's "unexec" function in
"unexsunos4.c", is invalid.  In particular, its "_end" symbol has
the wrong value.  The dynamic linker was using the value of that
symbol to initialize its sbrk break level.

The workaround is to peek at the executable's a.out header in
memory, and calculate what "_end" should be based on the segment
sizes.

I will work out a fix for emacs and send it to the FSF.  This
dynamic linker workaround is still worthwhile, if only to avoid
forcing all emacs users to build a new version.

Note: xemacs gives a bogus warning at startup, for related reasons.
The warning is harmless and can safely be ignored.  I will send a
patch to the xemacs maintainers to get rid of it, and meanwhile
add a patch file to our port.
1997-12-05 02:06:37 +00:00
Philippe Charnier 14d460e1b4 Use err(3). Add prototypes. Document that startup scripts are rc.i386 and
rc.conf (enable/disable) not rc.local.
Use full pathname in SYNOPSIS section.
1997-12-04 07:25:19 +00:00
Philippe Charnier 8cda9fcc0d Sort #includes. Add rcsid. Use full pathname in SYNOPSIS section. 1997-12-04 07:20:45 +00:00
Steve Price 59c780cdc1 FTP_INTERNAL_LS -> FTPD_INTERNAL_LS
Pointed out by:	Jaye Mathisen <mrcpu@cdsnet.net>
1997-12-04 03:58:02 +00:00
Philippe Charnier a8faeabc96 Use full path in synopsis. Syslog will add trailing \n. 1997-12-03 07:19:58 +00:00
Philippe Charnier 5f806c3ccf Use err(3). Remove progname and trailing \n in syslog strings. 1997-12-03 07:16:08 +00:00
Philippe Charnier a846453c5e Use err(3). Add protos for -Wall. 1997-12-02 12:33:42 +00:00
Philippe Charnier a40772799f No \n in syslog() strings. Add man page to Xrefs. Change null byte to NUL byte. 1997-12-02 12:30:04 +00:00
Philippe Charnier c7c2ef669a Do not terminate syslog() messages with a dot, as others daemons do. 1997-12-02 12:25:39 +00:00
Philippe Charnier 40150947c4 Document -n flag. Use err(3). Add usage.
Add syslog capability.
1997-12-02 12:20:17 +00:00
John Polstra 08bdd3d27d Get rid of the dynamic linker's internal malloc package, and arrange
things so that it uses the same malloc as is used by the program
being executed.  This has several advantages, the big one being
that you can now debug core dumps from dynamically linked programs
and get useful information out of them.  Until now, that didn't
work.  The internal malloc package placed the tables describing
the loaded shared libraries in a mapped region of high memory that
was not written to core files.  Thus the debugger had no way of
determining what was loaded where in memory.  Now that the dynamic
linker uses the application's malloc package (normally, but not
necessarily, the system malloc), its tables end up in the regular
heap area where they will be included in core dumps.  The debugger
now works very well indeed, thank you very much.

Also ...

Bring the program a little closer to conformance with style(9).
There is still a long way to go.

Add minimal const correctness changes to get rid of compiler warnings
caused by the recent const changes in <dlfcn.h> and <link.h>.

Improve performance by eliminating redundant calculations of symbols'
hash values.
1997-11-29 03:32:48 +00:00
Philippe Charnier 622058ebd0 Use err(3). -Wall cleaning. cosmetics in man page. 1997-11-26 07:36:51 +00:00
Philippe Charnier 754c3c574d Remove \n at end of syslog string. -Wall cleaning. Cosmetics in man page. 1997-11-26 07:34:56 +00:00
Philippe Charnier 9ce3627ba1 Cosmetics in man page. Add rcsid and sort #includes. 1997-11-26 07:31:14 +00:00
Philippe Charnier 6896720af3 Use err(3). -Wall cleaning. Use Pa for file names and add section in Xrefs. 1997-11-26 07:29:04 +00:00
Philippe Charnier 943eade9ed Sort #includes. Add rcsid. Add man page section in .Xrefs. 1997-11-25 07:17:15 +00:00
Philippe Charnier 3029b69f0b Use warn(3). Hardcode progname instead of using argv[0]. Use Pa for file
name.
1997-11-25 07:14:34 +00:00
Philippe Charnier eb0b829002 Add usage(), rcsids. 1997-11-24 07:33:42 +00:00
Philippe Charnier ad17ca10b7 Cosmetics in usage() and man page. 1997-11-24 07:31:31 +00:00
Philippe Charnier 7d70b772c1 Key is 8 bytes according to code, not 10 as stated in man page. Add rcsid. 1997-11-24 07:29:12 +00:00
Philippe Charnier d6bf9eb7bb Use err(3) instead of local redefinition. Add usage. -Wall cleaning. 1997-11-24 07:27:06 +00:00