Commit Graph

7666 Commits

Author SHA1 Message Date
kientzle
aad6da715d Support path-rewriting options (including --strip-components) for both
extraction and creation.  While I'm here, fix a bug reported by Garrett
Wollman: when stripping the leading '/' from the path "/", don't produce
an entry with an empty name; produce "." instead.
2005-04-17 17:20:54 +00:00
keramida
59608054b7 Reduce the width of the THR column to 4 characters, to avoid wrap-around
of lines in SMP machines (which are wider), until we have a better way
of handling window sizes & columns in top.

Caught by:	ache, Andre Guibert de Bruet <andy@siliconlandmark.com>
Point hat:	keramida
2005-04-16 15:43:38 +00:00
stefanf
3e0b573710 Update the bugs section, null characters in the format string are now handled. 2005-04-14 18:29:59 +00:00
stefanf
38397a7eb9 Handle null characters in the format string. A \0 in the argument passed to %b
still results in trucation but this is be much harder to fix.
2005-04-14 17:02:34 +00:00
stefanf
cccb9b3682 No reason to write \a and \v as octal escape sequences. 2005-04-14 15:32:21 +00:00
keramida
21c1281230 - Add a THR column to the process listing, that shows the number of
threads a process has.  The THR column is disabled and disappears
  when 'H' is hit, because then every thread gets its own output line.
- Allow sorting processes by "threads".

Approved by:	davidxu
Inspired by:	Jiawei Ye <leafy7382@gmail.com>
2005-04-14 15:02:03 +00:00
stefanf
14c3fff172 Printf(1) is WARNS 6 clean. 2005-04-14 08:43:36 +00:00
stefanf
8a1d3d9af2 - Move parts of the long main() function into a new function doformat().
- Rewrite the loop in main() to be more understandable.
2005-04-14 08:40:28 +00:00
stefanf
765a7779c8 Assign 0.0 to the variable passed to getfloating() if the argument is missing.
MFC after:	1 week
2005-04-13 19:54:03 +00:00
harti
68a5d8b981 Split VarFind() into a series of functions tailored for the different sets
of flags originally passed to VarFind(). This eliminates the code by
removing a bunch of tests.

Patch:		7.173

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-04-13 11:40:44 +00:00
mdodd
7cae26d43c Add support for more than two datasets. Currently limited to 7 though
the limit is only the number of meaningful graph symbols available.

Statistical comparison is performed between the first dataset and
any further datasets.

No objection by:	 phk
2005-04-13 05:50:56 +00:00
jylefort
99c51455af Add myself as a new ports committer.
Approved by:	adamw (mentor)
2005-04-12 20:06:43 +00:00
ru
ba39d66f14 Silence a warning on systems without carp(4). 2005-04-12 08:47:04 +00:00
stefanf
30e304f59d Replace buggy for-loops to skip certain character with strspn(). If *fmt was
'\0' (eg in the invocation 'printf %'), the for-loop would miss the terminating
null character.

MFC after:	1 week
2005-04-11 10:57:54 +00:00
harti
7c74744edb Parse_Init() is gone so remove comments that mention it. 2005-04-11 07:40:54 +00:00
harti
c1f7927d0b Remove an unneccesary forward declaration for MainParseArgs().
getopt() may be called several times - make sure to set optreset
to reset it. Cleanup handling of non-option arguments.
Remove some misleading comments.

Patch:		7.171

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-04-11 07:32:49 +00:00
harti
f3a646433b Remove the call to Parse_Init() - there is no need to initialize
a static variable to NULL. Forgot this in the previous commit to
parse.[ch].
2005-04-11 07:26:21 +00:00
harti
6fd4d9a1ee Rework the directive parsing code. Instead of using a lot of strcmp()s
on every line that starts with a dot use a minimal perfect hash
function and a single strcmp() on the first word after the dot
to find out whether it is really a directive call and, if yes, which
one. Then directly dispatch to a handler function for that directive
(or fall through to the dependency handling code). This makes the
directive parse a little bit more strict about the syntax: the directive
word must be followed by a character that is not alphanumerical and not
an underline (making .undefFOO illegal); .endif and .else can only be
followed by comments.
2005-04-11 07:20:10 +00:00
remko
ac58626784 Add myself to the calendar.
MFC after: 	1 week
Approved by:	simon (mentor)
2005-04-10 19:03:48 +00:00
stefanf
a53739d7ee Remove unused variables. 2005-04-09 14:31:41 +00:00
murray
03a843118e Commodore Perry was not 4 years old when he sailed to Japan. Correct
birth year.
2005-04-08 09:50:30 +00:00
joel
8479d7ff08 Add myself (and decrease the average age).
Approved by:	brueffer (mentor)
2005-04-08 09:04:29 +00:00
harti
c1b16db069 Move the code for parsing .for and .if statements to the place where the
other directives are handled.
2005-04-08 09:03:40 +00:00
harti
32fe258978 When Parse_Error is called after the top-level Makefile is closed we
have no CURFILE anymore so we cannot print a file name or line number.

