| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Tested on: SMP
Notes:
svn path=/head/; revision=119700
|
| |
|
|
|
|
|
|
|
| |
only needed symbols from libc_pic is not working on sparc64.
Requested by: jake
Notes:
svn path=/head/; revision=119693
|
| |
|
|
|
|
|
|
|
|
|
| |
better represent failures of special files accessed over NFS.
Approved by: schweikh (mentor)
Reviewed by: bde (as a description)
MFC after: 6 weeks
Notes:
svn path=/head/; revision=119688
|
| |
|
|
|
|
|
|
|
| |
used, and refer to <osreldate.h> to get userland date.
Submitted by: ru
Notes:
svn path=/head/; revision=119654
|
| |
|
|
|
|
|
|
|
|
| |
ENOENT instead.
Reported by: "Kenneth D. Merry" <ken@kdm.org>
Submitted by: Bryan Liesner <bleez@comcast.net>
Notes:
svn path=/head/; revision=119588
|
| |
|
|
|
|
|
|
|
| |
PR: 50945
Submitted by: Rene de Vries <rene@tunix.nl>
Reminded by: jmallett
Notes:
svn path=/head/; revision=119581
|
| |
|
|
|
|
|
| |
Reviewed by: davidxu
Notes:
svn path=/head/; revision=119577
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See e.g. nfsclient/nfs_vnops.c
static int
nfs_read(struct vop_read_args *ap)
{
struct vnode *vp = ap->a_vp;
if (vp->v_type != VREG)
return (EPERM);
return (nfs_bioread(vp, ap->a_uio, ap->a_ioflag, ap->a_cred));
}
Approved by: schweikh (mentor)
MFC after: 6 weeks
Notes:
svn path=/head/; revision=119570
|
| |
|
|
|
|
|
| |
integer arithmetic.
Notes:
svn path=/head/; revision=119567
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119557
|
| |
|
|
|
|
|
|
|
|
| |
NO_TOOLCHAIN skips Compilers and Binutils
NO_USB skips USB stuff
NO_VINUM skips Vinum stuff
NO_ACPI skips ACPI stuff
Notes:
svn path=/head/; revision=119553
|
| |
|
|
|
|
|
|
|
| |
the "BARF 360" ccd(4) user's experience.
Submitted by: rwatson
Notes:
svn path=/head/; revision=119532
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119508
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119492
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
in real world.
Reviewed by: deischen
Notes:
svn path=/head/; revision=119249
|
| |
|
|
|
|
|
|
|
|
|
|
| |
critical region, we wrap some syscalls for thread cancellation point, and
when syscalls returns, we call _thr_leave_cancellation_point, at the time
if a signal comes in, it would be buffered, and when the thread leaves
_thr_leave_cancellation_point, buffered signals will be processed, to avoid
messing up normal syscall errno, we should save and restore errno around
signal handling code.
Notes:
svn path=/head/; revision=119177
|
| |
|
|
|
|
|
|
|
|
| |
destroy thread-specific data. Display a warning when thread
specific data remains after PTHREAD_DESTRUCTOR_ITERATIONS.
Reviewed by: davidxu
Notes:
svn path=/head/; revision=119154
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
open) rather than 150 (opening connection). There's no reason why we
shouldn't accept that.
PR: misc/42172
MFC in: 3 days
Notes:
svn path=/head/; revision=119123
|
| |
|
|
|
|
|
| |
Reviewed by: deischen
Notes:
svn path=/head/; revision=119117
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119099
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119071
|
| |
|
|
|
|
|
|
|
| |
pthread_exit in main() without creating any thread.
Tessted by: deischen
Notes:
svn path=/head/; revision=119064
|
| |
|
|
|
|
|
|
|
|
|
|
| |
yet, so we can protect some locking code from being interrupted by signal
handling. When KSE mode is turned on, reset the thread flag to scope process
except we are running in 1:1 mode which we needn't turn it off.
Also remove some unused member variables in structure kse.
Tested by: deischen
Notes:
svn path=/head/; revision=119063
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119029
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119002
|
| |
|
|
|
|
|
| |
mangling and creates an .ent directive with the mangled name.
Notes:
svn path=/head/; revision=118997
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118989
|
| |
|
|
|
|
|
|
|
| |
libkse. Tested under libc_r, libkse, libthr.
Reviewed by: deischen
Notes:
svn path=/head/; revision=118988
|
| |
|
|
|
|
|
|
|
| |
Don't free them, so some code can still reference them.
Reviewed by: deischen
Notes:
svn path=/head/; revision=118985
|
| |
|
|
|
|
|
| |
a key is less than 0.
Notes:
svn path=/head/; revision=118984
|
| |
|
|
|
|
|
|
|
| |
have execute permissions. Run "perl verify" instead. Replace all
occurences of the hardcoding of ./verify with $(VERIFY) to allow
it to be overridden as well.
Notes:
svn path=/head/; revision=118854
|
| |
|
|
|
|
|
| |
time.
Notes:
svn path=/head/; revision=118850
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118844
|
| |
|
|
|
|
|
| |
Reviewed by: deischen, julian
Notes:
svn path=/head/; revision=118817
|
| |
|
|
|
|
|
|
|
|
| |
`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
|
| |
|
|
|
|
|
|
|
| |
signal can causes process to exit.
Reviewed by: deischen
Notes:
svn path=/head/; revision=118748
|
| |
|
|
|
|
|
| |
uninitialize rtld lock after thread mode shutdown.
Notes:
svn path=/head/; revision=118747
|
| |
|
|
|
|
|
|
|
|
|
| |
otherwise masks all signals until fork() returns, in child process,
we reset library state before restoring signal masks until we reach
a safe to point.
Reviewed by: deischen
Notes:
svn path=/head/; revision=118746
|
| |
|
|
|
|
|
|
|
| |
on writer lock. This is first cut at rwlock for rtld.
Submitted by: desichen
Notes:
svn path=/head/; revision=118745
|
| |
|
|
|
|
|
| |
Reviewed by: deischen
Notes:
svn path=/head/; revision=118744
|
| |
|
|
|
|
|
| |
Reorganize historic #ifdef section
Notes:
svn path=/head/; revision=118731
|