summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Old patch I had lying around: correctly cast the argument to is*().des2007-12-183-24/+25
| | | | | | IWBNI gcc could warn about this the way it warns about printf() abuse. MFC after: 1 week
* Stylify ipcs/ipcs.c and ipcrm/ipcrm in preparation of the upcomingedwin2007-12-182-384/+470
| | | | | | | | | changes as proposed in bin/118292. Feel free to mention any I have missed, there is much to learn with regarding to style(9). Approved by: grog@
* Simplify the error handling and use the dereferenced sc->sc_ifp pointer.thompsa2007-12-181-44/+26
|
* Portability improvements to investigate behavior of other OSs.dds2007-12-181-4/+4
| | | | Now works under Solaris and Linux.
* Add more tests. All rename(2)-based tests now succeed.dds2007-12-181-1/+78
| | | | The performance of the cross-device equivalents is under investigation.
* When the bridge has an address and a packet comes in for it then drop it if thethompsa2007-12-181-0/+7
| | | | | | | | | | link has been marked discarding by Spanning Tree. This would cause the bridge to see duplicate packets to itself even if STP has correctly calculated the topology and blocked redundant links. Reported by: trasz Tested by: trasz MFC after: 3 days
* Use fixed point integer math instead of floating point math whenjasone2007-12-181-42/+47
| | | | | | | | | | calculating run sizes. Use of the floating point unit was a potential pessimization to context switching for applications that do not otherwise use floating point math. [1] Reformat cpp macro-related comments to improve consistency. Submitted by: das
* - Use the macro to check the port status has it will also test if itsthompsa2007-12-181-2/+2
| | | | | | | | | administratively down (!IFF_UP) - Use the same parameters to lagg_link_active() to get the backup port as in the output path, this didnt actually matter in practice as sc_primary is always the first on the port list. MFC after: 3 days
* Fix logical bug in the bzip2 reading code, which results in bogus EIOsobomax2007-12-182-2/+48
| | | | | | | | | | | | | | | | | | | | | returned on a perfectly valid bzip2 stream whose decompressed size is multiple of read-ahead buffer size. Reproduce the problem is easy: create some power-of-two sized file (truncate -s 1m file will do), bzip2 it and try to load it as md_image from loader. See how it fails. The bug doesn't affect gzip code (which most of bzip2-reading code was copied from) probably due to the fact that libgzip doesn't report Z_STREAM_END with the last block, but requires extra call to inflate() to retrieve it and has some extra data in the input stream at that time. However, apply similar fix to gzipfs.c just in the case the API will change in the future to do what bzip2 code does. Add some ifdef'ed code to enable testing bzipfs.c from witin normal FreeBSD environment as opposed to the restricted loader one, so that one can use gdb and whatnot. Sponsored by: Sippy Software, Inc., http://www.sippysoft.com/ MFC in: 7 days
* - sctp-iterator should run at PI_NET priority ...not 0.rrs2007-12-181-1/+1
| | | | MFC after: 1 week
* Catch up with vfprintf.c,v 1.77.das2007-12-181-0/+1
|
* Remove z_abs(). The z_*() functions were in libf77, and for some reasondas2007-12-182-8/+0
| | | | | | | | someone thought it would be a good idea to copy z_abs() to libm in 1994. However, it's never been declared or documented anywhere, and I'm reasonably confident that nobody uses it. Discussed with: bde, deischen, kan
* only include intr_machdep.h when it is needed for intr_bindkmacy2007-12-171-0/+2
| | | | ia64 doesn't have an intr_machdep.h
* A few more adjustments needed because of changes in xorg. Just installingkensmith2007-12-172-2/+6
| | | | | | | | | xorg-server doesn't include any video drivers so install xorg-drivers as well. And if font-alias isn't installed the X server won't start, complaining it can't find the font "fixed". Insta-MFC coming, this was tested with a RELENG_6_3 release build and the necessary packages as part of the first round of testing for 6.3-RC2.
* Remove file after being repocopied to ../ofw, where it lives on.marcel2007-12-177-749/+0
| | | | Repocopy by: simon@
* Build the OFW loader from its new location after the sourcesmarcel2007-12-171-1/+1
| | | | were repocopied from ./loader to ./ofw.
* Forced commit to record that this file was repocopied frommarcel2007-12-170-0/+0
| | | | | | src/sys/boot/powerpc/loader. Repocopy by: simon@
* Add myself to the copyright.thompsa2007-12-171-0/+1
|
* Oops, the previous commit was not needed -- the file was committed butbde2007-12-171-1/+1
| | | | not checked out due to my checkout error.
* Translate from the i386 so that this compiles and runs.bde2007-12-171-1/+1
| | | | | | | I hope that this and the i386 version of it will not be needed, but this is currently about 16 cycles or 36% faster than the C version, and the i386 version is about 8 cycles or 19% faster than the C version, due to poor optimization of the C version.
* Fix a MAC label leak for POSIX semaphores, in which per-policy labelsrwatson2007-12-171-0/+1
| | | | | | | | | would be properly disposed of, but the global label structure for the semaphore wouldn't be freed. MFC after: 3 days Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>, zhouzhouyi
* Fix leaking MAC labels for IPv6 inpcbs by adding missing MAC labelrwatson2007-12-171-0/+6
| | | | | | | | | | | destroy call; this transpired because the inpcb alloc path for IPv4/IPv6 is the same code, but IPv6 has a separate free path. The results was that as new IPv6 TCP connections were created, kernel memory would gradually leak. MFC after: 3 days Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>, zhouzhouyi
* Moved logging out of the nss_method_lookup() in order not tobushman2007-12-171-9/+13
| | | | flood logs with failed fallback method lookup attempts.
* Don't try to build s_nanl.c before it is committed.bde2007-12-171-1/+1
|
* Calculate p.fs.lookup_step correctly. This should prevent zeroing ofoleg2007-12-171-3/+3
| | | | | | w_q_lookup table (used in RED algorithm for (1 - w_q)^t computation). MFC after: 1 months
* disable update in place on transmitkmacy2007-12-171-4/+2
|
* Add SB_NOCOALESCE flag to disable socket buffer update in placekmacy2007-12-172-0/+2
|
* Calling any function from vfork other than exec* and _exit yieldsdds2007-12-171-3/+9
| | | | | | undefined behavior. Noted by: alfred
* Make TCP offload work on HEAD (modulo negative interaction between sbcompresskmacy2007-12-1724-600/+3309
| | | | | | | | | and t3_push_frames). - Import latest changes to cxgb_main.c and cxgb_sge.c from toestack p4 branch - make driver local copy of tcp_subr.c and tcp_usrreq.c and override tcp_usrreqs so TOE can also functions on versions with unmodified TCP - add cxgb back to the build
* Check NULL pointer.davidxu2007-12-171-1/+10
|
* Fix an int overflow on very large file systems.das2007-12-171-2/+2
| | | | | PR: bin/113399 Submitted by: Staffan Ulfberg <staffan@ulfberg.se>
* build tcp_offload.c instead of tcp_ofld.ckmacy2007-12-171-1/+2
|
* incorporate feedback since initial commitkmacy2007-12-174-281/+386
| | | | | | | | | | | - rename tcp_ofld.[ch] to tcp_offload.[ch] - document usage and locking conventions of the functions in the toe_usrreqs function vector - document tcpcb, inpcb, and socket fields used by toe - widen the listen interface into 2 functions - rename DISABLE_TCP_OFFLOAD to TCP_OFFLOAD_DISABLE - shrink conditional compilation to reduce the likelihood of bitrot - replace sc->sc_toepcb checks in tcp_syncache.c with TOEPCB_ISSET
* widen the routing event interface (arp update, redirect, and eventually pmtu ↵kmacy2007-12-174-23/+129
| | | | | | | | | change) into separate functions revert previous commit's changes to arpresolve and add a new interface arpresolve2 which does arp resolution without an mbuf
* o Fix a holiday to reflect a reality.maxim2007-12-171-1/+1
| | | | | Submitted by: Andrey V. Elsukov MFC after: 1 week
* Add missing changes for fixing LOR of umtx lock and thread lock, followdavidxu2007-12-171-11/+24
| | | | | | | the committing of files: kern_resource.c revision 1.181 sched_4bsd.c revision 1.111 sched_ule.c revision 1.218
* Use M_NOWAIT instead of M_WAITOK to cause malloc() to return NULLkevlo2007-12-171-1/+1
| | | | Reviewed by: imp
* Don't panic in arpresolve if we're given a null mbuf. We couldkmacy2007-12-171-11/+15
| | | | | insist that the caller just pass in an initialized mbuf even if didn't have any data - but that seems rather contrived.
* Add logbl(3) to libm.das2007-12-179-32/+184
|
* Add function prototypes.davidxu2007-12-171-1/+7
|
* Refactor features a bit in order to make it possible to disable lazyjasone2007-12-171-52/+127
| | | | | | | | | deallocation and dynamic load balancing via the MALLOC_LAZY_FREE and MALLOC_BALANCE knobs. This is a non-functional change, since these features are still enabled when possible. Clean up a few things that more pedantic compiler settings would cause complaints over.
* Document the fact that we have nan(3) now, and make some minor clarificationsdas2007-12-171-10/+14
| | | | in other places.
* On platforms where long is 64 bits, make sure gdtoa doesn't use adas2007-12-171-0/+3
| | | | long when it really wants an int.
* Fix an amusing typo that has prevented this from compiling since 2004.das2007-12-161-7/+7
|
* Don't try the long double tests on i386. Our reduced precisiondas2007-12-161-1/+1
| | | | can cause them to fail.
* Fix previous commit: We should only mask the top bit in the STRTOG_NaNBitsdas2007-12-162-1/+14
| | | | case, not the STRTOG_Normal case.
* Remove hacks to allow libkse to export its symbols in the LIBTHREAD_1_0deischen2007-12-16102-481/+0
| | | | | version namespace which was needed before the library version was bumped.
* Remove another Alpha remnant.das2007-12-161-1/+0
|
* Include cdefs.h and param.h for architectures with less header pollutionkmacy2007-12-161-0/+2
|
* Regression tests for nan{,f,l}().das2007-12-163-1/+133
|
OpenPOWER on IntegriCloud