CVS commit: othersrc/external/historical/eawk

2011-08-30 Thread Alistair G. Crooks
Module Name:othersrc
Committed By:   agc
Date:   Wed Aug 31 04:19:41 UTC 2011

Update of /cvsroot/othersrc/external/historical/eawk
In directory ivanova.netbsd.org:/tmp/cvs-serv23294

Log Message:
Embedded Awk


This is a heresy I have done, of my own free will and volition, and
which I now know as being a sin.

Firstly, I have butchered the one true awk source code, made
it re-entrant and embeddable in C programs, and now present it
as a library (libeawk) and a small driver program (eawk).  The
driver program now uses getopt_long, and gives a good idea of
how to use eawk in embedded code.

Furthermore, I have "added" to the one true language.  The
additions are 4 functions:

dlopen(handle, shared object name)
dlproto(handle, C function prototype as a string)
dlcall(handle, function, function args...)
dlclose(handle)

which allows you to do such abominations as:

dlopen(libc, "libc");
dlproto(libc, "long write(int, awkptr, long)")
dlcall(libc, "write", 1, "hi\n", 3)
dlclose(libc)

(i.e. allows interfacing to shared libraries and shared objects without
any C glue or other shim in between the scripting language and the
compiled library).

Please note that you can specify the prototype at the same time as the
foreign function call, with dlcall:

dlopen(libc, "libc");
dlcall(libc, "long write(int, awkptr, long)", 1, "hi\n", 3)

and then:

% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "int printf(awkptr)", "Hello 
world\n") }' /dev/null
Hello world
%

In fact, the following scripts are all equivalent:

% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "long write(int, awkptr, 
long)", 1, "Hello world\n", 12) }' /dev/null
Hello world
% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "int printf(awkptr)", "Hello 
world\n") }' /dev/null
Hello world
% eawk 'BEGIN { dlopen(libc, "libc"); dlcall(libc, "int fprintf(cvar, awkptr)", 
"stdout", "Hello world\n") }' /dev/null
Hello world

The type of arguments, and the return type, given in the dlproto()
calls is important:

awkptr - a string as passed from the eawk script
cptr - a pointer to an object in the compiled shared object
cref - the address of a pointer to an object in the compiled
shared object. this is used to map the construct:
&cp
into an awk string
cvar - the awk string which maps to a compiled well-known
variable in the compiled shared object, typically
stdin, stdout and stderr
void - no return type
bool - the boolean type
int - standard integer type on this machine
long - native long on this machine
int64 - 64-bit data type

In order to support foreign functions which typically use a structure
passed into every function as a handle (very much like the eawk
implementation here), I'd also added two other functions which can be
called from scripts:

buf = dlalloc(size)
dlfree(buf)

and also a new prototype keyword called "cptr" - this is functionally
equivalent to long, but more intuitively obvious that the argument should
be pre-allocated storage (at the native layer).

% eawk 'BEGIN {
dlopen(libc, "libc")
size = 1024
buf = dlalloc(size)
dlcall(libc, "int snprintf(cptr, int, awkptr, int)", buf, size, 
"allocated size is %d\n", size)
dlcall(libc, "int printf(cptr)", buf)
dlfree(buf)
}' /dev/null
allocated size is 1024
%

Finally, we need a way to get information back from C structures and
storage into an awk script, and we do that with the

var = dlfield(storage, offset, type)

function. This can be used as follows:

% eawk 'BEGIN {
dlopen(libc, "libc")
st = dlalloc(1024)
dlcall(libc, "int stat(awkptr, cptr)", "/etc/group", st)
mode = dlfield(st, 8, "int16")
printf("%s mode is %o\n", "/etc/group", mode)
dlfree(st)
}' /dev/null
mode is 100644
%

To illustrate some of the dlcall features a bit further, this script
will print out the keys in the user's keyring, by direct calling of
exported frunctionality from libnetpgp:

% eawk '
BEGIN {
dlopen(libc, "libc")
dlopen(libnetpgp, "libnetpgp")
netpgp = dlalloc(2048)
ret = dlcall(libnetpgp, "int netpgp_set_homedir(cptr, awkptr, awkptr, 
int)", netpgp, ENVIRON["HOME"], "/.gnupg", quiet = 1)
ret = dlcall(libnetpgp, "int netpgp_init(cptr)", netpgp)
}
END {
ret = dlcall(libnetpgp, "int netpgp_list_keys_json(cptr, cref, int)", 
netpgp, json, psigs = 0)
ret = dlcall(libnetpgp, "int netpgp_format_json(cvar, cptr, int)", 
"stdout", json, psigs = 0)
}' /dev/null
126 keys found
signature  2048/RSA (Encrypt or Sign) 1b68dcfcc0596823 2004-01-12
Key fingerprint: d415 9deb 336d e4cc cdfa 00cd 1b68 dcfc c059 6823 
uid  Alistair Crooks  
uid  Alistair Crooks  
uid   

