Matthew Dillon [Sun, 13 Mar 2005 22:17:40 +0000 (22:17 +0000)]
Fix a couple of NFS client side caching snafus. First, we have to update
np->n_mtime if the file has not being modified locally, otherwise n_mtime
becomes stale and both the dynamic cache timeout calculation breaks and
stat() calls checking for the last modified time break. This was causing
indeterminant operation with make for obvious reasons.
The Second problem was that we were not checking for an attrstamp of 0
(indicating a timed out entry), resulting in another incorrect timeout
calculation.
Matthew Dillon [Sun, 13 Mar 2005 21:33:48 +0000 (21:33 +0000)]
Add a function that returns an approximate time_t for realtime for
routines which do not need the exactness of microtime().
Liam J. Foy [Sun, 13 Mar 2005 21:17:47 +0000 (21:17 +0000)]
- Remove sys/stat.h, sys/signal.h, varargs.h and ctype.h
- Issue the correct amount of space for hostname
- Use strtol to parse integers
- We want to use signal.h, not sys/signal.h
- Use STDIN_FILENO over '0'. More informative.
- Static functions
- Remove unnecessary cast
- Style(9)
Ok: Joerg
Joerg Sonnenberger [Sun, 13 Mar 2005 20:44:38 +0000 (20:44 +0000)]
Another man page which was moved to lib/libc/gen.
Joerg Sonnenberger [Sun, 13 Mar 2005 20:20:22 +0000 (20:20 +0000)]
Use libc's getopt_long, I've been building and using ports for a while with
this. Also move th USE_RC_SUBR check into the shared section, just in case
we forget this for an override port.
Joerg Sonnenberger [Sun, 13 Mar 2005 20:13:41 +0000 (20:13 +0000)]
Use getopt_long's getopt implementation.
Joerg Sonnenberger [Sun, 13 Mar 2005 19:18:29 +0000 (19:18 +0000)]
Move ctype man page from locale to gen, they are locale-sensitive, but
not locale-specific. Move description of euc, gb18030, gbk, utf2 and utf8
to share/man/man5, they are not device drivers.
Joerg Sonnenberger [Sun, 13 Mar 2005 19:05:23 +0000 (19:05 +0000)]
Don't build groff as buildtool, it's not needed anymore.
Joerg Sonnenberger [Sun, 13 Mar 2005 18:42:39 +0000 (18:42 +0000)]
Don't create some directories which will now be empty.
Joerg Sonnenberger [Sun, 13 Mar 2005 18:05:53 +0000 (18:05 +0000)]
Don't build / install the various historic troff papers to
/usr/share/doc. Don't install the KAME implementation details,
the document is outdated too.
Eirik Nygaard [Sun, 13 Mar 2005 15:58:56 +0000 (15:58 +0000)]
There is no need to set *entry on each entry traversed in the red-black tree
when looking up a record.
Sascha Wildner [Sun, 13 Mar 2005 15:10:03 +0000 (15:10 +0000)]
Remove DEC Alpha and PC98 support.
Simon Schubert [Sun, 13 Mar 2005 11:47:34 +0000 (11:47 +0000)]
Clean up generated files
Simon Schubert [Sun, 13 Mar 2005 11:43:08 +0000 (11:43 +0000)]
Switch to CVS 1.12.11
Sascha Wildner [Sun, 13 Mar 2005 01:53:56 +0000 (01:53 +0000)]
Remove PC98 support.
Joerg Sonnenberger [Sat, 12 Mar 2005 20:57:07 +0000 (20:57 +0000)]
Fix build. Move common CFLAGS additions up.
Makefiles should never use CFLAGS=.
Eirik Nygaard [Sat, 12 Mar 2005 19:13:54 +0000 (19:13 +0000)]
Update ncurses to version 5.4.
The framework has been written from scratch and I moved everything into
lib/libncurses to centralize the build process for it.
The man-pages is modified by the build in the ncurses paged so I have added the
modified man-pages here.
Eirik Nygaard [Sat, 12 Mar 2005 18:37:55 +0000 (18:37 +0000)]
Merge from vendor branch NCURSES:
Remove Ada95 files and man files.
The man-pages will be added with the new build framework.
Eirik Nygaard [Sat, 12 Mar 2005 18:37:56 +0000 (18:37 +0000)]
Remove Ada95 files and man files.
The man-pages will be added with the new build framework.
Eirik Nygaard [Sat, 12 Mar 2005 18:37:55 +0000 (18:37 +0000)]
Remove Ada95 files and man files.
The man-pages will be added with the new build framework.
YONETANI Tomokazu [Sat, 12 Mar 2005 16:13:02 +0000 (16:13 +0000)]
Forgot updating SYSACPICA_VERSION.
Reported-by: David Rhodus <sdrhodus [at] gmail.com>
YONETANI Tomokazu [Sat, 12 Mar 2005 14:33:40 +0000 (14:33 +0000)]
Update ACPI build wrappers to use new ACPICA code.
Submitted-by: Craig Dooley <xlnxminusx [at] gmail.com>
Add a small patch for userland ACPI tools by me, to compile
osunixxf.c . The absence of working AeLocalGetRootPointer() only
affects AcpiOsGetRootPointer() in userland ACPI tools. For kernel
module it's implemented in /sys/${ARCH}/acpica5/OsdEnvironment.c .
The callers of AcpiOsGetRootPointer() properly check anyway to see
if the returned pointer is valid, so making it no-op doesn't make
a problem.
YONETANI Tomokazu [Sat, 12 Mar 2005 13:58:03 +0000 (13:58 +0000)]
Import acpica-
20050211 from Intel.
http://developer.intel.com/technology/iapc/acpi/downloads/acpica-unix-
20050211.tar.gz
Max Okumoto [Sat, 12 Mar 2005 12:05:21 +0000 (12:05 +0000)]
patch-7.126
ParseModifier()
cleanup handling of colons.
Max Okumoto [Sat, 12 Mar 2005 12:04:56 +0000 (12:04 +0000)]
patch-7.125
ParseModifier()
Unfold parsing of single letter modifiers from multi letter modifiers.
Max Okumoto [Sat, 12 Mar 2005 12:04:31 +0000 (12:04 +0000)]
patch-7.124
Remove <spc><tab> and indent rest of file to 8 space tabs.
Max Okumoto [Sat, 12 Mar 2005 12:04:08 +0000 (12:04 +0000)]
patch-7.123
ParseModifier(), modifier_C()
Split out modifier_C() as its own function.
Max Okumoto [Sat, 12 Mar 2005 12:03:46 +0000 (12:03 +0000)]
patch-7.122
ParseModifier()
Reindent case 'C', it will become its own function.
Max Okumoto [Sat, 12 Mar 2005 12:03:17 +0000 (12:03 +0000)]
patch-7.121
- Reduce number of parameters passed between functions by
creating VarParser type to contain parser state info.
Max Okumoto [Sat, 12 Mar 2005 12:02:37 +0000 (12:02 +0000)]
patch-7.120
Var_Parse(), VarParse()
- Convert Var_Parse() into a wrapper function.
Max Okumoto [Sat, 12 Mar 2005 12:01:03 +0000 (12:01 +0000)]
patch-7.117
modifier_M()
Use estrdup() instead of parsing the pattern string twice.
Max Okumoto [Sat, 12 Mar 2005 12:00:31 +0000 (12:00 +0000)]
patch-7.116
Start style changes that harti requested, and other general
cleanup.
- Moved variable out of local scope.
- Renamed result variable to value, common code becomes
more visible.
- Add comment that explains why places consumed is adjusted.
- Rename freePtr to freeResult to clearify what should be
free'ed
Max Okumoto [Sat, 12 Mar 2005 12:00:02 +0000 (12:00 +0000)]
patch-7.115
VarParseLong()
- Moved detection of modifier ':' into loop.
- add comment about why consumed is updated.
Max Okumoto [Sat, 12 Mar 2005 11:59:28 +0000 (11:59 +0000)]
patch-7.114
ParseModifier()
- Renamed rw_str to value now that we know what it really
contains.
- Reindent cleanup section.
ParseRestModifier() and ParseRestEnd()
- Move advancement of ptr into parts of if-else. This
removes the confusing (rlen - 1) calculation.
VarParseLong()
- cleanup calculation of consumed.
Max Okumoto [Sat, 12 Mar 2005 11:59:03 +0000 (11:59 +0000)]
patch-7.113
ParseRest(), ParseRestModifier() and ParseRestEnd()
- split ParseRest() into two different functions.
ParseRestModifier() will handle bracketed variables with
modifiers. ParseRestEnd() will handle ones that do not
have modifiers.
Max Okumoto [Sat, 12 Mar 2005 11:58:21 +0000 (11:58 +0000)]
VarParseLong()
- split long line
- update comments to match code
- renamed variable lengthPtr to consumed
VarParseShort()
- renamed variable lengthPtr to consumed
- update comments to clearify why we are returning an error.
VarParse()
- update comments to match code
- renamed variable lengthPtr to consumed
Max Okumoto [Sat, 12 Mar 2005 11:57:38 +0000 (11:57 +0000)]
VarParseLong(), ParseRest()
Move nested scope into its own function.
Simon Schubert [Sat, 12 Mar 2005 11:35:27 +0000 (11:35 +0000)]
Update the bktr driver to match the current state of FreeBSD-current,
apart from changes that are purely to suit FreeBSD changes. It adds support
for three new cards (including the MT2032 tuner) and has some long -> uint32_t
changes that (according to the commit log) make it work on AMD64.
Obtained-from: FreeBSD
Submitted-by: Steve O'Hara-Smith <steve at sohara.org>
Max Okumoto [Sat, 12 Mar 2005 11:31:30 +0000 (11:31 +0000)]
Simplify the print routines by using LST_FOREACH instead of Lst_ForEach
and inlining the small printing utility functions.
Create a function that can be used to produce printable representations
of flag words.
FreeBSD-Date: 2005/03/11 13:24:08
Author: harti
Max Okumoto [Sat, 12 Mar 2005 11:29:33 +0000 (11:29 +0000)]
Remove leading underscores from the pathname defines. All identifiers
with leading underscore followed by an uppercase letter are in the
implementation namespace.
FreeBSD-Date: 2005/03/11 13:02:38
Author: harti
Max Okumoto [Sat, 12 Mar 2005 11:25:16 +0000 (11:25 +0000)]
Remove the leading underscore from structure tags. All identifiers
with a leading underscore are in the implementation namespace.
FreeBSD-Date: 2005/03/11 12:57:25
Author: harti
Liam J. Foy [Sat, 12 Mar 2005 11:10:02 +0000 (11:10 +0000)]
Clean up:
- Do not implicitly treat NUL characters, NULL pointers, or 0-valued
integers as false-valued booleans; use explicit tests instead
- Remove unnecessary header
- err() magic
- Minor Style(9)
Max Okumoto [Sat, 12 Mar 2005 11:07:26 +0000 (11:07 +0000)]
Style: Fix indentation.
FreeBSD-Date: 2005/03/11 12:40:55
Author: harti
Max Okumoto [Sat, 12 Mar 2005 11:04:46 +0000 (11:04 +0000)]
Call ParseFinishLine() also for the last line in a file. This
patch differs from the previous one in that it calls the function
only when a real file hits EOF. The bodies of .for loops are also
handled as files, but for these we don't want to end a dependency block
on the 'EOF' as in:
foo:
do-this
.for ...
do-something
.endfor
do-more
FreeBSD-Date: 2005/03/11 11:29:39
Author: harti
Max Okumoto [Sat, 12 Mar 2005 11:03:03 +0000 (11:03 +0000)]
Constify Var_Dump and simplify it by inlining VarPrintVar.
FreeBSD-Date: 2005/03/10 15:38:01
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:52:52 +0000 (10:52 +0000)]
Reorganize Suff_EndTransform to be called only for nodes for
which it is needed (transforms).
FreeBSD-Date: 2005/03/10 14:54:47
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:41:25 +0000 (10:41 +0000)]
The previous commit should have had the following comment.
Split SuffExpandChildren into three functions: one that skips
variables and expands archive specifications, one that expands
wild cards and a driver that loops over the children list and
expands each child if necessary replacing it with it's expansions.
FreeBSD-Date: 2005/03/09 16:51:43
Author: harti
This commit has the following comment.
Style: fix function style before working on it (mainly intendation).
FreeBSD-Date: 2005/03/10 10:16:03
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:39:02 +0000 (10:39 +0000)]
Implement a new macro LST_NEXT which is like Lst_Succ but doesn't check
for its argument to be non-NULL.
FreeBSD-Date: 2005/03/09 16:53:31
Author: harti
YONETANI Tomokazu [Sat, 12 Mar 2005 10:38:42 +0000 (10:38 +0000)]
Clean up entries for undefined mbuf tags to catch up with
revision 1.21 of sys/sys/mbuf.h.
YONETANI Tomokazu [Sat, 12 Mar 2005 10:34:36 +0000 (10:34 +0000)]
Unbreak the build of netstat and systat by hiding stale
references to MT_FTABLE.
Max Okumoto [Sat, 12 Mar 2005 10:31:28 +0000 (10:31 +0000)]
Var_Subst() cannot return NULL so there is no reason to check
for it.
FreeBSD-Date: 2005/03/09 07:53:03
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:29:10 +0000 (10:29 +0000)]
Style: fix indentation of SuffExpandChildren before working on it.
FreeBSD-Date: 2005/03/08 16:30:32
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:20:38 +0000 (10:20 +0000)]
Style: fix indentation of SuffExpandChildren before working on it.
FreeBSD-Date: 2005/03/08 16:30:32
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:17:00 +0000 (10:17 +0000)]
compat.c:
Use the Buf_Peel function to get to the string contained into a
buffer without using an extra local variable.
main.c
Use Buf_Peel to get rid of a local variable.
FreeBSD-Date: 2005/03/08 14:33:58
FreeBSD-Date: 2005/03/08 14:37:47
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:11:57 +0000 (10:11 +0000)]
Remove useless local prototypes.
FreeBSD-Date: 2005/03/08 14:30:18
Author: harti
Max Okumoto [Sat, 12 Mar 2005 10:10:12 +0000 (10:10 +0000)]
Style: fix indentation.
FreeBSD-Date: 2005/03/08 14:29:23
Author: harti
Max Okumoto [Sat, 12 Mar 2005 09:58:06 +0000 (09:58 +0000)]
Use the new Buf_Peel function to simplify things.
Remove an unused struct definition.
FreeBSD-Date: 2005/03/08 13:15:51
Author: harti
Max Okumoto [Sat, 12 Mar 2005 09:54:41 +0000 (09:54 +0000)]
Create a new function Buf_Peel that returns the string from inside
a Buffer and frees the Buffer.
FreeBSD-Date: 2005/03/08 13:15:18
Author: harti
Max Okumoto [Sat, 12 Mar 2005 09:52:54 +0000 (09:52 +0000)]
Add a debugging function that prints a message and appends the
current strerror.
FreeBSD-Date: 2005/03/08 07:47:14
Author: harti
Max Okumoto [Sat, 12 Mar 2005 09:50:44 +0000 (09:50 +0000)]
Mark functions that don't return as dead.
FreeBSD Date: 2005/03/08 07:45:50
Author: harti
Joerg Sonnenberger [Sat, 12 Mar 2005 03:24:19 +0000 (03:24 +0000)]
Change PACKET_TAG_* ids to be consecutive.
Joerg Sonnenberger [Sat, 12 Mar 2005 02:42:28 +0000 (02:42 +0000)]
Always build altq_etherclassify.
Joerg Sonnenberger [Sat, 12 Mar 2005 02:36:04 +0000 (02:36 +0000)]
Add ALTQ-style enqueue / dequeue / request functions for traditional
queues. Always dispatch via ifq->altq_* in ifq_var.
Joerg Sonnenberger [Sat, 12 Mar 2005 01:58:26 +0000 (01:58 +0000)]
Remove MT_FTABLE, it is not used anymore. Remove the #if 0'd entries
as well.
Joerg Sonnenberger [Sat, 12 Mar 2005 00:18:01 +0000 (00:18 +0000)]
Add wchar and multibyte related man pages.
Obtained-from: NetBSD / Citrus Project
Joerg Sonnenberger [Fri, 11 Mar 2005 23:33:53 +0000 (23:33 +0000)]
Add citrus backend code and iconv front end. This is intentionally
not hooked into the build yet.
Obtained-from: NetBSD / Citrus Project
Joerg Sonnenberger [Fri, 11 Mar 2005 21:50:39 +0000 (21:50 +0000)]
Add UTF7 build wrapper.
Joerg Sonnenberger [Fri, 11 Mar 2005 20:47:05 +0000 (20:47 +0000)]
I18N module build framework.
Adopted-from: NetBSD
Joerg Sonnenberger [Fri, 11 Mar 2005 20:25:11 +0000 (20:25 +0000)]
Add i18n directories.
Joerg Sonnenberger [Fri, 11 Mar 2005 20:17:11 +0000 (20:17 +0000)]
Helper programs.
Obtained-from: NetBSD / Citrus Project
Joerg Sonnenberger [Fri, 11 Mar 2005 19:16:53 +0000 (19:16 +0000)]
iconv frontend.
Obtained-from: NetBSD / Citrus Project
YONETANI Tomokazu [Fri, 11 Mar 2005 18:27:49 +0000 (18:27 +0000)]
Clean up Makefile's in preparation for importing new Intel ACPICA code.
Push .PATH and other variables into sys/dev/acpica5/Makefile.inc,
and share it with userland ACPI tools under usr.sbin/acpi.
Joerg Sonnenberger [Fri, 11 Mar 2005 15:58:31 +0000 (15:58 +0000)]
forgotten file
Joerg Sonnenberger [Fri, 11 Mar 2005 15:57:42 +0000 (15:57 +0000)]
Add locale and character set descriptions. This differs from the
NetBSD version in that Latin charset always include TAB in the BLANK
specification, just like ASCII does. It should be checked wether ASCII
should be a full subset of all this extended character sets, which it
normally is supposed to be.
Obtained-from: NetBSD
Joerg Sonnenberger [Thu, 10 Mar 2005 16:20:15 +0000 (16:20 +0000)]
Add data files for Character Set mappings and Encoding Scheme alias
tables.
Obtained-from: NetBSD / Citrus Project
Joerg Sonnenberger [Thu, 10 Mar 2005 14:50:21 +0000 (14:50 +0000)]
Use NLS framework.
Obtained-from: FreeBSD
Joerg Sonnenberger [Thu, 10 Mar 2005 14:35:10 +0000 (14:35 +0000)]
Use bsd.nls.mk.
Obtained-from: FreeBSD
Joerg Sonnenberger [Thu, 10 Mar 2005 14:30:31 +0000 (14:30 +0000)]
Add generic build framework for message catalogs.
Obtained-from: FreeBSD
Joerg Sonnenberger [Thu, 10 Mar 2005 14:27:39 +0000 (14:27 +0000)]
typo
David Xu [Thu, 10 Mar 2005 11:42:27 +0000 (11:42 +0000)]
Initialize tls support code for static binary.
Jeffrey Hsu [Thu, 10 Mar 2005 08:19:27 +0000 (08:19 +0000)]
Better byte packing for struct tcpopt.
Submitted by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>
Jeffrey Hsu [Wed, 9 Mar 2005 23:31:44 +0000 (23:31 +0000)]
Fix confusion with wrong route reference count being decremented.
Problem reported by: Joerg Sonnenberger
Hiten Pandya [Wed, 9 Mar 2005 23:26:11 +0000 (23:26 +0000)]
Provide a better annotations for KTR_VOP and KTR_NFS trace classes.
Cleanup the trace classes a little bit, remove KTR_WITNESS.
Max Okumoto [Wed, 9 Mar 2005 22:54:19 +0000 (22:54 +0000)]
Reduce diffs between FreeBSD
Joerg Sonnenberger [Wed, 9 Mar 2005 20:07:45 +0000 (20:07 +0000)]
Add bus_dmamap_syncs before bus_dmamap_unloads.
Submitted-by: Johannes Hofmann <Johannes.Hofmann@gmx.de>
Suggested-by: Andrew Atrens
Hiroki Sato [Wed, 9 Mar 2005 19:32:52 +0000 (19:32 +0000)]
Fix a bug which can allow a remote attacker to cause denial
of service attack.
Obtained from: KAME (rev.1.232)
Liam J. Foy [Wed, 9 Mar 2005 19:06:21 +0000 (19:06 +0000)]
- Sync the example with the correct sentense.
Submitted by good old: Sarunas Vancevicius <svan@redbrick.dcu.ie>
Liam J. Foy [Wed, 9 Mar 2005 18:58:22 +0000 (18:58 +0000)]
- Good english
Submitted by: Douwe Kiela <virtus@wanadoo.nl>
Joerg Sonnenberger [Wed, 9 Mar 2005 18:52:21 +0000 (18:52 +0000)]
Use getprogname() instead of depending on __progname where possible.
Include stdlib.h where necessary.
Liam J. Foy [Wed, 9 Mar 2005 16:59:40 +0000 (16:59 +0000)]
- Validate -i option
- Style(9)
Simon Schubert [Wed, 9 Mar 2005 16:18:55 +0000 (16:18 +0000)]
Sync with FreeBSD: Add support for sha1 and rmd160
Originally-done-by: Oliver Eikemeier <eik at freebsd.org>
Simon Schubert [Wed, 9 Mar 2005 16:12:29 +0000 (16:12 +0000)]
WFORMAT: Use -Wnon-const-format only with gcc2
David Xu [Wed, 9 Mar 2005 12:06:31 +0000 (12:06 +0000)]
1. use __weak_reference to define weak symbol.
2. fix compiler warnings.
Jeffrey Hsu [Wed, 9 Mar 2005 06:57:29 +0000 (06:57 +0000)]
Use fixed-width type to ensure correct wraparound for
sequence number arithmetic.
Submitted by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>
Jeffrey Hsu [Wed, 9 Mar 2005 06:54:34 +0000 (06:54 +0000)]
Take into account the number of SACKed bytes skipped when slow-starting
in order to send out a full congestion window's worth of packets.
Reported by and tested by: Noritoshi Demizu <demizu@dd.iij4u.or.jp>
Hiten Pandya [Wed, 9 Mar 2005 06:11:22 +0000 (06:11 +0000)]
Add a new function to the nlookup API, called nlookup_set_cred(9); this
function can be called on an existing nlookupdata structure for setting
different credentials.
Add a note on top of nlookup_init(9) about how the function selects the
credentials for the nlookupdata structure.
Reviewed-by: Matthew Dillon <dillon@apollo.backplane.com>
Matthew Dillon [Wed, 9 Mar 2005 05:16:23 +0000 (05:16 +0000)]
Fix a serious bug in cache_inval_vp()'s TAILQ iteration through v_namecache.
It was iterating using nc_entry instead of nc_vnode. The effect was,
typically, to deadlock in the namecache locking code but could also result
in the namecache topology becoming confused.
Add code to detect and report vnode ripouts during the scan. This case can
occur in certain rare circumstances because a held namecache structure only
prevents it from being removed from the topology, it does not prevent it
from being disassociated from a vnode.
Reported-by: Michael van Tellingen <michael@synantics.nl> and
Hiten Pandya <hmp@backplane.com>
Hiten Pandya [Wed, 9 Mar 2005 03:25:44 +0000 (03:25 +0000)]
Fix $FreeBSD$ ident string.
David Rhodus [Wed, 9 Mar 2005 02:53:03 +0000 (02:53 +0000)]
Clean up main() arguments.
Idea from FreeBSD
David Rhodus [Wed, 9 Mar 2005 02:44:42 +0000 (02:44 +0000)]
Fix some signed/unsigned comparisons.
Clean up some prototypes.
Merge from FreeBSD.