When ParseSkipLine() returns NULL (it does this when it has detected an
EOF in an .if block) try to pop the input stack and process the next line
2005-04-07 14:39:38 +00:00
harti
962d0440fe Handle popping of the input stack in ParseReadLine() instead of
Parse_File(). Remove a comment and a piece of code comming from
ancient times when the if-directive read like #if and not .if.
Correctly analyze the first character of a line.
2005-04-07 11:29:39 +00:00
harti
c24ff5be7a Mostly stylistic changes: remove the noPLen field from the Shell
structure - it is just the strlen() of noPrint. Inline JobCondPassSig()
in the only function JobPassSig() using it. Fix the argument types
of JobPrintCommand(). Better parsing for the .SHELL target keywords.
2005-04-07 11:26:15 +00:00
harti
4defd5473a There is not much sense in having an else after Punt() and _exit() which
never return. Also use pid_t for variables holding PIDs.
2005-04-05 12:33:54 +00:00
harti
cb9fe5f778 Put parantheses into 'if (foo && bar & flag)'. While they are not strictly
needed, they are useful for the human reader.
2005-04-05 08:14:40 +00:00
harti
0b3bbfc5ab Remove lots if irritating parantheses and fix two comments.
Checked by:	md5
2005-04-05 08:09:48 +00:00
harti
009596bf79 Remove the definition for STATIC and just use static. 2005-04-05 07:44:11 +00:00
harti
3112ed9747 Remove unneccessary local prototypes. 2005-04-05 07:43:02 +00:00
harti
9b7bc7a647 The static tfile is used only in one single function so move it into that
function.
2005-04-05 07:40:40 +00:00
harti
584297b3c4 The tfile field of struct Job isn't used anymore since revision 1.22 so
remove it now.
2005-04-05 07:32:12 +00:00
stefanf
e17c93f393 Include <string.h> and <strings.h> for various functions. 2005-04-04 21:19:48 +00:00
pjd
660343c329 If they ever tell my story,
let them say I lived in the time of Pope John Paul II,
one of the greatest man...

Je¶li kiedy¶ kto¶ opowie moj± historiê,
niech powie, ¿e ¿y³em w czasach Papie¿a Jana Paw³a II,
jednego z najwspanialszych ludzi, najwspanialszego Polaka...

			-- Pawe³ Jakub Dawidek, atheist
2005-04-03 09:46:06 +00:00
imp
b2a7e9bcff Don't refer to devices that don't exist. 2005-04-03 05:19:45 +00:00
tanimura
a690651f10 Commemorate the bicentenary of Hans Christian Andersen's birth by
adding his birthday.
2005-04-02 09:27:13 +00:00
tjr
fcc1b63326 Use rpmatch() instead of checking for responses that begin with 'y'
in queryuser(). This allows users to respond to -ok and -okdir
prompts with any affirmative reply defined by their current locale.
2005-04-02 07:44:12 +00:00
harti
6659154332 Use a type-safe intrusive list to put jobs on the jobs or stoppedJobs list
instead of the generic Lst.
2005-04-01 16:24:25 +00:00
harti
91352e7965 Remove a forward declaration that isn't needed anymore. 2005-04-01 16:23:48 +00:00
harti
874cbfd73f Both struct Job and struct Shell are only used inside job.c so there is
no need to have them in a header file that is included by other modules.
Move them both into the c-file.
2005-04-01 13:35:35 +00:00
harti
e9c08dff47 Style: fix indentation. 2005-04-01 13:25:45 +00:00
harti
c8ab0dc5d1 Style: fix indentation. 2005-04-01 13:06:05 +00:00
harti
d5cee0d8f0 Style: indentation. 2005-04-01 13:02:17 +00:00
harti
cb601192b1 Style: Indentation. 2005-04-01 12:42:03 +00:00
harti
446fc783f9 Style: fix indentation. 2005-04-01 12:31:15 +00:00
harti
478249bcc9 Style: fix indentation. 2005-04-01 11:20:17 +00:00
harti
d0680048d7 Style: fix indentation. 2005-04-01 11:12:29 +00:00
harti
e61a7b3518 Style: fix indentation. 2005-04-01 10:53:43 +00:00
cperciva
c79e1b8857 Note the passing of Cameron Grant <cg@FreeBSD.org>.
Approved by:	quiet1
2005-03-31 23:15:14 +00:00