dragonfly.git
15 years agoRaise WARNS to 6.
Chris Pressey [Wed, 16 Mar 2005 06:18:56 +0000 (06:18 +0000)]
Raise WARNS to 6.

15 years agoFix warnings.
Joerg Sonnenberger [Wed, 16 Mar 2005 06:13:24 +0000 (06:13 +0000)]
Fix warnings.

15 years agoWhen dumping the contents of a struct sockaddr with an unknown address
Chris Pressey [Wed, 16 Mar 2005 06:08:06 +0000 (06:08 +0000)]
When dumping the contents of a struct sockaddr with an unknown address
family, dump individual bytes (u_chars) instead of u_shorts.  This
avoids endianness issues while also simplifying the code.

In-discussion-with: joerg

15 years agoWARNS=6.
Joerg Sonnenberger [Wed, 16 Mar 2005 05:27:27 +0000 (05:27 +0000)]
WARNS=6.

Submitted-by: Samuel J. Greear <sjg@evilcode.net>
15 years agoRaise WARNS to 6:
Joerg Sonnenberger [Wed, 16 Mar 2005 05:19:11 +0000 (05:19 +0000)]
Raise WARNS to 6:
- correctly initialize globals completely
- don't shadow globals
- change some locals to match the type in the ng headers

Submitted-by: Samuel J. Greear <sjg@evilcode.net>
15 years agoWhen rendering the routename() or netname() of a struct sockaddr
Chris Pressey [Wed, 16 Mar 2005 04:47:00 +0000 (04:47 +0000)]
When rendering the routename() or netname() of a struct sockaddr
with an unknown address family, use a more straightforward loop
for dumping the contents of sa_data as hex:

- start at sa_data, end at sa + sa_len (NOT sa_data + sa_len);
- don't make assumptions about the size of u_short.

Inspired-by-patch-by: Sepherosa Ziehau <sepherosa_at_softhome_dot_net>
15 years agoPass const ** as second argument to the command functions,
Joerg Sonnenberger [Wed, 16 Mar 2005 04:45:07 +0000 (04:45 +0000)]
Pass const ** as second argument to the command functions,
explicitly cast this away in calls to getopt. Change some
local variables to const char * as well, to match this.

15 years agoRaise WARNS to 6:
Chris Pressey [Wed, 16 Mar 2005 04:18:35 +0000 (04:18 +0000)]
Raise WARNS to 6:

- Rename local variables to avoid conflicts with globals;
- Make local functions static;
- Add missing function prototypes;
- Remove stale function prototypes and struct declarations;
- Un-nest nested extern declarations;
- Constify some char *'s where appropriate;
- Resolve comparisons between signed and unsigned;
- Copy some strings into work buffers instead of returning
  a const char * from a function defined to return a char *.

Submitted-by: Sepherosa Ziehau <sepherosa_at_softhome_dot_net>
Some-tweaks-by: cpressey
15 years agopatch-7.135
Max Okumoto [Wed, 16 Mar 2005 00:15:21 +0000 (00:15 +0000)]
patch-7.135
 Don't pass endc since we can calucluate it in the function that
 uses it.

15 years agopatch-7.134
Max Okumoto [Wed, 16 Mar 2005 00:15:04 +0000 (00:15 +0000)]
patch-7.134
 Cleanup calculation of consumed.

15 years agopatch-7.133
Max Okumoto [Wed, 16 Mar 2005 00:14:43 +0000 (00:14 +0000)]
patch-7.133
 ParseModifier()
        - substitute in delim
        - Use shorter variable name patt instead of pattern.
        - Move calc of consumed into subroutine.

15 years agopatch-7.132
Max Okumoto [Wed, 16 Mar 2005 00:14:18 +0000 (00:14 +0000)]
patch-7.132
 VarParseLong()
        - update value in vp->ptr instead of using a temp variable.
 ParseRestEnd()
        - Reduce number of explict parameter passed bu passing them
          via struct VarParser.

