Commit Graph

9794 Commits

Author SHA1 Message Date
yamt bfc70617c5 mbpr: fix a harmless bug. (sizeof pointer -> sizeof *pointer) 2008-01-14 12:56:05 +00:00
mkirby bb55aebb4f Fix a small grammatical error. 2008-01-12 21:05:13 +00:00
dholland cbae618808 sizeof(char) is always 1. Conversely, however, CHAR_BIT is not always 8.
reviewed: mrg
2008-01-12 05:49:46 +00:00
lukem cd2d88332f Don't bring in -lutil for tools. 2008-01-11 00:38:10 +00:00
simonb ccab3b34ce Remove support for NetBSD/pc532. 2008-01-10 13:40:36 +00:00
lukem d7382668ef Convert to using raise_default_signal(3). 2008-01-10 05:15:07 +00:00
lukem e4952757b6 Convert to raise_default_signal(3). 2008-01-09 05:48:58 +00:00
reed e25157a1c9 Sort a command. It was was renamed in 1.113 but not resorted.
(I noticed when reading man page but didn't quickly find what I was
looking for.)
Also add a missing period.
2008-01-08 15:28:31 +00:00
apb 74bc6bcb6f Add more detail in comments about maximum size of environment and
arguments passed by xargs(1) to execvp(2).  Research done while
investigating PR 37666, which is not a problem in -current.
2008-01-07 08:20:52 +00:00
christos 03f11859f6 don't show cpu number on single processor machines for the threads display too. 2008-01-06 19:59:22 +00:00
yamt f4a8d6e7c6 s/processor/CPU/ to increase chance to fit within 80 chars. 2008-01-06 06:55:08 +00:00
christos bba8223c2b it is pointless to print the cpuid on a single processor machine. 2008-01-05 19:29:12 +00:00
dsl 6a6b0fc96a When we extend the buffer used to read makefiles (in order to read lines
longer than 32k) remember the new length so we DTRT for lines longer than 64k.
Should fix PR/37684
2008-01-03 22:14:53 +00:00
yamt 7afae692b2 remove no longer necessary lockdebug hacks. 2008-01-02 17:23:31 +00:00
dholland 5e6732eb9c Don't allow negative args for the -A and -B options, because they
lead to SIGSEGV in the output formatting code.
Fixes PR 37657 from Jeffrey E. Bedard.
2008-01-01 17:45:01 +00:00
ad 7f3f509466 COMPAT_HPUX is gone 2007-12-31 15:26:31 +00:00
christos 5665eef11f don't call curses from a signal handler! 2007-12-31 00:22:13 +00:00
degroote 11c94c257e Report the new ipcomp stats under FAST_IPSEC : ipcomps_minlen and
ipcomps_uselesscomp
2007-12-29 21:36:43 +00:00
wiz 665cd277c5 Comment out xref to makemap(8), which does not exist. 2007-12-27 12:56:49 +00:00
ad ea3f10f7e0 Merge more changes from vmlocking2, mainly:
- Locking improvements.
- Use pool_cache for more items.
2007-12-26 16:01:34 +00:00
ad 6b5fc70210 No need to list every file system type in this file. 2007-12-24 19:52:37 +00:00
wiz 8caeef46da Sort options. 2007-12-24 13:56:00 +00:00
dsl 2cdb58761e If make can't find a rule to create a file it needs to satisfy a rule
that came from .depend then just output a message and contine.
2007-12-21 20:32:24 +00:00
snj 787df2d0dd Bump date for bzip2. 2007-12-21 19:45:33 +00:00
joerg 3fca1a6505 Document ISO format "cal 2007-12", leave "cal 2007/12" undocumented
intentionally.
2007-12-21 14:21:42 +00:00
dogcow a9d4845398 It doesn't seem worth it to keep pathnames.h around (especially when it has
non-static data)
2007-12-21 06:46:31 +00:00
simonb 75727a9ea5 Fix some whitespace nits. 2007-12-21 06:25:19 +00:00
dogcow 37f3200b59 add new flag to newsyslog(5): J to bzip2 files.
There are no longer any hardcoded gzip-specific args, yay.
And while I was at it, compiles with -Wsigned, too.
2007-12-21 05:40:59 +00:00
ad 73157b0e11 - Support two different sizes of pool_cache group. The default has 14 or 15
items, and the new large groups (for busy caches) have 62 or 63 items.
- Add PR_LARGECACHE flag as a hint that a pool_cache should use large groups.
  This should be eventually be tuned at runtime.
