]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoRemove the old nextboot from Whistler. AFAIK this hasn't been useable in
gordon [Thu, 6 Jun 2002 20:20:58 +0000 (20:20 +0000)]
Remove the old nextboot from Whistler. AFAIK this hasn't been useable in
quite a while and only works on i386.

22 years agos/daddr_t/ufs_daddr_t/g
phk [Thu, 6 Jun 2002 19:59:46 +0000 (19:59 +0000)]
s/daddr_t/ufs_daddr_t/g

This should fix the issues which cropped up after daddr_t grew up.

Sponsored by: DARPA & NAI Labs.

22 years agoHook stat into the build
dougb [Thu, 6 Jun 2002 19:36:51 +0000 (19:36 +0000)]
Hook stat into the build
Fix a trailing ws nit while I'm here

22 years agoThis commit was generated by cvs2svn to compensate for changes in r97952,
dougb [Thu, 6 Jun 2002 19:27:17 +0000 (19:27 +0000)]
This commit was generated by cvs2svn to compensate for changes in r97952,
which included commits to RCS files with non-trunk default branches.

22 years agoVirgin import of NetBSD's stat(1)
dougb [Thu, 6 Jun 2002 19:27:17 +0000 (19:27 +0000)]
Virgin import of NetBSD's stat(1)

22 years agoUnhook the old nextboot(8) from the build. If no one yells too loudly, this
gordon [Thu, 6 Jun 2002 19:26:15 +0000 (19:26 +0000)]
Unhook the old nextboot(8) from the build. If no one yells too loudly, this
will be accompanied by a cvs rm of the actual nextboot sources.

Approved by: jake (mentor)

22 years agos/!SIGNOTEMPY/SIGISEMPTY/
davidc [Thu, 6 Jun 2002 19:12:41 +0000 (19:12 +0000)]
s/!SIGNOTEMPY/SIGISEMPTY/

Reviewed by: marcel, jhb, alfred

22 years agoDocument MTX_DUPOK
davidc [Thu, 6 Jun 2002 19:08:11 +0000 (19:08 +0000)]
Document MTX_DUPOK

Requested by: jeff (long ago)

22 years agoHandle "dead" witnesses better in the situation of several short term locks
jhb [Thu, 6 Jun 2002 19:04:38 +0000 (19:04 +0000)]
Handle "dead" witnesses better in the situation of several short term locks
being created and destroyed without a single long-term one around to ensure
the witness associated with that group of locks stays alive.  The pipe
mutexes are an example of this group.  For a dead witness we no longer
clear the witness name.  Instead, when looking up the witness for a lock,
if a dead witness' (a witness with a refcount of 0) w_name pointer is
identical to the witness name of the lock then we revive that witness
instead of using a new witness for the lock.  This results in far fewer
dead witness objects and also better preserves locking orders over the long
term resulting in more correct lock order checking.  Note that we can't
ever derefence w_name of a dead witness since we don't know if the string
it is pointing to has been free()'d or kldunload()'d out from under us.

22 years agofix typo in _SYS_SYSPROTO_H_ case: s/mlockall_args/munlockall_args
alfred [Thu, 6 Jun 2002 18:51:14 +0000 (18:51 +0000)]
fix typo in _SYS_SYSPROTO_H_ case: s/mlockall_args/munlockall_args

Submitted by: Mark Santcroos <marks@ripe.net>

22 years agoFactor out some code in preparation for un-kmeming fstat(1).
des [Thu, 6 Jun 2002 18:39:53 +0000 (18:39 +0000)]
Factor out some code in preparation for un-kmeming fstat(1).

Sponsored by: DARPA, NAI Labs

22 years agoRefer to the command format by its SUSv3 name (comm), and list command as an
jmallett [Thu, 6 Jun 2002 18:10:12 +0000 (18:10 +0000)]
Refer to the command format by its SUSv3 name (comm), and list command as an
alias.

