summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-07-11implement res_mkqueryEric Faurot
2012-07-11Make ~~ send a ~, pointed out by naddy.Nicholas Marriott
2012-07-11When copying a file sparsely, truncate the resulting file based on theMatthew Dempsky
current seek offset rather than what fstat() reported the original file's length was. This fixes things like "cp /dev/ksyms /tmp" so that we don't truncate the file to 0 bytes after copying all of the data. ok tedu, millert
2012-07-11Enable the swap checker for hibernateMike Larkin
2012-07-11Basic implementation of -Tman .Bl -column using tbl(7).Ingo Schwarze
In the end, this turned out to be surprisingly simple; of course, getting identical output will be quite hard, so there is no way to quickly set up unit tests.
2012-07-11#ifdef the uvm swap checker fn for hibernate only, to save space in kernelsMike Larkin
that don't use hibernate requested by and ok deraadt@
2012-07-11check link is okay tooMarc Espie
2012-07-11duh, idiotMarc Espie
2012-07-11-release 0 is validMarc Espie
fix --version-info -> -version-info
2012-07-11must check release is defined, it CAN be 0.Marc Espie
2012-07-11try to make code vaguely saneMarc Espie
2012-07-11- port multiple report ID support for HID parser from FreeBSD codeYojiro Uo
(rev. 205728, 224511 and 225839) - add hid_get_report_id(3) to get id of a descriptor. - crank the major in shlib_version 3.0 -> 4.0 ok deraadt@, mpi@
2012-07-11improve messages for suspend/hibernateTheo de Raadt
2012-07-11simplify cache code a bitMarc Espie
2012-07-11sprinkle pthread testsMarc Espie
2012-07-11MBR can't handle the truth.Kenneth R Westerback
When reading disk size/geometry from disklabel, clamp disk size to the maximum number of cylinders that fit into UINT32_MAX sectors. Don't just use the bottom 32 bits of the DL_GETDSIZE(). Warn that truncation has been done.
2012-07-11no need to trace libtool when executing an external command fails.Marc Espie
otherwise I get bogus bug-reports from nitwits
2012-07-11If the current offset is strictly less than the process filesizePhilip Guenthe
rlimit, then a write that would take it over the limit should be clamped, making it a partial write. ok beck@
2012-07-11add a check for the total size of swap, abort if too small.Mike Larkin
used by the hibernate code. ok deraadt@
2012-07-11first go at a manpageDavid Gwynne
2012-07-11fix getopt to not eat tDavid Gwynne
2012-07-11-t pftag doesnt do anything, trim the getopt side of it until i get to it.David Gwynne
2012-07-11manpage is comingDavid Gwynne
2012-07-11bring in a persistent event driven tftp-proxy to replace the libexecDavid Gwynne
one run out of inetd. the libexec tftp-proxy had the same problems as the libexec tftpd, in that it didnt scale as well as we needed. it also had a bunch of interesting races with states and addresses on sockets. manpage is coming. ok deraadt@ sthen@ henning@ matthew@
2012-07-11Report ptrace(PT_{GET,SET}XMMREGS) by namePhilip Guenthe
ok otto@
2012-07-11Disable SSLv2 in OpenSSL. No objections from djm.Stuart Henderson
Brad, jasper and naddy helped with test builds, fixing ports, etc.
2012-07-11for now, restrict hibernate to root in the acpi ioctl kernel interface.Mike Larkin
normal rules for controlling this interface through apmd still apply. ok deraadt@
2012-07-11catch off-by-one errors in stpncpy(); ok guenther@Christian Weisgerber
2012-07-11fix an off-by-one error where the return value would point to theChristian Weisgerber
character after the '\0'; ok guenther@
2012-07-11Unbreak the tree for gcc2 arches.Peter Hessler
Instead of having no limit for some arrays, limit them to the number of acceptable options. pointed out by miod@
2012-07-11cleanup offset argument in default_print_* functions, pointed out by Mike SmallStuart Henderson
ok theo
2012-07-11Simplify guts and calling of getuint(). Eliminate a useless 'help'Kenneth R Westerback
capablity by using help text as regular prompt for 'size' and 'offset'. Try to detect and handle more overflow/underflow conditions in getuint() and ensure returned value is always within requested bounds. Handle zero-length partitions by treating them as UNUSED. tested & ok halex@
2012-07-11add uvm_swap_check_range to scan for contig free space at end of swap.Mike Larkin
will be needed shortly for hibernate. ok deraadt@
2012-07-11Limit "while(setsockopt(..SO_RCVBUF/SO_SNDBUF..))" loops to prevent themStuart Henderson
running away if the setsockopt call fails, as may happen if a peer bounces at the wrong time. OK claudio@ after tweaks to an earlier version which was OK phessler@.
2012-07-11thinkoMarc Espie
2012-07-11Now that socket timeouts don't return early, fix the regress to matchPhilip Guenthe
2012-07-11sem_timedwait() needs the struct timespec tag to be pre-declared here.Philip Guenthe
Add restrict qualifiers.
2012-07-11check that linking with X11 will work, we'll check later exactly whatMarc Espie
we want there.
2012-07-11exit1(EXIT_THREAD) needs to call single_thread_check() so that itPhilip Guenthe
can be suspended and/or decrement pr->ps_singlecount if necessary. With that added, the call the other direction needs to use its own flag (EXIT_THREAD_NOCHECK) to avoid looping. problem diagnosed from a hang naddy@ hit; ok kettenis@
2012-07-11fix bug for real. Turns out some libraries (xcb...) have NEEDED that goMarc Espie
to standard ldconfig search dirs... Of course, ld complains because it doesn't have them in its standard search dir. BUT there's an option -rpath-link designed just for that (look up needed objects during compile and trust the end result to find them). So use that for ldconfig directories... so that xcb can link without needing to go have a look at the NEEDED list, but without encoding standard rpaths in the resulting binary... Also, put all the junk that needs -Wl together so we can add one single -Wl,-rpath,foo,-rpath-link,foo2 thingy...
2012-07-11do the ldconfig search dir properlyMarc Espie
2012-07-11nit: bless object early so we can use methods on itMarc Espie
2012-07-11reoder letters to fix piles-o'-typosPhilip Guenthe
2012-07-11Don't skip pipe, kqueue, crypto, or systrace files in pstat -f outputPhilip Guenthe
Also, cast to long to make printf formatting portable with help from matthew; ok deraadt@
2012-07-11Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott
add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
2012-07-11Separate total block counter (reported to user) from 8-bit block counterNicholas Marriott
put into the header, pointed out by naddy.
2012-07-10backout the:Charles Longeau
- remove the /envelopes subdirectory, envelopes are at the same level than the message file - kill PATH_ENVELOPES define but keep the: - reduce the number of buckets from 0xfff to 0xff, this avoid performances of the queue to decrease when we start having tons of buckets ok eric@ gilles@
2012-07-10In a scalar context, mkstemp should return just the file handlePhilip Guenthe
"sure" espie@
2012-07-10basic implementation of -Tman .Bl -tagIngo Schwarze
while here, do some minor outflags cleanup
2012-07-10multiple fixes to -Tascii .HP rendering:Ingo Schwarze
* do not add an excessive blank line before the block * in literal mode, start a new line after the tag getting this to work requires some general (print_man_node) fixes: * in literal mode, break the output line at the end of each input line, not just after those input lines ending in text * but don't break it when there was no output on the line * and adjust the margins after the .HP tag these general fixes require an adjustment to -Tascii .TP rendering: * set up NOBREAK mode before the body, not after the head finally, based on all this, implement -Tman .Bl -hang in terms of .HP