Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Note early appearence of some commands. These actually appeared in PWB, but | jmallett | 2002-06-10 | 1 | -0/+5 |
| | | | | | it seems we don't have a macro for that yet, so list them in the first UNIX release since then that we have a .At for: v7. | ||||
* | Use socklen_t for the length of a socket structure instead of `int'. | keramida | 2002-06-09 | 1 | -1/+2 |
| | | | | Reviewed by: mike | ||||
* | Replace <strings.h> with <string.h>. No functions from the former are | keramida | 2002-06-09 | 1 | -1/+1 |
| | | | | | | | used in this file, and strlen() needs to be prototyped by the latter, for this to compile without warnings. Reviewed by: mike | ||||
* | Check the return value of getcwd() to avoid printf()ing a NULL. Mark | mike | 2002-06-09 | 1 | -4/+5 |
| | | | | | | usage() as __dead2 to avoid a GCC warning. Spotted by: keramida | ||||
* | Allow whitespace to act as a delimiter in the keywords list given to the -o, | jmallett | 2002-06-08 | 2 | -5/+14 |
| | | | | | | | | again, but also allow it in the user-specified header, too. This is far more backwards compatible and SUSv3-happy than allowing only comma to seperate the keywords list. Submitted by: tjr | ||||
* | Fixed unsorting. | bde | 2002-06-08 | 1 | -1/+1 |
| | |||||
* | Don't say that the list of formats can be space delimited, it no longer can be. | jmallett | 2002-06-08 | 1 | -2/+5 |
| | | | | | | Mention that more than one -o will concatenate formats. Submitted by: Jun Kuriyama <kuriyama@imgsrc.co.jp> | ||||
* | Back out previous back out of previously correct code. | jmallett | 2002-06-07 | 1 | -2/+1 |
| | | | | | Double-plus-pointy-hat to: jmallett Submitted by: bde | ||||
* | Remove tunables to hide warnings that no longer exist. | jmallett | 2002-06-07 | 1 | -2/+0 |
| | |||||
* | Cast to long to match format. Hidden by revision 1.18 of Makefile. | jmallett | 2002-06-07 | 1 | -1/+2 |
| | |||||
* | Use a global `now' variable for the current time, and initialise it at | jmallett | 2002-06-06 | 3 | -6/+5 |
| | | | | startup, right after calling setlocale(3). | ||||
* | Implement a SUSv3-ignorant but "time"-similar format for "etime", elapsed | jmallett | 2002-06-06 | 4 | -0/+21 |
| | | | | | run time (NOT cpu time). cputime() and elapsed() both need to honour SUSv3 now. | ||||
* | sysctlbyname(3) returns -1 on failure, not any other value < 0. | jmallett | 2002-06-06 | 1 | -3/+3 |
| | |||||
* | Support the SUSv3 `rgroup' format. | jmallett | 2002-06-06 | 4 | -5/+24 |
| | | | | Clean up some local style bogons. | ||||
* | Cast arg_max to size_t when comparing it (times 4, plus 1) against SIZE_MAX. I | jmallett | 2002-06-06 | 1 | -1/+2 |
| | | | | | | | | was worried about truncation of arg_max by this cast, but if it gets truncated, we know it'll obviously be greater than SIZE_MAX anyway. Big pointy hat to: jmallett Submitted by: keramida | ||||
* | SUSv3 conform on the "comm" and "args" formats, and make correct the "command" | jmallett | 2002-06-06 | 4 | -4/+41 |
| | | | | format, since it's BSDlike, and "comm" is actually different. | ||||
* | Refer to the command format by its SUSv3 name (comm), and list command as an | jmallett | 2002-06-06 | 1 | -2/+2 |
| | | | | alias. | ||||
* | As per behaviour on SVR4 systems, to allow any desirable type of header in the | jmallett | 2002-06-06 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | override, seperate by comma (',') only, rather than any type of whitespace (the literal space character (' ') had already been removed from this list). This allows things like: miamivice# ps -opid='Process > Identifier' Process Identifier 1350 1445 1450 To work. | ||||
* | Document the -f and -v options of the unset builtin. | tjr | 2002-06-06 | 1 | -5/+15 |
| | |||||
* | Quote the output of the no-argument form of the `set' builtin for re-input | tjr | 2002-06-06 | 1 | -2/+8 |
| | | | | to the shell. | ||||
* | Add the SUSv3 -p ("portable") option to both the export and readonly | tjr | 2002-06-06 | 2 | -3/+47 |
| | | | | | builtins. This makes export/readonly print lines in the form "export name=value". | ||||
* | Don't modify output that is to be quoted if it contains no IFS characters | tjr | 2002-06-06 | 1 | -0/+7 |
| | | | | or shell metacharacters. | ||||
* | Widen the scope of fmt.c::1.19 and consistently use errx(3) if malloc(3) [or | jmallett | 2002-06-05 | 3 | -10/+8 |
| | | | | | | | | | | realloc(3)] happens to fail, everywhere in ps(1). Discussed with: bde, charnier (a while ago) fmt_argv() can no longer return NULL, so don't bother checking. Submitted by: bde | ||||
* | Comma seperate format lists, since space is no longer up to the task. | jmallett | 2002-06-05 | 1 | -6/+6 |
| | | | | | Poked by: David Wolfskill <david@catwhisker.org> Pointy hat to: jmallett | ||||
* | Support the 'comm' keyword, which is equivalent to our 'command', but | jmallett | 2002-06-05 | 1 | -0/+2 |
| | | | | specified by SUSv3. | ||||
* | A space cannot be a header string seperator it appears given the SUSv3 | jmallett | 2002-06-05 | 1 | -1/+1 |
| | | | | | description of ps(1), which uses them. I question whether newline and tab can be either, but I'm not touching them. Yet. | ||||
* | To comply with SUSv3, duplicate the variable contents for each given format, | jmallett | 2002-06-05 | 1 | -1/+4 |
| | | | | | | | | | | | | so that multiple -ovar=header lines do not overwrite eachother. This means that ps -ouser=USERNAME -ouser=WHO would now possibly print: USERNAME WHO juli juli Whereas before it would be: WHO WHO juli juli | ||||
* | Returning NULL here if malloc(3) fails is silly, at this point in the codepath | jmallett | 2002-06-05 | 1 | -1/+1 |
| | | | | | we have't malloc(3)'d nearly as much as we probably will, so errx(3) away, instead of waiting for something to fail yet again later on. | ||||
* | Remove an XXX comment that seems to be a tiny bit no longer pertinent. This | jmallett | 2002-06-05 | 1 | -4/+0 |
| | | | | | | function seems to do the right thing, and is not a "stub", and whoever "marc" is, he's had plenty of time to do "the real one", so don't wait around for him any longer. | ||||
* | Use of zero here meant many things, NULL, '\0' (NUL), and 0. Sort it out. | jmallett | 2002-06-05 | 1 | -5/+5 |
| | |||||
* | Use a const char * where it is meant to be used. There's no reason to try | jmallett | 2002-06-05 | 1 | -1/+2 |
| | | | | to discard the const qualifier here. | ||||
* | Duplicate the pointer to the string containing the header so it does not get | jmallett | 2002-06-05 | 1 | -1/+1 |
| | | | | frobbed when/if the pointer it is actually a part of gets freed. | ||||
* | Display job status correctly when a pipeline is suspended. | tjr | 2002-06-04 | 1 | -6/+8 |
| | |||||
* | Describe finished jobs as "Done", not "Exit" (SUSv3) | tjr | 2002-06-04 | 1 | -1/+5 |
| | |||||
* | Don't output `state' and `current' fields for processes that aren't | tjr | 2002-06-04 | 1 | -3/+5 |
| | | | | leaders in -l option to jobs(1). | ||||
* | Missing prototypes from previous commit. | tjr | 2002-06-04 | 1 | -0/+3 |
| | |||||
* | Correct minor spacing problem in output of jobs -l for pipelines. | tjr | 2002-06-04 | 1 | -1/+1 |
| | |||||
* | Quote alias values in the output of the alias(1) builtin so they are | tjr | 2002-06-04 | 3 | -5/+44 |
| | | | | suitable for re-input to the shell (SUSv3) | ||||
* | Respect setting of the COLUMNS environment variable (SUSv3) | tjr | 2002-06-04 | 2 | -1/+14 |
| | |||||
* | Ignore empty COLUMNS environment variable. COLUMNS should take precedence | tjr | 2002-06-04 | 1 | -5/+5 |
| | | | | over TTY width found via ioctl() (SUSv3) | ||||
* | Correct history (again): V3 had a kill command, only it was in section 8, | tjr | 2002-06-03 | 1 | -1/+1 |
| | | | | not 1. | ||||
* | Correct History: sync(8) appeared in V4. | tjr | 2002-06-03 | 1 | -1/+1 |
| | |||||
* | Correct History section: kill(1) appeared in V4, not V6. | tjr | 2002-06-03 | 1 | -1/+1 |
| | |||||
* | Fix typo causing ``fc -e'' to not work correctly. getopt() sets optarg, | tjr | 2002-06-02 | 1 | -1/+1 |
| | | | | not shoptarg. | ||||
* | Adding an entry to the history with H_ENTER moves libedit's internal | tjr | 2002-06-02 | 1 | -0/+9 |
| | | | | | history cursor. Reset the cursor after adding the entry to the history when doing ``fc -s'' so the output is correct. | ||||
* | Implement $PPID, the parent process ID of the shell. | tjr | 2002-06-01 | 2 | -0/+9 |
| | |||||
* | Support the remaining job ID formats required by SUSv3: | tjr | 2002-06-01 | 1 | -2/+21 |
| | | | | | | %+ (current job, same as %%), %- (previous job), %?str (job with "str" in its command name). | ||||
* | Add -s (output PID's only) and -l (show PID's) options to the jobs(1) | tjr | 2002-05-31 | 4 | -18/+85 |
| | | | | builtin. Modify the output format to match what SUSv3 requires. | ||||
* | #if JOBS around a job control-related statement to allow compilation with | tjr | 2002-05-31 | 1 | -0/+2 |
| | | | | job control disabled. | ||||
* | Break the code to display status info for one job out from showjobs() into | tjr | 2002-05-31 | 1 | -63/+52 |
| | | | | | showjob(), use it inside dowait() to display status info for consistency, and in a format closer to what the standard requires. |