| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/head/; revision=124514
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124482
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124480
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124479
|
| |
|
|
|
|
|
|
| |
PR: 59765
Submitted by: Ryuichiro Imura <imura@ryu16.org>
Notes:
svn path=/head/; revision=123293
|
| |
|
|
|
|
|
|
|
|
|
| |
- CD9660_ICONV, NTFS_ICONV and MSDOSFS_ICONV kernel options
(with corresponding modules).
- kiconv(3) for loadable charset conversion tables support.
Submitted by: Ryuichiro Imura <imura@ryu16.org>
Notes:
svn path=/head/; revision=120492
|
| |
|
|
|
|
|
|
|
| |
Minor code reorganization was required, but the only functional
change was that the first 1024 bytes of output are thrown out
after each reseed, rather than just the initial seed.
Notes:
svn path=/head/; revision=118938
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118732
|
| |
|
|
|
|
|
|
|
|
|
|
| |
on i486's (and probably i386's), but it has had very little effect
since gcc-2.7 or gcc-2.95. With gcc-3.3, it gave a small
pessimization for at least i386's, athlon-xp's and pentium4's, a
small optimization (I think) for pentium1's, and made no difference
for i386's. (movzbl is best for all the later processors, and the
micro-optimization was to stop it being used on i486's.)
Notes:
svn path=/head/; revision=118017
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116189
|
| |
|
|
|
|
|
|
|
|
| |
Change all in-tree consumers to include <sys/limits.h>
Discussed on: standards@
Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
Notes:
svn path=/head/; revision=114216
|
| |
|
|
| |
Notes:
svn path=/head/; revision=111518
|
| |
|
|
|
|
|
| |
clauses was used by mistake.
Notes:
svn path=/head/; revision=111517
|
| |
|
|
|
|
|
|
|
|
| |
so that callers can specify what malloc pool the resulting memory
should come from.
Requested by: phk
Notes:
svn path=/head/; revision=111506
|
| |
|
|
|
|
|
|
|
|
|
|
| |
type M_STRING, now defined in malloc.h. Useful when string parsing
must occur using the kernel strsep() and we want to avoid toasting
the source string.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Notes:
svn path=/head/; revision=111317
|
| |
|
|
|
|
|
| |
Approved by: trb
Notes:
svn path=/head/; revision=111119
|
| |
|
|
|
|
|
|
|
| |
should add more comments explaining which registers hold which variables.
Spotted by: bde
Notes:
svn path=/head/; revision=110725
|
| |
|
|
|
|
|
| |
Reviewed by: bde
Notes:
svn path=/head/; revision=110605
|
| |
|
|
|
|
|
| |
after srandom(1)
Notes:
svn path=/head/; revision=110422
|
| |
|
|
|
|
|
| |
value correlation. Correlation still remains because of algorithm limits.
Notes:
svn path=/head/; revision=110322
|
| |
|
|
|
|
|
|
|
|
| |
at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to
2147483647 after calculation, but this method not works since 2147483647
seed returns to 0 again on the next interation. Instead of after calculation
mapping, map 0 to another value _before_ calculation, so it never stucks.
Notes:
svn path=/head/; revision=110281
|
| |
|
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Notes:
svn path=/head/; revision=109623
|
| |
|
|
|
|
|
| |
especially in troff files.
Notes:
svn path=/head/; revision=108533
|
| |
|
|
|
|
|
| |
Verified by: md5
Notes:
svn path=/head/; revision=106696
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One bug fixed: Use getmicrouptime() to trigger reseeds so that we
cannot be tricked by a clock being stepped backwards.
Express parameters in natural units and with natural names.
Don't use struct timeval more than we need to.
Various stylistic and readability polishing.
Introduce arc4rand(void *ptr, u_int len, int reseed) function which
returns a stream of pseudo-random bytes, observing the automatic
reseed criteria as well as allowing forced reseeds.
Rewrite arc4random() in terms of arc4rand().
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=104900
|
| |
|
|
|
|
|
|
|
| |
allow us to avoid nasty by-hand string parsing stuff in a number of
places in the kernel, reducing the risk of unexpected consequences
for kernel correctness.
Notes:
svn path=/head/; revision=104799
|
| |
|
|
| |
Notes:
svn path=/head/; revision=104667
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
among other things, the DEVFS rule subsystem to match nodes against a
path pattern supplied by the user.
fnmatch.c was repo-copied from src/lib/libc/gen/fnmatch.c, and the
only changes to it are those necessary to make it compile in the
kernel. The relevant parts of fnmatch.h were imported into libkern.h.
Approved by: -arch
Notes:
svn path=/head/; revision=104652
|
| |
|
|
| |
Notes:
svn path=/head/; revision=104568
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103000
|
| |
|
|
|
|
|
|
|
|
| |
instead of including the userland string.h header.
Prompted by: breakage with old string.h from recent machine/types.h fix
Approved by: peter (in principle)
Notes:
svn path=/head/; revision=102281
|
| |
|
|
| |
Notes:
svn path=/head/; revision=100080
|
| |
|
|
| |
Notes:
svn path=/head/; revision=97521
|
| |
|
|
| |
Notes:
svn path=/head/; revision=94401
|
| |
|
|
| |
Notes:
svn path=/head/; revision=92889
|
| |
|
|
| |
Notes:
svn path=/head/; revision=92741
|
| |
|
|
| |
Notes:
svn path=/head/; revision=91826
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):
- bwap16() and bswap32(). These have optimized implementations on some
architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
versa, using a naming scheme like le16toh(), htole16().
These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
conversion (while the normal access functions would if the bus endianess
differs from the CPU endianess).
htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.
Make use of the new functions in a few places where local implementations
of the same functionality existed.
Reviewed by: mike, bde
Tested on alpha by: mike
Notes:
svn path=/head/; revision=91394
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
complexities associated with having MD (asm and inline) versions, and
having to prevent exposure of these functions in other headers that
happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386
Reviewed by: bde, jake, tmm
Notes:
svn path=/head/; revision=90868
|
| |
|
|
|
|
|
|
|
|
|
|
| |
buffer length, determine if the pointer is to a valid string. Currently,
the only check is whether a '\0' appears in the buffer. This is useful
when pulling in a structure from userland that may contain one or more
strings, and validity testing must be performed on elements of the
structure. When copying normal string arguments, copyinstr() is
expected to be used.
Notes:
svn path=/head/; revision=90819
|
| |
|
|
|
|
|
|
| |
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.
Notes:
svn path=/head/; revision=90045
|
| |
|
|
| |
Notes:
svn path=/head/; revision=86170
|
| |
|
|
|
|
|
|
| |
These files have been obsoleted by compiler technology (such as it is
for gcc) for quite some time.
Notes:
svn path=/head/; revision=86104
|
| |
|
|
|
|
|
| |
similarly. Actually, they should be inline on gcc.
Notes:
svn path=/head/; revision=84579
|
| |
|
|
|
|
|
|
| |
arguments. Caveat Emptor. However, the only two consumer of it (cam)
deals with it correctly and preserves the constness.
Notes:
svn path=/head/; revision=83289
|
| |
|
|
| |
Notes:
svn path=/head/; revision=82565
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Decrease reseeding interval from every 64 to every 16384 runs
to reduce entropy usage.
- Add time based reseeding. (Every 5 minutes.)
- Throw away the first 256 words of output as suggested in
"Weaknesses in the Key Scheduling Algorithm of RC4."
Reviewed by: Mark Murray
MFC After: jkh says ok
Notes:
svn path=/head/; revision=82543
|
| |
|
|
| |
Notes:
svn path=/head/; revision=81264
|
| |
|
|
|
|
|
|
| |
Obtained from: OpenBSD
MFC after: 1 week
Notes:
svn path=/head/; revision=80274
|
| |
|
|
|
|
|
|
|
| |
takes from /usr/include. I cannot check them on alpha.. (will try beast)
Briefly looked at by: Warner Losh <imp@harmony.village.org>
Notes:
svn path=/head/; revision=79418
|