22 years agoAs per behaviour on SVR4 systems, to allow any desirable type of header in the
jmallett [Thu, 6 Jun 2002 18:04:46 +0000 (18:04 +0000)]
As per behaviour on SVR4 systems, to allow any desirable type of header in the
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.

22 years agoMatch the DBX_OUTPUT_MAIN_SOURCE_FILE_END definition in dbxelf.h.
obrien [Thu, 6 Jun 2002 18:00:58 +0000 (18:00 +0000)]
Match the DBX_OUTPUT_MAIN_SOURCE_FILE_END definition in dbxelf.h.

Bug found by: bde

22 years agoGratuitous whitespace cleanup.
des [Thu, 6 Jun 2002 16:59:24 +0000 (16:59 +0000)]
Gratuitous whitespace cleanup.

22 years agoHook up the ahd driver.
gibbs [Thu, 6 Jun 2002 16:35:58 +0000 (16:35 +0000)]
Hook up the ahd driver.

22 years agoRemove one more multi-line string literal.
gibbs [Thu, 6 Jun 2002 16:07:18 +0000 (16:07 +0000)]
Remove one more multi-line string literal.

22 years agoMove some sysctls from the debug tree to the vfs tree.
des [Thu, 6 Jun 2002 15:50:22 +0000 (15:50 +0000)]
Move some sysctls from the debug tree to the vfs tree.

22 years agoGratuitous whitespace cleanup.
des [Thu, 6 Jun 2002 15:46:38 +0000 (15:46 +0000)]
Gratuitous whitespace cleanup.

22 years agoFixed typos.
ru [Thu, 6 Jun 2002 14:08:04 +0000 (14:08 +0000)]
Fixed typos.

22 years agoTidy up.
ru [Thu, 6 Jun 2002 14:07:45 +0000 (14:07 +0000)]
Tidy up.

22 years agoTidy up.
ru [Thu, 6 Jun 2002 13:55:01 +0000 (13:55 +0000)]
Tidy up.

22 years agolibfetch now depends on libcrypto and libssl.
ru [Thu, 6 Jun 2002 13:45:46 +0000 (13:45 +0000)]
libfetch now depends on libcrypto and libssl.

22 years agoBack out rev 1.19 because
ache [Thu, 6 Jun 2002 13:44:14 +0000 (13:44 +0000)]
Back out rev 1.19 because

1) It breaks uniq for real life languages when "substitute" directive used in
the collating table.
2) It breaks uniq usage in tool chain with other localized utilities which
use collate.
3) To follow LC_COLLATE it is directly allowed for uniq
by POSIX P1003.1 Draft7 (7.3.2). It means that rev 1.19 gains no additional
POSIX conformance.

22 years agoSupport suidperl as well.
des [Thu, 6 Jun 2002 12:12:23 +0000 (12:12 +0000)]
Support suidperl as well.

22 years agoAdded missing DPADD detected by ``make checkdpadd''.
ru [Thu, 6 Jun 2002 11:30:57 +0000 (11:30 +0000)]
Added missing DPADD detected by ``make checkdpadd''.

22 years agoCorrect FreeBSD release of first appearance in the HISTORY section
sheldonh [Thu, 6 Jun 2002 10:51:25 +0000 (10:51 +0000)]
Correct FreeBSD release of first appearance in the HISTORY section
(5.0 -> 4.6).

22 years agoUse "bwrbg" as description when we sleep for background writing,
phk [Thu, 6 Jun 2002 08:56:10 +0000 (08:56 +0000)]
Use "bwrbg" as description when we sleep for background writing,
"biord" was misleading in every possible way.

22 years agoMake sc_saver_keyb_only (sceen saver interrupted by keyboard input only)
alfred [Thu, 6 Jun 2002 06:02:17 +0000 (06:02 +0000)]
Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)
the default.

22 years agoDocument the -f and -v options of the unset builtin.
tjr [Thu, 6 Jun 2002 04:12:50 +0000 (04:12 +0000)]
Document the -f and -v options of the unset builtin.