- Report group size for vmstat -C.
2007-12-20 23:49:10 +00:00
joerg 358c956d05 Also recognize year-month as suggested by Alan Barrett. 2007-12-19 16:45:41 +00:00
joerg c98485db44 Make syntax checking more strict and recognize year/month.
One Finish and German developer agree that month year is a stupid
order, the French and British guys disagree and the only natural
choice left is to make it understand ISO style.
2007-12-19 15:52:50 +00:00
christos 08face766e Fix a (very old) file leak. From Anon Ymous 2007-12-17 22:06:00 +00:00
perry d4b751b032 Remove lots of redundant __attribute__((__noreturn__))s
The lines already had __dead on them. I wonder why they had both...
2007-12-15 22:01:25 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
perry 36c7456d7c include sys/cdefs.h so that __attribute__ can be fixed later 2007-12-15 16:32:05 +00:00
perry 4d096031f0 replace instances of __attribute__((__packed__)) with __packed 2007-12-15 16:03:29 +00:00
christos 428c7a1f82 From Anon Ymous:
- Fix a file handle leak.
- Use Fopen(), Fdopen(), and Fclose() consistently so the signal
  handler close files.
2007-12-14 16:55:20 +00:00
lukem 82d7cb8306 Use a common function to generate the "MACHINE GENERATED" comment,
and ensure mkswap.c adds it too.
2007-12-12 00:03:33 +00:00
cjep 966c1a873b sync with pkgsrc changes - reorder includes and add some casts 2007-12-06 20:33:48 +00:00
yamt 3a246441d8 add -C to usage. 2007-12-05 09:20:56 +00:00
lukem 7a69105995 DPRINTF() consistency tweaks 2007-12-05 03:46:33 +00:00
seanb 769f8347e5 Report ipsecstats.ips_spdcache_miss under FAST_IPSEC correctly. 2007-12-05 00:51:12 +00:00
lukem d4aed48135 Rename HAVE_STRUCT_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
to accurately reflect the structure member being used.
2007-12-05 00:15:25 +00:00
wiz 8ed18604e6 Drop trailing whitespace. Fix typo and casing. 2007-12-02 20:41:40 +00:00
wiz 8a3535d6b1 Add comma in enumeration. 2007-12-02 19:47:56 +00:00
wiz a092695006 Sort options. 2007-12-02 19:40:54 +00:00
dsl 8222554340 Be more informative about duplicated device names. 2007-11-30 23:19:18 +00:00
jnemeth f8660caf4c fix not protecting variable length buffer warning 2007-11-28 08:20:29 +00:00
ginsbach a3a3ad0162 Changes for standards compliance:
- Accept "-" for msgfile (STDIN) and catfile (STDOUT)

- Merge msgfile into formatted catfile.  The catfile is created if
  it does not exist (current behavior).  If the catfile exists,
  its messages are included in the new catfile.  Collisions between
  set and message numbers cause the msgfile message text to replace
  the existing message text.

  (The $delset directive now makes more sense.)

Standards: The Open Group Base Specifications Issue 6
           IEEE Std 1003.1, 2004 Edition

- Replace corrupt()/nomem() with errx().  The replaced routines
  called local error() -> warning() which prints an input file line
  number.  This probably makes no sense for these conditions (it
  is not a syntax error in msgfile).  Line numbers are completely
  nonsense when dealing with reading a formatted catfile.

- Modify warning() to only print line number when reading from a
  message file.  Also print the current file being processed.

- Don't issue a warning when processing a line with only a message
  number and no trailing space.  This is valid and will delete any
  existing message with that number from the current set.

- Reset lineno for each msgfile processed.
2007-11-21 13:40:09 +00:00
jmmv 02921c77c9 Make syntax checking for id(1), groups(1) and whoami(1) commands stronger so
that they conform to what the corresponding manual pages say.  This makes all
the tests I recently introduced for these utilities pass.

pooka thinks this was time well spent ;-)
2007-11-16 18:09:50 +00:00
jmmv cacc05fe11 Drop trailing whitespace. On behalf of me. 2007-11-16 17:31:13 +00:00
christos 7c16cc9e3b From Anon Ymous
- Fix a stupid typo: sizeof(sizeof(a)) isn't very useful.
- Use emalloc(3) and erealloc(3) instead of malloc(3) and realloc(3),
  resp.
