summaryrefslogtreecommitdiff
path: root/libps/fmt.c
AgeCommit message (Collapse)Author
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2009-11-17Fix ps -o command and such hangSamuel Thibault
* libps/fmt.c (_fmt_create): Put NUL terminator only when there is room for it. When there is not it is there already anyway.
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1997-02-28(ps_fmt_squash):Miles Bader
Deal with FIELD->spec being NULL when advancing over a field.
1996-10-08(_fmt_create):Miles Bader
Initialize INAPP & ERROR fields. (ps_fmt_clone): Propagate them. (ps_fmt_write_proc_stat): Use them.
1996-06-27(_fmt_create): Set NEW_FMT->src_len. Use strdup.Miles Bader
(ps_fmt_clone): New function.
1996-05-28(_fmt_create): Make NAME termination work for posix-mode.Miles Bader
1996-05-28(ps_fmt_write_proc_stat): Call the output function correctly.Miles Bader
(_fmt_create): Get FIELD's precision, not width, from its spec.
1996-05-23(_fmt_create):Miles Bader
Increment SRC when reading modifiers. Recognize '^' modifier.
1996-05-07(_fmt_create):Miles Bader
Change syntax of fields. Add support for precision and `@', `:', `?', & `!' modifiers. Add POSIX argument, and support for posix-style format strings. When using the field name as the title, use the defn, not the user's. (ps_fmt_write_titles): Implement PS_FMT_FIELD_UPCASE_TITLE. (ps_fmt_squash): Call FN with the field, not the field's spec. (ps_fmt_squash_flags): Appropiately modify the function we use. (ps_fmt_create, ps_fmt_creation_error): Add POSIX argument.
1996-05-01(_fmt_create): New function (was ps_fmt_create).Miles Bader
(ps_fmt_create): Call _fmt_create. (ps_fmt_creation_error): New function.
1996-03-26Get rid of mega typedefs, and just use structure pointers like other hurdMiles Bader
libraries. Other misc cleanups.
1996-01-19(ps_fmt_create):Miles Bader
Use the new spec fields. Now takes a ps_fmt_specs_t instead of an array of specs. Also fixup call to ps_fmt_specs_find(). (ps_fmt_write_proc_stat): Support new inval field in FMT. (ps_fmt_set_output_width): New function.
1995-11-20(ps_fmt_write_titles, ps_fmt_write_proc_stat): Use new write function names.Miles Bader
Use new STREAM parameter instead of old one and count.
1995-05-31(ps_fmt_create): Don't mutate the format spec name in the fmt_spec list we'reMiles Bader
passed just to get correctly capitalized titles. Instead, do things correctly by making enough room to store our own version of the title string, which we can do with what we please.
1995-05-03Rename ps_fmt_squash to ps_fmt_squash_flags, moving most of the guts into aMiles Bader
new more general ps_fmt_squash, which is usable for other things than flags. Recalculate the set of ps flags needed by the fmt in ps_fmt_squash (which then allows us to remove more specific code in ps_fmt_squash_flags).
1995-04-07Tighten up types used (i.e., don't use int for everything).Miles Bader
1995-03-14Copy the correct number of fields when squashing.Miles Bader
Correctly skip prefix-only fields.
1995-03-13Initial revisionMiles Bader