22 years agoQuote the output of the no-argument form of the `set' builtin for re-input
tjr [Thu, 6 Jun 2002 04:02:50 +0000 (04:02 +0000)]
Quote the output of the no-argument form of the `set' builtin for re-input
to the shell.

22 years agoAdd the SUSv3 -p ("portable") option to both the export and readonly
tjr [Thu, 6 Jun 2002 03:57:22 +0000 (03:57 +0000)]
Add the SUSv3 -p ("portable") option to both the export and readonly
builtins. This makes export/readonly print lines in the form
"export name=value".

22 years agoRead specs from /usr/libdata/gcc/specs if it exists.
obrien [Thu, 6 Jun 2002 03:47:02 +0000 (03:47 +0000)]
Read specs from /usr/libdata/gcc/specs if it exists.

22 years agoAllow the specification of LONG_TYPE_SIZE on the command line.
obrien [Thu, 6 Jun 2002 03:39:03 +0000 (03:39 +0000)]
Allow the specification of LONG_TYPE_SIZE on the command line.

Submitted by: bde

22 years agoImplement "-mno-align-long-strings" which prevents pessimization of strings
obrien [Thu, 6 Jun 2002 03:36:32 +0000 (03:36 +0000)]
Implement "-mno-align-long-strings" which prevents pessimization of strings
for space.  -Os could do this, but it was easy to hack an MD version.
This saves a whole 32 bytes in boot2, so I think it is worth using it.
(keep how much worse gcc 3.2 will compile boot2...)

Submitted by: bde (minus gcc 3.2 commentary)

22 years agoDidn't get them all in revision 1.50.
obrien [Thu, 6 Jun 2002 03:30:40 +0000 (03:30 +0000)]
Didn't get them all in revision 1.50.

22 years agoDon't modify output that is to be quoted if it contains no IFS characters
tjr [Thu, 6 Jun 2002 03:29:23 +0000 (03:29 +0000)]
Don't modify output that is to be quoted if it contains no IFS characters
or shell metacharacters.

22 years agoFix excessive alignment for the aout case, and unbreak genassym for that case.
obrien [Thu, 6 Jun 2002 03:28:49 +0000 (03:28 +0000)]
Fix excessive alignment for the aout case, and unbreak genassym for that case.
Our aout linker has alignment hacks and doesn't need gcc to do anything special.

Tested for a year by: bde :-)

22 years agoTidy do-while.
obrien [Thu, 6 Jun 2002 03:26:36 +0000 (03:26 +0000)]
Tidy do-while.

Requested by: bde

22 years agoCompare lines with strcmp(), not strcoll(). We are interested only in
tjr [Thu, 6 Jun 2002 03:13:08 +0000 (03:13 +0000)]
Compare lines with strcmp(), not strcoll(). We are interested only in
equality, not ordering.

22 years agoSync usage() with manual page synopsis.
tjr [Thu, 6 Jun 2002 03:05:30 +0000 (03:05 +0000)]
Sync usage() with manual page synopsis.

22 years agoCast pid_t to long for printf()ing
brian [Thu, 6 Jun 2002 01:39:46 +0000 (01:39 +0000)]
Cast pid_t to long for printf()ing

Obtained from: OpenBSD

22 years agoRead specs from /usr/libdata/gcc/specs if it exists.
obrien [Thu, 6 Jun 2002 00:49:58 +0000 (00:49 +0000)]
Read specs from /usr/libdata/gcc/specs if it exists.

22 years agoFixed overflow in the bounds checking in dscheck(). It assumed that
bde [Thu, 6 Jun 2002 00:35:07 +0000 (00:35 +0000)]
Fixed overflow in the bounds checking in dscheck().  It assumed that
daadr_t is no larger than a long, and some other relatively harmless
things (*blush*).  Overflow for subtracting a daddr_t from a u_long
caused "truncation" of the i/o for attempts to access blocks beyond
the end of the actually cause expansion of the i/o to a preposterous
size.

