christos
168f1d4a50
Add fdflags builtin. Discussed with Chet and he has implemented it for
...
bash too.
2017-02-02 20:00:40 +00:00
christos
afa63a6672
Who Ride Wit Us?
2017-02-02 19:26:37 +00:00
christos
9666b979fc
Don't let set cloexec for "exec n>&1" like ksh does (but not bash). Unit
...
tests pass... If we don't like that, we should add some unittests that fail.
2017-01-21 23:03:36 +00:00
maya
f959afb267
reorganize the code so we test if open fails at the open call.
...
this doesn't actually make a functional difference as ftruncate can
handle it, but it's a bit clearer and appeases static analyzers.
ok riastradh
2017-01-14 18:35:43 +00:00
christos
bad8f1c071
need <time.h> for time(3)
2017-01-10 20:44:05 +00:00
christos
7792ef1ac5
add missing <sys/stat.h>
2017-01-10 20:43:08 +00:00
abhinav
1bd07c5d11
The range of the SS field is [0,60]
...
From the POSIX time.h man page:
"The formal definition of UTC does not permit double leap seconds, so all mention of double leap seconds has been removed, and the range shortened from the former [0,61] seconds seen in previous versions of POSIX."
2017-01-03 16:01:05 +00:00
rin
f637bb05bd
simplify logic; there must be no CPU usage when p_swtime is zero
2016-12-26 20:52:39 +00:00
christos
56b5e39636
Don't trash the logical $PWD if a component is a symlink; no other shell
...
does this.
2016-12-26 02:27:57 +00:00
christos
6721aabc1e
Handle functions that use the offset from either kinfo_proc2/kinfo_lwp properly.
2016-12-12 20:35:36 +00:00
christos
5a6cfab10a
provide a tree like display with -d, from FreeBSD
2016-12-02 21:59:03 +00:00
rin
cc1877ba3a
Calculate CPU usage (pcpu) once per process if it is required. This change
...
significantly improves performance for slow machines when output is sorted
by pcpu.
ok martin
2016-11-28 08:21:10 +00:00
rin
b095bb75a7
for donlist{,_sysctl}:
...
- obtain log_ccpu = log(ccpu) rather than ccpu itself
- use common default values and warn users appropriately when errors occur
ok martin
2016-11-28 08:19:23 +00:00
rin
078edf9ccc
KNF
...
ok martin
2016-11-28 08:18:27 +00:00
abhinav
056b8cc767
Fix grammar in couple of sentences.
2016-10-25 13:01:59 +00:00
abhinav
602eb66c16
Remove unused variables.
...
Fixes the sh(1) build when DEBUG is enabled.
2016-10-23 08:24:27 +00:00
dholland
f7f12e2d7d
PR 49595 William Ahern: The exit status of "unset NOTSET" should be 0, not 1.
...
(like 48312 but for ksh)
2016-10-11 06:31:07 +00:00
joerg
acfe9a7761
Add explicit char cast to show that the value change is intended.
2016-10-04 15:09:03 +00:00
abhinav
40e3a09c63
kill(1) is a utility, not a function.
2016-10-02 21:00:54 +00:00
sevan
51fe790c4c
Drop main() prototype.
2016-09-05 01:00:07 +00:00
sevan
50517541f0
Move the description of CHANGER variable to ENVIRONMENT section
...
Bump date.
From OpenBSD src/bin/chio/chio.1 r1.23
2016-08-25 18:16:10 +00:00
sevan
90a4f225ec
Remove redundant main() prototype which survived a K&R to ANSI transition.
2016-08-23 21:07:40 +00:00
sevan
03fb25d442
Mark email addresses as mailto links, heads up by Sascha Wildner.
...
Move email addresses to same line as author name.
Do not split the third author entry on to a new line.
Public domain is not licensed by definition, heads up by Robert Elz.
2016-08-23 20:34:23 +00:00
sevan
9e84015020
Instruction to not split the line needs to be stated separately.
2016-08-23 03:21:16 +00:00
sevan
0f2a09011f
Add HISTORY section
...
Credit author of initial implementation in AUTHORS section
Bump date
Remove contraction highlighted by textproc/igor
2016-08-23 02:58:45 +00:00
sevan
b61c439d62
bump date
2016-08-18 22:43:49 +00:00
sevan
6e78a5b106
dd first appeared in V5, not V1
...
Heads up by Ingo Schwarze
http://www.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/dd.c
2016-08-18 22:42:28 +00:00
sevan
ee4aa55280
While the v2 source and man pages are incomplete, TUHS has a scanned copy of the
...
printed version of the 2nd edition manual. stty is featured in this copy, in the
table of contents listed as meaning "set typewriter modes" and on the actual manual page
headed correctly as "set teletype options"
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf
Ammend HISTORY and bump date.
2016-08-14 23:29:43 +00:00
sevan
2881adbdf2
While the v2 source and man pages are incomplete, TUHS has a scanned copy of the
...
printed version of the 2nd edition manual. echo is featured in this copy.
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf
Ammend HISTORY and bump date.
2016-08-14 22:59:22 +00:00
sevan
7346e185f5
Document the version test first appeared.
...
Bump date.
2016-08-12 03:17:41 +00:00
sevan
ca8106df5f
sync was there from v4.
...
Confirmed from the TUHS hosted copies of man pages.
2016-08-12 02:59:23 +00:00
sevan
5dee078da5
Document the version stty first appeared.
...
Bump date.
2016-08-12 02:49:18 +00:00
sevan
0995d1e872
Document the version sleep first appeared.
...
Bump date.
2016-08-12 02:36:38 +00:00
sevan
a59caebcc3
Document the version rmdir first appeared.
...
Bump date.
2016-08-12 02:30:37 +00:00
sevan
15dc5a009b
Document the version rm first appeared.
...
Bump date.
2016-08-12 02:26:42 +00:00
sevan
5ca5543cb0
Document the version pwd first appeared.
...
Bump date.
2016-08-12 02:03:26 +00:00
sevan
324ed4887a
Document the version pax first appeared.
...
Bump date.
2016-08-12 01:52:22 +00:00
sevan
5da349fba4
Bump date
2016-08-11 22:10:01 +00:00
sevan
a0ee124bc7
Earliest reference of kill in the TUHS archive is v3 AT&T UNIX.
...
Unfortunately only the source code for the compiler is present for that
release. The v2 archive is missing the manuals & only contains a some of the
commands.
Switch to v3 and reference manual category eight.
2016-08-11 21:56:55 +00:00
sevan
176b67f38f
Pp not required before Bd, picked up by mandoc lint
2016-08-11 21:41:17 +00:00
sevan
2c701eeaeb
Document the version echo first appeared.
...
Bump date.
2016-08-11 01:47:15 +00:00
sevan
c616fdebbe
Document the version dd first appeared.
...
Bump date.
2016-08-11 01:23:03 +00:00
sevan
787b668508
Pp not required before Bd, picked up by mandoc lint
2016-08-11 01:20:51 +00:00
sevan
ddd300cc05
The macro to cross-reference is Xr, not Xt.
...
Fix typo error picked up by mandoc lint.
2016-08-11 01:14:01 +00:00
sevan
72d159d520
Document the version date first appeared.
...
Bump date.
2016-08-11 00:38:06 +00:00
sevan
04e682230f
Document the version cp first appeared.
...
Bump date.
2016-08-11 00:17:23 +00:00
sevan
7813f5cd7c
Document the version chmod first appeared.
...
Bump date.
2016-08-11 00:10:42 +00:00
sevan
76ed85f7b3
Document the first version chio appeared in.
...
Bump date.
2016-08-10 23:58:16 +00:00
sevan
a836a50237
Mark Jason's name with An macro in AUTHORS section, warned about missing macro
...
by mandoc lint.
2016-08-10 23:54:20 +00:00
sevan
4b48d1babd
Bump date
...
Reminded by wiz@
2016-08-10 23:48:14 +00:00