15 years agopatch-7.131
Max Okumoto [Wed, 16 Mar 2005 00:13:56 +0000 (00:13 +0000)]
patch-7.131
 ParseRestEnd()
        - Removed consumed as a input param to ParseRestEnd(), since
          it can be calculated.

15 years agopatch-7.130
Max Okumoto [Wed, 16 Mar 2005 00:13:38 +0000 (00:13 +0000)]
patch-7.130
 ParseRestEnd(), ParseRestModifier(), ParseModifier()
        - Reduce number of explict parameter passed bu passing them
          via struct VarParser.

15 years agopatch-7.129
Max Okumoto [Wed, 16 Mar 2005 00:13:23 +0000 (00:13 +0000)]
patch-7.129
 VarParseLong()
        - Reduce number of explict parameter passed bu passing them
          via struct VarParser.
        - Change loop termination from endc to '\0'

15 years agopatch-7.128
Max Okumoto [Wed, 16 Mar 2005 00:13:04 +0000 (00:13 +0000)]
patch-7.128
 Var_Parse()
        Add temp variable so calculations can be performed before
        we return.
 VarParse()
        Caclucate consumed via (vp->ptr - vp->input)
 VaraParseShort()
        Reduce number of explict parameter passed bu passing them
        via struct VarParser.

15 years agoVar_Parse(), VarParse()
Max Okumoto [Wed, 16 Mar 2005 00:09:46 +0000 (00:09 +0000)]
Var_Parse(), VarParse()
- Reduce the number of explict parameter passed to VarParse()
  by passing them via struct VarParser.

15 years agoFreeBSD-Date: 2005/03/15 14:28:39
Max Okumoto [Tue, 15 Mar 2005 23:40:48 +0000 (23:40 +0000)]
FreeBSD-Date: 2005/03/15 14:28:39
Author: harti

Get rid of a number of Lst_ForEach calls in favour of LST_FOREACH
and simplify the printing functions.

15 years agoFreeBSD-Date: 2005/03/15 14:25:24
Max Okumoto [Tue, 15 Mar 2005 23:36:57 +0000 (23:36 +0000)]
FreeBSD-Date: 2005/03/15 14:25:24
Author: harti

Yet another version of passing the last line to ParseFinishLine().
It turns out that some ports use the obscure feature of spreading
a dependency block across multiple include files. While this seems
bad style, allow it for now and call said function only at end of
all input to process the really last line of everything.

15 years agoGet rid of another Lst_ForEach in favour of LST_FOREACH. Get rid
Max Okumoto [Tue, 15 Mar 2005 23:31:15 +0000 (23:31 +0000)]
Get rid of another Lst_ForEach in favour of LST_FOREACH. Get rid
of the now unused struct LstSrc and collapes two functions into one.

FreeBSD-Date: 2005/03/14 17:04:58
Author: harti

15 years agoMove the creation of a Src structure into its own function.
Max Okumoto [Tue, 15 Mar 2005 23:27:19 +0000 (23:27 +0000)]
Move the creation of a Src structure into its own function.

FreeBSD-Date: 2005/03/14 12:04:20
Author: harti

15 years agosrc/games WARNS 6 cleanups.
Matthew Dillon [Tue, 15 Mar 2005 20:53:43 +0000 (20:53 +0000)]
src/games WARNS 6 cleanups.

Submitted-by: Craig Dooley <xlnxminusx@gmail.com>
15 years agoBring in some CAM bug fixes from FreeBSD.
Matthew Dillon [Tue, 15 Mar 2005 20:42:14 +0000 (20:42 +0000)]
Bring in some CAM bug fixes from FreeBSD.

Submitted-by: Xin LI <delphij@frontfree.net>
Obtained-from: FreeBSD

15 years agoRemove the euc(4) and utf2(4) man pages. They are now in section 5.
Sascha Wildner [Tue, 15 Mar 2005 19:16:17 +0000 (19:16 +0000)]
Remove the euc(4) and utf2(4) man pages. They are now in section 5.

15 years agoFix incorrect comment.
David Xu [Tue, 15 Mar 2005 15:09:22 +0000 (15:09 +0000)]
Fix incorrect comment.