CVS commit: src/usr.bin/crunch/crunchide

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 23:15:14 UTC 2011

Modified Files:
src/usr.bin/crunch/crunchide: crunchide.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/crunch/crunchide/crunchide.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/crunch/crunchgen

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 23:10:45 UTC 2011

Modified Files:
src/usr.bin/crunch/crunchgen: crunchgen.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/usr.bin/crunch/crunchgen/crunchgen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/compress

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 23:08:05 UTC 2011

Modified Files:
src/usr.bin/compress: compress.c

Log Message:
Use __printflike and __dead


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/compress/compress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/gzip

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 23:06:01 UTC 2011

Modified Files:
src/usr.bin/gzip: gzip.c

Log Message:
Use __printflike and __dead.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/usr.bin/gzip/gzip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2011-08-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 30 22:45:56 UTC 2011

Modified Files:
src/sys/kern: sys_process.c

Log Message:
Process the signal now, otherwise calling issignal() and ignoring
the return will lose the signal if it came from the debugger
(issignal() clears p->p_xstat)


To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 src/sys/kern/sys_process.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/net

2011-08-30 Thread Robert Swindells
Module Name:src
Committed By:   rjs
Date:   Tue Aug 30 22:23:06 UTC 2011

Modified Files:
src/sys/net: if_pppoe.c

Log Message:
Typo in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/net/if_pppoe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/comm

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:36:38 UTC 2011

Modified Files:
src/usr.bin/comm: comm.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/comm/comm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/colrm

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:35:09 UTC 2011

Modified Files:
src/usr.bin/colrm: colrm.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.bin/colrm/colrm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/col

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:33:28 UTC 2011

Modified Files:
src/usr.bin/col: col.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/col/col.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/pvctxctl

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:28:27 UTC 2011

Modified Files:
src/usr.sbin/pvctxctl: pvctxctl.c

Log Message:
Localize variables. Use __dead


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/pvctxctl/pvctxctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/pvcsif

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:27:00 UTC 2011

Modified Files:
src/usr.sbin/pvcsif: pvcsif.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/pvcsif/pvcsif.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/route6d

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:26:11 UTC 2011

Modified Files:
src/usr.sbin/route6d: route6d.c

Log Message:
static + __dead + G/C


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/usr.sbin/route6d/route6d.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/mld6query

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:18:11 UTC 2011

Modified Files:
src/usr.sbin/mld6query: mld6.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/mld6query/mld6.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/rip6query

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:17:06 UTC 2011

Modified Files:
src/usr.sbin/rip6query: rip6query.c

Log Message:
ANSIfy + static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/rip6query/rip6query.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/faithd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:14:06 UTC 2011

Modified Files:
src/usr.sbin/faithd: faithd.c faithd.h tcp.c

Log Message:
__dead + __printflike


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/usr.sbin/faithd/faithd.c
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/faithd/faithd.h \
src/usr.sbin/faithd/tcp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ypserv

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:10:29 UTC 2011

Modified Files:
src/usr.sbin/ypserv/makedbm: makedbm.c
src/usr.sbin/ypserv/mkalias: mkalias.c
src/usr.sbin/ypserv/mknetid: mknetid.c
src/usr.sbin/ypserv/revnetgroup: revnetgroup.c
src/usr.sbin/ypserv/stdethers: stdethers.c
src/usr.sbin/ypserv/stdhosts: stdhosts.c
src/usr.sbin/ypserv/yppush: yppush.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/ypserv/makedbm/makedbm.c
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/ypserv/mkalias/mkalias.c
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/ypserv/mknetid/mknetid.c
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/ypserv/revnetgroup/revnetgroup.c
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/ypserv/stdethers/stdethers.c
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/ypserv/stdhosts/stdhosts.c
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/ypserv/yppush/yppush.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/wsmuxctl

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:03:31 UTC 2011

Modified Files:
src/usr.sbin/wsmuxctl: wsmuxctl.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/wsmuxctl/wsmuxctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/wiconfig

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 21:01:51 UTC 2011