22 years agoA script to generate all of the packages/*/* symlinks described in the INDEX
brian [Thu, 6 Jun 2002 00:18:49 +0000 (00:18 +0000)]
A script to generate all of the packages/*/* symlinks described in the INDEX

22 years agoA script to validate that the packages and dependencies listed in
brian [Thu, 6 Jun 2002 00:17:11 +0000 (00:17 +0000)]
A script to validate that the packages and dependencies listed in
the INDEX file exist.

22 years agoAdd 'utility' in a place that it was missing.
keramida [Wed, 5 Jun 2002 23:39:56 +0000 (23:39 +0000)]
Add 'utility' in a place that it was missing.

PR: docs/38814
Submitted by: Chris Pepper <pepper@rockefeller.edu>
MFC after: 10 days

22 years agoConst'ify variables to make it clear we're not writing to the mbuf data.
archie [Wed, 5 Jun 2002 23:35:31 +0000 (23:35 +0000)]
Const'ify variables to make it clear we're not writing to the mbuf data.

Reviewed by: julian, brian
MFC after: 1 week

22 years agoFix bug where an mbuf was being written to without checking M_WRITABLE().
archie [Wed, 5 Jun 2002 23:32:56 +0000 (23:32 +0000)]
Fix bug where an mbuf was being written to without checking M_WRITABLE().
Eliminate some of the unnecessary complexity of ng_ether_glueback_header().
Simplify two functions a bit by doing the NG_FREE_META(meta) earlier.

Reviewed by: julian, brian
MFC after: 1 week

22 years agoFix bugs where mbuf data was being accessed without m_pullup().
archie [Wed, 5 Jun 2002 23:29:29 +0000 (23:29 +0000)]
Fix bugs where mbuf data was being accessed without m_pullup().

Reviewed by: julian, brian
MFC after: 1 week

22 years agoSilence GCC warnings about multi-line strings.
gibbs [Wed, 5 Jun 2002 22:51:54 +0000 (22:51 +0000)]
Silence GCC warnings about multi-line strings.

Sync Perforce IDs.

22 years agoAdd some PCI-X register definitions.
gibbs [Wed, 5 Jun 2002 22:25:51 +0000 (22:25 +0000)]
Add some PCI-X register definitions.

PCIM_CMD_SERREN -> PCIM_CMD_SERRESPEN to be consistent with
the PERR definition.

22 years agoMake SSL support conditional on NOCRYPT.
des [Wed, 5 Jun 2002 21:35:35 +0000 (21:35 +0000)]
Make SSL support conditional on NOCRYPT.

22 years agoThe best we can do about man pages for the moment.
obrien [Wed, 5 Jun 2002 21:30:46 +0000 (21:30 +0000)]
The best we can do about man pages for the moment.

22 years agoFigures they had to call it NOCRYPT instead of NOCRYPTO.
des [Wed, 5 Jun 2002 21:28:47 +0000 (21:28 +0000)]
Figures they had to call it NOCRYPT instead of NOCRYPTO.

22 years agoDuring buildworld, "regular" libraries are built before crypto stuff, so
des [Wed, 5 Jun 2002 21:25:33 +0000 (21:25 +0000)]
During buildworld, "regular" libraries are built before crypto stuff, so
libfetch can't depend on lib{crypto,ssl}.  Move the dependency to fetch
until we can figure out how to fix this.

22 years agoChange the registration of magic spaces so it does its own memory management.
phk [Wed, 5 Jun 2002 20:30:36 +0000 (20:30 +0000)]
Change the registration of magic spaces so it does its own memory management.

Sponsored by: DARPA & NAI Labs.

