summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2010-08-02Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID andMiod Vallat
USB_SET_REPORT ioctls in ukbd and ums. This allows usbhidctl to be used on these devices e.g. to dump the report descriptor of troublesome models. ok deraadt@
2010-08-02Only open with O_RDWR if we are actually chaging a report descriptor, otherMiod Vallat
operations only need O_RDONLY. ok blambert@ deraadt@
2010-08-01Move the new mdoc(7) manual written by kristaps@, replacing the old oneIngo Schwarze
which had much less information, such that the new one gets installed. No change to the build system required, no text change in this commit. Doing the big move early even though a few more improvements will follow. The duplicate information in mdoc.samples(7) will be cleaned up post-release. ok jmc@, and kristaps@ agreed with the plan, too
2010-08-01Make parsing of /etc/remote work again (some of the options were theNicholas Marriott
wrong type), try to make it clearer what comes from where, and add a few XXX. Currently there is a mess of default options set in vinit(), default options set in getremote(), stuff read from /etc/remote and options read from the command-line, and there remains the problems with leftover options from rotation. This all needs to be sorted out properly later. Noticed while trying to find a possible problem reported by miod.
2010-08-01change buf_release() prototype accordingly to buf.czinovik
unbreaks opencvs build
2010-08-01change returning type to void like it is done in OpenRCS:buf_release()zinovik
ok nicm@
2010-08-01don't rely on mbuf.h to pull in pool.h here eitherBret Lambert
ok miod@
2010-08-01fix use of uninitialized variable.Charles Longeau
reported by gcc. ok canacar@
2010-08-01remove unused variableCharles Longeau
ok thib@
2010-08-01Sync to bsd.lv:Ingo Schwarze
State that we parse and ignore \s and \m font size and colour control sequences, and remove the detailed, irrelevant documentation.
2010-07-31Correct Copyright lines in the rarely touched files:Ingo Schwarze
* add missing years (only where substantial changes were committed) * update Kristaps' email address in the remaining places No code changes.
2010-07-31Major cleanup (but there is still more to come):Ingo Schwarze
* rewrite .An, .Bd, .Bk, .Bl, .Ex descriptions * correct "parsable" to "parsed" * and various formatting and wording tweaks This commit includes a patch from kristaps@ explaining empty .Dd. Feedback and OK jmc@ and kristaps@.
2010-07-31Merge bsd.lv version 1.10.5: last larger batch of bug fixes before release.Ingo Schwarze
NOT including Kristaps' .Bd -literal changes which cause regressions. Features: * -Tpdf now fully working Bugfixes: * proper handling of quoted strings by .ds in roff(7) * allow empty .Dd * make .Sm start no-spacing after the first output word * underline .Ad * minor fixes in -Thtml and some optimisations in terminal output.
2010-07-31introduce macro SIZE_LEFT and function buf_grow() from OpenRCSzinovik
buf_grow() replaces macro BUF_GROW() ok nicm@, ray@
2010-07-31adds a remark about how printing routing labels to -r, it is theIgor Sobrado
more logical place to find this information; improve description for the -v option (stolen from NetBSD). written with excellent advice from bluhm@ and jmc@. ok jmc@
2010-07-31When looking for revision, break out of the loop at the end rather thanNicholas Marriott
looping forever. This prevents the server going into an infinite loop when the repository is behind the checkout, but the behaviour is not correct (it is an error rather than ignoring the file), so mark with an XXX for now. Some underlying OpenCVS functions are too fatal()-happy and will probably need to be changed in order to fix this properly. Problem reported by sthen. ok xsa ray
2010-07-31Checking for -1 as an overflow value is pretty absurd. ReturningRay Lai
the unix epoch is equally absurd. Just return Start for now. We may add overflow checks in the future. OK xsa nicm
2010-07-31remove 2 years old compatibility modeAlexandre Ratchov
2010-07-31remove forgotten debug messageAlexandre Ratchov
2010-07-30Check date_parse return values.Ray Lai
OK xsa
2010-07-30Do not print "Label" caption for "netstat -rvA".Alexander Bluhm
ok markus@
2010-07-29Replace abort(), fatal(), and errx() with return -1, since date_parseRay Lai
returns -1 on error. OK nicm
2010-07-29Print a column with the routing label if "netstat -vr" or "routeAlexander Bluhm
-v show" are called with the -v switch. ok markus@
2010-07-28Truncate output file when compressing. OK deraadt@Todd C. Miller
2010-07-28dup() the stdin fd so it isn't closed twice (once for stdin, once for tty).Nicholas Marriott
2010-07-28Support -U and -C to specify the context length for "cvs diff".Nicholas Marriott
This doesn't alter cvs rdiff, where -U and -C are not support by GNU cvs. ok sthen zinovik
2010-07-28Make BUFs autoextend by default. This was already done in OpenCVSRay Lai
a while ago. OK zinovik nicm
2010-07-27Fix compilation on gcc2 platforms, where _Bool and _Complex aren'tPhilip Guenthe
built into the compiler and instead have to be gotten from stdbool.h and complex.h Problem noted by miod@, fix by deraadt@
2010-07-26fix SYNOPSIS (yes, there are still some issues here);Jason McIntyre
2010-07-26- fix a spacing issue in SYNOPSISJason McIntyre
- occurence -> occurrence
2010-07-25^U scrolls backwards, not forwards; from marrob at lavabit comJason McIntyre
2010-07-25Sync to bsd.lv; in particular, pull in lots of bug fixes.Ingo Schwarze
new features: * support the .in macro in man(7) * support minimal PDF output * support .Sm in mdoc(7) HTML output * support .Vb and .nf in man(7) HTML output * complete the mdoc(7) manual bug fixes: * do not let mdoc(7) .Pp produce a newline before/after .Sh; reported by jmc@ * avoid double blank lines related to man(7) .sp and .br * let man(7) .nf and .fi flush the line; reported by jsg@ and naddy@ * let "\ " produce a non-breaking space; reported by deraadt@ * discard \m colour escape sequences; reported by J.C. Roberts * map undefined 1-character-escapes to the literal character itself maintenance: * express mdoc(7) arguments in terms of an enum for additional type-safety * simplify mandoc_special() and a2roffdeco() * use strcspn in term_word() in place of a manual loop * minor optimisations in the -Tps and -Thtml formatting frontends
2010-07-25echo behaves differently in sh and csh, only handling C-style escapesPhilip Guenthe
in the former, so switch an example that needs them to use printf instead. From bcr at freebsd.org. ok halex@
2010-07-24Teach lint about C99's _Bool and _Complex, plus some related gccPhilip Guenthe
extensions: __real__ and __imag__ operators, the use of '~' for complex conjugation, and 'i' or 'j' as a suffix for complex constants. While this doesn't handle folding and overflow detection for complex constants correctly, it's good enough to make it through libm...and found several bugs once it could do so. "no objections" miod@, krw@
2010-07-24When changing so that the client passes its stdout and stderr as well asNicholas Marriott
stdin up to the server, I forgot one essential point - the tmux server could now be both the producer and consumer. This happens when tmux is run inside tmux, as well as when piping tmux commands together. So, using stdio(3) was a bad idea - if sufficient data was written, this could block in write(2). When that happened and the server was both producer and consumer, it deadlocks. Change to use libevent bufferevents for the client stdin, stdout and stderr instead. This is trivial enough for output but requires a callback mechanism to trigger when stdin is finished. This relies on the underlying polling mechanism for libevent to work with whatever devices to which the user could redirect stdin, stdout or stderr, hence the change to use poll(2) over kqueue(2) for tmux.
2010-07-24kqueue(2) is currently broken when used with /dev/null and a few otherNicholas Marriott
devices. An upcoming fix for some problems with the client stdout/stderr handling relies on it working, so make tmux force libevent to use poll(2) via EVENT_NOKQUEUE, until we have fixed kqueue.
2010-07-24Send normal output to stdout instead of everything to stderr. ThisRay Lai
is currently done in the latest versions of GNU patch. Please watch out for output appearing out-of-order. Discussed with millert and deraadt. OK deraadt
2010-07-24Include pid file name in error message for a failed kill(). Prompted byNicholas Marriott
PR 6288. ok deraadt
2010-07-23Plug mem leak.Ray Lai
OK nicm
2010-07-23Handle redirection to relative url's in the Location: header of httpAlexander Hall
responses. Yes, they are violating the rfc's. Yes they do exist anyway. Also fix a memory leak when url_encode fails to malloc, by simply err'ing out if so. feedback and ok phessler@
2010-07-23Reduce variable/function name and whitespace differences betweenRay Lai
cvs/rcs. OK xsa zinovik
2010-07-23Sync with cvs:Ray Lai
Clean up struct tm handling. Instead of calling gmtime/localtime and making copies (among other weird dances), use reentrant versions. Not being able to tell the time is a fatal error, so die if that happens. Diff originally from nicm. OK nicm xsa
2010-07-23Clean up struct tm handling. Instead of calling gmtime/localtimeRay Lai
and making copies (among other weird dances), use reentrant versions. Not being able to tell the time is a fatal error, so die if that happens. Diff originally from nicm. OK nicm xsa
2010-07-23Ciphers is documented in ssh_config(5) these daysDarren Tucker
2010-07-23Rename a bunch of variables and functions, removing the cvs_/rcs_Ray Lai
prefixes to reduce differences between cvs and rcs files. "yes!" nicm
2010-07-22Fix a crash: if remain-on-exit is set and the pane has exited, theNicholas Marriott
buffers may not be valid, so do not try to disable/enable them when switching to copy mode.
2010-07-22Fix the "no changes" detection when a file has RCS keywords.Todd C. Miller
This is consistent with GNU RCS. Also g/c an unused variable. OK xsa@ nicm@
2010-07-22Remove the VM_KMPAGESFREE sysctl. After the pmemrangeThordur I. Bjornsson
changes it was returing a constant 0, changing to cope with those changes makes less sense then just removing as it provides the user with no usefull information. sthen@ grepped the port's tree for me and found not hits, thanks! OK deraadt@, matthew@
2010-07-22Let systat -N states resolve network addressesgiovanni
help and ok sthen@ lum@ ok canacar@
2010-07-22remove some groff \s escapes, which we do not support;Jason McIntyre