summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Markup fixes.ru2005-01-152-19/+27
|
* Add the bus_dmamap_load_mbuf_sg() function to sparc64.scottl2005-01-153-15/+99
|
* Add a file missed in the previous commit:das2005-01-151-0/+5
| | | | | | Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc. The purpose of having a separate file involved an abandoned scheme that would have kept contrib/gdtoa out of the include path for the rest of libc.
* Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc.das2005-01-1514-38/+20
| | | | | The purpose of having a separate file involved an abandoned scheme that would have kept contrib/gdtoa out of the include path for the rest of libc.
* amd64 assembly versions of sqrt(), lrint(), and llrint() using SSE2.das2005-01-154-0/+77
|
* Most libm routines depend on the rounding mode and/or set exceptiondas2005-01-151-31/+29
| | | | | | | | | | | | | | flags, so they are not pure. Remove the __pure2 annotation from them. I believe that the following routines and their float and long double counterparts are the only ones here that can be __pure2: copysign is* fabs finite fmax fmin fpclassify ilogb nan signbit When gcc supports FENV_ACCESS, perhaps there will be a new annotation that allows the other functions to be considered pure when FENV_ACCESS is off. Discussed with: bde
* Add a cast to fix a warning.scottl2005-01-151-1/+1
|
* Note the deprecation of the abbreviation of a number of ipfw options.brooks2005-01-151-0/+9
|
* Deprecate unmaintainable uses of strncmp to implement abbreviations.brooks2005-01-151-60/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit replaces those with two new functions that simplify the code and produce warnings that the syntax is deprecated. A small number of sensible abbreviations may be explicitly added based on user feedback. There were previously three types of strncmp use in ipfw: - Most commonly, strncmp(av, "string", sizeof(av)) was used to allow av to match string or any shortened form of it. I have replaced this with a new function _substrcmp(av, "string") which returns 0 if av is a substring of "string", but emits a warning if av is not exactly "string". - The next type was two instances of strncmp(av, "by", 2) which allowed the abbreviation of bytes to "by", "byt", etc. Unfortunately, it also supported "bykHUygh&*g&*7*ui". I added a second new function _substrcmp2(av, "by", "bytes") which acts like the strncmp did, but complains if the user doesn't spell out the word "bytes". - There is also one correct use of strncmp to match "table(" which might have another token after it without a space. Since I changed all the lines anyway, I also fixed the treatment of strncmp's return as a boolean in many cases. I also modified a few strcmp cases as well to be fully consistent.
* Braino. Revert rev 1.50.das2005-01-151-0/+7
| | | | Pointy hat to: das
* Remove numerous references to VAX floating-point and the setting ofdas2005-01-1412-204/+44
| | | | | | errno, replacing them with a discussion of IEEE exceptions where appropriate. Cross-reference fenv(3) whenever exceptions are mentioned.
* Fix a problem reported by Pierre Beyssac. Sometinmes when ndis_get_info()wpaul2005-01-144-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls MiniportQueryInformation(), it will return NDIS_STATUS_PENDING. When this happens, ndis_get_info() will sleep waiting for a completion event. If two threads call ndis_get_info() and both end up having to sleep, they will both end up waiting on the same wait channel, which can cause a panic in sleepq_add() if INVARIANTS are turned on. Fix this by having ndis_get_info() use a common mutex rather than using the process mutex with PROC_LOCK(). Also do the same for ndis_set_info(). Note that Pierre's original patch also made ndis_thsuspend() use the new mutex, but ndis_thsuspend() shouldn't need this since it will make each thread that calls it sleep on a unique wait channel. Also, it occured to me that we probably don't want to enter MiniportQueryInformation() or MiniportSetInformation() from more than one thread at any given time, so now we acquire a Windows spinlock before calling either of them. The Microsoft documentation says that MiniportQueryInformation() and MiniportSetInformation() are called at DISPATCH_LEVEL, and previously we would call KeRaiseIrql() to set the IRQL to DISPATCH_LEVEL before entering either routine, but this only guarantees mutual exclusion on uniprocessor machines. To make it SMP safe, we need to use a real spinlock. For now, I'm abusing the spinlock embedded in the NDIS_MINIPORT_BLOCK structure for this purpose. (This may need to be applied to some of the other routines in kern_ndis.c at a later date.) Export ntoskrnl_init_lock() (KeInitializeSpinlock()) from subr_ntoskrnl.c since we need to use in in kern_ndis.c, and since it's technically part of the Windows kernel DDK API along with the other spinlock routines. Use it in subr_ndis.c too rather than frobbing the spinlock directly.
* Set math_errhandling to MATH_ERREXCEPT. Now that we have fenv.h, wedas2005-01-141-1/+1
| | | | | | basically support this, subject to gcc's lack of FENV_ACCESS support. In any case, the previous setting of math_errhandling to 0 is not allowed by POSIX.
* Remove some #if 0'd code.das2005-01-141-7/+0
|
* Markup fixes.ru2005-01-141-6/+6
|
* CAM will sometimes remove a disk again even before it finished beingphk2005-01-141-2/+4
| | | | | initialized. We already cancel the pending events but we need to not dereference the geom pointer which never got set different from NULL.
* Bah, another whitespace fix.jhb2005-01-141-1/+1
|
* Remove an extraneous space.jhb2005-01-141-1/+1
|
* Markup fixes.ru2005-01-141-50/+95
|
* Remove redundant code to drop per-thread debug register state fromjhb2005-01-142-14/+1
| | | | | cpu_exit() as this is already performed in cpu_thread_exit() and the debug state is per-thread rather than per-process.
* - Remove some OBE comments regarding cpu_exit(). cpu_exit() is no longerjhb2005-01-144-21/+6
| | | | | | | | the last action of kern_exit(). Instead, it is a MD callout to cleanup per-process state during exit. - Add notes of concern to Alpha and ia64 about the possible need to drop fp state in cpu_thread_exit() rather than in cpu_exit() since it is per-thread state rather than per-process.
* Drop the 'active-' prefix from the polarity printf to be consistent withjhb2005-01-141-1/+1
| | | | the rest of the interrupt code.
* Give up on trying to please everyone and restore 1.64 with regards totrhodes2005-01-141-1/+0
| | | | dealing with sudo users.
* Markup fixes.ru2005-01-141-11/+22
|
* NULL-terminate the . and .. directory entries. Apparently some tools ignorescottl2005-01-141-0/+2
| | | | | | d_namlen and assume that d_name is null-terminated. Submitted by: Andriy Gapon
* Replace the min() macro with a test that doesn't truncate the 64-bit valuesscottl2005-01-141-1/+4
| | | | that are used. Thanks to Bruce Evans for pointing this out.
* Improve readability for the recently introduced changes by havingdelphij2005-01-141-4/+4
| | | | | | their sizeof(*p) instead of explicitlly specifying their types. Suggested by: nectar
* Fix the pbio include file installation process and thedds2005-01-144-8/+17
| | | | | | | corresponding documentation. Noticed by: ru Reviewed by: ru
* make umtx timeout relative so userland can select different clock type,davidxu2005-01-142-56/+55
| | | | | e.g, CLOCK_REALTIME or CLOCK_MONOTONIC. merge umtx_wait and umtx_timedwait into single function.
* Use a better name than underscore-tmpfile for better representationdelphij2005-01-141-5/+5
| | | | | | of the meaning. Suggested by: stefanf
* Fixed sparc64 LINT build.ru2005-01-141-0/+1
|
* 64-bit clean + WARNS=6:delphij2005-01-144-27/+31
| | | | | | | | | | | | | | | | | - Convert the (char *) cast+cast backs magic to memcpy(3). Without this, the resulting code is potentially risky with higher optimization levels. - Avoid same name when calling local variables, as well as global symbols. This reduces confusion for both human and compiler. - Add necessary casts, consts - Use new style function defination. - Minor style.Makefile(5) tweak - Bump WARNS?= from 0 to 6 ** for the aout code: changes are intentionally limited to ease maintaince.
* Raise & drop IFF_RUNNING upon receival of netgraph flow controlglebius2005-01-141-0/+12
| | | | messages.
* Consider IFF_UP as "administratively up" flag, and IFF_RUNNING asglebius2005-01-141-2/+2
| | | | "operationally up" flag. Hence this, revert 1.35 to use IFF_RUNNING.
* Markup and grammar fixes.ru2005-01-141-5/+7
|
* Markup nit.ru2005-01-141-1/+1
|
* Tiny markup fixes.ru2005-01-141-14/+14
|
* Markup fixes.ru2005-01-141-16/+16
|
* Markup fixes.ru2005-01-141-9/+13
|
* Typo fix.keramida2005-01-141-1/+1
|
* This commit was generated by cvs2svn to compensate for changes in r140229,ru2005-01-141-0/+2
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Pull up a vendor fix for a problem exposed by tr/tr.1,v 1.30.ru2005-01-141-0/+2
| |
* | Markup fixes.ru2005-01-141-10/+16
| |
* | Markup fixes.ru2005-01-141-29/+34
| |
* | Fix off-by-one error.stefanf2005-01-141-1/+1
| |
* | Tiny markup nits.ru2005-01-144-22/+23
| |
* | o Clean up interface between ip_fw_chk() and its callers:glebius2005-01-145-89/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ip_fw_chk() returns action as function return value. Field retval is removed from args structure. Action is not flag any more. It is one of integer constants. - Any action-specific cookies are returned either in new "cookie" field in args structure (dummynet, future netgraph glue), or in mbuf tag attached to packet (divert, tee, some future action). o Convert parsing of return value from ip_fw_chk() in ipfw_check_{in,out}() to a switch structure, so that the functions are more readable, and a future actions can be added with less modifications. Approved by: andre MFC after: 2 months
* | Eliminate unused and constant arguments to smbfs_vinvalbuf()phk2005-01-144-26/+13
| |
* | Eliminate constant and unused arguments to nwfs_vinvalbuf()phk2005-01-144-25/+14
| |
* | Eliminate unused and unnecessary "cred" argument from vinvalbuf()phk2005-01-1413-27/+25
| |
OpenPOWER on IntegriCloud