summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2011-08-01Change Gnu to GNU in man page (also, while here, in README and in a comment)lum
ok jmc@
2011-07-31Actually, by merging individual patches, we are already in syncIngo Schwarze
with release 1.11.4. Correct this for release.
2011-07-31Workaround to prevent misrendering of \*(-- as "O-" in pod2man(1)-Ingo Schwarze
generated manuals; this fixes more than 500 manuals in base alone. As a real fix, .tr will be supported after unlock. OK kristaps@ to put in the workaround for now
2011-07-31Mention that make(1) is the program using .depend files.Ingo Schwarze
Useful because their format and usage is also documented there. feedback and ok jmc@
2011-07-30deemed unsafe by theo, will wait after 5.0Marc Espie
2011-07-30fix error in previous;Jason McIntyre
2011-07-30Extend the mode-mouse option to add a third choice which means the mouseNicholas Marriott
does not enter copy mode. Patch from SF bug 3374493. In future the mode-mouse option is likely to die and be broken into several smaller options.
2011-07-30Do not require a client here, or pipe-pane will not work from theNicholas Marriott
command line.
2011-07-29fail open(2) with EPERM rather than SIGKILLing the whole process. libcDamien Miller
will call open() to do strerror() when NLS is enabled; feedback and ok markus@
2011-07-29systemV trumps our modifiers.Marc Espie
fixes a case encountered by jeremy@ full fix not prudent at this time. okay millert@, otto@
2011-07-29document vi/ex regular expressions, and where they differ from thoseJason McIntyre
documented in re_format(7); diff from alexis fouilhe, and verified/tweaked by sobrado; ok millert otto
2011-07-28Resolve sysctl numbers, original diff from nicm@, man page bits fromOtto Moerbeek
guenther@; ok guenther@ millert@
2011-07-28Adjust for machdep.consdev -> kern.consdev sysctl change. This should restoreMark Kettenis
the functionality to figure out the real console device when /dev/console is used. ok millert@, deraadt@
2011-07-26Backout previous, naddy@ found the following regression:Ingo Schwarze
When the input does not end in a trailing newline character and there is an empty match at the end, the new code adds a spurious '\0' character. I have a fix, but otto@ prefers backout and full re-evaluation after release.
2011-07-25- Use strtof instead of casting strtod back to float (apprentice.c),Martynas Venckus
- Don't reimplement strndup (softmagic.c). OK millert@.
2011-07-25Sort options alphabetically, from Tiago Cunha.Nicholas Marriott
2011-07-24Rewrite the main loop of the "sed s/..." command, shortening it by tenIngo Schwarze
lines and simplifying it by removing the switch statement implementing /g, /1, and /2 separately and repetitively. The idea to make the loop control variable slen, i.e. the length of the string remaining to be processed, signed, and stay in the loop even when slen == 0 (i.e. at the end of the string), lifted from FreeBSD by otto@. On i386, process.o shrinks by 440 bytes, and the sed binary by 23 bytes. This fixes multiple aspects of the replacement of multiple (/g) or specific (e.g. /2) instances of zero-length matches, both with BREs and EREs, both with and without a trailing newline character on the input. Feedback and OK otto@.
2011-07-24AT&T recently released a new version of UNIX (System III).Ingo Schwarze
This will soon be needed for the HISTORY of string(3).
2011-07-22Use dirfd(dirp) instead of dirp->dd_fd.Matthew Dempsky
No binary change.
2011-07-22Speed up igetnext() by passing the record we want to parse in toTodd C. Miller
getent() as toprec. Makesd cap_mkdb faster when building termino.db. OK nicm@
2011-07-19Add fancy kdump support for the openat(2) system calls.Matthew Dempsky
ok otto@
2011-07-17Fix an integer overflow for very long lines by replacing the datatype of 2 ↵aschrijver
offsets from int to regoff_t. Bail if the given size_t line length doesn't fit into the new regoff_t. "I don't think you will ever be able to get a string longer than SSIZE_MAX into memory, but that looks good." tedu@ "Agreed" otto@ regoff_t suggested by otto@
2011-07-17Fix spacingaschrijver
OK otto@
2011-07-17handle files produced by ktrace -a better by making a distinctionOtto Moerbeek
between default and current emulation; ok guenther@
2011-07-17since we're treating native emuls different (more fancy) thanOtto Moerbeek
non-native we should do a better job of tracking the emul corresponding to a pid; ok guenther@; also tested by pirofti@
2011-07-15When killing lines using ^U <n> ^K, count the characters exactly (forTheo de Raadt
both forwards and backwards cases, though the forward case is better tested. This is required because the actual character deleter function (ldelete) requires an exact count. If it runs short, it will not put the deletion into the kill buffer. This is complicated by how mg internals consider newline's as counted characters even though they do not occur in the buffers... and then there is the no newline at EOF fiasco....
2011-07-14spacing, no binary change.Igor Sobrado
2011-07-14str is an optional argument to -t; if no argument is given, thisIgor Sobrado
option is ignored (for compatibility reasons). ok jmc@
2011-07-14Import mandocdb(8) from bsd.lv, coded by kristaps@, for in-tree development.Ingo Schwarze
Will need adjustments to user interface and functionality, and will be linked into the mandoc(1) binary and hardlinked from /usr/libexec/mandocdb to /usr/bin/mandoc when ready for general consumption. The ultimate goal is to call it from OpenBSD::Makewhatis to replace OpenBSD::Makewhatis::Unformated with enhanced functionality.
2011-07-14Revert build system complication, for two reasons:Ingo Schwarze
(1) Simply linking the future utilities (mandoc, mandocdb, apropos, whatis) into a common binary inspecting its process name to find out what it should do (as suggested by deraadt@) does not require the large code changes i feared at first, but can be done in a few lines. (2) As reported by dhill@, we already had the first build system problem before even enabling this: Building without "make obj", the mandoc binary name clashes with the new mandoc subdirectory, breaking the build. Please use "cvs up -dP" when updating!
2011-07-12argument to -t is optional.Igor Sobrado
ok jmc@
2011-07-12print out the amount of memory used for cache. ok ottoTed Unangst
2011-07-11the matchall magic shortcut requires we set c=1 to print nowTed Unangst
fixes libpqxx build
2011-07-11Only complain about zero-sized structures/unions when in strictMartynas Venckus
ANSI C mode. Based on a diff from Theo.
2011-07-10Rename O_DIRECTORY to O_TMP_DIRECTORY to avoid a namespace collisionTodd C. Miller
with sys/fcntl.h. OK deraadt@
2011-07-10Make -m 0 work as expected.Otto Moerbeek
2011-07-10The mandoc directory will soon grow subdirs mandocdb/ and apropos/Ingo Schwarze
and these new utilities will use the mandoc libraries, so prepare the build system to build the parsing and utility libraries separately from the main program and formatters. Not yet linked to the build. No objections from deraadt@ on adding directories for this purpose.
2011-07-09Document default write speed of tao subcommand.Stefan Sperling
2011-07-09mention new struct trace point letterOtto Moerbeek
2011-07-09print the name of an unknown struct, it has been verified to be sane;Otto Moerbeek
prodded by tedu@
2011-07-09remove more atalk bitsTheo de Raadt
2011-07-09Unused variable.Nicholas Marriott
2011-07-09Pass the right size to calloc (* not **).Nicholas Marriott
2011-07-09rmove rotten netatalk bitsHenning Brauer
2011-07-08el_set(EL_BIND) requires a NULL marker as the last argument.Nicholas Marriott
2011-07-08el_set with EL_BIND needs sentinel NULL. with help from nicmTed Unangst
2011-07-08Do not continue to send data to suspended/locked clients or there willNicholas Marriott
be a huge rush of it after they are resumed/unlocked. The main output path was fine but status line updates and the terminal state reset code were missed.
2011-07-08zap trailing whitespace;Jason McIntyre
2011-07-08add -r to SYNOPSIS;Jason McIntyre
2011-07-08Support sending struct info to kdump. So far for struct stat andOtto Moerbeek
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@