Commit Graph

4679 Commits

Author SHA1 Message Date
mycroft b91d3efb9a Make the fds[] realloc O(n). Also make the rethreading a lot simpler. 2000-12-05 21:57:20 +00:00
sommerfeld e65a50bf34 Boolean consistancy (use TRUE, not 1) 2000-12-05 17:07:01 +00:00
sommerfeld e3f68e5130 Make clearfd() take O(1) time instead of O(N) by moving only the last
job in the arrays to the hole made by the now-dead job.  No
measureable performance difference for -j4, but the code is simpler
this way.
2000-12-05 15:28:55 +00:00
sommerfeld b5e2403ec9 correct performance regression of recent change from select() to
poll() for parallel make:
 - Make the poll() code behave more like the select() code: sleep for
a bit waiting for output rather than busy-wait (eww).
 - Install a no-op SIGCHLD handler so that poll/select wake up early
(with -1/EINTR) when a child exits.
 - Change the default sleep time from 500ms to 5 seconds since we now
wake up promptly when a child exits.
2000-12-05 15:20:10 +00:00
wiz de67766c6a Don't strcpy the contents of an environment variable into a fixed-size
buffer, use strlcpy instead. Should fix security/11550.
2000-12-05 02:19:23 +00:00
wiz d6493c16ff Fix typos and wording. 2000-12-04 22:33:52 +00:00
christos fd8f9c7b9f oops forgot to commit this one. 2000-12-04 20:13:29 +00:00
christos 8ba1720b96 mycroft did not like my O(n^2) lookup algorithm, so I made things much
more complicated.
2000-12-04 17:45:17 +00:00
christos 105cc20925 1. switch to using poll by default; can be overriden by compiling with
-DUSE_SELECT
2. make sure that we don't overrun our allocated fd_set if USE_SELECT is defined
2000-12-03 02:19:32 +00:00
christos 709d0cf4cb add noreturn attribute to the functions that need it. 2000-12-03 02:18:14 +00:00
christos 9a19da76d7 1. the tfile patch was incorrect. If we are doing multiple jobs, we
try to open tfile many times, passing bad strings to mkstemp
2. remove extra semicolon after the MESSAGE macro
3. more error checking
4. be more careful about setting things to NULL after freeing.
5. fix a comment that does not apply anymore
2000-12-03 01:27:03 +00:00
christos 6a9332cff1 use 6 X's instead of 5 for portability. 2000-12-03 01:18:15 +00:00
aymeric 7d37aa5213 tagp[rev] -> tagpr[ev]
(tagp abbreviates tagpop)
2000-12-01 09:52:33 +00:00
simonb 828483a73e Remove extern variables and functions now declared in dkstats.h.
While here, remove 77 (!) unneed #includes.
2000-12-01 02:19:43 +00:00
simonb 198d7bfbee Don't "extern" variables and function in dkstats.c, declare them in
dkstats.h instead.
2000-12-01 02:08:26 +00:00
simonb 80bd9216d2 ANSIfy. 2000-11-30 23:59:03 +00:00
simonb 2eddffdf28 Show the vnode page cache memory usage on the "bufcache" display. 2000-11-30 12:08:13 +00:00
simonb f982391188 Use a better description for the vnode page cache pages. 2000-11-30 12:02:19 +00:00
simonb 21abd388e9 Show anonpages and vnodepages in "vmstat -s". 2000-11-30 11:50:15 +00:00
christos e8048693f8 Open only plain files [please someone add O_REG_ONLY]. Since /etc/daily
runs calendar -a, a malicious user can put a fifo in his home directory
to prevent calendar from completing. Many thanks to: dynamo@ime.net
2000-11-29 15:29:51 +00:00
simonb ba632e7078 Use the vm.uvmexp2 sysctl. 2000-11-29 11:18:33 +00:00
itojun 4b0b785e16 fix INET6-less build (like x_ftp). PR11578 2000-11-27 16:08:03 +00:00
lukem 294b3e3a95 be more explicit that $ftp_proxy and $http_proxy are not supported for
interactive sessions
2000-11-27 10:19:12 +00:00
wiz 18f3d66238 Handle arguments in a slightly more standard way (avoid resetting optind). 2000-11-27 00:54:25 +00:00
itojun 75e162d7c2 cope with 2553bis getnameinfo (always attach scope id)
getnameinfo error check.
2000-11-24 13:01:24 +00:00
pooka 299c5ebbdc tweak for 3.33 2000-11-23 23:22:58 +00:00
pooka d98ea99cc1 resolve conflicts 2000-11-23 23:21:14 +00:00
pooka 667236c7cd file 3.33 2000-11-23 23:07:30 +00:00
itojun 78673096cc make sure we do not overrun tp->th_msg on ERROR packet.
correct ERROR length to include terminating \0 (RFC1350 page 8).
2000-11-21 14:58:21 +00:00
itojun 44442755b9 make sure we do not overrun peeraddr. 2000-11-21 14:28:54 +00:00
msaitoh e633320474 Insert a tab if the length of the directory > 35 bytes to prevent
concatenation.
2000-11-21 11:09:24 +00:00
sommerfeld e1c4d5f30b If kernel gives us a CPU number in kinfo_proc2, display it after the state.
Rename "onproc" to "cpu".
2000-11-19 01:49:29 +00:00
fvdl 176686cd4f In krb5_end, don't try to free the krb5 context if it's not yet
been initialized. Fixes coredump when passwd is called as 'yppasswd'.
2000-11-18 19:29:20 +00:00
christos e9de7ed611 fix a multitude of core dumps because most functions were not checking
the length of the word list.
2000-11-15 19:54:43 +00:00
christos 6941b7e8a4 strcmp returns an int not a ptr so don't compare to NULL 2000-11-15 19:54:12 +00:00
itojun 6d80a2bff1 use NI_MAXHOST with getnameinfo. we can assume presense of getnameinfo. 2000-11-15 04:09:19 +00:00
lukem ecd3d78091 - implement "mreget"; as per "mget" but uses "reget" instead of "get"
- add -N netrc and $NETRC, as methods to select an alternative .netrc file
- cache local user name and home directory for further use
- in mget(), use docase() instead of a local version to do the case
  conversion.
