summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-01-18Replace npppdctl(8) by new npppctl(8). npppctl was written fromYASUOKA Masahiko
scratch, it uses parser.c derived from ikectl(8) to have OpenBSD's fashion. This includes related changes listed below: - changed npppd control IPC heavyly. - support IPv6 as tunnel source address. - deleted support changing the configuration of npppd_ctl on running. Because it is not so needed but it requires privilege operations. - refactors. man page helps from jmc. tested by sebastia. ok deraadt sebastia sthen
2012-01-18Fix compiler warnings and some styles.YASUOKA Masahiko
ok sebastia sthen
2012-01-18Fix a problem that causes LCP keepalive timeout. In case the ack number ofYASUOKA Masahiko
a packet that is passed to the userland has not incremented, `pipex' passed the packet mistakenly with invalid ack number. Then `npppd' will drop these packets, so that caused the problem. tested jmatthew ok jmatthew
2012-01-17Remove assembly version of strlen from i386 and amd64, where it'sMike Belopuhov
up to 3 times slower than the C code most of the time. This was brought up by DragonflyBSD guys initially. ok deraadt, guenther. miod will not miss it.
2012-01-17Fix trailing whitespace.Alexander Bluhm
2012-01-17syncTheo de Raadt
2012-01-17Bump minor for addition of openat/pread/preadv/pwrite/pwritevPhilip Guenthe
2012-01-17Add an __attribute__((__format__(__kprintf__))) to disasm_interface_t.di_printfMiod Vallat
2012-01-17Avoid redefining DEVNAME from <dev/sdmmc/sdmmcvar.h> by renaming this oneJoel Sing
to DEV_NAME. No functional change.
2012-01-17No need for saying out loud what we're thinking during auto-allocation.Kenneth R Westerback
i.e. when rounding off various values. ok deraadt@ sthen@
2012-01-17Move the bio(4) cookie into a separate struct and make this struct theJoel Sing
first member of each ioctl data structure. This will allow for future changes to bio(4) status handling.
2012-01-17CONCAT requires at least two disks.Joel Sing
2012-01-17Check the metadata level against the assembly level before proceeding withJoel Sing
any assembly. This avoids a panic when attempting to assemble a RAID 1 (or other) volume as a RAID 0 volume. Also reorder some of the other checks and diagnostics performed during assembly.
2012-01-17Add missing ioctl DNPRINTFs and nuke some rogue commas.Joel Sing
2012-01-17zap trailing whitespace;Jason McIntyre
2012-01-17flesh out the VI COMMANDS section somewhat;Jason McIntyre
diff from Alexis Fouilhe; help/ok sobrado
2012-01-17tweak previous;Jason McIntyre
2012-01-17fix SEE ALSO;Jason McIntyre
2012-01-17syncTheo de Raadt
2012-01-17Allow pkill to use the -l option. This displays which processes have beenlum
signalled using the "Long" format, like pgrep. Original diff from FreeBSD, modified somewhat on tech@, with feedback from nicm@ Man page input from jmc@
2012-01-17Change the exit value on errors to be more 4.4BSD like. Use the sum oflum
errors up to a maximum of 127, then to do not increment anymore, though programme execution continues. Use 127 as a maximum because error codes above this are: 1. bad because of signed bugs in programs. 2. used as the traditional shell $? representation of "kill by signal" where $? = 128 + signal. (from deraadt@ and guenther@ respectively)
2012-01-17Did Richard Stallman suggest the name change AND the new name "mg"? This islum
the only place where I can find a reference to Richard suggesting the name itself, I suspect it is an error. Unfortunately Richard cannot remember. No definitive information from tech@ (yet) Also make some lines wrap better.
2012-01-17Make openat(), pread(), preadv(), pwrite(), and pwritev() cancellationPhilip Guenthe
points. ok fgsch@
2012-01-17Add stpcpy() and stpncpy(), pointless crap that made it into POSIX.Philip Guenthe
Includes friendly linker warning to wake up those dumb enough to use it. Committing for kettenis@, who ran away to the hills after writing it
2012-01-17net_addrcmp() dies. found out to be a horrific function by ericTheo de Raadt
ok guenther
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
particularly the "consume the signal you just sent" hang, and putting the wait queues in userspace. Do cancellation handling in pthread_cond_*wait(), pthread_join(), and sem_wait(). Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add 'abort" argument to thrsleep to close cancellation race; make thr{sleep,wakeup} return errno values via *retval to avoid touching userspace errno.
2012-01-17net_addrcmp() dies. found out to be a horrific function by ericTheo de Raadt
ok guenther
2012-01-17During IPv6 source address selection, give address scope higher priorityStefan Sperling
than the autoconfprivacy bit, as per by RFC3484. Prevents privacy addresses from being erroneously used as source address if the destination address is in a different scope. Privacy addresses are still preferred over other source addresses from the same scope. Problem found by sthen, fix suggested by sperreault; ok sperreault
2012-01-17Avoid ffs fragsize < sector-size when 'a'dding a partition via theKenneth R Westerback
editor. Use logic from calculating fragsize for an auto-allocated partition. Noted when trying to add a small ffs partition to a 4K sector device.
2012-01-16syncTheo de Raadt
2012-01-16Fix a memory leak in pkcs11_rsa_private_encrypt(), reported by Jan Klemkow.Miod Vallat
While there, be sure to buffer_clear() between send_msg() and recv_msg(). ok markus@
2012-01-16Use nsdc to reliably stop nsd.Camiel Dobbelaar
ok ajacoutot sthen
2012-01-16POSIX indicates that some fields should be computed even if notTodd C. Miller
explicitly set. We can compute tm_yday, tm_wday, tm_mon and tm_mday based on the values that were specified if possible. Some logic borrowed from localtime.c. OK espie@ deraadt@
2012-01-16Nuke unused parameter (f) to makebootarea(). Unused since r1.123Kenneth R Westerback
(2008), when '-r' support was removed. Spotted by jsg@ with the assistance of clang.
2012-01-16Pass struct pf_pdesc to pf_walk_option6() and pf_walk_header6() toAlexander Bluhm
make their argument list shorter. Also fix a bug where pf_walk_option6() used the outer header in the pd2 case. ok henning@ mikeb@
2012-01-16Ensure that all disk attach callbacks have completed before attemptingJoel Sing
to locate the root via DUID. ok krw@
2012-01-16mpi_get_ccb and mpi_put_ccb are only called via iopools now, so changeDavid Gwynne
their types to fit the iopools api rather than doing awful typecasts to shove them into iopool_init.
2012-01-16do carp demotion adjustments on syncdev link state change.Mike Belopuhov
this prevents backup to failover back to master immediately after getting link back on carpdev interface if underlying pfsync interface went down as well. instead pfsync will request a bulk update to get new states from the master. sthen and mpf like the idea, ok dlg
2012-01-16import (and fix) net_addrcmp() from libc as a static function.Eric Faurot
It is going to get removed from libc and this file is the only one using it. discussed with deraadt@ guenther@ ok deraadt@
2012-01-16Backout activation of the new apropos(1)/whatis(1)/makewhatis(8).Ingo Schwarze
In its current state, it causes too much slowdown, in particular during system builds, and there are other regressions. That cannot be fixed quickly while it's enabled. Problems pointed out by espie@, backout requested by deraadt@, diff "looks good" to espie@.
2012-01-16update the supported adapters listDavid Gwynne
2012-01-16Document the \-C output format generated by VIS_ALLPhilip Guenthe
ok deraadt@
2012-01-16bpf devices behave similar to raw sockets and never block on write,Philip Guenthe
so always show as writable to poll()/select(). Behavior pointed out by Fernando Gont. ok deraadt@
2012-01-16Fix description for tcp.opening timeout in pf.conf(5).Alexander Bluhm
Issue reported by Felix Rust; ok jmc@
2012-01-15Calling pf_normalize_ip() from pf_setup_pdesc() was bad as theAlexander Bluhm
latter is called from pf packet logging. This resulted in normalization and reassembly of bad packets to be logged. So rearrange the code and move the call to pf_test(). ok henning@
2012-01-15Document early history of a few functions specifically mentioned in 2BSDIngo Schwarze
manuals; however, it turned out all of these actually predate 2BSD. All information from http://minnie.tuhs.org/cgi-bin/utree.pl. ok jmc@ sobrado@
2012-01-15Document what remains of the 2BSD heritage.Ingo Schwarze
All facts found on the CSRG CD 1 in the 2bsd directory. Feedback and ok jmc@, ok sobrado@. Note the large number of 3BSD -> 2BSD changes. Kirk McKusick asked Cynthia Livingston (cael@, of USENIX, who converted most manuals from man(7) to mdoc(7) for the 4.3BSD-Net/2 release and added lots of historical information around that time) what happened in this respect, and she answered that she often wrote "appeared in 3BSD" when she was unsure of when a utility was added. Thanks to Kirk and Cynthia for that clarification.
2012-01-15Calculate last position correctly for UTF-8 wide characters, reported byNicholas Marriott
Matthias Lederhofer.
2012-01-15Add ascii_{load,dump}_time() to properly deal with time_t.Charles Longeau
This fixes build warnings for portable smptd. ok eric@ gilles@
2012-01-15Two details improving the quality of the Xenocara mandoc database,Ingo Schwarze
also helping a bit in ports land: 1) Do not skip manuals for section mismatches; use the section where the file is actually located. 2) Always use the file name as an .Nm search key.