Modified Files:
src/usr.sbin/wiconfig: wiconfig.c

Log Message:
ANSIfy + static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/wiconfig/wiconfig.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/vnconfig

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:54:18 UTC 2011

Modified Files:
src/usr.sbin/vnconfig: vnconfig.c

Log Message:
ANSIfy + static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/usr.sbin/vnconfig/vnconfig.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/vipw

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:52:10 UTC 2011

Modified Files:
src/usr.sbin/vipw: vipw.c

Log Message:
De-__P + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/vipw/vipw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/usbdevs

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:51:29 UTC 2011

Modified Files:
src/usr.sbin/usbdevs: usbdevs.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/usbdevs/usbdevs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/unlink

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:50:24 UTC 2011

Modified Files:
src/usr.sbin/unlink: unlink.c

Log Message:
ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/unlink/unlink.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/trpt

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:49:30 UTC 2011

Modified Files:
src/usr.sbin/trpt: trpt.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/trpt/trpt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/spray

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:45:31 UTC 2011

Modified Files:
src/usr.sbin/spray: spray.c

Log Message:
static + ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/spray/spray.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sntp

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:43:43 UTC 2011

Removed Files:
src/usr.sbin/sntp: Makefile sntp.1

Log Message:
G/C


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/usr.sbin/sntp/Makefile
cvs rdiff -u -r1.8 -r0 src/usr.sbin/sntp/sntp.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/sliplogin

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:42:22 UTC 2011

Modified Files:
src/usr.sbin/sliplogin: sliplogin.c

Log Message:
static + ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/sliplogin/sliplogin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/screenblank

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:33:31 UTC 2011

Modified Files:
src/usr.sbin/screenblank: screenblank.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/screenblank/screenblank.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/rpc.bootparamd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:29:41 UTC 2011

Modified Files:
src/usr.sbin/rpc.bootparamd: bootparamd.c test.c

Log Message:
ANSIFy + static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/usr.sbin/rpc.bootparamd/bootparamd.c
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/rpc.bootparamd/test.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/rarpd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:25:18 UTC 2011

Modified Files:
src/usr.sbin/rarpd: mkarp.c rarpd.c

Log Message:
static + __printflike + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/rarpd/mkarp.c
cvs rdiff -u -r1.58 -r1.59 src/usr.sbin/rarpd/rarpd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/perfused

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:17:01 UTC 2011

Modified Files:
src/usr.sbin/perfused: debug.c msg.c perfused.c perfused.h

Log Message:
Fast backward code to 1989 and use ANSI C consistently. Use __dead.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/perfused/debug.c
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/perfused/msg.c
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/perfused/perfused.c
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/perfused/perfused.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/pcictl

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:08:38 UTC 2011

Modified Files:
src/usr.sbin/pcictl: pcictl.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/pcictl/pcictl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/nfsd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:07:32 UTC 2011

Modified Files:
src/usr.sbin/nfsd: nfsd.c

Log Message:
static + ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/usr.sbin/nfsd/nfsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/moused

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:03:52 UTC 2011

Modified Files:
src/usr.sbin/moused: moused.c

Log Message:
static + __printflike + __dead + format string fixes


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/moused/moused.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/mountd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 20:00:58 UTC 2011

Modified Files:
src/usr.sbin/mountd: mountd.c

Log Message:
ANSIfy. Use __dead.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/usr.sbin/mountd/mountd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/mopd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:49:11 UTC 2011

Modified Files:
src/usr.sbin/mopd/common: cmp.h common.h device.c device.h dl.h file.c
get.h log.h loop-bsd.c mopdef.c nma.c nma.h pf.h print.h put.h rc.h
src/usr.sbin/mopd/mopchk: mopchk.c
src/usr.sbin/mopd/mopcopy: mopcopy.c
src/usr.sbin/mopd/mopd: mopd.c process.h
src/usr.sbin/mopd/mopprobe: mopprobe.c
src/usr.sbin/mopd/moptrace: moptrace.c