22 years agoSlightly modify the UPDATING text to indicate that -gstabs+ is a gcc
rwatson [Wed, 5 Jun 2002 20:21:40 +0000 (20:21 +0000)]
Slightly modify the UPDATING text to indicate that -gstabs+ is a gcc
flag to replace -g.  This works around slight obtuseness in the developer.
(me :-).

22 years agoEnter the ahd driver which supports the Adaptec AIC7902 Ultra320, PCI-X
gibbs [Wed, 5 Jun 2002 19:52:45 +0000 (19:52 +0000)]
Enter the ahd driver which supports the Adaptec AIC7902 Ultra320, PCI-X
SCSI Controller chip.

22 years agoAdd the 160MHz syncrate to scsi_calc_syncrate() sync period exception table.
gibbs [Wed, 5 Jun 2002 19:10:57 +0000 (19:10 +0000)]
Add the 160MHz syncrate to scsi_calc_syncrate() sync period exception table.

22 years agoscsi_message.h:
gibbs [Wed, 5 Jun 2002 19:05:01 +0000 (19:05 +0000)]
scsi_message.h:
Include PPR option bits defined in SPI4.

scsi_iu.h:
Add data structures releated to parallel SCSI information units
for use in SPI4 packetized protocol.

22 years agoAllow DB_SET() to set all fields in the ddb command structure. This
gibbs [Wed, 5 Jun 2002 19:00:02 +0000 (19:00 +0000)]
Allow DB_SET() to set all fields in the ddb command structure.  This
allows external ddb commands to do anyting an internal command can
do, including non-standard argument parsing if desired.

22 years agoAdd device id. for fxp chip on Intel D845EPT2L boards. This seems to
ambrisko [Wed, 5 Jun 2002 18:34:08 +0000 (18:34 +0000)]
Add device id. for fxp chip on Intel D845EPT2L boards.  This seems to
make the onboard NIC work.

Sponsored by: Vernier Networks
MFC after: 1 day

22 years agoUse calculated column widths for the routing table display when -W is
kbyanc [Wed, 5 Jun 2002 18:29:26 +0000 (18:29 +0000)]
Use calculated column widths for the routing table display when -W is
supplied rather than arbitrarily larger widths.  This (almost) guarantees
that no columns will be truncated (routing table additions between the
width calculation and display passes may create a row with column widths
larger than those calculated).

Sponsored by: NTT Multimedia Communications Labs