2007-11-14 22:06:04 +00:00
jmmv 9d5a9c0d86 Add the atf tools
This adds reachover Makefiles to build and install the atf tools.
Some are public, thus installed in /usr/bin, and others are internal
and therefore installed in /usr/libexec.
2007-11-12 15:00:00 +00:00
cube 66a59dcc4f Don't defattr machinearch if it's NULL. Pointed out by
Juergen Hannken-Illjes.
2007-11-11 17:35:27 +00:00
yamt bea40b2aa3 don't bother to print unmaintained statistics. (m_drops, m_wait) 2007-11-10 12:05:08 +00:00
atatat e1aff854df Put back the NetBSD tag 2007-11-10 03:12:10 +00:00
cube 66796c65e4 Make the "machine" statement define attributes for `machine', `arch' and
all the `subarch' given as parameters.  This is useful in combination with
ifdef...
2007-11-10 00:15:43 +00:00
cube 656cdcc8fb Add support for "ifdef <attribute>" blocks. It goes like this:
ifdef <attr> / ifndef <attr>
elifdef <attr>
elifndef <attr>
else
endif

No indentation is possible for now, it will come later.
2007-11-09 23:41:08 +00:00
plunky e5a7441d16 Add a new utility 'btkey' for managment of Bluetooth Link Keys stored
in the NetBSD key cache (/var/db/bthcid.keys) and Bluetooth controller
memory.
2007-11-09 21:18:22 +00:00
cube baec5c01fc Don't pollute fsopttab with duplicate options for the sake of a test that
has probably been gone for a very long time.  Produces identical output.
2007-11-09 05:21:30 +00:00
cube f51c36b80a - Make include/cinclude/package eat up to the next new-line character.
- Fix casts in getincludepath() and re-work it to ignore the unused end of
  the line.
2007-11-09 05:06:08 +00:00
christos 2668450a7f include stdbool.h instead of typedefing bool to int 2007-11-09 04:11:47 +00:00
wiz ed200f5855 Document the flags displayed by the default format, and mention their short
names. From espie@openbsd via jmc@openbsd.
2007-11-07 23:01:33 +00:00
wiz e2d8a15c15 Make sentence easier to parse. From jsing@openbsd via jmc@openbsd. 2007-11-07 22:27:50 +00:00
dsl bffcdd2c73 Apply the -N (show syscalls by number) to the system return trace.
Change 'USER' to 'MISC' since they get used for misc kernel traces as well.
2007-11-07 22:22:31 +00:00
dsl 1e4971a8ff Verify that the system call is within the negative range before
deciding that it is a 'mach' system call.
XXX - shouldn't this translation only happen for certain emulations?
2007-11-07 22:20:20 +00:00
ad 9b336836df Add -C option to display pool_cache info, eg:
Pool cache statistics.
Name          Spin  Full Empty   PoolLayer  CacheLayer  Hit%    CpuLayer  Hit%
pipepl           0     1     3         385       42862  99.1      985780  95.7
fdescpl          0     0     2         310       31133  99.0     1029620  97.0
cwdipl           0     0     2         310       31227  99.0     1029714  97.0
filepl           0     1     4         680      141415  99.5    24011135  99.4
2007-11-07 00:24:18 +00:00
plunky bbbbeb6a46 use stderr for printing usage messages 2007-11-06 21:35:52 +00:00
ad 73a3bf6536 Don't bias priority by PZERO. 2007-11-06 00:43:25 +00:00
ad 75ab2e6537 Test p_pctcpu instead of p_estcpu (the latter is specific to SCHED_4BSD). 2007-11-05 20:46:08 +00:00
plunky 89eb056b33 remove the lower bound limitation on UUID, it is not necessary or mandated 2007-11-04 09:02:47 +00:00
christos fef32d862e From Anon Ymous: Make this compile without MIME_SUPPORT. 2007-10-30 16:08:11 +00:00
christos e988ecba95 bump date 2007-10-30 02:29:22 +00:00
christos 349d978117 From Anon Ymous:
- Add a "forward" command as requested by garbled@.
  From the manpage:

  forward
	  Takes a list of messages and prompts for an address (or
	  addresses) to forward each message to.  If no message list is
	  specified, the current message is used.  The mail editor is run
	  for each message allowing the user to enter a message that will
	  precede the forward message.  The message is sent as a multi-
	  part/mixed MIME encoded message.

- Add the ability to match messages that do (or do not) contain a
  header field.  E.g., the command "f ! /Subject:" will display the
  list of messages that are missing a "Subject" field.

- Teach savemail() to prefix fake headlines so the mbox doesn't get
  broken.

- Fixed a couple of "bugs" in the attachment editing routine.
2007-10-30 02:28:30 +00:00
christos 2283d346cb From Anon Ymous:
knf changes:
- s/sizeof x/sizeof(x)/.
- remove unnecessary malloc typecasts.
- whitespace nits.
2007-10-29 23:20:37 +00:00
ragge 1990d3d4ad x86 -> i386.
Fix include paths, now compiles.
2007-10-28 10:06:41 +00:00
christos b4403619e0 bump date. 2007-10-27 18:43:37 +00:00
christos 59604b5887 uncomment the group handling documentation. 2007-10-27 18:42:42 +00:00
abs 9e1ca15c9c Add somewhat inelegant logic to handle config.h for now - obviously not
crossbuildable
2007-10-27 18:14:45 +00:00
christos 3670ce19dd - move grutil code to newgrp.
- enable user:group and :group code.
2007-10-27 15:37:45 +00:00
christos 542b6466e3 Move the grutil code from su to here. Requested by ginsbach@ 2007-10-27 15:36:21 +00:00
christos 40a10c757f From Anon Ymous:
- Fix a memory leak in newgrp().  (Noted by ginsbach@.)

- If the new and old groups are the same, addgrp() does nothing so
  exit early.  (Noted by ginsbach@.)

- In newgrp(), if the new group isn't found in the in-core, check the
  group membership list anyway as the in-core list may be full or
  /etc/groups may have been edited since login.  (Requested by
  ginsbach@.)

- Deal with a full in-core group[] array in addgid() rather than
  silently ignoring it and ending up with a group[] array that is
  inconsistent with the current group.

- More explicit error handling in addgroup().
2007-10-27 15:33:25 +00:00
christos 4556f89a2d From Anon Ymous:
- Add a "bounce" command as requested by garbled@.
  From the manpage:

 bounce  Takes a list of messages and prompts for an address to bounce the
         messages to.  All the original header fields are preserved except
         for the ``Delivered-To'', ``X-Original-To'' and ``Status''
         fields.  The new ``To'' field contains the bounce address(es)
         plus any addresses in the old ``To'' field minus the user's local
         address and any on the alternates list.  (See the alternates com-
         mand.)
2007-10-27 15:14:50 +00:00
christos d727506fb5 From Anon Ymous:
- Introduce date_to_tm() and hl_date_to_tm() to parse the date and
  headline date a bit more efficiently.
- If 'tm_isdst' is determined, let strftime(3) handle the '%Z' and
  '%z' formats.  Otherwise, output "-0000" and "???", respectively, to
  help preserve with alignment; strftime(3) will output an empty
  string in these case.
- Change fail() to use the '-d' flag (which sets the 'debug' variable)
  rather than the "debug" _environment_ variable.  This is more
  consistent with other warnings.
- Don't use gcc C extensions, e.g., "case LOW ... HIGH:".
- Define is_WSP() in def.h to be an inline function that for checks
  whitespace (WSP = ' ' or '\t'), as defined in RFC 2822.  Use it
  consistently in place of isblank().
- For consistency, rename skip_blank() to skip_WSP().
- Add inline skip_space() to complement skip_blank() (now skip_WSP).
- Check all ctype(3) calls for argument range issues.
- Whitespace and comment cleanup/changes.
2007-10-23 14:58:43 +00:00
sjg 401ecd47f5 Allow .PATH<suffix> to be used for .include "". 2007-10-22 15:36:13 +00:00
christos 3e94d8f384 Handle 2 digit years, from Anon Ymous 2007-10-19 15:59:55 +00:00
christos 1b946384ef Make the license match to grutil.c 2007-10-18 15:41:50 +00:00
christos e16da7f1bc Put the proper license on this file, using the newgrp.c one. 2007-10-18 13:04:06 +00:00
christos 961c73981f From Anon Ymous:
- general whitespace, lint fixes, error checking
- document the exit status of the command per POSIX
- use the shared with su group adding utilities.
2007-10-17 21:07:49 +00:00
christos 40d5720e00 From Anon Ymous:
- general cleanup [e-funcs, lint fixes, exit values, more error checking]
- add the ability to change the primary group group as login:group, or :group
  *disabled*, until it is discussed.
- remove krb4 code since there is no more krb4 code in the tree.
- also make the old su behave like the pam su: su to the same user, does
  not ask for a password.
- split out shared code into a separate file.
2007-10-17 21:05:39 +00:00
ad 9c3109d6c5 Add _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF for sysconf(). These
are extensions but are provided by many Unix systems.
2007-10-15 14:12:54 +00:00
sjg 1d55b1afc4 If we don't have emalloc, we won't have strndup either.
Allows building current make on 2.0.
2007-10-15 01:07:34 +00:00
apb d15c1edea0 Make it easier for the build environment (such as a configure script)
to override the default shell:

* Rename _BASENAME_DEFSHELL to DEFSHELL_CUSTOM, because it's no longer
  always a basename, it might be a full path;
* Rename DEFSHELL to DEFSHELL_INDEX, because it's actually an index into
  an array;
* Provide symbolic names for the possible values if DEFSHELL_INDEX;
* Document how the build environment may set DEFSHELL_INDEX or
  DEFSHELL_CUSTOM to choose the default shell;
* Move the fallback definition of DEFSHELL_INDEX from config.h to job.c,
  because it's used only in job.c.

Discussed with sjg.
2007-10-14 20:22:53 +00:00
jnemeth ba708bffb8 typo 2007-10-14 11:30:37 +00:00
lukem 5a1df86c01 Convert to using raise_default_signal(3). 2007-10-14 11:21:32 +00:00
lukem bd560fde31 Convert to using raise_default_signal(3). 2007-10-14 04:54:34 +00:00
apb ec2d191f5e Revert to revision 1.128. Now that the Var* functions no longer try to
write into const strings, it's safe to pass a truly constant string to
Var_Subst.
2007-10-13 20:01:33 +00:00
apb 7da86686ca Don't write into const strings; not even if we intend to
reinstate the original contents later.
2007-10-13 19:59:52 +00:00
christos a59b81d6d8 strlen returns size_t 2007-10-13 18:28:35 +00:00
apb 67bb324312 * Convert all uses of strdup() to estrdup();
* Use estrndup() in a few cases where it simplifies the code;
* Provide compatibility definitions of strndup and estrndup;
2007-10-13 16:16:41 +00:00
apb 781e1efd0c Oops, missed a few more comments in previous. 2007-10-13 14:32:18 +00:00
apb a8bf2a2f8a Correct documentation for Var_Parse's freePtr arg. It's a pointer to
the thing to be freed (or NULL if nothing to free), not to a pointer to
boolean saying whether or not to free the result.
2007-10-13 13:54:06 +00:00
dsl 5dc59d0d4b When processing .include "../../foo.mk" lexically process the leading ../
against the directory name of the makefile being processed.
Shortens a lot of pathnames (especially in pkgsrc) and significantly
reduces the number of duplicate entries in .MAKE.MAKEFILES
2007-10-13 11:08:05 +00:00
dsl 5651920158 The 'job_prefix' string can be static but not const 'hi xtos'. 2007-10-13 08:58:48 +00:00
dsl fad077a68d If we are going to save the names of all opened makefiles, do so when files
are first processed, not for every line of every loop inside the file.
When (attempting) to check for duplicate names, use the spaces between names
as separators rather than using strstr() - which is slow and wont find
duplicates after an incorect early match.
However the duplicate check is rather broken (especially for pkgsrc) where
names like ../../devel/atk/../../devel/glib2/../../devel/gettext-lib/ \
../../devel/gettext-lib/../../mk/buildlink3/../../mk/bsd.prefs.mk
which need (some form of) realpath() processing.
'cd pkgsrc/xaa/gtk2; make show-var VARNAME=.MAKE.MAKEFILES' shows the problem.
2007-10-12 23:38:27 +00:00
christos 0f19d8c420 static a const string. 2007-10-12 23:13:16 +00:00
christos 31bed26f71 improve on previous 2007-10-12 23:07:04 +00:00
dsl bb4beef604 Var_Subst() seems to write into its input string! So we do need a copy. 2007-10-12 22:49:36 +00:00
dsl 215593ad6c Remove tmp[] buffer and strncpy() call. 2007-10-12 21:47:25 +00:00
sjg 1050c04a22 If _BASENAME_DEFSHELL is defined, it might be a full path,
in which case we should not prepend _PATH_DEFSHELLDIR.
2007-10-11 21:19:28 +00:00
ginsbach 18072a963c More code clean up (KNF): de-__P and ANSI'ify function declarations 2007-10-11 03:42:38 +00:00
ad 7dad9f7391 Merge from vmlocking:
- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.
2007-10-10 20:42:20 +00:00
ginsbach 09b20b9b68 - add const qualifiers where necessary
- remove unnecessary argument from error(); first argument was always NULL
[changes mostly from FreeBSD]
2007-10-10 02:34:18 +00:00
sjg 3a5409e4eb Fix an off-by-one error in handing mal-formed modifiers.
The issue seems to have been present for some time, only showed up
when running unit-tests on SunOS.
Make sure we get an error message, but otherwise behave as before.
2007-10-09 05:55:03 +00:00
sjg e73405e272 Use .MAKE.MAKEFILES to track all the makefiles that have been read
so they can be used in dependency rules.
2007-10-08 20:26:36 +00:00
christos 3833b1d829 call sysconf, before add paths. From Kurt Schreiner 2007-10-08 12:51:21 +00:00
christos 33631b9b4a call xfree instead of free so that we don't bring in libc's free. 2007-10-08 00:15:05 +00:00
ginsbach 8b26595b3a Changes for standards compliance:
- "If no $set directive is specified in a message text source file,
   all messages shall be located in an implementation-defined default
   message set NL_SETD."
- The n argument to $delset indicates the set number which should be
  in the range 1 to NL_SETMAX.

Standards: The Open Group Base Specifications Issue 6
           IEEE Std 1003.1, 2004 Edition
2007-10-06 02:55:56 +00:00
sjg f28827375c Add the ability to .export variables to the environment. 2007-10-05 15:27:45 +00:00
christos 76f3e041b7 don't zero out the wrong pointer. from Anon Ymous 2007-10-05 14:48:10 +00:00
lukem c9c455bf1d Convert to using raise_default_signal(3). 2007-10-05 07:36:45 +00:00
lukem 5d427989ff Convert to raise_default_signal(3). 2007-10-05 07:27:41 +00:00
lukem db822d2217 Convert to using raise_default_signal(3). 2007-10-05 07:22:23 +00:00
christos 790ed387b2 Use warnx(3) not warn(3); timegm(3) does not set errno. Use the
unconverted time if the date is invalid. (from Anon Ymous)
2007-10-04 17:05:01 +00:00
christos f704726942 Fix reversed test (from Anon Ymous) 2007-10-04 14:05:45 +00:00
sjg 216e9ba475 Add the ability to tweak the token output before targets in job mode.
Eg.
.MAKE.JOB.PREFIX=${.newline}---${.MAKE:T}[${.MAKE.PID}]
would produce
---make[1234] target ---
2007-10-01 22:14:09 +00:00
uwe 17bb5b2554 tlst[inptype(...)] is bad C code because inptype() can realloc tlst
and there's no intermediate sequence point!  We actually hit this on
sh3 with -O2 where gcc4 caches tlst in a register prior to recursive
call to inptype() and if you are unlucky the recursive call needs to
realloc tlst.

Introduce a temp variable to force a sequence point.
2007-09-28 21:53:50 +00:00
uwe 7a8181d0dc Revert 1.34 (CFLAGS+=-g) that have been commited by mistake (hi, xtos). 2007-09-25 21:28:26 +00:00
lukem a213122ebe remove unnecessary #include 2007-09-25 04:36:30 +00:00
lukem 1db82cf8e6 revert previous thinko 2007-09-25 04:10:12 +00:00
lukem 2212f6b672 remove unnecessary #include 2007-09-25 04:09:03 +00:00
plunky 04ced1f2dd new lines for new sentences 2007-09-24 19:29:01 +00:00
abs a49e168197 Initial version of reachover Makefiles for pcc 2007-09-21 21:10:54 +00:00
ragge d141d2a094 Needs errno.h if !gcc. 2007-09-16 18:44:19 +00:00
christos ecde76d5ff Support obsolete zone info in date field. (See obs_zone of RFC 2822,
sec 4.3.) from Anon Ymous
2007-09-12 13:09:46 +00:00
cube 7a185660d8 Some more licence clean up. 2007-09-10 10:54:20 +00:00
christos b1749a12b7 PR/36957: sm: whois does not follow AfriNIC referral 2007-09-09 18:31:45 +00:00
christos c3b08dc40f PR/36955: Ighighi: Use fseeko instead of fseek. 2007-09-09 12:20:27 +00:00
dyoung ca1b22492a Bug fix: filed.fd_ofiles is always a pointer to the open files
table, so always read the table from kernel virtual memory at that
address.  Do not ever try to read the table from filed0.fd_dfiles,
because it just isn't necessary, and sometimes we read a stale
table from there.
2007-09-09 01:26:55 +00:00
cube 14a82de83a Improve the structure of the man page to make it more usual, with the hope
that people might actually read it some day.  Yeah, I know, dream on, dream
on.

Thanks schmonz@ for a quick english check.
2007-09-09 00:35:14 +00:00
rmind 2cecf9bbe9 Implementation of POSIX message queues.
Reviewed by: <ad>, <tech-kern>
2007-09-07 18:56:02 +00:00
jnemeth b408277b4f PR/36867 - Zafer Aydogan -- trsp is no longer 2007-08-30 18:56:51 +00:00
jnemeth e98c476705 bump date 2007-08-30 18:52:36 +00:00
jnemeth 1ff05f7784 PR/36867 - Zafer Aydogan -- trsp is no longer 2007-08-30 18:51:32 +00:00
hubertf a1bb1e3040 aspell 2007-08-27 21:58:16 +00:00
dsl 932f8298e3 Remove 'U' (was scheduler activations) from the list of default trace points. 2007-08-27 16:35:47 +00:00
reed d256941473 Add author's names for two books. 2007-08-27 14:34:17 +00:00
reed 2680c8169c 3 typos/mispellings.
A lot more to do in here as many spellings are wrong or inconsistent.
2007-08-24 14:35:17 +00:00
reed 85a0c6744d Edit the "Women get the vote" entry to say "get the right to vote".
(Since "get the vote" doesn't tell much here about how a legislator
made the last vote to put this in effect.)
And so this calendar entry mentions U.S. also mention the 19th
Amendment to US Constitution.
2007-08-24 14:28:04 +00:00
lukem f1fbb660ed Cast the field precision calculation to int.
Should fix the amd64 build problem noticed by Paul Goyette.
2007-08-22 23:47:13 +00:00
christos 02f63bec71 change error printing to signed for consistency. From Anon Ymous 2007-08-22 16:59:19 +00:00
lukem 91c7169d78 Improve parsing of chunked transfer chunks per RFC2616:
* more stringent chunk-size parsing
* ignore optional trailing ';chunk-ext' stuff, instead of barfing
* detect EOF before final \r\n.
2007-08-22 06:51:41 +00:00
dogcow fc68757006 A prophylactic patch: change offsetof -> blkoffsetof 2007-08-22 03:42:06 +00:00
christos dc2a5030fc provide more detailed messages with -l. From Anon Ymous 2007-08-21 14:09:53 +00:00
perry e34be9798b Never use "utilize". It means exactly the same thing as "use", but it
is longer and more cumbersome. It can always be replaced with "use"
without any change in meaning.
2007-08-20 16:07:05 +00:00
christos 3f074821a5 Apparently seeking forward on a FIFO does not work (why?). Read instead.
Patch from Jukka Salmi.
2007-08-20 03:44:17 +00:00
christos c40c743211 deal with non-regular files. 2007-08-19 10:31:13 +00:00
oster 53ff49720c Fix a display problem observed when transitioning from "nn processes" to
"n processes" (and "nnn" to "nn", and so forth...)
2007-08-17 21:49:26 +00:00
reed 4f402e3972 Add the year for:
08/15  Beatles replace drummer Pete Best with Richard Starkey, 1962
(While http://en.wikipedia.org/wiki/Ringo_Starr
says this happened on August 16 not the 15th.)
2007-08-14 13:15:06 +00:00
rillig 3911c95333 A small word can sometimes express things clearer ... 2007-08-13 06:14:08 +00:00
agc babe0fc9d8 Apply fix from PR 35283 from David Holland:
ensure that kdump properly escapes newlines in argv
2007-08-08 20:28:11 +00:00
lukem 394f30e855 reorder location of "-s srcaddr" in synopsis 2007-08-06 04:42:13 +00:00
lukem cf78066d81 Update version for:
Replace  HAVE_SOCKADDR_SA_LEN  with defined(HAVE_STRUCT_SOCKADDR_SA_LEN
2007-08-06 03:41:14 +00:00
yamt a67f31f445 remove nqnfs leftovers. 2007-08-05 22:06:14 +00:00
reed 3a6e61c6ab Remove "that" from a long calendar entry that wrapped over two lines.
While there remove a "that" from another entry too.
2007-08-04 15:14:05 +00:00
ad f8239b2e5b Deal correctly with mulithreaded processes. Among other problems this mixed
up return values for system calls between threads, leading to much confusion.
2007-08-01 21:39:36 +00:00
pavel c723e7a07c Add xref to sockstat, from Zafer Aydogan in PR misc/36706.
Bump date.
2007-07-30 19:59:42 +00:00
reed cd2b62d931 Add lastlogin(8) to see also. 2007-07-27 16:59:25 +00:00
christos 8c26d38e7b WARNS=4, pass lint 2007-07-22 17:03:13 +00:00
lukem 6470c9506d Replace HAVE_SOCKADDR_SA_LEN with defined(HAVE_STRUCT_SOCKADDR_SA_LEN) 2007-07-22 05:02:50 +00:00
ad 9a40651fc7 VM_MAP_BUSY, VM_MAP_WANTLOCK are no more. 2007-07-21 20:54:12 +00:00
dyoung 458b31be33 rt_key() is no more. Use rt_getkey(). 2007-07-19 20:51:04 +00:00
daniel 02dcfb175e Add the '-E' option to interpret regexes as extended regexes. While we
are here, fix ordering in usage information by putting '-X' in the proper
place.

Addition of '-E' was discussed on tech-userlevel.
2007-07-19 07:49:30 +00:00
lukem 9159f5b246 Support an explicit Q_error return from inquire(), which is returned
if there was an error on reading the reply.
Stops an infinite loop if you ^D the query.
2007-07-19 05:43:23 +00:00
lukem 00ff9c6dba Document about:ftp and about:version. 2007-07-18 06:40:01 +00:00
lukem 3ae239d786 Attempt to raise the default signal handler (SIG_DFL) when exiting
because of a signal, rather than just relying upon _exit(2).
2007-07-18 01:32:33 +00:00
lukem 2c1030d08e Attempt to raise the default signal handler (SIG_DFL) when exiting because
of a signal, rather than just relying upon exit(3).
2007-07-18 01:13:42 +00:00
lukem a93b9bed51 Remove duplicate printing of program name in panic().
Remove now-unnecessary global variable "namep".
2007-07-18 01:06:08 +00:00
christos 6660b4f3b5 eliminate MFSTYPENAME 2007-07-17 21:36:18 +00:00
christos b1b89f5d46 eliminate MFSNAMELEN 2007-07-17 21:35:29 +00:00
christos 9d497371ab PR/36644: Edgar Fuss: vacation does not work if homedir not present
Don't care about it failing if all paths needed are absolute.
2007-07-13 14:52:15 +00:00
christos 0ec618debc bump warns to 4. 2007-07-13 13:22:05 +00:00
christos 3a2d5ef17c PR/36643: Edgar Fu: -m missing from getopt.
While there:
- mark usage noreturn
- remove prototype for main
2007-07-13 13:21:49 +00:00
ad 75ff053010 Make netstat build again. I don't see why it has any business dumping
the raw contents of tcpcb but that's another story.
2007-07-10 21:12:32 +00:00
christos 9b2b49a478 off by one fix from Anon Ymous 2007-07-07 18:04:17 +00:00
christos 68a6fb4652 protect against null. 2007-07-07 17:53:13 +00:00
christos c9033e1918 Don't expand % escapes in headers. 2007-07-06 20:14:33 +00:00
agc ca741c4a3f Fix minor grammar nit. 2007-07-05 19:44:02 +00:00
christos d4e1d48f81 Anon Ymous says that this should fix the lwp display core-dump. 2007-07-04 18:27:46 +00:00
christos b3af16c2d3 PR/36583: Aleksey Cheusov: /usr/bin/cut: -[bcf] positions are limited to 2048
Fix provided by Anon Ymous.
2007-07-02 18:41:03 +00:00
rumble 6912898dc8 Add read-only support for SGI's Extent File System.
Reviewed by pooka@.
2007-06-29 23:30:16 +00:00
dmcmahill 096f2d0ee4 Replace "awk" with "${AWK:-awk}".
Needed to be able to cross-build on systems with a feeble awk (SunOS-5.9
for example).  Example error message is:
awk: record `#define CTL_IPPROTO_...' has too many fields
 record number 404
