aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 1. Set timer configuration values for sysconf().David Xu2005-12-011-2/+15
| | | | | | | | 2. Set overrun limit to INT_MAX, report ERANGE error if overrun will be greater than INT_MAX. Notes: svn path=/head/; revision=152983
* Quickly fix brokeness in revision 1.157, that change wasDavid Xu2005-12-011-4/+4
| | | | | | | | free()ing stack memory which causes the program to abort, and I can no longer make buildworld. Notes: svn path=/head/; revision=152982
* Add another 'best quote about XML evar!' courtesy Pav Lucistnik (pav@)Wes Peters2005-12-011-0/+3
| | | | Notes: svn path=/head/; revision=152981
* Fix logic error which causes <null> to be printed instead of theMaxim Sobolev2005-12-011-1/+1
| | | | | | | | | actual file name in error message. MFC After: 2 weeks Notes: svn path=/head/; revision=152980
* Add kernel module loading option for snd_atiixp(4).Ariff Abdullah2005-12-011-0/+1
| | | | Notes: svn path=/head/; revision=152979
* set signal queue values for sysconf().David Xu2005-12-011-0/+4
| | | | Notes: svn path=/head/; revision=152975
* Fixing yet another regression introduced in rev1.37 by preserving cs_localTai-hwa Liang2005-12-011-0/+1
| | | | | | | | | | pointer such that local to DOS code page conversion with combined option '-L,-D' works again. Reviewed by: rodrigc Notes: svn path=/head/; revision=152974
* Avoid using signal 127 and 128 as RT signals, these two signals confuseDavid Xu2005-11-301-1/+1
| | | | | | | wait4 interfaces, see PR: kern/19402. Notes: svn path=/head/; revision=152973
* It is unclear who is wrong and who is right, but when operating onMaxim Sobolev2005-11-301-0/+10
| | | | | | | | | | | | | | | | | | plain file bsdlabel(8) always writes label at a fixed offset from its beginning (512 bytes), regardless of the sector size. At the same time, bsdlabel geom class expects label to be available at the very beginning of the second sector. As a result, images prepared in userland for media with sector size different from 512 bytes (i.e. 2k for cdroms) are not recognized by the tasting mechanism. Solve the problem by always looking for the label at 512-byte offset if we can't find it at the beginning of the second sector and sector size is not 512 bytes. Notes: svn path=/head/; revision=152972
* Don't pass error value pointer to g_read_data(9) at all if we don'tMaxim Sobolev2005-11-3013-25/+24
| | | | | | | | | have any use of it. Suggested by: pjd Notes: svn path=/head/; revision=152971
* Check for altq presence during module init, and allow module to work even ifPhilip Paeps2005-11-301-2/+47
| | | | | | | | | | | altq is not present (just disable the altq bits in that case). PR: 89601 Submitted by: Juraj Lutter <otis -at- sk.freebsd.org> MFC after: 3 days Notes: svn path=/head/; revision=152970
* - match_var: do not address memory at invalid address (`len' can be greaterMax Khon2005-11-302-3/+5
| | | | | | | | | | | | than strlen(var) + 1) - ReadMakeFile: prevent `fname' memory leak - ReadMakeFile: prevent double free (caused by double fclose) -- ParsePopInput() closes input file Reviewed by: harti Notes: svn path=/head/; revision=152969
* fix dynamic changes in short slottime for 11g sta mode: set theSam Leffler2005-11-301-1/+1
| | | | | | | | | | slot time based on the rcvd capabilities, not the existing ones Obtained from: atheros MFC after: 1 week Notes: svn path=/head/; revision=152968
* Check for g_read_data(9) errors properly:Maxim Sobolev2005-11-3017-26/+26
| | | | | | | | | | | | | o The only indication of error condition is NULL value returned by the function; o value pointed to by error argument is undefined in the case when operation completes successfully. Discussed with: phk Notes: svn path=/head/; revision=152967
* Kill leading whilespace.Maxim Sobolev2005-11-301-1/+1
| | | | Notes: svn path=/head/; revision=152966
* Teach this to create the "machine" and ${MACHINE_ARCH} (for pc98Ruslan Ermilov2005-11-301-4/+27
| | | | | | | | | | | | only now) symbolic links in the kernel compile directory, rather than relying on config(8) to do this. (The changes to config(8) will be committed separately.) This is aimed towards making the config(8) as lightweight as possible. Idea by: bde (all bugs are mine) Notes: svn path=/head/; revision=152964
* Style: use S_ISDIR() (submitted by bde@) and eq() where appropriate.Ruslan Ermilov2005-11-301-4/+3
| | | | Notes: svn path=/head/; revision=152963
* Byte copy IF_LLADDR() on stack to align it to be safe for typecasts.Ruslan Ermilov2005-11-304-42/+40
| | | | | | | Tested by: jhb Notes: svn path=/head/; revision=152962
* Remove superfluous bzero()'ing of the softc.Marius Strobl2005-11-303-3/+0
| | | | Notes: svn path=/head/; revision=152961
* Remove superfluous inclusion of upa.h.Marius Strobl2005-11-303-3/+0
| | | | Notes: svn path=/head/; revision=152960
* If bus_dmamap_load() failed, we free the mbuf. We also need to clearGleb Smirnoff2005-11-301-2/+6
| | | | | | | the pointer, to avoid double free on next bge_stop(). Notes: svn path=/head/; revision=152953
* MFi386: revision 1.1215 (add savagedrm).Yoshihiro Takahashi2005-11-301-0/+1
| | | | Notes: svn path=/head/; revision=152952
* Rearranged the polynomial evaluation to reduce dependencies, as inBruce Evans2005-11-302-9/+13
| | | | | | | | | | | | | | | | | | | | | | | k_tanf.c but with different details. The polynomial is odd with degree 13 for tanf() and odd with degree 9 for sinf(), so the details are not very different for sinf() -- the term with the x**11 and x**13 coefficients goes awaym and (mysteriously) it helps to do the evaluation of w = z*z early although moving it later was a key optimization for tanf(). The details are different but simpler for cosf() because the polynomial is even and of lower degree. On Athlons, for uniformly distributed args in [-2pi, 2pi], this gives an optimization of about 4 cycles (10%) in most cases (13% for sinf() on AXP, but 0% for cosf() with gcc-3.3 -O1 on AXP). The best case (sinf() with gcc-3.4 -O1 -fcaller-saves on A64) now takes 33-39 cycles (was 37-45 cycles). Hardware sinf takes 74-129 cycles. Despite being fine tuned for Athlons, the optimization is even larger on some other arches (about 15% on ia64 (pluto2) and 20% on alpha (beast) with gcc -O2 -fomit-frame-pointer). Notes: svn path=/head/; revision=152951
* Fix compiling for c++, include cdefs.h.David Xu2005-11-301-0/+3
| | | | Notes: svn path=/head/; revision=152950
* Fixed cosf(x) when x is a "negative" NaNs. I broke this in rev.1.10.Bruce Evans2005-11-301-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | cosf(x) is supposed to return something like x when x is a NaN, and we actually fairly consistently return x-x which is normally very like x (on i386 and and it is x if x is a quiet NaN and x with the quiet bit set if x is a signaling NaN. Rev.1.10 broke this by normalising x to fabsf(x). It's not clear if fabsf(x) is should preserve x if x is a NaN, but it actually clears the sign bit, and other parts of the code depended on this. The bugs can be fixed by saving x before normalizing it, and using the saved x only for NaNs, and using uint32_t instead of int32_t for ix so that negative NaNs are not misclassified even if fabsf() doesn't clear their sign bit, but gcc pessimizes the saving very well, especially on Athlon XPs (it generates extra loads and stores, and mixes use of the SSE and i387, and this somehow messes up pipelines). Normalizing x is not a very good optimization anyway, so stop doing it. (It adds latency to the FPU pipelines, but in previous versions it helped except for |x| <= 3pi/4 by simplifying the integer pipelines.) Use the same organization as in s_sinf.c and s_tanf.c with some branches reordered. These changes combined recover most of the performance of the unfixed version on A64 but still lose 10% on AXP with gcc-3.4 -O1 but not with gcc-3.3 -O1. Notes: svn path=/head/; revision=152949
* Last step to make mq_notify conform to POSIX standard, If the processDavid Xu2005-11-305-107/+237
| | | | | | | | has successfully attached a notification request to the message queue via a queue descriptor, file closing should remove the attachment. Notes: svn path=/head/; revision=152948
* Fixed the hi+lo approximation to log(2). The normal 17+24 bit decompositionBruce Evans2005-11-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | that was used doesn't work normally here, since we want to be able to multiply `hi' by the exponent of x _exactly_, and the exponent of x has more than 7 significant bits for most denormal x's, so the multiplication was not always exact despite a cloned comment claiming that it was. (The comment is correct in the double precision case -- with the normal 33+53 bit decomposition the exponent can have 20 significant bits and the extra bit for denormals is only the 11th.) Fixing this had little or no effect for denormals (I think because more precision is inherently lost for denormals than is lost by roundoff errors in the multiplication). The fix is to reduce the precision of the decomposition to 16+24 bits. Due to 2 bugs in the old deomposition and numerical accidents, reducing the precision actually increased the precision of hi+lo. The old hi+lo had about 39 bits instead of at least 41 like it should have had. There were off-by-1-bit errors in each of hi and lo, apparently due to mistranslation from the double precision hi and lo. The correct 16 bit hi happens to give about 19 bits of precision, so the correct hi+lo gives about 43 bits instead of at least 40. The end result is that expf() is now perfectly rounded (to nearest) except in 52561 cases instead of except in 67027 cases, and the maximum error is 0.5013 ulps instead of 0.5023 ulps. Notes: svn path=/head/; revision=152947
* Update conformance and history sections.David Xu2005-11-304-4/+16
| | | | Notes: svn path=/head/; revision=152944
* Symlink mq_send to mq_timedsend.David Xu2005-11-301-0/+2
| | | | | | | Symlink mq_receive to mq_timedreceive. Notes: svn path=/head/; revision=152943
* Add manuals for POSIX message queue.David Xu2005-11-308-2/+1077
| | | | Notes: svn path=/head/; revision=152942
* Fix misspelling in Poul-Henning Kamp's email address under AUTHORS, fromTom McLaughlin2005-11-301-1/+1
| | | | | | | | | pkh@ to phk@. Approved by: ade Notes: svn path=/head/; revision=152941
* Add codec ID for Avance Logic ALC203Pyun YongHyeon2005-11-301-0/+1
| | | | Notes: svn path=/head/; revision=152939
* Fix snderr() to not leak the socket buffer lock if an error occurs inJohn Baldwin2005-11-291-1/+1
| | | | | | | | | | | sosend(). Robert accidentally changed the snderr() macro to jump to the out label which assumes the lock is already released rather than the release label which drops the lock in his previous change to sosend(). This should fix the recent panics about returning from write(2) with the socket lock held and the most recent LOR on current@. Notes: svn path=/head/; revision=152938
* The DEFAULTS changes caused the user specified config file to be openedPeter Wemm2005-11-291-0/+5
| | | | | | | | | | | | | | | | | | much later than before, and it is now after we do a mkdir ../compile/FILE. As a result, if you do 'config DOESNOTEXIST', it now creates the directory ../config/DOESNOTEXIST. It did not do that before. If DEFAULTS does not exist, it still fails early before any permanent changes. This shameless hack restores the old behavior of ensuring the config file actually exists before mkdiring its counterpart directory. Now I can rmdir ../compile/D and it will stay dead, after my fingers keep sabotaging me with 'config D<tab><enter>'. (Some of my kernel names started with D, which used to be 1-character unique and my fingers knew this very well...) Notes: svn path=/head/; revision=152937
* Tell Rx radiotap that hardware leaves FCS at the end of the frame.Damien Bergamini2005-11-291-1/+1
| | | | | | | Obtained from: NetBSD (drochner@) Notes: svn path=/head/; revision=152936
* Sync with ural:Damien Bergamini2005-11-292-18/+19
| | | | | | | | o Send management frames at the lowest possible rate. o Cosmetic tweaks. Notes: svn path=/head/; revision=152935
* Use usbd_clear_endpoint_stall_async() instead of usbd_clear_endpoint_stall()Damien Bergamini2005-11-291-2/+2
| | | | | | | | | in Tx/Rx callbacks. Obtained from: NetBSD Notes: svn path=/head/; revision=152934
* o Send management frames at the lowest possible rate.Damien Bergamini2005-11-293-8/+43
| | | | | | | | | o Include rate in the Rx radiotap code. o Fix RSSI value in the Rx path. o Minor tweaks. Notes: svn path=/head/; revision=152933
* The bridge is capable of sending broadcast packets so enable IFF_BROADCASTAndrew Thompson2005-11-291-1/+1
| | | | | | | Requested by: des Notes: svn path=/head/; revision=152932
* Fix the ata_composite/ata_request leak when using RAID0+1.Søren Schmidt2005-11-292-9/+18
| | | | | | | | | Submitted by: Michael Butler Minor changes to fit ATA style by me. Notes: svn path=/head/; revision=152931
* Let kmod.mk create empty opt_*.h files.Ruslan Ermilov2005-11-291-7/+1
| | | | Notes: svn path=/head/; revision=152930
* Document removal of nodev mount option.Craig Rodrigues2005-11-291-0/+5
| | | | | | | Requested by: gleb Notes: svn path=/head/; revision=152929
* obey opt_inet6.h and opt_ipsec.h in kernel build directory.Hajimu UMEMOTO2005-11-293-3/+17
| | | | | | | Requested by: hrs Notes: svn path=/head/; revision=152928
* - We don't install USD docs for games anymore since the games with docsJohn Baldwin2005-11-291-8/+2
| | | | | | | | | | (trek) aren't in the base system anymore. - dm(8) isn't in the base system anymore either, so don't xref it either. Submitted by: Björn König (2) Notes: svn path=/head/; revision=152927
* Remove references to rdist(1) and friends.John Baldwin2005-11-291-18/+0
| | | | | | | Submitted by: Björn König Notes: svn path=/head/; revision=152926
* - Axe the PARTITIONING and IOCTLS section as this has been made obsoleteJohn Baldwin2005-11-291-111/+5
| | | | | | | | | | | | now that all that stuff has been abstracted out of the disk drivers with GEOM. - Reference bsdlabel(8) rather than disklabel(8). Ok'd by: phk, scottl (1) Submitted by: Björn König (2) Notes: svn path=/head/; revision=152925
* Correct xref to systat(1) which was mispelled as ststat(1) in 1.5.John Baldwin2005-11-291-1/+1
| | | | | | | Submitted by: Björn König bkoenig at cs dot tu-berlin dot de Notes: svn path=/head/; revision=152924
* We couldn't specify the rule for filtering tunnel traffic since anHajimu UMEMOTO2005-11-292-16/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IPv6 support was committed: - Stop treating `ip' and `ipv6' as special in `proto' option as they conflict with /etc/protocols. - Disuse `ipv4' in `proto' option as it is corresponding to `ipv6'. - When protocol is specified as numeric, treat it as it is even it is 41 (ipv6). - Allow zero for protocol as it is valid number of `ip'. Still, we cannot specify an IPv6 over an IPv4 tunnel like before such as: pass ipv6 from any to any But, now, you can specify it like: pass ip4 from any to any proto ipv6 PR: kern/89472 Reported by: Ga l Roualland <gael.roualland__at__dial.oleane.com> MFC after: 1 week Notes: svn path=/head/; revision=152923
* We do nothing with returned error value, so just remove it.Pawel Jakub Dawidek2005-11-291-3/+2
| | | | Notes: svn path=/head/; revision=152922
* Catch up with ip_dummynet.h rev. 1.38 and fix build.Gleb Smirnoff2005-11-291-2/+2
| | | | Notes: svn path=/head/; revision=152921