Log Message:
ANSIfy + __printflike + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/mopd/common/cmp.h \
src/usr.sbin/mopd/common/device.h src/usr.sbin/mopd/common/dl.h \
src/usr.sbin/mopd/common/nma.h src/usr.sbin/mopd/common/pf.h \
src/usr.sbin/mopd/common/print.h src/usr.sbin/mopd/common/put.h \
src/usr.sbin/mopd/common/rc.h
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/mopd/common/common.h
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/mopd/common/device.c
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/mopd/common/file.c
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/mopd/common/get.h \
src/usr.sbin/mopd/common/nma.c
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/mopd/common/log.h
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/mopd/common/loop-bsd.c
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/mopd/common/mopdef.c
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/mopd/mopchk/mopchk.c
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/mopd/mopcopy/mopcopy.c
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/mopd/mopd/mopd.c
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/mopd/mopd/process.h
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/mopd/mopprobe/mopprobe.c
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/mopd/moptrace/moptrace.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/lpr

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:27:37 UTC 2011

Modified Files:
src/usr.sbin/lpr/common_source: lp.h
src/usr.sbin/lpr/filters: lpf.c
src/usr.sbin/lpr/lpc: extern.h lpc.c
src/usr.sbin/lpr/lpd: extern.h lpd.c printjob.c recvjob.c
src/usr.sbin/lpr/lpr: lpr.c
src/usr.sbin/lpr/pac: pac.c

Log Message:
static, __printflike, __dead


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/lpr/common_source/lp.h
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/lpr/filters/lpf.c
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/lpr/lpc/extern.h
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/lpr/lpc/lpc.c
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/lpr/lpd/extern.h
cvs rdiff -u -r1.55 -r1.56 src/usr.sbin/lpr/lpd/lpd.c \
src/usr.sbin/lpr/lpd/printjob.c
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/lpr/lpd/recvjob.c
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/lpr/lpr/lpr.c
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/lpr/pac/pac.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/lockstat

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:20:20 UTC 2011

Modified Files:
src/usr.sbin/lockstat: main.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/lockstat/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/link

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:18:17 UTC 2011

Modified Files:
src/usr.sbin/link: link.c

Log Message:
ANSIfy + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/link/link.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/irdaattach

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:07:07 UTC 2011

Modified Files:
src/usr.sbin/irdaattach: irdaattach.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/irdaattach/irdaattach.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/iostat

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:06:06 UTC 2011

Modified Files:
src/usr.sbin/iostat: iostat.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/usr.sbin/iostat/iostat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2011-08-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Aug 30 19:05:12 UTC 2011

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
fix -Wshadow warnings when ALTQ is enabled


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/iopctl

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 19:03:25 UTC 2011

Modified Files:
src/usr.sbin/iopctl: iopctl.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/iopctl/iopctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:57:38 UTC 2011

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/gspa/gspa

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:53:42 UTC 2011

Modified Files:
src/usr.sbin/gspa/gspa: gsp_ass.h gspa.c

Log Message:
Use __dead and __printflike


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/gspa/gspa/gsp_ass.h
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/gspa/gspa/gspa.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/gpioctl

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:50:48 UTC 2011

Modified Files:
src/usr.sbin/gpioctl: gpioctl.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.sbin/gpioctl/gpioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/fssconfig

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:30:13 UTC 2011

Modified Files:
src/usr.sbin/fssconfig: fssconfig.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/fssconfig/fssconfig.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/eshconfig

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:28:59 UTC 2011

Modified Files:
src/usr.sbin/eshconfig: eshconfig.c

Log Message:
ANSIfy + static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/eshconfig/eshconfig.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/dumpfs

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:24:18 UTC 2011

Modified Files:
src/usr.sbin/dumpfs: dumpfs.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/usr.sbin/dumpfs/dumpfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2011-08-30 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Aug 30 17:09:52 UTC 2011

Modified Files:
src/include/rpc: xdr.h
src/lib/libc/rpc: rpc.3

Log Message:
provide a complete prototype for xdrproc_t

(I found no instances where three arguments were actually
used, as per the claim in the comment. If there are any
in third party code then they will need to use a cast)


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/include/rpc/xdr.h
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/rpc/rpc.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2011-08-30 Thread Iain Hibbert
Module Name:src
Committed By:   plunky
Date:   Tue Aug 30 17:06:22 UTC 2011