2007-06-29 16:39:51 +00:00
joerg 12929bba43 - When compiling nbinstall for the tool chain, use the target strip
and not /usr/bin/strip. This makes nbinstall usable for
  cross-compiling in pkgsrc.
- Fix a typo in a comment.
- Fix strip() in the context of (v)fork:
  - Build the argument string first using asprintf (simpler) and
    avoid leaking memory from the child in the parent.
  - Don't use warn in the child, as stdio should be avoided.

OK christos@, tested on Solaris by dmcmahill@.
2007-06-28 19:05:55 +00:00
christos a45a783fdb - use fwrite instead of printf.
- pass lint
- check for 0 len.
2007-06-24 23:23:10 +00:00
ginsbach c82c323deb Add the newgrp(1) utility, which changes effective group ID. This
is a POSIX (IEEE Std 1003.1, 2004 / Open Group Base Specifications
Issue 6) User Portability Utility.
2007-06-21 14:09:23 +00:00
dsl 53bf780833 Under DEBUG(VAR) report when the variable wasn't found.
Disposes of pr bin/15842
2007-06-16 19:47:29 +00:00
christos c5d61cf88b call setprogname(); from anon ymous. 2007-06-13 19:39:54 +00:00
wiz cce3a1d216 Improve description of EXIT CODES. Based on the following OpenBSD commit,
forwarded by jmc@openbsd:
----------------------------
revision 1.14
date: 2007/05/20 23:15:57;  author: jmc;  state: Exp;  lines: +19 -18
rewrite DIAGNOSTICS to avoid confusion about which application returns
what, and when;

started by Jeffrey 'jf' Lim, with some correction from Ingo Schwarze;
ok otto
----------------------------
2007-06-08 18:20:42 +00:00
briggs ac798ebce1 Dynamically allocate the buffer used for reading data from the input
handle and default to 64k instead of the 1k (BUFSIZ) static buffer.
This makes a large difference in performance of some applications.
Make the buffer size tunable from the command line.
2007-06-06 17:49:14 +00:00
christos 41101b58c8 Add RCSID's to help files and centralize the function to cat the help files. 2007-06-05 17:50:22 +00:00