aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak user space after if_timer/if_watchdog removal in r199975.Bjoern A. Zeeb2009-12-014-25/+2
| | | | | | | Tested by: glebius Notes: svn path=/head/; revision=199992
* Add an .Nm for strncat.Christian Brueffer2009-12-011-2/+3
| | | | | | | | | PR: 141037 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 3 days Notes: svn path=/head/; revision=199988
* Temporarily revert the previous change because the linker has beenBrian Feldman2009-12-011-36/+28
| | | | | | | modified so that it will abort when the environment is bad. Notes: svn path=/head/; revision=199987
* Describe what setpgid(2) does when pgid=0. The text has beenGiorgos Keramidas2009-12-011-0/+5
| | | | | | | | | | | | | copied from NetBSD's manpage, and it also matches the behavior described by the Open Group's online copy of setpgid.2 at http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html Obtained from: NetBSD Submitted by: Petros Barbayiannis <petrosbarbayiannis@yahoo.gr> MFC after: 1 week Notes: svn path=/head/; revision=199985
* Do not gratuitously fail *env(3) operations due to corrupt ('='-less)Brian Feldman2009-12-014-31/+81
| | | | | | | | | | | | | | | | **environ entries. This puts non-getenv(3) operations in line with getenv(3) in that bad environ entries do not cause all operations to fail. There is still some inconsistency in that getenv(3) in the absence of any environment-modifying operation does not emit corrupt environ entry warnings. I also fixed another inconsistency in getenv(3) where updating the global environ pointer would not be reflected in the return values. It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3) in order to see the change. Notes: svn path=/head/; revision=199983
* Fix local root vulnerability.Colin Percival2009-12-011-6/+6
| | | | | | | | Security: Advisory will be coming soon. X-MFC-After: 30 seconds Notes: svn path=/head/; revision=199979
* Remove if_timer/if_watchdog now that they are no longer used. The spaceJohn Baldwin2009-11-303-76/+1
| | | | | | | | | | used by if_timer is reserved for expanding if_index to an int in the future. Reviewed by: rwatson, brooks Notes: svn path=/head/; revision=199975
* Remove extra parantheses from usb_ethernet.c and usb_serial.c lines.John Baldwin2009-11-301-4/+7
| | | | | | | | | | | | | config(8) doesn't parse parantheses and instead treated them as being part of the device driver name (e.g. '(u3g' vs 'u3g'). While here, fix the style of these long lines to match the wrapping used for other long lines in this file. Submitted by: Brett Glass MFC after: 1 week Notes: svn path=/head/; revision=199974
* Use switch out (SWO) instead of switch in (SWI) debug log mask in csw_out.Ed Maste2009-11-301-1/+1
| | | | Notes: svn path=/head/; revision=199972
* Free pointer from getenv() when done with it.Ed Maste2009-11-301-0/+1
| | | | | | | Submitted by: Phil Longstaff Notes: svn path=/head/; revision=199970
* amdsbwd: new driver for AMD SB600/SB7xx watchdog timerAndriy Gapon2009-11-309-0/+522
| | | | | | | | | | | | | | | The hardware is compliant with WDRT specification, so I originally considered including generic WDRT watchdog support, but decided against it, because I couldn't find anyone to the code for me. WDRT seems to be not very popular. Besides, generic WDRT porbably requires a slightly different driver approach. Reviewed by: des, gavin, rpaulo MFC after: 3 weeks Notes: svn path=/head/; revision=199969
* x86 cpu features: add MOVBE reporting and flagAndriy Gapon2009-11-304-2/+4
| | | | | | | | The check is glimpsed from Linux and OpenSolaris. MOVBE instruction is found in Intel Atom processors. Notes: svn path=/head/; revision=199968
* Merge Scott Long's latest blkfront now that the licensing issues are resolvedKip Macy2009-11-302-539/+654
| | | | Notes: svn path=/head/; revision=199960
* Update license to reflect terms in xen 2.0 as of the time when the driver ↵Kip Macy2009-11-302-17/+40
| | | | | | | | | was ported to FreeBSD Notes: svn path=/head/; revision=199959
* Update to BIND 9.6.1-P2. The vulnerability this is designed to fix isDoug Barton2009-11-3010-43/+133
|\ | | | | | | | | | | | | | | | | related to DNSSEC validation on a resolving name server that allows access to untrusted users. If your system does not fall into all 3 of these categories you do not need to update immediately. Notes: svn path=/head/; revision=199958
| * Vendor import of BIND 9.6.1-P2vendor/bind9/9.6.1-P2Doug Barton2009-11-309-43/+129
| | | | | | | | | | Notes: svn path=/vendor/bind9/dist/; revision=199956 svn path=/vendor/bind9/9.6.1-P2/; revision=199957; tag=vendor/bind9/9.6.1-P2
* | Disable job control when running 'sh -i' in the testsuite.Jilles Tjoelker2009-11-292-2/+2
| | | | | | | | | | | | | | | | Job control tty manipulations sometimes cause the tests to stop (SIGTTOU and the like) when run from the 'prove' tool. Notes: svn path=/head/; revision=199955
* | Fix some cases where file descriptors from redirections leak to programs.Jilles Tjoelker2009-11-294-16/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Redirecting fds that were not open before kept two copies of the redirected file. sh -c '{ :; } 7>/dev/null; fstat -p $$; true' (both fd 7 and 10 remained open) - File descriptors used to restore things after redirection were not set close-on-exec, instead they were explicitly closed before executing a program normally and before executing a shell procedure. The latter must remain but the former is replaced by close-on-exec. sh -c 'exec 7</; { exec fstat -p $$; } 7>/dev/null; true' (fd 10 remained open) The examples above are simpler than the testsuite because I do not want to use fstat or procstat in the testsuite. Notes: svn path=/head/; revision=199953
* | Correct typo.Bjoern A. Zeeb2009-11-291-1/+1
| | | | | | | | | | | | | | | | Reported by: gabor MFC after: 5 days Notes: svn path=/head/; revision=199950
* | Add atp(4) to powerpc GENERIC. Most late-generation Apple PowerPC laptopsNathan Whitehorn2009-11-291-0/+1
| | | | | | | | | | | | | | have trackpads that do not work at all without this driver. Notes: svn path=/head/; revision=199949
* | Early-generation touchpads do not send periodic calibration frames forNathan Whitehorn2009-11-291-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | baseline subtraction, and are very temperature sensitive, so would slowly drift out of a calibrated state when under load. Escape this by taking the last frame before we decide that the pad is idle as a finger-free baseline. Tested on: iBook G4 Notes: svn path=/head/; revision=199948
* | Enable IPcomp by default.Bjoern A. Zeeb2009-11-292-4/+6
| | | | | | | | | | | | | | | | PR: kern/123587 MFC after: 5 days Notes: svn path=/head/; revision=199947
* | Add more statistics variables for IPcomp.Bjoern A. Zeeb2009-11-293-3/+29
| | | | | | | | | | | | | | | | | | | | Try to version the struct in a backward compatible way. People asked for the versioning of the stats structs in general before. MFC after: 5 days Notes: svn path=/head/; revision=199946
* | Move the sysctl related fields to the end of the structure andMarcel Moolenaar2009-11-291-3/+5
| | | | | | | | | | | | | | | | | | make them conditional upon _KERNEL. libkvm includes <sys/pcpu.h> and <sys/sysctl.h> does not expose the structure definitions to userland. Notes: svn path=/head/; revision=199941
* | In case the compression result is the same size as the orignal version,Bjoern A. Zeeb2009-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the compression was useless as well. Make sure to not update the data and return, else we would waste resources when decompressing. This also avoids the copyback() changing data other consumers like xform_ipcomp.c would have ignored because of no win and sent out without noting that compression was used, resulting in invalid packets at the receiver. MFC after: 5 days Notes: svn path=/head/; revision=199906
* | Assimilate very similar input and output code pathsBjoern A. Zeeb2009-11-291-4/+2
| | | | | | | | | | | | | | | | | | (no real functional change). MFC after: 5 days Notes: svn path=/head/; revision=199905
* | Add SDT iter probes forgotten in r199885.Bjoern A. Zeeb2009-11-291-0/+6
| | | | | | | | | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=199904
* | Only add the IPcomp header if crypto reported success and we have a lowerBjoern A. Zeeb2009-11-291-51/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | payload size. Before we had always added the header, no matter if we actually send out compressed data or not. With this, after the opencrypto/deflate changes, IPcomp starts to work apart from edge cases. Leave it disabled by default until those are fixed as well. PR: kern/123587 MFC after: 5 days Notes: svn path=/head/; revision=199899
* | Decompose <sys/termios.h>.Ed Schouten2009-11-285-304/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The <sys/termios.h> header file is hardlinked to <termios.h>. It contains both the structures and the flag definitions, but also the C library interface that's implemented by the C library. This header file has the typical problem of including too many random things and being badly ordered. Instead of trying to fix this, decompose it into two header files: - <sys/_termios.h>, which contains struct termios and the flags. - <termios.h>, which includes <sys/_termios.h> and contains the C library interface. This means userspace has to include <termios.h> for struct termios, while kernelspace code has to include <sys/tty.h>. Also add a <sys/termios.h>, which prints a warning message before including <termios.h>. I am aware that there are some applications that use this header file as well. Notes: svn path=/head/; revision=199898
* | Remove whitespace.Bjoern A. Zeeb2009-11-281-3/+3
| | | | | | | | | | | | | | MFC after: 6 days Notes: svn path=/head/; revision=199897
* | Directly send data uncompressed if the packet payload size is lower thanBjoern A. Zeeb2009-11-281-0/+11
| | | | | | | | | | | | | | | | | | the compression algorithm threshold. MFC after: 6 days Notes: svn path=/head/; revision=199896
* | Change memory managment from a fixed size array to a list.Bjoern A. Zeeb2009-11-282-60/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to avoid running into out of buffer situations where we cannot alloc a new buffer because we hit the array size limit (ZBUF). Use a combined allocation for the struct and the actual data buffer to not increase the number of malloc calls. [1] Defer initialization of zbuf until we actually need it. Make sure the output buffer will be large enough in all cases. Details discussed with: kib [1] Reviewed by: kib [1] MFC after: 6 days Notes: svn path=/head/; revision=199895
* | Correct a typo.Bjoern A. Zeeb2009-11-281-1/+1
| | | | | | | | | | | | | | MFC after: 6 days Notes: svn path=/head/; revision=199894
* | Eliminate teh use of MAXCPU in static arrays of interrupt counters byMarcel Moolenaar2009-11-283-34/+96
| | | | | | | | | | | | | | | | | | | | | | adding statistics counters to the PCPU structure. Export the counters through sysctl by giving each PCPU structure its own sysctl context. While here, fix cnt.v_intr by not just having it count clock interrupts, but every interrupt and add more counters for each interrupt source. Notes: svn path=/head/; revision=199893
* | Add support for interpreting taps on ADB touchpads as a button click.Nathan Whitehorn2009-11-283-1/+149
| | | | | | | | | | | | | | | | Submitted by: Andreas Tobler <andreast-list at fgznet dot ch> MFC after: 2 weeks Notes: svn path=/head/; revision=199888
* | Z_PARTIAL_FLUSH is marked deprecated. Z_SYNC_FLUSH is the suggestedBjoern A. Zeeb2009-11-281-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | replacement but only use it for inflate. For deflate use Z_FINISH as Z_SYNC_FLUSH adds a trailing marker in some cases that inflate(), despite the comment in zlib, does npt seem to cope well with, resulting in errors when uncompressing exactly fills the outbut buffer without a Z_STREAM_END and a successive call returns an error. MFC after: 6 days Notes: svn path=/head/; revision=199887
* | Add a CPU features framework on PowerPC and simplify CPU setup a littleNathan Whitehorn2009-11-286-99/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | more. This provides three new sysctls to user space: hw.cpu_features - A bitmask of available CPU features hw.floatingpoint - Whether or not there is hardware FP support hw.altivec - Whether or not Altivec is available PR: powerpc/139154 MFC after: 10 days Notes: svn path=/head/; revision=199886
* | Add SDT probes for opencrypto:deflate:deflate_gobal:*.Bjoern A. Zeeb2009-11-281-7/+61
| | | | | | | | | | | | | | | | | | They are not nice but they were helpful. MFC after: 6 days Notes: svn path=/head/; revision=199885
* | Define an SDT provider for "opencrypto".Bjoern A. Zeeb2009-11-281-0/+4
| | | | | | | | | | | | | | MFC after: 6 days Notes: svn path=/head/; revision=199884
* | Add SDT_PROBE[1-5] in the same way we have SDT_PROBE_DEFINE[1-5] toBjoern A. Zeeb2009-11-281-0/+17
| | | | | | | | | | | | | | | | | | avoid having to add all the unused trailing arguments as zeros. MFC after: 6 days Notes: svn path=/head/; revision=199883
* | Include <sys/tty.h> instead of <sys/termios.h>.Ed Schouten2009-11-281-1/+1
| | | | | | | | | | | | | | | | | | Right now <sys/termios.h> includes <sys/ttycom.h>, which provides the TTY ioctls to the svr4 code. We need both struct termios and the ioctls, so include <sys/tty.h> for now. Notes: svn path=/head/; revision=199882
* | Include <sys/ttydefaults.h>, instead of doing it through <sys/termios.h>.Ed Schouten2009-11-281-0/+1
| | | | | | | | | | | | | | I want to prevent the header polution of <sys/termios.h> eventually. Notes: svn path=/head/; revision=199881
* | Revert r199830 for now. Too many ports dlopen() libraries linked withKonstantin Belousov2009-11-281-1/+1
| | | | | | | | | | | | | | libthr, but forgot to link main binary with it. Notes: svn path=/head/; revision=199878
* | Allow to load not-openable dso when tracing. This fixes ldd on such dso orKonstantin Belousov2009-11-282-4/+8
| | | | | | | | | | | | | | | | | | | | | | dso linked to non-openable object. Remove '\n' at the end of error message. End comments with dot. MFC after: 3 weeks (together with r199829) Notes: svn path=/head/; revision=199877
* | Remove unneeded inclusion of <sys/termios.h>.Ed Schouten2009-11-281-1/+0
| | | | | | | | Notes: svn path=/head/; revision=199876
* | Provide a set of sysctls and tunables to disable device node creationEdward Tomasz Napierala2009-11-289-29/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | for specific "kinds" of disk labels - for example, GPT UUIDs. Reason for this is that sometimes, other GEOM classes attach to these device nodes instead of the proper ones - e.g. they attach to /dev/gptid/XXX instead of /dev/ada0p2, which is annoying. Reviewed by: pjd (earlier version) MFC after: 1 month Notes: svn path=/head/; revision=199875
* | Use <termios.h> instead of <sys/termios.h>.Ed Schouten2009-11-281-1/+1
| | | | | | | | | | | | | | <sys/termios.h> only works on FreeBSD by accident. Notes: svn path=/head/; revision=199874
* | - correct xref sectionsDaniel Gerzo2009-11-282-4/+4
| | | | | | | | | | | | | | | | | | PR: docs/140940 Submitted by: Bruce Cran <bruce@cran.org.uk> MFC after: 1 week Notes: svn path=/head/; revision=199873
* | Remove unneeded includes of <sys/termios.h>.Ed Schouten2009-11-282-2/+0
| | | | | | | | Notes: svn path=/head/; revision=199872
* | - correctly render the provided exampleDaniel Gerzo2009-11-281-1/+1
| | | | | | | | | | | | | | | | PR: docs/140962 Submitted by: mharo Notes: svn path=/head/; revision=199871