| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
to generate 3bytes longer opcode.
Notes:
svn path=/head/; revision=173244
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
is also implemented in glibc and is used by a number of existing
applications (mysql, firefox, etc).
This mutex type is a default mutex with the additional property that
it spins briefly when attempting to acquire a contested lock, doing
trylock operations in userland before entering the kernel to block if
eventually unsuccessful.
The expectation is that applications requesting this mutex type know
that the mutex is likely to be only held for very brief periods, so it
is faster to spin in userland and probably succeed in acquiring the
mutex, than to enter the kernel and sleep, only to be woken up almost
immediately. This can help significantly in certain cases when
pthread mutexes are heavily contended and held for brief durations
(such as mysql).
Spin up to 200 times before entering the kernel, which represents only
a few us on modern CPUs. No performance degradation was observed with
this value and it is sufficient to avoid a large performance drop in
mysql performance in the heavily contended pthread mutex case.
The libkse implementation is a NOP.
Reviewed by: jeff
MFC after: 3 days
Notes:
svn path=/head/; revision=173154
|
| |
|
|
|
|
|
| |
author (quite some time ago).
Notes:
svn path=/head/; revision=173127
|
| |
|
|
|
|
|
| |
(_c < 0 || _c >= 128) to (_c & ~0x7F)
Notes:
svn path=/head/; revision=173084
|
| |
|
|
|
|
|
|
| |
hardcode 128 here instead, since default locale never define anything
above 127 char.
Notes:
svn path=/head/; revision=173053
|
| |
|
|
|
|
|
| |
some overlook from me.
Notes:
svn path=/head/; revision=172630
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for wide characters locales in the argument range >= 0x80 - they may
return false positives.
Example 1: for UTF-8 locale we currently have:
iswspace(0xA0)==1 and isspace(0xA0)==1
(because iswspace() and isspace() are the same code)
but must have
iswspace(0xA0)==1 and isspace(0xA0)==0
(because there is no such character and all others in the range
0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte
range because our internal wchar_t representation for UTF-8 is UCS-4).
Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may
return false positives (must be 0).
(because iswalpha() and isalpha() are the same code)
This change address this issue separating single byte and wide ctype
and also fix iswascii() (currently iswascii() is broken for
arguments > 0xFF).
This change is 100% binary compatible with old binaries.
Reviewied by: i18n@
Notes:
svn path=/head/; revision=172619
|
| |
|
|
|
|
|
| |
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=172397
|
| |
|
|
|
|
|
|
|
|
|
|
| |
providers with limited physical storage and add physical storage as
needed.
Submitted by: Ivan Voras
Sponsored by: Google Summer of Code 2006
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=172302
|
| |
|
|
|
|
|
|
|
|
| |
longer exist in libc.
Requested by: Craig Rodrigues
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171954
|
| |
|
|
|
|
|
|
|
|
|
| |
required for arm.
Tested on: arm, i386, amd64
Approved by: re (rwatson)
MFC after: 1 week
Notes:
svn path=/head/; revision=171680
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NET_NEEDS_GIANT, which will shortly be removed. This is done in a
away that it may be easily reattached to the build before 7.1 if
appropriate locking is added. Specifics:
- Don't install netatm include files
- Disconnect netatm command line management tools
- Don't build libatm
- Don't include ATM parts in rescue or sysinstall
- Don't install sample configuration files and documents
- Don't build kernel support as a module or in NOTES
- Don't build netgraph wrapper nodes for netatm
This removes the last remaining consumer of NET_NEEDS_GIANT.
Reviewed by: harti
Discussed with: bz, bms
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171453
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sys/i4b/include/ so they will be available to all architectures
once I4B compiles on those.
I4B header files are now installed in include/i4b/ and no longer
in include/machine/.
For now we still install the headers for i386 only.
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171271
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.
Convert all calls to POSIX from historic BSD API:
- unsetenv returns an int.
- putenv takes a char * instead of const char *.
- putenv no longer makes a copy of the input string.
- errno is set appropriately for POSIX. Exceptions involve bad environ
variable and internal initialization code. These both set errno to
EFAULT.
Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit. A few I re-wrote to use setenv()
instead of putenv().
New regression module for tools/regression/environ to test these
functions. It also can be used to test the performance.
Bump __FreeBSD_version to 700050 due to API change.
PR: kern/99826
Approved by: wes
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171195
|
| |
|
|
|
|
|
|
|
|
|
| |
This commit includes all remaining changes for the time being including
user space updates.
Submitted by: bz
Approved by: re
Notes:
svn path=/head/; revision=171135
|
| |
|
|
|
|
|
|
|
|
| |
and it is seriously broken.
Discussed on: freebsd-arch@
Approved by: re (mux)
Notes:
svn path=/head/; revision=171023
|
| |
|
|
|
|
|
|
|
| |
this is common on other platforms.
Reported by: pointyhat via kris
Notes:
svn path=/head/; revision=170715
|
| |
|
|
|
|
|
|
|
| |
available on a lot of platforms, as well as libkern for years.
Submitted by: "MQ"
Notes:
svn path=/head/; revision=170548
|
| |
|
|
|
|
|
|
| |
Obtained from: NetBSD
Spotted by: njl
Notes:
svn path=/head/; revision=170547
|
| |
|
|
| |
Notes:
svn path=/head/; revision=170527
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
el.c 1.44, el.h 1.17, editline.3 1.53, histedit.h 1.31:
# add EL_GETFP, and EL_SETFP.
el.c 1.42, term.c 1.46, term.h 1.18, editline.3 1.52, histedit.h 1.29:
# - Add more readline functions, enough for gdb-6.5
# - Make el_get varyadic, and implement EL_GETTC.
# - XXX: the EL_SETTC api will change in the future.
Note: The latter change breaks the ABI of the el_get() function.
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=170511
|
| |
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=170244
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Not because I admit they are technically wrong and not because of bug
reports (I receive nothing). But because I surprisingly meets so
strong opposition and resistance so lost any desire to continue that.
Anyone who interested in POSIX can dig out what changes and how
through cvs diffs.
Notes:
svn path=/head/; revision=169177
|
| |
|
|
|
|
|
| |
(also IEEE Std 1003.1-2001)
Notes:
svn path=/head/; revision=169110
|
| |
|
|
|
|
|
|
| |
Requested by: ache
Explained how by: ru
Notes:
svn path=/head/; revision=168677
|
| |
|
|
|
|
|
| |
Repo-copied by: simon
Notes:
svn path=/head/; revision=168606
|
| |
|
|
|
|
|
|
|
|
| |
- Only define SEEK_DATA and SEEK_HOLE in sys/unistd.h when neither
_POSIX_SOURCE nor _XOPEN_SOURCE is defined.
Pointed out by: bde, ache
Notes:
svn path=/head/; revision=168469
|
| |
|
|
|
|
|
|
|
| |
OpenSolaris. For more information please refer to:
http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
Notes:
svn path=/head/; revision=168397
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the restore program to restore all dumped extended attributes.
If the restore is running as root, it will always be able
to restore all extended attributes. If it is not running
as root, it makes a best effort to set them. Using the -v
command line flag or the `verbose' command in interactive
mode will display all the extended attributes being set on
files (and at the end on directories) that are being restored.
It will note any extended attributes that could not be set.
The extended attributes are placed on the dump image immediately
following each file's data. Older versions of restore can work
with the newer dump images. Old versions of restore will
correctly restore the file data and then (silently) skip
over the extended attribute data and proceed to the next file.
This resolves PR 93085 which will be closed once the code
has been MFC'ed.
Note that this code will not compile until these header
files have been updated: <protocols/dumprestore.h> and
<sys/extattr.h>.
PR: bin/93085
Comments from: Poul-Henning Kamp and Robert Watson
MFC after: 3 weeks
Notes:
svn path=/head/; revision=167011
|
| |
|
|
|
|
|
|
| |
Continue to install userland include files in /usr/include/isofs/cd9660
so as not to break userland applications such as libstand.
Notes:
svn path=/head/; revision=166640
|
| |
|
|
|
|
|
|
|
| |
paren to where it belongs.
MFC after: 7 days
Notes:
svn path=/head/; revision=166432
|
| |
|
|
|
|
|
|
|
| |
Static analyzers like FlexeLint complain about it.
MFC after: 7 days
Notes:
svn path=/head/; revision=166431
|
| |
|
|
| |
Notes:
svn path=/head/; revision=166243
|
| |
|
|
| |
Notes:
svn path=/head/; revision=166241
|
| |
|
|
| |
Notes:
svn path=/head/; revision=165828
|
| |
|
|
|
|
|
|
| |
Obtained from: ISC
MFC after: 1 week
Notes:
svn path=/head/; revision=165258
|
| |
|
|
| |
Notes:
svn path=/head/; revision=165230
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
as `packed'.
The C standard leaves the alignment of individual members of a C
struct upto the implementation, so pedantically speaking portable
code cannot assume that the layout of a `struct ar_hdr' in memory
will match its layout in a file. Using a __packed attribute
declaration forces file and memory layouts for this structure to
match.
Submitted by: ru
Notes:
svn path=/head/; revision=164244
|
| |
|
|
|
|
|
|
| |
Reviewed by: glanced at by jhb
Approved by: silence on -arch@ and -standards@
Notes:
svn path=/head/; revision=164184
|
| |
|
|
|
|
|
| |
Sponsored by: home.pl
Notes:
svn path=/head/; revision=163851
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
read requests to its consumer. It has been developed to address
the problem of a horrible read performance of a 64k blocksize FS
residing on a RAID3 array with 8 data components, where a single
disk component would only get 8k read requests, thus effectively
killing disk performance under high load. Documentation will be
provided later. I'd like to thank Vsevolod Lobko for his bright
ideas, and Pawel Jakub Dawidek for helping me fix the nasty bug.
Notes:
svn path=/head/; revision=163048
|
| |
|
|
| |
Notes:
svn path=/head/; revision=163001
|
| |
|
|
|
|
|
| |
MFC after: 1 month
Notes:
svn path=/head/; revision=162117
|
| |
|
|
|
|
|
|
|
|
|
|
| |
PowerPC-based Apple's machines and small utility to do it from
userland modelled after the similar utility in Darwin/OSX.
Only tested on 1.25GHz G4 Mac Mini.
MFC after: 1 month
Notes:
svn path=/head/; revision=160892
|
| |
|
|
|
|
|
|
|
| |
unmangled for C++ programs.
Submitted by: Niklas Sorensson <nik@cs.chalmers.se>
Notes:
svn path=/head/; revision=160056
|
| |
|
|
| |
Notes:
svn path=/head/; revision=158811
|
| |
|
|
|
|
|
|
| |
Make non-standard gl_matchc in the similar fashion as gl_pathc size_t too,
like done in NetBSD & others
Notes:
svn path=/head/; revision=158810
|
| |
|
|
|
|
|
|
|
|
| |
# If you bump SHLIB_MAJOR, see standards/55112.
PR: 55112
Reviewed by: ume
Notes:
svn path=/head/; revision=158808
|
| |
|
|
|
|
|
|
|
| |
arch.
X-MFC after: never
Notes:
svn path=/head/; revision=158791
|
| |
|
|
|
|
|
|
|
| |
too short. This conforms to RFC3493, POSIX and XPG6.
Obtained from: NetBSD
Notes:
svn path=/head/; revision=158790
|