tls
0b7476a655
Remove extra \n from call to warn()
2006-04-02 19:03:55 +00:00
tls
b3de57c6bf
Don't build any of the dialers except Hayes. If anyone is using any of
...
the others (maybe "Courier", but I doubt it) we can easily enough turn
them back on.
Saves 20-30K depending on platform. Not totally insignificant, since this
often goes on install media, or very small systems.
2006-04-02 19:00:40 +00:00
tls
b8dc57b8d9
If we might have two links, we'd better print our program name when we
...
emit an error -- and it would be nice if it were the *right* program name.
Since it's convenient, change most perror calls to warn, and a lot of
fprintf ... exit to errx. Fix at least one fprintf that could run off
the end of its arguments (%s but no argument, how did we never catch this?).
2006-04-02 06:11:45 +00:00
tls
82222cd3ac
Default to no parity instead of even parity. OpenBSD made this change
...
long ago, and I think it makes sense.
2006-04-02 04:28:38 +00:00
tls
685d2e5048
Default the "raisechar" value (for the insane old case-mapping) to NULL.
...
As the same change in the OpenBSD tree says, "if you are crazy enough
to want it, then it can be turned on in /etc/remote."
2006-04-02 04:25:36 +00:00
christos
df58c5cd15
Coverity CID 1660: Plug memory leaks.
2006-04-02 04:17:08 +00:00
tls
8139858166
Default baud rate to 9600 (was 1200) to match Taylor cu.
2006-04-02 04:10:54 +00:00
tls
7d1bef10da
Add the rest of the speeds listed in termios.h. This is not, perhaps, as
...
sensible as the way OpenBSD supports arbitrary speeds; but we hardly add
new speeds often and this change is a lot less invasive.
2006-04-02 04:02:00 +00:00
christos
ceb6edafa6
Coverity CID 922: Fix check against NULL.
2006-04-02 03:50:38 +00:00
christos
472d6fbe72
Coverity CID 878: Remove impossible tests against NULL pointers.
2006-04-02 03:47:26 +00:00
christos
999d9f8f32
Coverity CID 1181: Protect access against NULL.
2006-04-02 03:40:06 +00:00
christos
002be29d1a
Coverity CID 2290: Fix memory leak.
2006-04-02 03:33:55 +00:00
christos
095e4da292
Coverity CID 1204: Prevent negative index.
2006-04-02 03:29:17 +00:00
christos
6e2787485e
Coverity CID 2336: Fix memory leak.
2006-04-02 03:19:34 +00:00
tls
40bdc77642
Change manual page (as OpenBSD did) to reflect the actual arrangement of
...
file descriptors with ~C, instead of some weird ancient arrangement.
Document ~+ as a synonym for ~C.
2006-04-02 03:15:02 +00:00
tls
b389579aca
Add "~+" as a synonym for "~C" for Taylor cu compatibility.
2006-04-02 03:10:54 +00:00
christos
8533275dab
Remove bogus debugging code I accidentally committed.
2006-04-02 00:15:53 +00:00
christos
46c0b8e98a
PR/26804: Jason Thorpe: Make PT_DUMPCORE require the process to be PT_ATTACH'ed
...
first so that it is stopped and there are no races.
2006-04-01 22:34:00 +00:00
jmmv
43e0f4ee96
Fix cross-reference to grep(1).
2006-04-01 16:12:23 +00:00
cherry
fb4fa95282
xlint for ia64
2006-04-01 09:39:47 +00:00
rtr
75de03412e
cast line_len to (int) to avoid warn.
2006-04-01 06:36:58 +00:00
rtr
df14d9f34e
revert previous to previous as it was correct
2006-04-01 06:31:43 +00:00
rtr
f738eedb64
change printf format from "%.*s" to "%.8s"
...
have to conclude it was what was actually intended in the previous change
2006-04-01 06:26:31 +00:00
christos
e052a053e4
Add some coverity allocation comments, and change the way the allocator
...
functions work. When they allocate storage that needs to be freed, instead
of setting a boolean, set the pointer to be freed. Plug some more memory
leaks found by inspection.
2006-03-31 21:58:08 +00:00
dsl
33369a0245
There is no need to count jobs and job tokens.
...
If we don't create the job pipe, use the '-j n' option to limit the number
of tokens we will remove from the pipe.
2006-03-31 21:05:34 +00:00
christos
ec5cc02622
Coverity CID 544: Fix memory leak.
2006-03-31 20:30:46 +00:00
dsl
ec40cf92c2
Rewrite parallel() so that it uses fgetln() instead of fgets() so that
...
horrid nasty things don't happen when the input lines are the same size
as the buffer.
Simplify by using an array of 'FILE *' instead of a linked list so that
is possible to appease coverty (SID:1598) by freeing the memory.
Also fclose() the input lines when they are consumed.
Code still modifies optarg strings....
2006-03-31 18:59:52 +00:00
dsl
0720992d8c
KNF prior to fixing all the buffer overruns....
...
Coverty highlighted something else that doesn't matter!
2006-03-31 17:20:07 +00:00
dsl
3db763ccc3
MCDelSet() contains an infinite loop!
...
I suspect it has never, ever, ever been asked to delete anything that exists.
Also neither it, nor MCDelMsg() below free() the set and msg structures.
Found by Coverty SID:54
2006-03-30 20:32:10 +00:00
dsl
e4573e12e3
Simplify the way the end of a singly linked list is followed (for adding
...
items) so it is more obvious that we aren't going to indirect through
a null pointer.
Fixes coverty SID:101
2006-03-30 19:53:58 +00:00
dsl
4c18b91e3e
If fgetln() returns a buffer that isn't terminated by \n, free the temporary
...
buffer inside the loop. Fixes coverty CID:1674.
(This should only happen at EOF, so the loop SHOULD terminate.)
While here always output a newline at the end of the input data even when
the last (unterminated) line doesn't contain a separator.
2006-03-30 19:17:44 +00:00
rpaulo
a0713f21de
ANSIfy. de-P.
2006-03-29 15:40:49 +00:00
yamt
01ef02441c
pull the following change from OpenBSD
...
and bump date of the manpage.
date: 2003/09/20 18:15:32; author: millert; state: Exp; lines: +4 -2
Implement hardwareflow varable in tip(1) like Solaris and hf in /etc/remote.
Based on PR 3411 from Matthew Gream
Also document "tandem" variable (XON/XOFF) in tip man page.
2006-03-29 12:37:59 +00:00
cube
c002406624
Fix a broken conditional that confused coverity. It cannot happen, anyway.
...
CID 178.
2006-03-29 09:16:36 +00:00
ginsbach
a8cd0ffcee
- Change where variable substitution is done when processing traditional
...
include statements so that if a variable expands to more than one file
name make will "do the right thing".
- Add additional debug print
Reviewed by christos.
2006-03-28 17:41:35 +00:00
joerg
3e3d6f89bd
Query kernel for maximum argument size instead of using ARG_MAX.
2006-03-28 14:27:41 +00:00
christos
3b6811d33b
PR/33123: Murray Armfield: standards compliance & glob.h
...
Certain fields in glob.h need to be size_t; fix this and version glob(3).
http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-03-26 18:11:22 +00:00
hubertf
517eb6559a
Remove unused variable 'salt'
...
Found by code inspection in one of my classes, not via Coverity :)
OK'd by christos
2006-03-26 16:45:33 +00:00
jld
42ddba8762
Correct logic error in wildcard handling, which was causing the
...
day-of-month on normal entries to always be treated as a wildcard.
Specifically, "if (x&(y|z))" is equivalent to "if ((x&y)||(x&z))", not
"if ((x&y)&&(x&z))", which latter is clearly what was intended.
2006-03-24 23:30:08 +00:00
wiz
7ee6cdd959
Serial comma, remove unnecessary .Pp.
2006-03-24 00:14:23 +00:00
reed
909919ef8b
Briefly document output of the modstat utility.
...
(And update document date.)
2006-03-23 23:59:38 +00:00
reed
04a9318e11
Changing a comment only because the module interface version
...
is not 1 anymore.
2006-03-23 23:52:35 +00:00
wiz
02b5f03672
Remove some more old kerberos4 code. Simplify usage.
2006-03-23 23:49:07 +00:00
wiz
eb525bd07c
Remove some more old kerberos4 code.
2006-03-23 23:44:15 +00:00
wiz
54cd24faa5
Get rid of more Kerberos 4 code.
2006-03-23 23:33:28 +00:00
wiz
f5a1361a8f
Remove some more kerberosIV references.
2006-03-23 21:48:18 +00:00
christos
a6ee606509
gcc says case is missing, coverity says case not reached. Appease both.
2006-03-22 16:16:59 +00:00
christos
f88156c66b
PR/33128: Martin Husemann: When login in on the console, SIGABRT is ignored
...
Both SIGINT and SIGABRT should be restored before executing the shell.
2006-03-22 15:36:49 +00:00
christos
ec4e36f798
Coverity CID 46: Remove dead code.
2006-03-22 02:17:52 +00:00
christos
4b41923ad3
Coverity CID 198: Remove dead code if INT_MAX == LONG_MAX
2006-03-22 02:14:03 +00:00
christos
ec166aba55
Coverity CID 199: make sure that rtp is not NULL before dereferencing.
2006-03-22 02:08:55 +00:00
phil
4617d0a2bf
Kill NULL deref (CID: 871)
...
Plug fd leak (not caught by coverity).
2006-03-21 21:59:56 +00:00
christos
9731df7d2d
make this compile again.
2006-03-20 23:13:51 +00:00
dsl
7ee2912cf6
free() intrnamebuf, intrname and intrloc on entry so we don't leak them
...
every time initvmstat() is called.
Change intrnamebuf to be static so this works.
Inspired by Coverty CID 2072 (incorrectly) reporting that the memory assigned
to intrnamebuf wasn't being freed.
2006-03-20 20:36:38 +00:00
elad
cd7d931d2e
plug leaks, coverity cids 92, 93.
2006-03-20 17:18:06 +00:00
elad
c080c43ef1
plug leak, coverity cid 98.
2006-03-20 17:03:08 +00:00
elad
3e7dafb547
plug leak, coverity cid 94.
2006-03-20 17:01:26 +00:00
elad
6bceef66d3
- plug leak in generate_guard()
...
- plug leak in h_output(), coverity cid 100
2006-03-20 16:58:13 +00:00
christos
85e611dd01
Goodbye KerberosIV
2006-03-20 04:03:10 +00:00
gdamore
6af224c1b4
Support cross-building tn3270 from other OS' e.g. Solaris by hiding
...
_RCS and _COPYRIGHT macros in #ifndef HOST_TOOL, and defining HOST_CPPFLAGS
apropriately for host tools. Approved by uwe@.
2006-03-20 01:34:49 +00:00
cube
6a6299eb8f
Panic on an unlikely error condition. CID 177.
2006-03-19 23:36:10 +00:00
cube
e50e4ee4b2
Free a nvlist used temporarily.
...
Found by Coverity, CID 179 and 180.
2006-03-19 23:12:59 +00:00
jnemeth
4be1f2c6fd
Fix Coverity run 5, issue 1931 -- memory leak. This was noted as being a
...
bug by cgilbert.
Approved by christos@.
2006-03-19 22:52:01 +00:00
cube
11820066f8
Close file on error. CID 176.
2006-03-19 22:34:44 +00:00
cube
8e4130e5ee
Fix various resource leaks, all happenning on error situations (IOW,
...
shortly before exit(1)). CIDs 181, 182, 183, 184 and 185.
2006-03-19 22:27:14 +00:00
cube
3eaff5cb14
Proper resource handling in mkmakefile().
...
Coverity CIDs: 186, 187, 188 and 189.
2006-03-19 16:27:13 +00:00
wiz
59ba5fe8d1
New sentence, new line.
2006-03-19 10:45:03 +00:00
rtr
739b734996
the preceeding loop does not terminate except in a condition where
...
kp != NULL therefore testing if kp is == NULL after it is pointless
coverity 2446 / run 6
2006-03-19 06:10:22 +00:00
rtr
880b6df674
avoid double fclose()
...
coverity 2577 / run 6
2006-03-19 05:01:48 +00:00
rtr
d9da031351
remove ambiguity in evaluation of conditional expressions and avoid
...
double fclose().
coverity 2713 / run 6
2006-03-19 04:34:19 +00:00
sjg
98b766c482
Fix :P modifier so it actually works as described.
...
I.e ${var.c:P} should expand to the absolute path of var.c found via .PATH
2006-03-19 01:54:21 +00:00
sjg
8af5ec82ab
Document an interesting kwirk in := handling of undefined variables.
2006-03-19 01:53:01 +00:00
dsl
1655d9a820
Code to display per-system call counts.
...
Very useful to help identify which code is doing 1000s of system calls.
Not built because no one else has a kernel yet, and I need to make
the kernel side configurable. But I don't want to lose this code....
2006-03-18 20:31:45 +00:00
dsl
efc0bc90c3
Count both read bytes and write bytes when we are not showing separate read
...
and write statistics. Discovered by go.
Since I broke in in rev 1.31, I guess I'll fix it first!
2006-03-18 16:48:44 +00:00
dsl
bee1c2beb6
Make the functions that display the top 8 lines externally visible so
...
they can be used to head other pages (not ready to commit yet...).
Use puthumanint() for oversize numbers when display_mode is RUN or BOOT (when
very big numbers are to be expected).
Allow an extra column for Csw..Flt.
Adjust some #defines to avoid use of global s & s1.
2006-03-18 14:58:49 +00:00
dsl
2769bb6a26
Coverty 1212: Avoid close(-1).
2006-03-18 11:15:00 +00:00
dsl
f9603a44ea
Coverty 7449: Remove splurious check for 'sep == NULL'.
2006-03-18 11:02:48 +00:00
christos
22983123c5
Coverity CID 2341, 2342: Plug memory leak.
2006-03-18 09:46:35 +00:00
ginsbach
ccae083c7b
Fix Coverity CID 1248, negative return from read() passed() to write()
...
as a large unsigned value.
2006-03-18 03:40:51 +00:00
ginsbach
1a75882940
Fix Coverity issue 1236, negative return from read() passed to write()
...
as a large unsigned valued when read() is interrupted (errno == EINTR).
2006-03-17 21:52:41 +00:00
ginsbach
7ee29c7f81
Fix Coverity issue 1564, resource leak, dynamically allocated storage not
...
freed before function return.
2006-03-17 21:19:24 +00:00
elad
cbe6a15c01
Another overrun forgotten in previous commit, also found by Coverity.
...
CID 1481.
2006-03-17 20:44:28 +00:00
elad
ab24a02ffe
Fix buffer overrun found by Coverity, CID 1482.
2006-03-17 20:41:02 +00:00
christos
75f03570ec
Coverity CID 2719: argvalue can be NULL when passed into functions.
...
De-obfuscate by undefining optarg, and check explicitly for NULL before
use.
2006-03-17 15:39:44 +00:00
rumble
0fe2cb9e42
Ensure that malloc does not return NULL before copying the buffer.
2006-03-17 04:53:55 +00:00
elad
9e505fa94b
Fix two off-by-ones found by Coverity.
2006-03-17 01:55:31 +00:00
christos
d8a5b3caf5
warns=4
2006-03-16 23:25:17 +00:00
christos
f04bb5fddb
warns=4
2006-03-16 16:49:07 +00:00
dsl
5f31eae781
nJobs and jobTokensRunning are both counting the same thing.
...
Kill nJobs and just use the count of tokens in use.
Don't eat job tokens when we are ignoring errors.
2006-03-15 20:33:19 +00:00
dsl
f26d89e3d9
JOB_FIRST is always set (since we only execute the shell once for every
...
target). Nuke it.
2006-03-13 20:35:09 +00:00
dsl
b85c051fa8
Remove the 'never non-NULL' 'previous' argument to JobStart.
...
Looks like it was intended as a minor (and pointless) optimisation to
remove a free() malloc() pair.
Make he comment about the stoppedJobs list more correct.
2006-03-12 20:14:56 +00:00
dsl
a484dfd693
It isn't possibly to execute any part of job.c that references compatMake
...
when it is 'true'. So delete the unexecutable code.
2006-03-12 19:14:51 +00:00
dsl
c9b3912b1e
Remove most of the code seemed to be there to support 'remote jobs'.
...
It isn't clear that it ever worked, if it did it has almost certainly
bitrotted in the last 12 years. I'm not even sure all the required
components were present.
I suspect it was written to attempt to use a 'farm' of diskless sun3s.
In any case the apparant random assignment fo jobs to other systems doesn't
actually seem like a good idea!
Things like 'distcc' han be used to help slow systems run native builds.
Removing this code also simplifies make, and should let me speed up some of
its processing - without worrying about bitrotting it further.
2006-03-11 17:18:00 +00:00
christos
bc3a1c6523
PR/33054: Nicolas Joly: id(1) sometimes report a duplicate group when a user
...
is not specified. This is because it prints getgid() and getgroups(). If the
getgid() is in the getgroups() set, it was printed twice. This is now detected
and the duplicate printing is avoided.
2006-03-11 17:16:01 +00:00
wiz
904496fbc8
Markup fixes.
2006-03-11 12:02:20 +00:00
christos
5e6b1075e2
PR/33049: OKANO Takayoshi: Fix the spelling of NetBSD RCS tags.
2006-03-10 15:53:55 +00:00
dsl
5e60bf00ce
Avoid calling JobRestartJobs() from the SIGCONT signal handler, instead
...
push a byte through the (now badly named) exit_pipe and call JobRestartJobs()
from the main code path when poll() wakes up.
Part of a plan to remove JobSigLock() and the zillions of system calls
it does.
2006-03-08 22:11:48 +00:00
jnemeth
1a6a87b59b
PR/23616: Christian Biere: login might not back-off as expected
2006-03-08 03:09:04 +00:00
jnemeth
2e3c4f59d7
PR/23616: Christian Biere: login might not back-off as expected
2006-03-08 02:49:18 +00:00
hubertf
8c061da318
Xref pwhash(1),
...
pointed out by Stefan Schumacher at the Chemnitz Linuxdays
2006-03-07 01:52:09 +00:00
jnemeth
99089ba6f8
PR/30923: Zafer Aydogan: pam too verbose
...
Don't display a different message for root logins on insecure terminals.
Approved by christos@.
2006-03-06 23:06:18 +00:00
jnemeth
a2645cdaf4
PR/31059: Zafer Aydogan: login too verbose
...
Don't display a different message for root login on insecure terminal.
Approved by christos@.
2006-03-06 22:59:27 +00:00
christos
ef5477c67d
Add PT_SYSCALL
2006-03-05 17:03:19 +00:00
christos
ac2addb00e
PR/31144: YOMURA Masanori: pwhash -S/-b never use optarg
2006-03-05 08:50:58 +00:00
christos
57e9a1d730
PR/32978: Johan Veenhuizen: mail(1) creates record file with insecure umask
2006-03-03 15:07:00 +00:00
christos
463f84da0a
PR/32964: Johan Veenhuizen: implement the unalias command
2006-03-03 13:36:27 +00:00
ginsbach
62221c2759
Code indentation fix up.
2006-02-28 17:17:43 +00:00
apb
f34c12e989
Make ".WAIT" apply recursively to all children of nodes on the right
...
hand side of the .WAIT, except when the recursive interpretation would
cause a cycle in the dependency graph.
Discussed in tech-toolchain. Reviewed by christos, sjg.
2006-02-26 22:45:46 +00:00
wiz
3ea7f78b57
Fix typo.
2006-02-26 22:40:50 +00:00
sjg
701c9d99a7
Using ./bin in the test case, causes problems when 'make test' is
...
run from 'unit-tests' rather than the parent dir.
2006-02-26 22:20:55 +00:00
sjg
2bc18a45e6
Update man page and add test case for specifying modifiers via variable.
...
Also allow said variable to appear anywhere in the modifier list.
2006-02-26 21:43:00 +00:00
dyoung
dd269ac542
This patch removes one possible cause for a prolonged "out of disk"
...
condition on /tmp/: if creating the file list ($FILELIST) fails,
immediately exit with a non-zero result code. This fixes a bug
where, if the file list filled /tmp/, updatedb.sh would nevertheless
run for several minutes before it removed the file list as it quit.
2006-02-26 03:00:16 +00:00
simonb
bee087d4cc
libcompat isn't needed any more here.
2006-02-25 12:00:24 +00:00
wiz
5d1e8b2745
Fix some typos.
2006-02-25 02:28:55 +00:00
wiz
91c57604ae
Two improvements, from a diff from jmc@openbsd.
2006-02-25 01:19:22 +00:00
wiz
e60a6b4449
Wording, use more macros, xref grep(1). From jmc@openbsd.
2006-02-25 01:15:36 +00:00
wiz
5560f3fc8c
Sort options; from jmc@openbsd.
2006-02-25 01:13:55 +00:00
jld
e1c2c022ba
Fix typo ("program").
2006-02-23 20:57:03 +00:00
dsl
2acc3971af
Allow menu entry option names to be code fragments that (should) call
...
wprintw(menu->mw, ftm, args) to generate the menu label.
Allows static menu labels to contain the current value (like a lot of the
dynamic menus do).
Correct width calculations, and bound menu table lookup.
2006-02-20 21:06:40 +00:00
jschauma
a32f19d465
Add a new primary '-exit n':
...
This primary causes find to stop traversing the filesystem and
exit immediately if a previous condition was met. If no value is
specified, the exit value will be 0, else n. Note that other
primaries will be evaluated and acted upon before exiting.
Ok matt@, garbled@.
2006-02-20 16:31:02 +00:00
christos
63780e0b44
Propagate change from login.c where if getpeername succeeded, then we have
...
the sockaddr from the remote peer.
2006-02-20 05:05:16 +00:00
christos
539c95af37
PR/32873: Johan Veenhuizen: login(1) does not initialize lastlogx struct
...
properly
2006-02-19 00:48:34 +00:00
christos
e551462e89
PR/32870: Johan Veenhuizen: login(1) does not obey .hushlogin
2006-02-19 00:12:36 +00:00
tsutsui
8c30474280
Don't use data in freed stack.
2006-02-18 04:10:05 +00:00
sjg
051abc7bc4
Allow variable modifiers to be specified via variable.
2006-02-18 01:29:27 +00:00
sjg
555fff313b
Fix enum for better portability
2006-02-18 01:28:48 +00:00
wiz
3a118ff7be
Fix typo reported by Mathieu in PR 32846.
2006-02-17 06:56:15 +00:00
christos
10416487f0
Don't malloc/free the swap pointer with each refresh! Do it only if the
...
number of swap devices change. Now (and with the kvm fixes) top does not
allocate/free memory on each refresh.
2006-02-16 20:50:57 +00:00
tnozaki
f87e6eb1f0
make "locale -a" read locale.alias file.
2006-02-16 19:19:49 +00:00
jmmv
772e1db686
Adapt to some name changes in the tmpfs_node structure (to fix the build
...
under vax with gcc 2.95). Provided by he@.
2006-02-16 14:58:35 +00:00
christos
2d51080a2d
Do not attempt to generate moduli from moduli.c using the shuttle
...
suffix rule. This can happen if moduli.c is newer than moduli.
Reported by Hisashi T Fujinaka.
2006-02-15 15:51:37 +00:00
apb
c5bdb87cca
Escape dots in sed regexps. Without this patch, and without
...
an OBJDIR, "make test" in usr.bin/make fails.
2006-02-13 18:17:36 +00:00
kleink
2d52a8c98a
Print system processes' command names in square brackets, like ps(1) does.
2006-02-13 16:01:58 +00:00
christos
557f9b049f
PR/32799: David H. Gutteridge: Apparent off-by-one error in locate(1) causes
...
incorrect behaviour when entries with the maximum path length are encountered
2006-02-12 00:45:01 +00:00
dsl
2bfcea2ea3
Add some more debug prints.
2006-02-11 20:59:49 +00:00
dsl
e99202b6cf
Actually SIG_DFL the correct signal (not SIGINT every time) just prior to
...
exec'ing a program in the child.
2006-02-11 20:58:53 +00:00
dsl
26ed52262a
Delete obsolete static defn.
...
Trace number of unmade children on pass 1
2006-02-11 20:19:36 +00:00
cube
42b52b8a61
Add 'no config <name>'.
2006-02-11 20:15:53 +00:00
dsl
49c83bef6a
Debug trace all the targets we are actually intending making.
...
De-optimise the getting of a job token so we don't re-order the job
list when there are no tokens.
This might have helped etc/Makefile, but isn't enough.
2006-02-11 18:37:36 +00:00
christos
62bee0ffa5
PR/32788: KAMADA Ken'ichi: add support for tmpfs
2006-02-10 16:01:45 +00:00
dogcow
86811edb37
change #include <sys/endian.h> => #include <machine/endian.h> so that
...
it's (more) consistent in the tree; this, along with changing tools/compat's
autoconf detection from AC_CHECK_FUNCS to AC_CHECK_DECLS makes the vast
majority of htobe16 and friends' redefinition errors bite the dust.
Tested with -current and FreeBSD.
2006-02-09 22:03:15 +00:00
manu
ee0c5b44de
Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so
...
that the i386 license manager part of amd64 version of Fluent works.
While I'm here, add SysV IPC to COMPAT_LINUX/amd64
2006-02-09 19:18:56 +00:00
skrll
633207bbf9
Add scheduler activations upcall data to the default list of trace
...
points.
OK'd by christos.
2006-02-07 06:39:47 +00:00
dsl
0283f98333
Match changes to vmstat.c (splitting of dkreadstats).
...
Read tape stats if there are no disks found - is this possible?
2006-02-05 09:58:39 +00:00
dsl
228802f437
Split dkreadstats() into dkreadstats(), tkreadstats() and cpureadstats().
...
Similarly for dkswap().
Allows code to only call one of these.
Rename struct _disk to _vminfo to be nearer its contents.
Change 'systat vm' so that it always shows the 'current' cpu times, even
after ':run' or ':boot' commands. The code in vmstat.c doesn't support :run.
2006-02-05 09:54:50 +00:00
dsl
a6843277e3
Rename 'cur' to 'name' to avoid aliasing a global - this code has some
...
horrid globals...
2006-02-05 08:51:03 +00:00
he
9dfcf4d44d
Rename debug to telnet_debug, to allow static linking with libssh.a.
2006-02-02 19:33:12 +00:00
martin
cf67045dd0
Do not use %d for size_t!
2006-02-01 20:26:28 +00:00
christos
76fc0d5b65
rename debug to ftp_debug. grr libssh.
2006-01-31 20:05:35 +00:00
christos
e22794108e
Rename xfoo() to ftp_foo() to avoid collisions with libssh. Don't ask.
2006-01-31 20:01:23 +00:00
christos
643cfdb62a
PR/32680: Yves-Emmanuel JUTARD: Improve some error checking that causes
...
memory corruption on out of memory errors.
While I am here, remove some lint.
2006-01-31 17:36:56 +00:00
christos
3ac7a40466
fix compilation after changes to telopts. I will revisit this and constify
...
it later.
2006-01-25 04:20:54 +00:00
wiz
bdd062fb4d
Bring over changes I had committed to qsieve.6.
2006-01-24 19:17:19 +00:00
elad
c53cd0c067
moduli utils moved from games to usr.bin.
2006-01-24 19:01:45 +00:00
elad
e31e6187a9
Put qsieve/qsafe in usr.bin.
2006-01-24 18:59:23 +00:00
dsl
de841c2752
Make .NOTPARALLEL stop the job engine issuing more than one token (instead
...
of trying to de-jobify the make.
You can now put .NOTPARALLEL in a submake of a recursive make (where it is
using a job-token pipe from the outer make and have it only run a single job.
You can also specify .NOTPARRALEL in the root makefile of a large recursive
make and have the submakes run multiple commands.
Add some diagnostics printfs (enabled with -dp) to the parser.
2006-01-22 19:54:55 +00:00
christos
2309deb39e
restructure as a single level if/then/elif/else
2006-01-22 15:47:10 +00:00
martin
f6234a13ab
Do not access out of bounds argv when mixing non-getopt -<digit> arguments
...
with regular getopt-handled options.
Fixes PR bin/32596.
2006-01-22 15:24:38 +00:00
dsl
363c3a143d
Check the 'job_pipe' for the error token 'E' before every job, including
...
the first one for each make. This significantly speeds up the detection
of errors in other branches of the make (ie those running in a different
make process). The cost of reading and writing a byte from the pipe
should be insignificant.
Defer replacing job tokens until we've decided there is an error.
If we detect an error in another branch of the make, then call Fatal(),
setting 'aborting' and failing to return a token leads to infinite loops.
Now parallel makes actually stop with the failing command on the screen.
2006-01-21 19:18:37 +00:00
garbled
c2c322c5a5
Apply patch from PR bin/23836 cmp did not correctly parse skip arguments
...
given in hex or octal, as the manpage states it can.
2006-01-19 20:44:57 +00:00
elad
ba1244744f
sync usage().
2006-01-15 16:50:05 +00:00
christos
9ebf619229
fix trailing blank munging.
2006-01-15 14:41:45 +00:00
christos
bd35911685
revert the line calculation as it used to be pre-buffer changes.
2006-01-15 14:26:10 +00:00
wiz
a67c9be512
warnx appends a newline, so the string does not have to contain one.
...
Remove it.
2006-01-13 20:30:40 +00:00
tsutsui
a46df0d20b
Don't use data in freed stack.
2006-01-13 16:36:25 +00:00
wiz
9277c02ebe
New sentence, new line. Bump date for previous.
2006-01-12 21:54:06 +00:00
wiz
1f5df3a237
Bump date for -e.
2006-01-12 21:52:01 +00:00
garbled
6a2b4183c2
Slight refinement of -t description. Note that it generates a template
...
with 8 X's. Change .Bx Free and .Bx Open to .Ox and .Fx.
2006-01-12 21:39:45 +00:00
wiz
592cef634d
New sentence, new line. Bump date for previous.
2006-01-12 21:00:58 +00:00
garbled
ddd39082c1
Apply patch from PR bin/28717
...
This adds a -e option to progress which causes the progress bar to be
sent to stderr. This allows using progress mid-pipe, such as:
tar -cf . | progress -e bzip -1c | ssh host "cat > file"
2006-01-12 20:33:20 +00:00
garbled
f9abebf063
Applied patch from PR bin/14505 Tested on i386-current. Fixes inability of
...
cdplay to properly play a cd immediately following an eject command in
interactive mode. Patch supplied by Sergey Svishchev.
2006-01-12 18:15:59 +00:00
tsutsui
dcf59f2ba1
Add dates of ews4800mips and 3.0 release.
2006-01-09 18:45:00 +00:00
dsl
8cc9d75901
Include the 'preds' and 'successors' in the diag output.
...
These are the values that are actually used to control what is built.
(I suspect .WAIT info added in the previous delta isn't always useful.)
2006-01-08 17:43:31 +00:00
dsl
07c6949e33
Don't (try to) use files marked .OPTIONAL as implicit sources.
...
There existance hasn't been verified at the point the implicit rules are
checked.
2006-01-08 12:59:52 +00:00
dsl
94a49912ba
Include .WAIT in the debug output for dependency lists.
2006-01-08 11:54:13 +00:00
garbled
ee8c3b64e9
Add missing DPADD for LIBMATH
2006-01-07 07:12:27 +00:00
garbled
d8817d5ac1
Apply modified fix for PR bin/23763
...
jot(1)'s output now matches the examples given in the manpage.
2006-01-07 07:09:01 +00:00
christos
ed70dac6b1
add more const
2006-01-05 02:13:41 +00:00
christos
68e618cea2
more casts to void
2006-01-05 02:07:29 +00:00
christos
4d09f9add9
- use BUF_SIZE instead of BUFSIZ
...
- operator precedence in length calculation
- update buffer end pointer when buffer position does not change.
2006-01-04 22:05:26 +00:00
dsl
913c34c213
Expunge last references to jobTokensFree
2006-01-04 21:35:44 +00:00
dsl
1f61a1399d
When a parallel make job completes, always put the job token back into the
...
job_pipe and collect another one for the next job.
If we are aborting, remove all the 'normal' job tokens and add an 'error' one.
If we get an 'error' token, remove any other tokens, re-insert the error
token and exit (with error 'cos that is easier).
Add the current pid to some of the DEBUG(JOB) traces.
Combined effect is that parallel makes actually stop some fairly shortly
after an error, rather than running on long enough to fill the scrollback.
2006-01-04 21:31:55 +00:00
dsl
261501b75e
F_DUPFD the job_pipe fds onto higher numbers (>15) to make it less likely
...
that they will get closed in a complex recursive parallel make.
2006-01-04 21:25:03 +00:00
dsl
68ab653c0c
For parallel makes, don't recycle the job token when we decide not to
...
run anything.
2006-01-04 21:16:53 +00:00
dsl
12dafa0b4a
If -s (silent) is specified, don't output the target name before target
...
output in parallel makes.
After all with -s you wouldn't know the command for a non-parallel make.
Makes (sic) the output of parallel NetBSD build fathomable.
2006-01-04 20:56:05 +00:00
christos
e4a41ed570
fix problem introduced when the computation was changed to unsigned. If
...
we've exceeded the goal length already the negative number turned into
a large positive one...
2006-01-04 20:44:57 +00:00
perry
c9e98eabc1
de-__P, ANSIfy prototypes
2006-01-04 01:58:05 +00:00
perry
10e955c2f8
de-__P, ANSIfy prototypes
2006-01-04 01:44:06 +00:00
perry
d310ebb16a
de-__P, ANSIfy prototypes
2006-01-04 01:30:21 +00:00
perry
ee5c979c9f
de-__P, ANSIfy prototypes, and kill register
2006-01-04 01:17:54 +00:00
perry
c2e350ed82
de-__P, add ANSI prototypes, and a teeny bit of KNF.
2006-01-04 01:05:19 +00:00
garbled
0f9fab16a0
Fix a spello, and change the intent of the message slightly.
2006-01-03 00:15:45 +00:00
garbled
fd2134d98b
Add repeat mode to cdplay(1) per PR bin/13970
...
Applied the second patch in the PR, with minor tweaking, and adjusted
manpage for change.
2006-01-02 21:29:53 +00:00
garbled
a25ab7d823
Change "garbled time" panic to a message that gives the user a better
...
idea of what happened. Addresses PR bin/12463
2006-01-02 20:18:59 +00:00
christos
13d27fec78
recognize 307 redirect code.
2006-01-02 12:30:01 +00:00
tsutsui
1f5055228d
Add preliminary support for System V Boot File System.
...
Written by UCHIYAMA Yasushi <uch@netbsd>.
2005-12-29 14:53:45 +00:00
rpaulo
fbe17c43c7
Bump date for previous.
2005-12-28 22:53:59 +00:00
christos
2296939e9c
PR/32402: Jeffrey Bedard: pr filter dumps core with -s option specified,
...
when -s is specified with no argument. Option arguments in pr (as documented)
need to immediately follow the option. For example to set the separator char
to `.' you need to use "pr -s." instread of "pr -s .". The second form sets
the separator character to tab, and reads from file `.'. Coredumping is wrong
anyway, so fix that. Grr to POSIX for not forcing pr and a few other utilities
to use getopt(3).
cvs: ----------------------------------------------------------------------
2005-12-28 21:29:16 +00:00
rpaulo
fa0b253ddc
Explain the netstat -B flag column.
2005-12-28 17:57:16 +00:00
yamt
87a5de2d3d
add rcsid.
2005-12-27 11:29:30 +00:00