15 years agoAdd following prototypes:
David Xu [Tue, 15 Mar 2005 12:27:43 +0000 (12:27 +0000)]
Add following prototypes:
pthread_mutex_timedlock
pthread_rwlock_timedrdlock
pthread_rwlock_timedwrlock

15 years agoAdd prototypes for pthread_condattr_getclock and pthread_condattr_setclock.
David Xu [Tue, 15 Mar 2005 12:04:14 +0000 (12:04 +0000)]
Add prototypes for pthread_condattr_getclock and pthread_condattr_setclock.

15 years agounconstify a modifiable parameter.
David Xu [Tue, 15 Mar 2005 12:01:51 +0000 (12:01 +0000)]
unconstify a modifiable parameter.

15 years agoFix comments.
David Xu [Tue, 15 Mar 2005 11:26:34 +0000 (11:26 +0000)]
Fix comments.

15 years agoAdd clockid to _thr_umtx_wait, so that clockid attribute of condition
David Xu [Tue, 15 Mar 2005 11:24:23 +0000 (11:24 +0000)]
Add clockid to _thr_umtx_wait, so that clockid attribute of condition
variable can be supported.

15 years agoflesh out a tiny bit so people at least know what the help key is.
Matthew Dillon [Tue, 15 Mar 2005 02:45:59 +0000 (02:45 +0000)]
flesh out a tiny bit so people at least know what the help key is.

15 years agoAdd 'mined' to the bin build and add a minimal manual page for it.
Matthew Dillon [Tue, 15 Mar 2005 02:43:18 +0000 (02:43 +0000)]
Add 'mined' to the bin build and add a minimal manual page for it.

15 years agoSupport XTERM function key escape sequences.
Matthew Dillon [Tue, 15 Mar 2005 02:32:57 +0000 (02:32 +0000)]
Support XTERM function key escape sequences.

15 years agoMake ^L redraw the screen, like people expect.
Matthew Dillon [Tue, 15 Mar 2005 02:25:25 +0000 (02:25 +0000)]
Make ^L redraw the screen, like people expect.

Make ^Z tty-stop the editor, like people expect (but don't try to
deal with window resizes).

15 years agoBring in PicoBSD changes from the FreeBSD Attic.
Matthew Dillon [Tue, 15 Mar 2005 02:13:15 +0000 (02:13 +0000)]
Bring in PicoBSD changes from the FreeBSD Attic.

Prepend the Minix LICENSE in all source files.

Add a few other random defines... slightly different from the way FreeBSD
did it.

15 years agoBring in the minix editor 'mined', in its original form except for necessary
Matthew Dillon [Tue, 15 Mar 2005 01:56:24 +0000 (01:56 +0000)]
Bring in the minix editor 'mined', in its original form except for necessary
DragonFly CVS IDs at the top of each file.  Bring the LICENSE file in from
http://www.cs.vu.nl/pub/minix/LICENSE.

15 years agoStop building old GDB.
Joerg Sonnenberger [Tue, 15 Mar 2005 01:54:28 +0000 (01:54 +0000)]
Stop building old GDB.

15 years agoGC
Joerg Sonnenberger [Tue, 15 Mar 2005 01:54:58 +0000 (01:54 +0000)]
GC

15 years agoImplement CLOCK_MONOTONIC using getnanouptime(), which in DragonFly is
Matthew Dillon [Tue, 15 Mar 2005 01:12:23 +0000 (01:12 +0000)]
Implement CLOCK_MONOTONIC using getnanouptime(), which in DragonFly is
guarenteed to be monotonically increasing.

15 years agoInstead of using the non-standard conforming %+ format string,
Joerg Sonnenberger [Mon, 14 Mar 2005 23:55:41 +0000 (23:55 +0000)]
Instead of using the non-standard conforming %+ format string,
use nl_langinfo to query the default format string.

15 years agoUse NXCC to build make_hash and make_keys.
Joerg Sonnenberger [Mon, 14 Mar 2005 15:32:51 +0000 (15:32 +0000)]
Use NXCC to build make_hash and make_keys.