Modified Files:
src/include/rpc: clnt.h svc.h
src/lib/libquota: getnfsquota.c
src/lib/librpcsvc: rnusers.x
src/libexec/rpc.rquotad: rquotad.c
src/libexec/rpc.rstatd: rstat_proc.c
src/libexec/rpc.rusersd: rusers_proc.c
src/libexec/rpc.rwalld: rwalld.c
src/libexec/rpc.sprayd: sprayd.c
src/tests/fs/nfs/nfsservice: mountd.c
src/usr.bin/rup: rup.c
src/usr.bin/rusers: rusers.c
src/usr.bin/showmount: showmount.c
src/usr.bin/ypwhich: ypwhich.c
src/usr.sbin/mountd: mountd.c
src/usr.sbin/rpc.lockd: lockd_lock.c
src/usr.sbin/rpc.yppasswdd: rpc.yppasswdd.c yppasswdd_mkpw.c
src/usr.sbin/ypbind: ypbind.c
src/usr.sbin/yppoll: yppoll.c
src/usr.sbin/ypserv/common: yplib_host.c
src/usr.sbin/ypserv/yppush: yppush_svc.c
src/usr.sbin/ypserv/ypserv: ypserv.c ypserv_proc.c

Log Message:
Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/include/rpc/clnt.h
cvs rdiff -u -r1.23 -r1.24 src/include/rpc/svc.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libquota/getnfsquota.c
cvs rdiff -u -r1.13 -r1.14 src/lib/librpcsvc/rnusers.x
cvs rdiff -u -r1.28 -r1.29 src/libexec/rpc.rquotad/rquotad.c
cvs rdiff -u -r1.44 -r1.45 src/libexec/rpc.rstatd/rstat_proc.c
cvs rdiff -u -r1.26 -r1.27 src/libexec/rpc.rusersd/rusers_proc.c
cvs rdiff -u -r1.21 -r1.22 src/libexec/rpc.rwalld/rwalld.c
cvs rdiff -u -r1.16 -r1.17 src/libexec/rpc.sprayd/sprayd.c
cvs rdiff -u -r1.5 -r1.6 src/tests/fs/nfs/nfsservice/mountd.c
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/rup/rup.c
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/rusers/rusers.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/showmount/showmount.c
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/ypwhich/ypwhich.c
cvs rdiff -u -r1.120 -r1.121 src/usr.sbin/mountd/mountd.c
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/rpc.lockd/lockd_lock.c
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/rpc.yppasswdd/rpc.yppasswdd.c
cvs rdiff -u -r1.17 -r1.18 src/usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c
cvs rdiff -u -r1.89 -r1.90 src/usr.sbin/ypbind/ypbind.c
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/yppoll/yppoll.c
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/ypserv/common/yplib_host.c
cvs rdiff -u -r1.9 -r1.10 src/usr.sbin/ypserv/yppush/yppush_svc.c
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/ypserv/ypserv/ypserv.c
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/ypserv/ypserv/ypserv_proc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 16:06:20 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: machdep.c

Log Message:
Hack to try to help usermode/i386 by setting the EBX register


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/usermode/usermode/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2011-08-30 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Aug 30 14:22:22 UTC 2011

Modified Files:
src/sys/compat/netbsd32: netbsd32_ioctl.c netbsd32_ioctl.h
src/sys/net: bpf.c bpf.h bpfdesc.h

Log Message:
Provide netbsd32 compat for bpf. Beside the ioctls, the structure
returned to userland by read(2) also needs to be converted.
For this, the bpf descriptor is flagged as compat32 (or not) in the
open and ioctl functions (where the user process's pid is also updated
in the descriptor). When the bpf buffer is filled in, the 32bits or native
header is used depending on the information stored in the descriptor.

This won't work if a 64bit binary does the open and ioctls, and then
exec a 32bit program which will do the read. But this is very
unlikely to happen in real life ...

Tested on i386 and loongson; with these changes my loongson can run
dhclient and tcpdump with a n32 userland.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/compat/netbsd32/netbsd32_ioctl.c
cvs rdiff -u -r1.38 -r1.39 src/sys/compat/netbsd32/netbsd32_ioctl.h
cvs rdiff -u -r1.165 -r1.166 src/sys/net/bpf.c
cvs rdiff -u -r1.57 -r1.58 src/sys/net/bpf.h
cvs rdiff -u -r1.32 -r1.33 src/sys/net/bpfdesc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/conf

2011-08-30 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Aug 30 13:07:30 UTC 2011

Modified Files:
src/sys/arch/amd64/conf: GENERIC

Log Message:
Add gpio entries, commented out, since I am working with them as modules atm.


To generate a diff of this commit:
cvs rdiff -u -r1.336 -r1.337 src/sys/arch/amd64/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/conf

2011-08-30 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Aug 30 13:03:17 UTC 2011

Modified Files:
src/sys/arch/i386/conf: GENERIC

