grant
6742cb1812
sweep of errx/warnx, remove unnecessary trailing \n
2002-07-20 08:36:17 +00:00
lukem
fa02ec4ccb
fix a -Wshadow warning
2001-11-01 07:48:08 +00:00
lukem
415d1abdd8
be consistent (both internally and with other programs):
...
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
2001-01-10 03:33:16 +00:00
jdolecek
252a9be46b
use mkdtemp(3) instead of mktemp(3)
...
call daemon(3) before the mount(2) call, so that we can fill correct pid
to mount tag argument (previous code used getpid() + 1!)
2000-11-06 14:00:38 +00:00
bgrayson
417d43539a
Remove unneeded syslog() at unmount
2000-01-17 07:21:25 +00:00
bgrayson
5abfdc83cb
Make life a little easier: warn if the configuration file is not an absolute
...
path, and under DEBUG, keep stderr around.
1999-08-16 06:34:50 +00:00
bgrayson
4c1c1b0439
Slightly more useful error messages
1999-03-04 03:02:43 +00:00
lukem
786b86d71b
use AF_LOCAL instead of AF_UNIX
1998-07-18 05:04:35 +00:00
kleink
3b80d582e2
Include <sys/time.h>, which is the canonical location of the select()
...
prototype and assorted data type definitions.
1998-02-17 11:38:26 +00:00
enami
0ac5bcaa77
Cosmetic changes:
...
- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
1997-09-21 02:35:40 +00:00
lukem
4b0b1ba833
resolve conflicts from lite-2 merge
1997-09-16 12:32:03 +00:00
lukem
4eb9f40a9c
* KNF-ify
...
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
1997-09-15 05:58:22 +00:00
jtc
6397db2ddd
Add const qualifier to mopts table
1996-04-13 01:30:59 +00:00
mrg
e5e3e0877a
add a SIGTERM handler to unmount the portal fs when killed. also put the
...
right PID in the mount table. from pr#893 <kstailey@leidecker.gsfc.nasa.gov>
1996-03-23 02:37:48 +00:00
cgd
061f2a0c7e
fd_set *'s really aren't compatible with timeval *'s
1995-06-08 12:38:07 +00:00
mycroft
7a4a8b6c81
Make sure the SIGHUP handler is actually set. Zero the fd_set before using
...
it.
1995-06-06 19:51:19 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
mycroft
5922d844af
Update from 4.4-Lite, with local changes.
1994-06-08 19:23:02 +00:00
mycroft
6d03c98781
Remove some notdefage and link with libutil so we properly daemonize.
1994-01-13 17:45:33 +00:00
cgd
a70a31f7fa
mount_portal command, from jsp
1994-01-12 20:01:45 +00:00