15 years agoMove SHLIB_MAJOR / SHLIB_MINOR assignment up into Makefile.inc.
Joerg Sonnenberger [Mon, 14 Mar 2005 15:15:14 +0000 (15:15 +0000)]
Move SHLIB_MAJOR / SHLIB_MINOR assignment up into Makefile.inc.

15 years agoMerge r1.2 from NetBSD:
Joerg Sonnenberger [Mon, 14 Mar 2005 14:46:44 +0000 (14:46 +0000)]
Merge r1.2 from NetBSD:
anonymous union between chlen and _UTF7StatePrive has
compilation problem with gcc295.
this union attempt to make mbsinit(3) handle multibyte state correctly,
but it's useless as far as we use utf-7 only iconv interface.
so i eliminate ctype feature.

patch contributed by Joerg Sonnenberg(who porting Citrus to DragonFlyBSD).
and yamt-san gave me advice, thanks a lot.

15 years agoBack out switch to getopt_long implementation of getopt, it breaks
Joerg Sonnenberger [Mon, 14 Mar 2005 14:26:16 +0000 (14:26 +0000)]
Back out switch to getopt_long implementation of getopt, it breaks
too much. This will be done (more carefully) later.

15 years agoConvert a couple of other uses of Lst_ForEach to LST_FOREACH and
Max Okumoto [Mon, 14 Mar 2005 13:31:36 +0000 (13:31 +0000)]
Convert a couple of other uses of Lst_ForEach to LST_FOREACH and
simplify code.

FreeBSD-Date: 2005/03/14 08:29:58
Author: harti

15 years agoAdd '+' to argument list of find to prevent getopt from reordering
Joerg Sonnenberger [Mon, 14 Mar 2005 12:48:57 +0000 (12:48 +0000)]
Add '+' to argument list of find to prevent getopt from reordering
the arguments.

15 years agoCorrectly return -1 for "-" as argument as required by SUS.
Joerg Sonnenberger [Mon, 14 Mar 2005 12:36:25 +0000 (12:36 +0000)]
Correctly return -1 for "-" as argument as required by SUS.
Fix a typo where specifying a single invalid short option could
result in an infinite loop.

15 years agoSUS says that getopt() should return -1 immediately if the argument is "-".
Joerg Sonnenberger [Mon, 14 Mar 2005 11:55:33 +0000 (11:55 +0000)]
SUS says that getopt() should return -1 immediately if the argument is "-".
Correctly handle this case. We formerly depended on the (undocumented)
behaviour of getopt to return this as '-' option.

15 years agoFix nested comments. Vim added another */ while I copy/pasted some of the lines
Eirik Nygaard [Mon, 14 Mar 2005 09:14:57 +0000 (09:14 +0000)]
Fix nested comments. Vim added another */ while I copy/pasted some of the lines
there.

Submitted by: Chris Pressey <cpressey@catseye.mine.nu>

