summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Re-implement the client side of rpc.lockd in the kernel. This implementationdfr2008-06-2628-776/+3102
| | | | | | | | | | | | provides the correct semantics for flock(2) style locks which are used by the lockf(1) command line tool and the pidfile(3) library. It also implements recovery from server restarts and ensures that dirty cache blocks are written to the server before obtaining locks (allowing multiple clients to use file locking to safely share data). Sponsored by: Isilon Systems PR: 94256 MFC after: 2 weeks
* Mark the section describing return values with an appropriate section flag.danger2008-06-261-1/+1
| | | | | PR: docs/122818 MFC after: 3 days
* Fix a fallout from SSP commit, and make this compile again.ru2008-06-261-2/+1
| | | | | | | | Bonus: including kern.mk just to pick kernel warning flags was an extremely bad idea anyway, because it also picked up CFLAGS (it probably wasn't the case at the time of CVS rev. 1.1, I haven't checked). Remove duplicate CWARNFLAGS from CFLAGS.
* Fix a chicken-and-egg problem: this files implements SSP support,ru2008-06-261-3/+0
| | | | | | | | | | | | | so we cannot compile it with -fstack-protector[-all] flags (or it will self-recurse); this is ensured in sys/conf/files. This OTOH means that checking for defines __SSP__ and __SSP_ALL__ to determine if we should be compiling the support is impossible (which it was trying, resulting in an empty object file). Fix this by always compiling the symbols in this files. It's good because it allows us to always have SSP support, and then compile with SSP selectively. Repoted by: tinderbox
* Gcc barfs in glob.c when run with -O3. To fix this make g_strchr() work onmtm2008-06-261-5/+5
| | | | | | | and return (const Char *) pointers instead of just (Char *) and get rid of all the type casting. PR: kern/124334
* The signature for a pthread function requires that itmtm2008-06-261-0/+6
| | | | | | | | | | | return a pointer to a void. The send_thread() and disk_thread() funtions; however, do not have a return value because they run for the duration of the daemon's lifetime. This causes gcc to barf when running with -O3. Make these functions return a null pointer to quiet it. PR: bin/124342 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> (minus his comments) MFC after: 1 week
* Fix 6-year old cut&paste error. The # could be escaped with '\', notsobomax2008-06-261-2/+2
| | | | | | with '\\'. MFC after: 2 weeks
* Split out the reference zip file for ease of maintenance.kientzle2008-06-262-19/+16
|
* Regen properly.ru2008-06-251-85/+85
|
* Regen.ru2008-06-251-88/+88
|
* Enable GCC stack protection (aka Propolice) for userland:ru2008-06-2537-22/+126
| | | | | | | | | | | | | | | | | | | | | - It is opt-out for now so as to give it maximum testing, but it may be turned opt-in for stable branches depending on the consensus. You can turn it off with WITHOUT_SSP. - WITHOUT_SSP was previously used to disable the build of GNU libssp. It is harmless to steal the knob as SSP symbols have been provided by libc for a long time, GNU libssp should not have been much used. - SSP is disabled in a few corners such as system bootstrap programs (sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves. - It should be safe to use -fstack-protector-all to build world, however libc will be automatically downgraded to -fstack-protector because it breaks rtld otherwise. - This option is unavailable on ia64. Enable GCC stack protection (aka Propolice) for kernel: - It is opt-out for now so as to give it maximum testing. - Do not compile your kernel with -fstack-protector-all, it won't work. Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
* Use "__asm __volatile" rather than "__asm" for instruction sequencesmarius2008-06-251-7/+7
| | | | | | | | | | | | | that modify condition codes (the carry bit, in this case). Without "__volatile", the compiler might add the inline assembler instructions between unrelated code which also uses condition codes, modifying the latter. This prevents the TCP pseudo header checksum calculation done in tcp_output() from having effects on other conditions when compiled with GCC 4.2.1 at "-O2" and "options INET6" left out. [1] Reported & tested by: Boris Kochergin [1] MFC after: 3 days
* Given that sun4u uses sparc64/sparc64/in_cksum.c, use the sparc64marius2008-06-251-164/+2
| | | | | | <machine/in_cksum.h> here also. MFC after: 3 days
* src/compat/ is gone back in March.ru2008-06-251-2/+2
| | | | Reported by: Mars G Miro
* Document spindown constraints as given in the original commitbz2008-06-251-1/+22
| | | | | | | | message[1] and later clarification provided by phk. [1] http://docs.freebsd.org/cgi/mid.cgi?200803171033.m2HAXOeN055116 Reviewed by: brueffer, phk, ed
* Remove the unused M_MEMDEV from the kernel.ed2008-06-252-4/+0
| | | | | | | The M_MEMDEV memory allocation pool does not seem to be used. We can live without it. Approved by: philip (mentor)
* Remove the unused major/minor numbers from iodev and memdev.ed2008-06-2512-18/+1
| | | | | | | | | Now that st_rdev is being automatically generated by the kernel, there is no need to define static major/minor numbers for the iodev and memdev. We still need the minor numbers for the memdev, however, to distinguish between /dev/mem and /dev/kmem. Approved by: philip (mentor)
* Fix links to online gcc docs.ale2008-06-251-3/+3
| | | | | Reported by: Andre Guibert de Bruet <andy@siliconlandmark.com> MFC after: 1 day
* Pass the entry down into the core write loop, so wekientzle2008-06-251-4/+6
| | | | | | can include the filename when reporting errors. Thanks to: Dan Nelson
* Months in English are capitalized (even when abbreviated).wollman2008-06-251-1/+1
|
* Quiet rc.d/syscons unless it has something to say.mtm2008-06-241-6/+35
|
* Emit opcodes closer to GNU as(1) generated codes and micro-optimize.jkim2008-06-242-59/+46
|
* Emit opcodes closer to GNU as(1) generated codes and micro-optimize.jkim2008-06-242-63/+49
|
* Make it simpler to build netgraph modules outside of the kernel sourcegnn2008-06-241-0/+2
| | | | | | tree. This change follows similar ones in the device tree. MFC after: 2 weeks
* In -p mode, don't gaurd against '..' in paths. We continue tokientzle2008-06-241-0/+1
| | | | | | check in -i mode unless --insecure is specified. PR: bin/124924
* In case of interface initialization failure remove struct in_ifaddr* fromgonzo2008-06-241-0/+8
| | | | | | | | | | in_ifaddrhashtbl in in_ifinit because error handler in in_control removes entries only for AF_INET addresses. If in_ifinit is called for the cloned inteface that has just been created its address family is not AF_INET and therefor LIST_REMOVE is not called for respective LIST_INSERT_HEAD and freed entries remain in in_ifaddrhashtbl and lead to memory corruption. PR: kern/124384
* Add two commands to _umtx_op system call to allow a simple mutex to bedavidxu2008-06-245-90/+251
| | | | | | | | | | | | | | locked and unlocked completely in userland. by locking and unlocking mutex in userland, it reduces the total time a mutex is locked by a thread, in some application code, a mutex only protects a small piece of code, the code's execution time is less than a simple system call, if a lock contention happens, however in current implemenation, the lock holder has to extend its locking time and enter kernel to unlock it, the change avoids this disadvantage, it first sets mutex to free state and then enters kernel and wake one waiter up. This improves performance dramatically in some sysbench mutex tests. Tested by: kris Sounds great: jeff
* Fix test for waiting AIFs in aac_poll(). This seems to solve theemaste2008-06-241-2/+7
| | | | | | | | problem where Adaptec's arcconf monitoring tool hangs after producing its expected output. Submitted by: Adaptec, via driver ver 15317 MFC after: 1 week
* Rehash and clean up BPF JIT compiler macros to match AT&T notations.jkim2008-06-232-143/+143
|
* Rehash and clean up BPF JIT compiler macros to match AT&T notations.jkim2008-06-232-152/+152
|
* Add a -q flag to swapon(8) to suppress informational messages. Use it inmtm2008-06-233-10/+25
| | | | | rc.d. Note: errors are not affected by this flag.
* The sysctl(8) program exits on some errors and only emits warnings onmtm2008-06-234-5/+17
| | | | | | | | | others. In the case where it displayed warnings it would still return succesfully. Modify it so that it returns the number of sysctls that it was not able to set. Make use of this in rc.d to display only *unsuccessfull* attempts to set sysctls.
* Remove the posixsem_check_destroy() MAC check. It is semantically identicaljhb2008-06-238-44/+0
| | | | | | | to doing a MAC check for close(), but no other types of close() (including close(2) and ksem_close(2)) have MAC checks. Discussed with: rwatson
* Run savecore(8) only if there is a core dump to save. If there ismtm2008-06-231-2/+5
| | | | no core dump hide the message to that effect behind $rc_quiet.
* Implement a "quiet" mode for rc.d/netif, which only outputsmtm2008-06-233-15/+23
| | | | | | | | | the interface name of interfaces that were configured. This change has the added benefit that ifn_start() and ifn_stop() in network.subr no longer write to standard output. Whether to output and what to output is now handled entirely in rc.d/netif.
* +Computers can't cruise. Meandering is a foreign concept to them.phk2008-06-231-0/+6
| | | | | | | +The computer assumes that all behavior is in pursuit of an ultimate +goal. Whenever a motorist changes his or her mind and veers off +course, the GPS lady issues that snippy announcement: "Recalculating!" + -- Joel Achenbach (www.slate.com, 20 jun 2008)
* - Use bus_foo() rather than bus_space_foo() and retire the bus tag and handlejhb2008-06-235-44/+27
| | | | | | | | | | | | from the softc. - Rework the watchdog timer to match other NIC drivers: - Start a timer in fe_init() that runs once a second and checks a counter in the softc that is identical to the deprecated 'if_timer'. - Just adjust the softc tx timeout value when sending packets instead of scheduling the timer. - Use IFQ_SET_MAXLEN(). Tested by: WATANABE Kazuhiro
* Ensure the channel is a number and not a range, the 'channel' command can bethompsa2008-06-231-1/+4
| | | | | easily mixed up with 'chanlist' and would give unexpected results by fixing the channel on the first number in the range.
* - Fix compile if WPI_DEBUG is not definedthompsa2008-06-231-27/+39
| | | | | | - Allow debug.wpi to be set from a tunable - Put ring reset messages back under debug - Add more debug output around channel init
* Ensure that KERNBASE is no less than the virtual address -2GB.alc2008-06-231-1/+1
|
* Set the sysctl(8) value in the same shell, not a subshell. This wasmtm2008-06-231-2/+2
| | | | | causing calls to netoptions_init() to not properly set a global variable, which ended up being in the parent shell.
* Turn execvpe() into an internal libc routine.ed2008-06-237-20/+12
| | | | | | | | | | | | Adding exevpe() has caused some ports to break. Even though execvpe() is a useful routine, it does not conform to any standards. This patch is a little bit different from the patch sent to the mailing list. I forgot to remove execvpe from the Symbol.map (which does not seem to miscompile libc, though). Reviewed by: davidxu Approved by: philip
* Move the diagnostic output when the rc.subr(8) glue automatically starts amtm2008-06-231-3/+9
| | | | | | | | | | service behind $rc_quiet. Instead, output a warning if the pre-command routine or the command itself failed. Arguably, it's more useful to know when a command failed to start than it is to have an endless list of "Starting ...." lines[1]. [1] - This change actually helped me to discover a bug in rc.d/{lockd,statd} (fixed in r179941) that used to fail silently before.
* Move a lot of diagnostic output behind $rc_quiet in scripts thatmtm2008-06-239-17/+19
| | | | implement their own start command.
* Align the script more with rc.d/cleanvar (which doesn't output anymtm2008-06-231-2/+2
| | | | diagnostics). Instead, move output behind $rc_quiet.
* Remove the -v flag from the command line to dumpon(8), and instead printmtm2008-06-231-1/+2
| | | | diagnostic ouput only if the command fails.
* Remove pointless informational message.mtm2008-06-231-1/+0
|
* Argh! s/nfs_client_enable/nfsclient_enable/gmtm2008-06-232-4/+4
|
* Do not print anything unless one of the net/routing options is set.mtm2008-06-232-4/+35
|
* s/daemon processes/local packages/ for consisitency.mtm2008-06-231-1/+1
|
OpenPOWER on IntegriCloud