Log Message:
Attach gpio* at gpiobus? instead of at individual drivers.


To generate a diff of this commit:
cvs rdiff -u -r1.1051 -r1.1052 src/sys/arch/i386/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cherry-xenmp] src/sys/arch

2011-08-30 Thread Cherry G. Mathew
Module Name:src
Committed By:   cherry
Date:   Tue Aug 30 12:53:46 UTC 2011

Modified Files:
src/sys/arch/i386/i386 [cherry-xenmp]: machdep.c
src/sys/arch/xen/x86 [cherry-xenmp]: cpu.c x86_xpmap.c

Log Message:
Add per-cpu mmu queues


To generate a diff of this commit:
cvs rdiff -u -r1.702.2.5 -r1.702.2.6 src/sys/arch/i386/i386/machdep.c
cvs rdiff -u -r1.56.2.8 -r1.56.2.9 src/sys/arch/xen/x86/cpu.c
cvs rdiff -u -r1.26.2.7 -r1.26.2.8 src/sys/arch/xen/x86/x86_xpmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2011-08-30 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Aug 30 12:39:59 UTC 2011

Modified Files:
src/distrib/sets/lists/base: ad.mips64eb ad.mips64el md.amd64
md.sparc64 shl.mi
src/distrib/sets/lists/comp: ad.mips64eb ad.mips64el md.amd64
md.sparc64 mi shl.mi
src/include: util.h
src/lib/libutil: Makefile getlabelsector.3 getlabelsector.c
shlib_version
src/sbin/disklabel: Makefile main.c
src/sys/arch/acorn26/include: disklabel.h
src/sys/arch/acorn32/include: disklabel.h
src/sys/arch/algor/include: disklabel.h
src/sys/arch/alpha/include: disklabel.h
src/sys/arch/amd64/include: disklabel.h
src/sys/arch/amiga/include: disklabel.h
src/sys/arch/amigappc/include: disklabel.h
src/sys/arch/arc/include: disklabel.h
src/sys/arch/arm/include: disklabel.h
src/sys/arch/atari/include: disklabel.h
src/sys/arch/bebox/include: disklabel.h
src/sys/arch/cats/include: disklabel.h
src/sys/arch/cesfic/include: disklabel.h
src/sys/arch/cobalt/include: disklabel.h
src/sys/arch/dreamcast/include: disklabel.h
src/sys/arch/emips/include: disklabel.h
src/sys/arch/evbarm/include: disklabel.h
src/sys/arch/evbmips/include: disklabel.h
src/sys/arch/evbppc/include: disklabel.h
src/sys/arch/evbsh3/include: disklabel.h
src/sys/arch/ews4800mips/include: disklabel.h
src/sys/arch/hp300/include: disklabel.h
src/sys/arch/hp700/include: disklabel.h
src/sys/arch/hpcarm/include: disklabel.h
src/sys/arch/hpcmips/include: disklabel.h
src/sys/arch/hpcsh/include: disklabel.h
src/sys/arch/i386/include: disklabel.h
src/sys/arch/ia64/include: disklabel.h
src/sys/arch/ibmnws/include: disklabel.h
src/sys/arch/iyonix/include: disklabel.h
src/sys/arch/landisk/include: disklabel.h
src/sys/arch/luna68k/include: disklabel.h
src/sys/arch/mac68k/include: disklabel.h
src/sys/arch/macppc/include: disklabel.h
src/sys/arch/mipsco/include: disklabel.h
src/sys/arch/mmeye/include: disklabel.h
src/sys/arch/mvme68k/include: disklabel.h
src/sys/arch/mvmeppc/include: disklabel.h
src/sys/arch/netwinder/include: disklabel.h
src/sys/arch/news68k/include: disklabel.h
src/sys/arch/newsmips/include: disklabel.h
src/sys/arch/next68k/include: disklabel.h
src/sys/arch/ofppc/include: disklabel.h
src/sys/arch/pmax/include: disklabel.h
src/sys/arch/prep/include: disklabel.h
src/sys/arch/rs6000/include: disklabel.h
src/sys/arch/sandpoint/include: disklabel.h
src/sys/arch/sbmips/include: disklabel.h
src/sys/arch/sgimips/include: disklabel.h
src/sys/arch/shark/include: disklabel.h
src/sys/arch/sparc/include: disklabel.h
src/sys/arch/sun3/include: disklabel.h
src/sys/arch/sun68k/include: disklabel.h
src/sys/arch/vax/include: disklabel.h
src/sys/arch/x68k/include: disklabel.h
src/sys/arch/zaurus/include: disklabel.h
src/sys/kern: init_sysctl.c

