| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Notes:
svn path=/head/; revision=119321
|
| |
|
|
|
|
|
|
|
|
|
|
| |
mac_prepare() APIs.
Add a HISTORY section.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Notes:
svn path=/head/; revision=119320
|
| |
|
|
|
|
|
|
| |
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Notes:
svn path=/head/; revision=119317
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the default label support in /etc/mac.conf. Rather than maintain
each default label type in an explicit global variable in mac.c,
keep a list of defaults loaded from the configuration file.
Generalize the parsing so that we support both the older:
default_file_labels foo
default_ifnet_labels foo
default_process_labels foo
And also a new:
default_labels file foo
default_labels ifnet foo
default_labels process foo
We now accept arbitrary object classes in the first argument. If
the same object is specified more than once, we discard the
earlier definition in favor of the later one.
Add a new API, mac_prepare_type(), which accepts a mac_t to
prepare, as well as an object name in the second argument, which
will pull a default label set for the object out of the
configuration loaded by mac_init_internal(). This permits the libc
to adapt to new objects known about by applications but not by libc
at compile-time.
Also liberalize the error handling a bit: if we're using implicit
initialization (i.e., the application didn't explicitly initialize
the MAC code), ignore syntax errors and only use valid lines. In
the future, we may want to add explicit warnings and do this a
bit more consistently.
While here, add support for a MAC_CONFFILE environmental variable,
which may be used to specify an alternative mac.conf configuration
file if the application isn't running with modified privilege
(issetugid()).
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Notes:
svn path=/head/; revision=119314
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gethostname()'s old and new signatures without requiring a library
bump. Note that programs which called gethostname() with a negative
argument were already broken, since the same type conversion was done
by the old implementation. Add a note in the Makefile so that whoever
next bumps the libc revision will delete the kluge at the same time
(as it will no longer be necessary). This is only operative on 64-bit
platforms.
Submitted by: marcel
Notes:
svn path=/head/; revision=119151
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when the buffer is not long enough to hold the current host name.
POSIX does not standardize error returns for gethostname(), so it
doesn't matter which one we use, but ENAMETOOLONG is at least a little
more intuitive, and mi suggests the existence of prior art. I've been
running with this change for a while on my home machine with no
effect. At the same time, I've updated the prototype for
gethostname() to use the correct standard type (size_t) for the
namelen argument.
All of the in-tree callers fall into one of the following categories:
1) Call perror() or equivalent when gethostname() fails.
2) Ignore gethostname()'s return value entirely, potentially resulting
in data corruption if the buffer is too small.
3) Fall back to a (possibly sensible) default value if gethostname()
fails.
Many of the callers I examined shows signs of confusion about the
correct sizing of the host name buffer. gethostname(3) now has more
information about this, as well as updated standards information.
PR: 48114
Submitted by: mi (in part)
Notes:
svn path=/head/; revision=119140
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119071
|
| |
|
|
|
|
|
|
|
| |
binaries in /bin and /sbin installed in /lib. Only the versioned files
reside in /lib, the .so symlink continues to live /usr/lib so the
toolchain doesn't need to be modified.
Notes:
svn path=/head/; revision=119017
|
| |
|
|
|
|
|
| |
mangling and creates an .ent directive with the mangled name.
Notes:
svn path=/head/; revision=118997
|
| |
|
|
|
|
|
|
|
| |
libkse. Tested under libc_r, libkse, libthr.
Reviewed by: deischen
Notes:
svn path=/head/; revision=118988
|
| |
|
|
|
|
|
|
|
|
| |
`data' parameter is not ignored; if non-zero, it specifies a signal
number to be delivered to the traced process.
MFC after: 1 day
Notes:
svn path=/head/; revision=118780
|
| |
|
|
|
|
|
|
|
|
|
| |
PR: kern/42426, standards/54223
Obtained from: NetBSD
Reviewed by: jake, alc
Approved by: jake (mentor)
MFC after: 2 weeks
Notes:
svn path=/head/; revision=118773
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- All those diffs to syscalls.master for each architecture *are*
necessary. This needed clarification; the stub code generation for
mlockall() was disabled, which would prevent applications from
linking to this API (suggested by mux)
- Giant has been quoshed. It is no longer held by the code, as
the required locking has been pushed down within vm_map.c.
- Callers must specify VM_MAP_WIRE_HOLESOK or VM_MAP_WIRE_NOHOLES
to express their intention explicitly.
- Inspected at the vmstat, top and vm pager sysctl stats level.
Paging-in activity is occurring correctly, using a test harness.
- The RES size for a process may appear to be greater than its SIZE.
This is believed to be due to mappings of the same shared library
page being wired twice. Further exploration is needed.
- Believed to back out of allocations and locks correctly
(tested with WITNESS, MUTEX_PROFILING, INVARIANTS and DIAGNOSTIC).
PR: kern/43426, standards/54223
Reviewed by: jake, alc
Approved by: jake (mentor)
MFC after: 2 weeks
Notes:
svn path=/head/; revision=118771
|
| |
|
|
|
|
|
| |
Reorganize historic #ifdef section
Notes:
svn path=/head/; revision=118731
|
| |
|
|
|
|
|
| |
case-sensitive, and MSKANJI does not work.
Notes:
svn path=/head/; revision=118726
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118725
|
| |
|
|
|
|
|
| |
one occurrence of GB 18030 should have been 11383.
Notes:
svn path=/head/; revision=118723
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118722
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118721
|
| |
|
|
|
|
|
| |
and to mbsinit(3) while I'm at it.
Notes:
svn path=/head/; revision=118719
|
| |
|
|
|
|
|
| |
need to be fleshed out a little, especially big5(5).
Notes:
svn path=/head/; revision=118718
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
didn't provide a constant for one of them (non-IEEE denormal trap),
in an attempt to not support it probably, it's not we are left with
the lower 5 bits.
o Properly mask the passed or returned fp_except_t. Not doing so
causes instant core dumps by trying to write an invalid value to
ar.fpsr. Now that we're masking, stop using exclusive-or to invert
bits.
This fixes the illegal instruction fault encountered when building
mozilla.
Notes:
svn path=/head/; revision=118696
|
| |
|
|
|
|
|
| |
Reviewed by: marcel
Notes:
svn path=/head/; revision=118687
|
| |
|
|
|
|
|
|
|
| |
PR: standards/54634
Reviewed by: das
Approved by: jake (mentor)
Notes:
svn path=/head/; revision=118684
|
| |
|
|
|
|
|
| |
anymore. This also fixes long line bugs caused by the lengthy URLs :-)
Notes:
svn path=/head/; revision=118670
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118669
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o fix the len argument of memcmp(3) to be the size of the node field
of the uuid structure, not the size of the uuid structure itself.
We're comparing the node fields...
o uuid_compare(3) is specified to return -1, 0 or 1, depending on
the outcome of the comparison. memcmp(3) returns the difference
between the first differing bytes. Hence, we cannot ever return
the return value of memcmp(3) as-is.
PR: standards/55370
Submitted by: Konstantin Oznobihin <bork@rsu.ru>
Notes:
svn path=/head/; revision=118668
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118655
|
| |
|
|
|
|
|
|
| |
and to simplify things. This is only valid until we start supporting
state-dependent encodings.
Notes:
svn path=/head/; revision=118595
|
| |
|
|
|
|
|
| |
as a wrapper around wcsrtombs().
Notes:
svn path=/head/; revision=118593
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118591
|
| |
|
|
|
|
|
|
|
|
|
|
| |
wctob() in terms of wcrtomb() instead of sputrune(). There should be
no functional differences, but there may be a small performance hit
because we make an extra function call.
The aim here is to have as few functions as possible calling
s{get,put}rune() to make it easier to remove them in the future.
Notes:
svn path=/head/; revision=118589
|
| |
|
|
|
|
|
| |
can return EALREADY for a socket in blocking mode as well.
Notes:
svn path=/head/; revision=118545
|
| |
|
|
|
|
|
|
| |
Submitted by: Brian Buchanan of nCircle, Inc.
Tested on: i386 and sparc64
Notes:
svn path=/head/; revision=118471
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Also change "Auto mode" to use a "special" value
instead of 0, and define and document it.
I had thought libpthread had already been switched to use auto mode but
it appears that patch hasn't been committed yet.
Discussed with: Davidxu
Notes:
svn path=/head/; revision=118440
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118396
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118378
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118376
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that we can flush the register stack prior to entering the kernel.
This avoids having dirty registers and saves us from having to
manually write them to the backing store from within the kernel.
In that respect, flushing the RSE is both functionally required as
well as performance optimal.
On average we had 18 dirty registers when getcontext(2) was called
from libthr. Since libthr does not switch back to a context created
by getcontext(2), not having dealt with the dirty registers was
harmless.
Notes:
svn path=/head/; revision=118332
|
| |
|
|
|
|
|
|
|
|
| |
on the corresponding .proc directive, or the .endp must not have a
name at all.
While here, remove an artificial dependency in Ovfork.S by performing
manual register renaming.
Notes:
svn path=/head/; revision=118330
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118248
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118247
|
| |
|
|
|
|
|
| |
Submitted by: julian
Notes:
svn path=/head/; revision=118243
|
| |
|
|
|
|
|
|
| |
comment says and don't write the first 3 arguments to FRAME_TRAPARG_*
as they are specific to sigframes.
Notes:
svn path=/head/; revision=118192
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118153
|
| |
|
|
|
|
|
|
| |
PR: 51729
Submitted by: Kang Liu <liukang@bjpu.edu.cn>
Notes:
svn path=/head/; revision=118146
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
almost identical.
* Merge strchr(3) and strrchr(3) to strchr(3) since the two functions
are almost identical.
* Make the wording of index(3) and strchr(3) more similar.
* mdoc(7) cleanup.
Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself
PR: docs/32054
Reviewed by: ru
Approved by: ceri (mentor)
Notes:
svn path=/head/; revision=118134
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118058
|
| |
|
|
|
|
|
|
|
| |
switching anymore, so there's no need to save and restore GP. This
change breaks threaded applications linked against libc_r. Pull the
tier 2 card again: relink. This will link against libthr instead.
Notes:
svn path=/head/; revision=118034
|
| |
|
|
|
|
|
| |
Spotted by: GCC
Notes:
svn path=/head/; revision=118011
|