Commit Graph

8 Commits

Author SHA1 Message Date
truckman
f6e11620e6 MFC file.c 1.8
If the mmap() call in rpc.statd fails, rpc.statd prints a warning
  message and then dumps core because the subsequent code assumes that
  mmap() succeeded.  Since rpc.statd does not have fallback code to
  implement the functionality needed to operate on the status file if
  it is not memory mapped, rpc.statd should use err() to force the process
  to exit if the mmap() call fails.

PR:		bin/115430 (mmap() failure previously fixed in statd.c 1.12.8.2)
2007-08-20 13:00:48 +00:00
peter
9a6ba4dbc2 Deal with xdrproc_t casts. Make these compile cleanly with WARNS=2
(but I haven't turned it on)
2003-10-26 06:14:10 +00:00
alfred
8a8f54cf28 make mostly WARNS=4 clean.
constify, mark unsued args, fixup prototypes.
2002-07-11 17:55:14 +00:00
alfred
a9f506168f include stdlib.h for exit(3) prototype. 2002-07-11 17:31:15 +00:00
alfred
67cc54d757 Included in the updated version of tirpc's sm_inter.x Sun added the
SM_NOTIFY procedure.

Remove our hand-coded one as it was causing world breakage for
worlds compiled with NOSHARED=yes because the static linker is a
bit less forgiving (or not as broken as) our dynamic linker.

Add $FreeBSD$ while I'm here.

Pointed out by: bde
2001-03-20 01:36:41 +00:00
charnier
8f640499e9 Use err(3). Add usage() and #includes. 1997-10-13 11:13:33 +00:00
alex
a3118e8c68 Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate
    failure (required by POSIX).
  - Removed flag arguments of '0' (required by POSIX).
  - Fixed code which expected an error return of 0.
  - Fixed code which thought any address with the high bit set
    was an error.
  - Check for failure where no checks were present.

Discussed with:	bde
1997-01-16 21:58:40 +00:00
peter
e6ac6d91b7 Import Jan 15 version of Andrew Gordon <andrew.gordon@net-tel.co.uk>'s
rpc.statd.

This is apparently fully functional and complete.
1996-02-17 15:14:59 +00:00