Log Message:
Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/distrib/sets/lists/base/ad.mips64eb
cvs rdiff -u -r1.61 -r1.62 src/distrib/sets/lists/base/ad.mips64el
cvs rdiff -u -r1.135 -r1.136 src/distrib/sets/lists/base/md.amd64
cvs rdiff -u -r1.128 -r1.129 src/distrib/sets/lists/base/md.sparc64
cvs rdiff -u -r1.597 -r1.598 src/distrib/sets/lists/base/shl.mi
cvs rdiff -u -r1.49 -r1.50 src/distrib/sets/lists/comp/ad.mips64eb \
src/distrib/sets/lists/comp/ad.mips64el
cvs rdiff -u -r1.131 -r1.132 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.116 -r1.117 src/distrib/sets/lists/comp/md.sparc64
cvs rdiff -u -r1.1667 -r1.1668 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.186 -r1.187 src/distrib/sets/lists/comp/shl.mi
cvs rdiff -u -r1.58 -r1.59 src/include/util.h
cvs rdiff -u -r1.65 -r1.66 src/lib/libutil/Makefile
cvs rdiff -u -r1.5 -r1.6 src/lib/libutil/getlabelsector.3
cvs rdiff -u -r1.3 -r1.4 src/lib/libutil/getlabelsector.c
cvs rdiff -u -r1.48 -r1.49 src/lib/libutil/shlib_version
cvs rdiff -u -r1.68 -r1.69 src/sbin/disklabel/Makefile
cvs rdiff -u -r1.25 -r1.26 src/sbin/disklabel/main.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/acorn26/include/disklabel.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arc

CVS commit: src/sys/arch

2011-08-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Aug 30 12:13:25 UTC 2011

Modified Files:
src/sys/arch/amd64/conf: GENERIC
src/sys/arch/i386/conf: GENERIC

Log Message:
revert previous


To generate a diff of this commit:
cvs rdiff -u -r1.335 -r1.336 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.1050 -r1.1051 src/sys/arch/i386/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2011-08-30 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Tue Aug 30 12:04:12 UTC 2011

Modified Files:
src: build.sh

Log Message:
Escape '$' in double quotes.


To generate a diff of this commit:
cvs rdiff -u -r1.246 -r1.247 src/build.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 12:02:38 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_clear_reference()


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 11:57:20 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_is_referenced()


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 11:53:22 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Cleanup PV_UNMAGED handling in pmap_do_enter


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 11:40:46 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Make still unimplemented pmap_protect() more verbose


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 11:31:57 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_page_protect()


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 11:24:38 UTC 2011

Modified Files:
src/share/man/man4: dtviic.4

Log Message:
Use more .Nm, offset indent.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/dtviic.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 10:58:42 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_clear_modify() and pmap_is_modified()


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 10:44:06 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_destroy() following Ben Harris's template


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 10:37:43 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Implement pmap_reference(). Note that i have no idea as to when this reference
is released...


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/usermode/usermode

2011-08-30 Thread Reinoud Zandijk
Module Name:src
Committed By:   reinoud
Date:   Tue Aug 30 10:29:34 UTC 2011

Modified Files:
src/sys/arch/usermode/usermode: pmap.c

Log Message:
Remove panic that prevented multiple mappings of a pv entry


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/usermode/usermode/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/diskpart

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 10:12:06 UTC 2011

Modified Files:
src/usr.sbin/diskpart: diskpart.c

Log Message:
ANSIfy + static + dead.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/diskpart/diskpart.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/crontab

2011-08-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 30 10:09:26 UTC 2011

Removed Files:
src/usr.bin/crontab: Makefile

Log Message:
in external now.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r0 src/usr.bin/crontab/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/cron

2011-08-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Aug 30 10:08:12 UTC 2011

Removed Files:
src/usr.sbin/cron: Makefile compat.c compat.h config.h cron.8 cron.c
cron.h crontab.1 crontab.5 crontab.c database.c do_command.c
entry.c env.c externs.h job.c misc.c pathnames.h popen.c user.c