22 years agoWiden the scope of fmt.c::1.19 and consistently use errx(3) if malloc(3) [or
jmallett [Wed, 5 Jun 2002 18:11:25 +0000 (18:11 +0000)]
Widen the scope of fmt.c::1.19 and consistently use errx(3) if malloc(3) [or
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

22 years agoStart the (overdue) de-orbit sequence for the -d -C combo,
ru [Wed, 5 Jun 2002 17:37:48 +0000 (17:37 +0000)]
Start the (overdue) de-orbit sequence for the -d -C combo,
as was promised in revision 1.43.

MFC after: 1 month

22 years agoComma seperate format lists, since space is no longer up to the task.
jmallett [Wed, 5 Jun 2002 17:31:44 +0000 (17:31 +0000)]
Comma seperate format lists, since space is no longer up to the task.

Poked by: David Wolfskill <david@catwhisker.org>
Pointy hat to: jmallett

22 years agoWe haven't used this libg++ header since 1999/04/05 05:36:37.
obrien [Wed, 5 Jun 2002 17:02:37 +0000 (17:02 +0000)]
We haven't used this libg++ header since 1999/04/05 05:36:37.

22 years agoSearch the "backward" C++ compatibility include dir also.
obrien [Wed, 5 Jun 2002 16:10:59 +0000 (16:10 +0000)]
Search the "backward" C++ compatibility include dir also.

22 years agoWe don't need bsd.dep.mk here.
obrien [Wed, 5 Jun 2002 15:40:39 +0000 (15:40 +0000)]
We don't need bsd.dep.mk here.

22 years agoUse pmap_map instead of pmap_kenter to map the message buffer. Its too
jake [Wed, 5 Jun 2002 15:36:57 +0000 (15:36 +0000)]
Use pmap_map instead of pmap_kenter to map the message buffer.  Its too
early for pmap_kenter.

22 years agoSome things used "#!/usr/bin/perl5" (such as the /usr/local/bin/use.perl on
obrien [Wed, 5 Jun 2002 15:32:26 +0000 (15:32 +0000)]
Some things used "#!/usr/bin/perl5" (such as the /usr/local/bin/use.perl on
my system).  So install a "perl5" wrapper too.

22 years agoDon't treat statistics counter wrap-overs as errors.
tmm [Wed, 5 Jun 2002 15:21:44 +0000 (15:21 +0000)]
Don't treat statistics counter wrap-overs as errors.

22 years agoAdd SSL support + slight cleanup.
des [Wed, 5 Jun 2002 12:46:36 +0000 (12:46 +0000)]
Add SSL support + slight cleanup.

Submitted by: Henry Whincup <henry@techiebod.com> (in principle)

22 years agoAdd explicit dependency on ufsread.c
phk [Wed, 5 Jun 2002 12:30:45 +0000 (12:30 +0000)]
Add explicit dependency on ufsread.c

22 years agoWrap everything in struct connection, and enforce timeouts everywhere
des [Wed, 5 Jun 2002 12:19:08 +0000 (12:19 +0000)]
Wrap everything in struct connection, and enforce timeouts everywhere
(except for DNS operations).  Always use funopen() for HTTP, to support
both timeouts and SSL.

22 years agoRemove UFS related #includes, they're read in ufsread.c now.
phk [Wed, 5 Jun 2002 12:12:25 +0000 (12:12 +0000)]
Remove UFS related #includes, they're read in ufsread.c now.

22 years agoMake sparc64 share ufsread.c with i386.
phk [Wed, 5 Jun 2002 12:00:53 +0000 (12:00 +0000)]
Make sparc64 share ufsread.c with i386.

Sponsored by: DARPA & NAI Labs.

22 years agoAvoid entering IOCCC with a memcpy turned bcopy.
phk [Wed, 5 Jun 2002 11:56:12 +0000 (11:56 +0000)]
Avoid entering IOCCC with a memcpy turned bcopy.

22 years agoAdd the necessary dependencies for SSL.
des [Wed, 5 Jun 2002 11:38:19 +0000 (11:38 +0000)]
Add the necessary dependencies for SSL.

22 years agoIndent this file more like style(9).
phk [Wed, 5 Jun 2002 11:20:37 +0000 (11:20 +0000)]
Indent this file more like style(9).

Sponsored by: DARPA & NAI Labs.

22 years agoPreparation for UFS2 commit:
phk [Wed, 5 Jun 2002 11:10:38 +0000 (11:10 +0000)]
Preparation for UFS2 commit:

Factor the ufs reading code out of the i386/boot2 loader so it can
be reused by for instance sparc64.

Sponsored by: DARPA and NAI Labs.

22 years agoRename struct cookie to struct httpio to avoid confusion (it's not an HTTP
des [Wed, 5 Jun 2002 10:31:01 +0000 (10:31 +0000)]
Rename struct cookie to struct httpio to avoid confusion (it's not an HTTP
cookie) and increase symmetry with equivalent FTP code.

22 years agoAdd comments to struct cookie.
des [Wed, 5 Jun 2002 10:27:24 +0000 (10:27 +0000)]
Add comments to struct cookie.

22 years agoFix a bug I introduced in the chunk decoder in the previous commit..
des [Wed, 5 Jun 2002 10:23:19 +0000 (10:23 +0000)]
Fix a bug I introduced in the chunk decoder in the previous commit..

22 years agoFirst step towards SSL support: wrap connections in a 'struct connection'
des [Wed, 5 Jun 2002 10:05:03 +0000 (10:05 +0000)]
First step towards SSL support: wrap connections in a 'struct connection'
which contains the socket descriptor, the input buffer and (yet unused)
SSL state variables.  This has the neat side effect of greatly improving
reentrance (though we're not *quite* there yet) and opening the door to
HTTP connection caching.

This commit is inspired by email conversations with and patches from
Henry Whincup <henry@techiebod.com> last fall.

22 years agoOops, unbreak parsing of the `type' field in getasciilabel(). I had
iedowse [Wed, 5 Jun 2002 08:11:28 +0000 (08:11 +0000)]
Oops, unbreak parsing of the `type' field in getasciilabel(). I had
changed a `goto' to a `continue' in revision 1.52, but it continued
the wrong loop.

Noticed by: bde

22 years agoSUBDIR is initially empty.
ru [Wed, 5 Jun 2002 07:00:41 +0000 (07:00 +0000)]
SUBDIR is initially empty.

22 years agoCanonicalize.
ru [Wed, 5 Jun 2002 06:59:10 +0000 (06:59 +0000)]
Canonicalize.

22 years agoBack out addition of a plus sign.
ru [Wed, 5 Jun 2002 06:58:33 +0000 (06:58 +0000)]
Back out addition of a plus sign.
DPADD and LDADD belong to individual makefiles.

22 years agoRemove the deprecated 4.2/4.3BSD wait union.
mike [Wed, 5 Jun 2002 02:21:01 +0000 (02:21 +0000)]
Remove the deprecated 4.2/4.3BSD wait union.

22 years agoSupport the 'comm' keyword, which is equivalent to our 'command', but
jmallett [Wed, 5 Jun 2002 02:05:24 +0000 (02:05 +0000)]
Support the 'comm' keyword, which is equivalent to our 'command', but
specified by SUSv3.

22 years agoA space cannot be a header string seperator it appears given the SUSv3
jmallett [Wed, 5 Jun 2002 02:01:46 +0000 (02:01 +0000)]
A space cannot be a header string seperator it appears given the SUSv3
description of ps(1), which uses them.  I question whether newline and tab
can be either, but I'm not touching them.  Yet.

22 years agoTo comply with SUSv3, duplicate the variable contents for each given format,
jmallett [Wed, 5 Jun 2002 01:58:36 +0000 (01:58 +0000)]
To comply with SUSv3, duplicate the variable contents for each given format,
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

22 years agoReturning NULL here if malloc(3) fails is silly, at this point in the codepath
jmallett [Wed, 5 Jun 2002 01:36:30 +0000 (01:36 +0000)]
Returning NULL here if malloc(3) fails is silly, at this point in the codepath
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.

22 years agoRemove an XXX comment that seems to be a tiny bit no longer pertinent. This
jmallett [Wed, 5 Jun 2002 01:33:54 +0000 (01:33 +0000)]
Remove an XXX comment that seems to be a tiny bit no longer pertinent.  This
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.

22 years agoUse of zero here meant many things, NULL, '\0' (NUL), and 0. Sort it out.
jmallett [Wed, 5 Jun 2002 01:32:21 +0000 (01:32 +0000)]
Use of zero here meant many things, NULL, '\0' (NUL), and 0.  Sort it out.

22 years agoFix spelling nit in error message.
gordon [Wed, 5 Jun 2002 01:06:33 +0000 (01:06 +0000)]
Fix spelling nit in error message.

22 years agoUse a const char * where it is meant to be used. There's no reason to try
jmallett [Wed, 5 Jun 2002 01:02:13 +0000 (01:02 +0000)]
Use a const char * where it is meant to be used.  There's no reason to try
to discard the const qualifier here.

22 years agoDuplicate the pointer to the string containing the header so it does not get
jmallett [Wed, 5 Jun 2002 01:01:20 +0000 (01:01 +0000)]
Duplicate the pointer to the string containing the header so it does not get
frobbed when/if the pointer it is actually a part of gets freed.