jmallett
6d599b2b06
Rename new PLONG type to PGTOK as the conversion is more important than the
...
size (which is mostly undefined anyway).
Submitted by: bde
2002-09-17 17:13:52 +00:00
jmallett
b561096e47
Conglomerate printing of ps_pgtok'd data into a PLONG type. I couldn't think
...
of a better name, except PINT, but I decided to go with assuming LONG to
be safe, rather than assuming INT.
2002-09-17 02:52:44 +00:00
jmallett
fece93f6bd
Perform keyword.c:1.27 properly, implement -orss in the New World Order of
...
ps(1) formatting, using pgtok() to get the value in K, rather than printing
it in pages. This is consistent with behaviour before keyword.c:1.26 (et al)
which exists in STABLE today, and which uses the same metric as VSZ.
Submitted by: bde
2002-09-16 20:19:51 +00:00
jmallett
939d493b8a
Remove some NOTINUSE stuff. Good housekeeping.
2002-09-16 20:06:04 +00:00
peter
c8f83170c0
Do not risk using the kernel pgtok() which assumes the page size is
...
constant.
2002-09-13 07:13:33 +00:00
nectar
927cfce43e
Correct a usage of fnctl that could not be right and results in a
...
no-op. I assume it was meant that the close-on-exec flag be set here.
2002-09-11 16:38:33 +00:00
dwmalone
b4339b74ad
ANSIify function definitions.
...
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
2002-09-04 23:29:10 +00:00
jmallett
26df3d636e
Prevent ps(1) from doing idiotic munging of things in a -ofmt= string.
...
God I hate the backwards compatability crap here.
2002-09-03 05:44:00 +00:00
keramida
2da6cc1709
Fix a warning of "possibly used before initialisation".
...
Reviewed by: tjr
2002-08-29 14:29:09 +00:00
keramida
0eae474cc2
Add <stdlib.h> to get a prototype for exit().
...
Reviewed by: tjr
2002-08-29 14:26:49 +00:00
keramida
1e0aae9e48
Grammar fix.
...
PR: docs/42021
Submitted by: Jeff Ito <jeffi@rcn.com>
MFC after: 3 days
2002-08-26 06:16:51 +00:00
trhodes
3df4c99442
Fix 'SYNOPSIS' and 'usage'
2002-08-26 04:56:23 +00:00
charnier
c88222c6c0
Replace various spellings with FALLTHROUGH which is lint()able
2002-08-25 13:01:47 +00:00
tjr
2eb0d94f37
There is a built-in command called "builtin"; spell its name correctly
...
after rev. 1.77 called it "built-in".
2002-08-24 12:41:23 +00:00
tjr
7ffc3ae91a
Don't show the process ID of background jobs that have terminated,
...
for consistency with ksh.
2002-08-24 07:19:01 +00:00
bde
d47e5d8db2
Removed extra $FreeBSD$. Moved #if 0 for the vendor id to the correct
...
place. Restored indent protection of copyright comment.
2002-08-22 01:07:16 +00:00
trhodes
9618da3e35
s/filesystem/file system/ as discussed on -developers
2002-08-21 17:32:44 +00:00
schweikh
842f45255d
Fix a few typos, among them s/builtin/built-in/ (except for the ref
...
to the builtin(1) man page.) This is for consistency with the spelling
both proposed by ispell as well as IEEE Std 1003.1-2001.
MFC after: 3 days
2002-08-21 15:05:55 +00:00
ru
6c5df471b1
mdoc(7) police: fixed the document date.
...
Submitted by: iedowse
2002-08-19 07:15:20 +00:00
jmallett
2b6e4e1504
Remove local prototypes for main().
2002-08-19 03:07:56 +00:00
tjr
2f2bf8ffc0
Avoid accessing the current job's process table in the child part of
...
forkshell() after it has been freed. This caused mysterious behaviour
when anything but the first command in a pipeline tried to access the
terminal when the `junk' malloc() option was enabled (which is the default).
2002-08-18 06:43:44 +00:00
tjr
aa14f489f2
Show job control ID, command text, etc. when foreground processes are
...
suspended. This is a followup to rev. 1.51.
MFC after: 1 week
2002-08-17 13:57:47 +00:00
johan
831411db5b
Bump document date for the -n option.
...
Approved by: sheldonh (mentor)
2002-08-16 03:13:59 +00:00
maxim
5c73a4d0ee
o Backout rev. 1.40 and rev. 1.49.
...
o Add argv[] boudary check.
PR: bin/40117
Reviewed by: silence on -audit
MFC after: 2 months
2002-08-15 14:53:20 +00:00
tjr
3a69a33134
Claim conformance to 1003.2-1992 instead of 1003.1-2001 due to doubts
...
raised by Lukas Ertl over symbolic link handling.
PR: 41576
MFC after: 1 week
2002-08-12 12:34:03 +00:00
schweikh
b2bb39b1eb
Fix typos; each file has at least one s/seperat/separat/
...
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.
Suggested by: bde
MFC after: 3 days
2002-08-11 13:05:30 +00:00
tjr
717dc062a8
Allow redirections by themselves between "&&" and "||" operators.
...
For example, >/dev/null && echo foo
Pointed out by: FUJISHIMA Satsuki
MFC after: 1 week
2002-08-11 03:04:23 +00:00
mux
f43070c325
- Introduce a new struct xvfsconf, the userland version of struct vfsconf.
...
- Make getvfsbyname() take a struct xvfsconf *.
- Convert several consumers of getvfsbyname() to use struct xvfsconf.
- Correct the getvfsbyname.3 manpage.
- Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the
kernel, and rewrite getvfsbyname() to use this instead of the weird
existing API.
- Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist
sysctl.
- Convert a vfsload() call in nfsiod.c to kldload() and remove the useless
vfsisloadable() and endvfsent() calls.
- Add a warning printf() in vfs_sysctl() to tell people they are using
an old userland.
After these changes, it's possible to modify struct vfsconf without
breaking the binary compatibility. Please note that these changes don't
break this compatibility either.
When bp will have updated mount_smbfs(8) with the patch I sent him, there
will be no more consumers of the {set,get,end}vfsent(), vfsisloadable()
and vfsload() API, and I will promptly delete it.
2002-08-10 20:19:04 +00:00
ume
6b28291e08
IPv6 support for rcp.
...
You cannot specify a raw IPv6 address for now.
MFC after: 1 week
2002-08-09 16:12:08 +00:00
ru
e185ee0111
mdoc(7) police: tidying.
2002-08-09 10:59:20 +00:00
ru
9c0fb519a7
mdoc(7) police: whitespace nits.
2002-08-09 10:49:50 +00:00
ru
741ae405d5
mdoc(7) police: tidy up, bump document date on behalf of the -n option.
2002-08-09 10:46:00 +00:00
ru
704e2cf623
mdoc(7) police: grammar.
2002-08-09 10:38:34 +00:00
ru
90b670c5b3
mdoc(7) police: kill hard sentence breaks and one double space.
2002-08-09 10:34:57 +00:00
obrien
d3e44dec70
Allow "-v -v" to mean very verbose.
...
Reviewed by: freebsd-standards
PR: 40709
Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>, johan
2002-08-04 05:29:13 +00:00
markm
cf6ebbd6fe
Remove the last reference to NOUUCP - we don't have UUCP in the base
...
system.
2002-08-02 10:55:51 +00:00
markm
c55a4dc47c
Fix an easy WARNS.
2002-07-31 16:53:59 +00:00
markm
7726f590e7
Fix some easy WARNS.
2002-07-31 16:52:16 +00:00
markm
80ff821584
Give lint a small bit of help.
2002-07-31 16:50:21 +00:00
dwmalone
3b0d121aeb
Make test check the tv_nsec part of a struct stat when comparing
...
the mtimes of a file. (This is probably only useful if you have
vfs.timestamp_precision set to something nonzero).
PR: 39163
Submitted by: Hal Burch <hburch@lumeta.com>
MFC after: 2 weeks
2002-07-27 22:53:44 +00:00
tjr
43d6a14678
Add a -P/-o physical option which behaves similarly to bash/ksh's options
...
by the same name. This option makes the cd and pwd builtins behave physically
(as opposed to logically) by default.
Submitted by: fanf
2002-07-25 10:57:39 +00:00
tjr
ca8e9f2edf
Set opterr to zero to avoid duplicate warnings from getopt(3) for unknown
...
options.
2002-07-25 10:47:38 +00:00
tjr
cb0dfaa9bd
Use PATH_MAX instead of a local guess at it, which happened to be incorrect.
...
Suggested by: fanf
2002-07-25 09:56:08 +00:00
tjr
077941cfae
pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.
...
Pointed out by: fanf
2002-07-25 09:46:31 +00:00
mp
9fbc2019e8
Remove WARNS and WFORMAT overrides.
2002-07-24 22:26:44 +00:00
tjr
9c6ea7014e
Avoid calling el_resize() from a signal handler, even though libedit
...
itself does that if you set EL_SIGNAL. Instead, set a flag and check it
before calling el_gets(). This is safer, but slower to respond to changes.
Pointed out by: mp
2002-07-24 02:06:07 +00:00
tjr
8be25d316f
Catch SIGWINCH in interactive shells and call el_resize() to update
...
libedit's idea of the window size.
2002-07-23 15:05:00 +00:00
tjr
12e699af89
Call el_source() to read the contents of .editrc when line editing is enabled.
...
Obtained from: NetBSD
MFC after: 2 weeks
2002-07-23 12:26:34 +00:00
tjr
f9fd5faa32
Add a `bind' builtin command, which is simply a wrapper around libedit's
...
builtin command of the same name. This allows the key bindings for the
shell's line editor to be changed.
MFC after: 2 weeks
2002-07-23 11:50:53 +00:00
johan
c464bca234
Add the -n option, which automatically answers "no" to the overwrite question.
...
PR: 7828
Suggested by: Daniel O'Connor <doconnor@gsoft.com.au>
Approved by: sheldonh (mentor)
MFC after: 2 weeks
2002-07-23 00:42:56 +00:00