Log Message:
in external now


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r0 src/usr.sbin/cron/Makefile src/usr.sbin/cron/env.c
cvs rdiff -u -r1.5 -r0 src/usr.sbin/cron/compat.c src/usr.sbin/cron/cron.h \
src/usr.sbin/cron/pathnames.h
cvs rdiff -u -r1.4 -r0 src/usr.sbin/cron/compat.h src/usr.sbin/cron/externs.h \
src/usr.sbin/cron/user.c
cvs rdiff -u -r1.7 -r0 src/usr.sbin/cron/config.h src/usr.sbin/cron/crontab.1 \
src/usr.sbin/cron/database.c
cvs rdiff -u -r1.8 -r0 src/usr.sbin/cron/cron.8
cvs rdiff -u -r1.13 -r0 src/usr.sbin/cron/cron.c
cvs rdiff -u -r1.14 -r0 src/usr.sbin/cron/crontab.5 src/usr.sbin/cron/misc.c
cvs rdiff -u -r1.33 -r0 src/usr.sbin/cron/crontab.c
cvs rdiff -u -r1.25 -r0 src/usr.sbin/cron/do_command.c
cvs rdiff -u -r1.10 -r0 src/usr.sbin/cron/entry.c
cvs rdiff -u -r1.6 -r0 src/usr.sbin/cron/job.c
cvs rdiff -u -r1.11 -r0 src/usr.sbin/cron/popen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/dev_mkdb

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 10:04:50 UTC 2011

Modified Files:
src/usr.sbin/dev_mkdb: dev_mkdb.c

Log Message:
static openinfo. dead, not unused usage.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/dev_mkdb/dev_mkdb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 08:01:13 UTC 2011

Modified Files:
src/sys/arch/amd64/conf: GENERIC
src/sys/arch/i386/conf: GENERIC

Log Message:
Comment out the legacy bktr(4) from the GENERICs.


To generate a diff of this commit:
cvs rdiff -u -r1.334 -r1.335 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.1049 -r1.1050 src/sys/arch/i386/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/netbsd32

2011-08-30 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Aug 30 07:54:15 UTC 2011

Modified Files:
src/sys/compat/netbsd32: netbsd32_ioctl.c netbsd32_ioctl.h

Log Message:
support SIOCG80211NWKEY


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/sys/compat/netbsd32/netbsd32_ioctl.c
cvs rdiff -u -r1.37 -r1.38 src/sys/compat/netbsd32/netbsd32_ioctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2011-08-30 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Aug 30 07:44:37 UTC 2011

Modified Files:
src/share/man/man4: iic.4

Log Message:
Also mention gpioiic(4).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/iic.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 07:27:59 UTC 2011

Modified Files:
src/share/man/man4: emdtv.4

Log Message:
Clarify that the ATI USB dongle uses XC3028L (and not XC3028).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/emdtv.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 07:24:01 UTC 2011

Modified Files:
src/share/man/man4: dtv.4

Log Message:
Remove trailing comma.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/share/man/man4/dtv.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 07:23:05 UTC 2011

Modified Files:
src/share/man/man4: auvitek.4

Log Message:
Xref au8522(4) and xc5k(4) in the list of supported cards.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/auvitek.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2011-08-30 Thread Marc Balmer
Module Name:src
Committed By:   mbalmer
Date:   Tue Aug 30 07:22:12 UTC 2011

Modified Files:
src/sys/dev/gpio: gpio.c gpiosim.c
src/sys/dev/pci: pwdog.c

Log Message:
Unconditionally include .


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/gpio/gpio.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/gpio/gpiosim.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/pwdog.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 07:08:47 UTC 2011

Modified Files:
src/share/man/man4: dtv.4

Log Message:
Note emdtv(4).


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/share/man/man4/dtv.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2011-08-30 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Aug 30 07:07:05 UTC 2011

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile emdtv.4

Log Message:
Install the emdtv(4) manual page, based on earlier feedback from jmcneill@
(includes some XXX comments; should be updated alongside with the driver).
Also use the new dtviic(4) links to build a list of supported cards.


To generate a diff of this commit:
cvs rdiff -u -r1.1337 -r1.1338 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.568 -r1.569 src/share/man/man4/Makefile
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/emdtv.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/netbsd32

2011-08-30 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Tue Aug 30 07:06:39 UTC 2011

Modified Files:
src/sys/compat/netbsd32: netbsd32_ioctl.c netbsd32_ioctl.h

Log Message:
add WSDISPLAYIO_ADDSCREEN


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/compat/netbsd32/netbsd32_ioctl.c
cvs rdiff -u -r1.36 -r1.37 src/sys/compat/netbsd32/netbsd32_ioctl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.