perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
27e0d2b78b
kill MFSNAMELEN
2007-07-17 20:17:52 +00:00
pooka
704e075311
Make all mount(2) return value error checks against -1. Some file
...
systems just checked != 0, breaking MNT_GETARGS. Others worked with < 0,
but make them check against -1 too for consistency. And sprinkle some
stylish line wrapping where appropriate.
2007-07-16 17:06:52 +00:00
christos
2c6eadc9ce
Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
...
programs that did not compile before.
2005-06-27 01:00:04 +00:00
erh
a432762d9a
Fix PR#3205 for the -a case: when the list of mount points comes from the
...
kernel, always use "raw" mode (-R option) so unmounting odd mount points works.
Also, fix available options in SMALL mode to include -R, not -r.
2005-01-31 01:19:30 +00:00
xtraeme
8b90e8f10f
Remove main() prototype; WARNS=2
2005-01-19 20:43:06 +00:00
chs
a3b206f61a
pass data to a function via an argument instead of via a global variable.
...
this avoids a name collision with libcurses functions when both are
present in a crunched static binary. part of PR 26458.
2004-09-01 01:47:09 +00:00
christos
ba0b3992d2
add #ifdef SMALL so that we can use this in the install media.
2004-04-21 15:20:40 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
dsl
8cc28b4b81
stop umount temporarily modifying what might be argv[n].
2004-03-12 21:48:32 +00:00
dsl
ff49552bb2
KNF and const sprinkle
2004-03-12 21:26:43 +00:00
dsl
b47125007b
Fix 'umount host:/filesystem' - it is documented on the man page but hasn't actually
...
worked for 10 years!
Remove the (broken) code that once supported 'umount /filesystem@host' since that
syntax isn't used anywhere.
Fixes PR bin/22099
2004-03-12 21:14:29 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
fvdl
d65482091f
Adapt to new RPC interface. Use getaddrinfo(), not gethostbyname().
2000-06-20 00:45:24 +00:00
chs
09218270f0
change ``-a'' to be a synonym for ``-A''.
...
addresses PR 7629.
2000-06-06 07:09:14 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
sommerfeld
95d53bad01
Fix PR7747: umount -R dumps core
...
(fix by Ronald Khoo from PR applied)
1999-08-02 02:40:38 +00:00
fair
9fc45baff5
Changes to implement "-R" (raw) option to umount, per PR#4030.
1998-04-17 01:19:42 +00:00
kleink
b5d46707c3
No need to include <sys/socketvar.h>.
1998-04-01 15:20:25 +00:00
mikel
e0fbb13a20
document -F flag; part of PR 4030 from der Mouse
1997-12-18 07:11:48 +00:00
drochner
6403c86ce4
Since umount works from the top we have to traverse the information
...
returned by getmountinfo() from the top too. Otherwise we get
the wrong mount data in case of 2 mounts on 1 pountpoint.
1997-11-01 12:54:45 +00:00
lukem
56638e9de2
resolve conflicts from lite-2 merge
1997-09-16 12:24:05 +00:00
lukem
788a79030a
* cleanup for WARNS=1
...
* fix .Nm usage
1997-09-15 11:33:59 +00:00
pk
98bd013c4a
Code previous somewhat more compactly.
1997-05-21 22:26:38 +00:00
pk
655f1af426
Do not force the ISBLK and ISDIR checks on the mount point.
1997-05-21 21:47:07 +00:00
mycroft
daa86d7011
Use kernel mount info rather than fstab. From greywolf@starwolf.com, slightly
...
modified.
1996-05-11 14:13:55 +00:00
mycroft
2a549b83f7
Fix the case where stat() fails, so that the file system is still unmounted.
1995-09-22 02:03:48 +00:00
cgd
3d113b326b
don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated
1995-06-18 10:58:06 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
mycroft
63292a1ad5
Make arg to selected() const. Disallow multiple `-t' options.
1995-01-30 17:20:06 +00:00
mycroft
a3f55cea68
Cosmetic changes to type list parsing.
1995-01-30 17:03:15 +00:00
mycroft
50b3661847
Be careful to only parse the host name from the mount path for NFS mounts.
1995-01-30 16:36:47 +00:00
cgd
193df6915c
several fixes from Mark Weaver <mhw@cs.brown.edu>, relating to error
...
reporting. (pr 431)
1994-08-25 02:14:01 +00:00
cgd
ae4c4d86f6
fix from John Kohl to return correct status when unmounting named fs's.
1994-08-23 20:57:04 +00:00
mycroft
bab8181299
Update from 4.4-Lite, with local changes.
1994-06-08 19:33:47 +00:00
cgd
5334ad51e1
fs type names, and much clean
1994-04-14 03:25:14 +00:00
deraadt
b61a97ceeb
should bzero automatic sockaddr's before use
1993-12-05 13:41:07 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00