2000-11-15 00:10:59 +00:00
matt c3405770e4 Do the same IEEE1394 address hack in here. 2000-11-14 23:07:40 +00:00
matt b6e8f357a2 Print out IEEE1394 addresses with : . Add a hack to limit the address
to 8 bytes.
2000-11-14 23:00:57 +00:00
jdolecek 53b6556eda back out previous change - this needs to be discussed first at least 2000-11-14 00:10:16 +00:00
jdolecek dfc9af3212 don't link these static; if shared libraries are hosed, these utilities would
surely not save the situation, not help to recover from it
2000-11-13 21:48:33 +00:00
jdolecek b837b700fa map linux ptrace op (number) to it's appropriate name - this is kind of hack,
but turned out to be pretty usable for me
2000-11-13 21:43:12 +00:00
jdolecek 862d46845d adapt to *syscallnames[] change (it's now const char * const foo[]),
constify
2000-11-13 21:38:48 +00:00
jdolecek 90afd0dc9d constify, remove redundant dumpfile() prototype 2000-11-13 21:36:22 +00:00
jdolecek af319ecb1a constify 2000-11-13 21:35:38 +00:00
ad e0ffdbe290 - mdocify
- misc clean ups
2000-11-13 12:16:28 +00:00
mycroft 0581ae5bad Make ldd(1) build again. 2000-11-10 23:53:04 +00:00
wiz f780ab4671 Fix example; problem report and solution by Jim Bernard in PR 10259. 2000-11-08 12:53:14 +00:00
mrg f81973bb8f sparc & sparc64 use `long' for ptrdiff_t. 2000-11-08 02:30:22 +00:00
wiz 63369ae96e tsort needs an even number of nodes, not of node pairs.
Reported by Lloyd Parkes in PR 10788.
2000-11-08 00:56:26 +00:00