15 years agoChange the behavior of -fstype so as not to terminate the process
YONETANI Tomokazu [Sun, 13 Mar 2005 22:22:42 +0000 (22:22 +0000)]
Change the behavior of -fstype so as not to terminate the process
when statfs() failed(meaning that it couldn't type a filesystem),
but report false and continue. This fixes locate.updatedb program
failing on a mounted-but-unavailable mountpoint unless such a
mountpoint is explicitly specified in PRUNEPATHS.

Reported-by: Rumko <rumcic (at) gmail.com>
Ok: Matt

15 years agoFix a couple of NFS client side caching snafus. First, we have to update
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.

15 years agoAdd a function that returns an approximate time_t for realtime for
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().

15 years ago- Remove sys/stat.h, sys/signal.h, varargs.h and ctype.h
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

15 years agoAnother man page which was moved to lib/libc/gen.
Joerg Sonnenberger [Sun, 13 Mar 2005 20:44:38 +0000 (20:44 +0000)]
Another man page which was moved to lib/libc/gen.

15 years agoUse libc's getopt_long, I've been building and using ports for a while with
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.

15 years agoUse getopt_long's getopt implementation.
Joerg Sonnenberger [Sun, 13 Mar 2005 20:13:41 +0000 (20:13 +0000)]
Use getopt_long's getopt implementation.

15 years agoMove ctype man page from locale to gen, they are locale-sensitive, but
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.

15 years agoDon't build groff as buildtool, it's not needed anymore.
Joerg Sonnenberger [Sun, 13 Mar 2005 19:05:23 +0000 (19:05 +0000)]
Don't build groff as buildtool, it's not needed anymore.

15 years agoDon't create some directories which will now be empty.
Joerg Sonnenberger [Sun, 13 Mar 2005 18:42:39 +0000 (18:42 +0000)]
Don't create some directories which will now be empty.

15 years agoDon't build / install the various historic troff papers to
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.

15 years agoThere is no need to set *entry on each entry traversed in the red-black tree
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.

15 years agoRemove DEC Alpha and PC98 support.
Sascha Wildner [Sun, 13 Mar 2005 15:10:03 +0000 (15:10 +0000)]
Remove DEC Alpha and PC98 support.

15 years agoClean up generated files
Simon Schubert [Sun, 13 Mar 2005 11:47:34 +0000 (11:47 +0000)]
Clean up generated files

15 years agoSwitch to CVS 1.12.11
Simon Schubert [Sun, 13 Mar 2005 11:43:08 +0000 (11:43 +0000)]
Switch to CVS 1.12.11

15 years agoRemove PC98 support.
Sascha Wildner [Sun, 13 Mar 2005 01:53:56 +0000 (01:53 +0000)]
Remove PC98 support.

15 years agoFix build. Move common CFLAGS additions up.
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=.

15 years agoUpdate ncurses to version 5.4.
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.

15 years agoMerge from vendor branch NCURSES:
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.

15 years agoRemove Ada95 files and man files.
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.

15 years agoRemove Ada95 files and man files.
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.

15 years agoForgot updating SYSACPICA_VERSION.
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>
15 years agoUpdate ACPI build wrappers to use new ACPICA code.
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.

15 years agoImport acpica-20050211 from Intel.
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

15 years agopatch-7.126
Max Okumoto [Sat, 12 Mar 2005 12:05:21 +0000 (12:05 +0000)]
patch-7.126
    ParseModifier()
cleanup handling of colons.

15 years agopatch-7.125
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.

15 years agopatch-7.124
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.

15 years ago patch-7.123
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.

15 years agopatch-7.122
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.

15 years agopatch-7.121
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.

15 years agopatch-7.120
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.

15 years agopatch-7.117
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.

15 years agopatch-7.116
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

15 years agopatch-7.115
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.

15 years agopatch-7.114
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.

15 years agopatch-7.113
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.

15 years agoVarParseLong()
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

15 years agoVarParseLong(), ParseRest()
Max Okumoto [Sat, 12 Mar 2005 11:57:38 +0000 (11:57 +0000)]
VarParseLong(), ParseRest()
Move nested scope into its own function.

15 years agoUpdate the bktr driver to match the current state of FreeBSD-current,
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>
15 years agoSimplify the print routines by using LST_FOREACH instead of Lst_ForEach
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

15 years agoRemove leading underscores from the pathname defines. All identifiers
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

15 years agoRemove the leading underscore from structure tags. All identifiers
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

15 years agoClean up:
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)

15 years agoStyle: Fix indentation.
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

15 years agoCall ParseFinishLine() also for the last line in a file. This
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

15 years agoConstify Var_Dump and simplify it by inlining VarPrintVar.
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

15 years agoReorganize Suff_EndTransform to be called only for nodes for
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

15 years agoThe previous commit should have had the following comment.
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

15 years agoImplement a new macro LST_NEXT which is like Lst_Succ but doesn't check
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

15 years agoClean up entries for undefined mbuf tags to catch up with
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.

15 years agoUnbreak the build of netstat and systat by hiding stale
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.