| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Approved by: re (implicit)
This commit was manufactured to restore the state of the 8.2-RELEASE image.
|
| |
|
|
|
|
|
|
|
| |
Sync with OpenBSD, primarily better signal and terminal handling.
Obtained from: OpenBSD
Notes:
svn path=/stable/8/; revision=215934
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In current code, statically initialized and destroyed object have
same null value, the code can not distinguish between them, to
fix the problem, now a destroyed object is assigned to a non-null
value, and it will be rejected by some pthread functions.
PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP is changed to number 1, so that
adaptive mutex can be statically initialized correctly.
Notes:
svn path=/stable/8/; revision=214371
|
| |
|
|
|
|
|
|
|
|
|
| |
All the "Minimum Values" (POSIX.1-2008 XBD 13 Headers <limits.h>) are now
correct. These should all be exactly as they are in the specification; the
possibly higher values we support are announced differently.
PR: standards/104743
Notes:
svn path=/stable/8/; revision=213655
|
| |
|
|
| |
Notes:
svn path=/stable/8/; revision=213184
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add basename_r(3) to complement basename(3). basename_r(3) which accepts
a caller-allocated buffer of at least MAXPATHLEN, rather than using a
global buffer.
Note about semantics: while this interface is not POSIXy, there's
another major platform that uses it (Android) and the semantics between
the two platforms are pretty much the same.
Notes:
svn path=/stable/8/; revision=213002
|
| |
|
|
| |
Notes:
svn path=/stable/8/; revision=209974
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Slightly modernize realpath(3).
SUSv4 requires that implementation returns EINVAL if supplied path is NULL,
and ENOENT if path is empty string [1].
Bring prototype in conformance with SUSv4, adding restrict keywords.
Allow the resolved path buffer pointer be NULL, in which case realpath(3)
allocates storage with malloc().
MFC r206898:
Free() is not allowed to modify errno, remove safety brackets around it.
Add small optimization, do not copy a string to the buffer that is
to be freed immediately after.
MFC r206997:
Move realpath(3) prototype to a POSIX section.
MFC r206998:
Add standards section, improve wording, taking into account the handling
of NULL and changed type in declaration.
Notes:
svn path=/stable/8/; revision=207599
|
| |
|
|
|
|
|
|
| |
services. It is enabled by specifying `db' as source of
services in /etc/nsswitch.conf.
Notes:
svn path=/stable/8/; revision=206784
|
| |
|
|
|
|
|
|
|
| |
Remove const'ness from dlerror(3) prototype, for consistency with POSIX.
Approved by: cognet
Notes:
svn path=/stable/8/; revision=205979
|
| |
|
|
|
|
|
|
|
|
| |
Implement sighold, sigignore, sigpause, sigrelse, sigset functions.
MFC r200881 (by cognet):
Don't name parameters.
Notes:
svn path=/stable/8/; revision=203298
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MFC r201512:
Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008.
MFC r201602:
Move scandir(3) and alphasort(3) into XSI namespace.
MFC r201604:
Use thunks to adapt alphasort-like interface to the comparision function
required by qsort() and qsort_r().
MFC r202556 (by ache):
Use strcoll() in opendir() and alphasort(). Remove some comments.
MFC r202572 (by ache):
Revert to using strcmp() for opendir().
MFC r202677 (by ache):
Style.
MFC r202679 (by ache):
Style: rename internal function to opendir_compar().
MFC r202691 (by ache):
For alphasort(3) add reference to strcoll(3).
MFC r202693 (by ache):
Style: reword comment.
Notes:
svn path=/stable/8/; revision=202921
|
| |
|
|
|
|
|
|
|
|
|
| |
Modified locale(1) to be able to show the altmon_X fields and the
[cxX]_fmt's. Also modify the "-k list" option to display only
fields with a certain prefix.
Add the comment "(FreeBSD only)" to the altmonth_x keywords
Notes:
svn path=/stable/8/; revision=198704
|
| |
|
|
|
|
|
|
|
| |
tree breakage.
Approved by: re
Notes:
svn path=/stable/8/; revision=196321
|
| |
|
|
|
|
|
|
|
| |
Requested and tested by: jkim
Reviewed by: kan
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=195745
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
modularize it so that new transports can be created.
Add a transport for SATA
Add a periph+protocol layer for ATA
Add a driver for AHCI-compliant hardware.
Add a maxio field to CAM so that drivers can advertise their max
I/O capability. Modify various drivers so that they are insulated
from the value of MAXPHYS.
The new ATA/SATA code supports AHCI-compliant hardware, and will override
the classic ATA driver if it is loaded as a module at boot time or compiled
into the kernel. The stack now support NCQ (tagged queueing) for increased
performance on modern SATA drives. It also supports port multipliers.
ATA drives are accessed via 'ada' device nodes. ATAPI drives are
accessed via 'cd' device nodes. They can all be enumerated and manipulated
via camcontrol, just like SCSI drives. SCSI commands are not translated to
their ATA equivalents; ATA native commands are used throughout the entire
stack, including camcontrol. See the camcontrol manpage for further
details. Testing this code may require that you update your fstab, and
possibly modify your BIOS to enable AHCI functionality, if available.
This code is very experimental at the moment. The userland ABI/API has
changed, so applications will need to be recompiled. It may change
further in the near future. The 'ada' device name may also change as
more infrastructure is completed in this project. The goal is to
eventually put all CAM busses and devices until newbus, allowing for
interesting topology and management options.
Few functional changes will be seen with existing SCSI/SAS/FC drivers,
though the userland ABI has still changed. In the future, transports
specific modules for SAS and FC may appear in order to better support
the topologies and capabilities of these technologies.
The modularization of CAM and the addition of the ATA/SATA modules is
meant to break CAM out of the mold of being specific to SCSI, letting it
grow to be a framework for arbitrary transports and protocols. It also
allows drivers to be written to support discrete hardware without
jeopardizing the stability of non-related hardware. While only an AHCI
driver is provided now, a Silicon Image driver is also in the works.
Drivers for ICH1-4, ICH5-6, PIIX, classic IDE, and any other hardware
is possible and encouraged. Help with new transports is also encouraged.
Submitted by: scottl, mav
Approved by: re
Notes:
svn path=/head/; revision=195534
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if the new file mode is the same as it was before; however, this
optimization must be disabled for filesystems that support NFSv4 ACLs.
Chmod uses pathconf(2) to determine whether this is the case - however,
pathconf(2) always follows symbolic links, while the 'chmod -h' doesn't.
This change adds lpathconf(3) to make it possible to solve that problem
in a clean way.
Reviewed by: rwatson (earlier version)
Approved by: re (kib)
Notes:
svn path=/head/; revision=195458
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD
Notes:
svn path=/head/; revision=194801
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dace for UPDv4 sockets bound to INADDR_ANY. Move the code to set
IP_RECVDSTADDR/IP_SENDSRCADDR into svc_dg.c, so that both TLI and non-TLI
users will be using it.
Back out my previous commit to mountd. Turns out the problem was affecting
more than one binary so it needs to me addressed in generic rpc code in
libc in order to fix them all.
Reported by: lstewart
Tested by: lstewart
Notes:
svn path=/head/; revision=194448
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
any open file descriptors >= 'lowfd'. It is largely identical to the same
function on other operating systems such as Solaris, DFly, NetBSD, and
OpenBSD. One difference from other *BSD is that this closefrom() does not
fail with any errors. In practice, while the manpages for NetBSD and
OpenBSD claim that they return EINTR, they ignore internal errors from
close() and never return EINTR. DFly does return EINTR, but for the common
use case (closing fd's prior to execve()), the caller really wants all
fd's closed and returning EINTR just forces callers to call closefrom() in
a loop until it stops failing.
Note that this implementation of closefrom(2) does not make any effort to
resolve userland races with open(2) in other threads. As such, it is not
multithread safe.
Submitted by: rwatson (initial version)
Reviewed by: rwatson
MFC after: 2 weeks
Notes:
svn path=/head/; revision=194262
|
| |
|
|
|
|
|
| |
drivers/functionality and then some.
Notes:
svn path=/head/; revision=192901
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that the .h files in src/sys/fs/nfs will be installed under
/usr/include/fs/nfs. This will allow the following utilities to
build, once additions and changes for the experimental nfs subsystem
are committed:
usr.sbin/mountd - Once modified to add support for the
experimental nfs subsystem.
ur.sbin/nfsstat - Once modified to add support for the
experimental nfs subsystem.
usr.sbin/nfscbd - The client side callback daemon for NFSv4.
usr.sbin/nfsuserd - The NFSv4 user/group name<->uid/gid mapping daemon.
usr.sbin/nfsdumpstate - The NFSv4 utility for dumping open/lock state.
usr.sbin/nfsrevoke - The sysadmin command for revoking NFSv4 state.
Approved by: kib (mentor)
Notes:
svn path=/head/; revision=192545
|
| |
|
|
|
|
|
|
| |
It's amazing how a well-placed eyesore generates more motivation in a
day than email generates in three weeks.
Notes:
svn path=/head/; revision=191202
|
| |
|
|
|
|
|
|
|
| |
I've discussed this with the Pth maintainer and no clear solution
has emerged on the ports side of things, so for now, hack around
the issue in signal.h.
Notes:
svn path=/head/; revision=190943
|
| |
|
|
|
|
|
|
|
|
| |
static linker option. Do it by incrementing reference count on the loaded
object and its dependencies.
Reviewed by: davidxu, kan
Notes:
svn path=/head/; revision=190543
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This does not include the new hash routines since they will cause problems
when reading old hash files.
Since mpool(3) has been changed, provide a compatibility shim for older
binaries.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190498
|
| |
|
|
| |
Notes:
svn path=/head/; revision=190409
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
pthread_sigmask() to signal.h. In principle, this shouldn't break anything,
since they're already in signal.h on other systems, and the FreeBSD
manpage says that both pthread.h and signal.h need to be included to
get these functions.
Add a hack to declare pthread_t in the P1003.1-2008 namespace
in signal.h.
Notes:
svn path=/head/; revision=189828
|
| |
|
|
|
|
|
| |
throughout so that this compiles in strict POSIX mode.
Notes:
svn path=/head/; revision=189827
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189826
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189820
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189819
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189818
|
| |
|
|
|
|
|
|
|
|
| |
in the POSIX namespace, and hiding eaccess() and setproctitle().
Also move mknodat() from unistd.h to sys/stat.h where it belongs.
The *at() syscalls are only in CURRENT, so this shouldn't cause
problems.
Notes:
svn path=/head/; revision=189817
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189812
|
| |
|
|
|
|
|
| |
functions, and there's no implementation of them in any case.
Notes:
svn path=/head/; revision=189811
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189809
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189808
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189807
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189806
|
| |
|
|
|
|
|
|
|
|
| |
__XOPEN_SOURCE >= 700, since mktemp() was withdrawn
from the standard. However, __XSI_VISIBLE is set to
700 in the default BSD envrionment, where mktemp()
should still exist; hence, check for this.
Notes:
svn path=/head/; revision=189782
|
| |
|
|
|
|
|
| |
Submitted by: Pawel Worach <pawel.worach@gmail.com>
Notes:
svn path=/head/; revision=189365
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189361
|
| |
|
|
|
|
|
|
|
| |
dprintf() is a simple wrapper around another function, so we may as
well implement it. But also like getline(), we can't prototype it by
default right now because it would break too many ports.
Notes:
svn path=/head/; revision=189356
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189355
|
| |
|
|
| |
Notes:
svn path=/head/; revision=189352
|
| |
|
|
|
|
|
|
|
| |
*at, and fexecve to the POSIX.1-2008 namespace.
- Remove getwd, ualarm, usleep, and vfork from the XSI namespace.
- Remove mkdtemp from the POSIX.1-2008 namespace (should be in stdlib.h).
Notes:
svn path=/head/; revision=189351
|
| |
|
|
|
|
|
|
| |
namespace.
- Add ffs to the XSI namespace.
Notes:
svn path=/head/; revision=189350
|
| |
|
|
|
|
|
|
| |
- Add mkstemp to the POSIX.1-2008 and BSD namespaces.
- Remove mktemp from the XSI namespace.
Notes:
svn path=/head/; revision=189349
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
wcscasecmp(), and wcsncasecmp().
- Make some previously non-standard extensions visible
if POSIX_VISIBLE >= 200809.
- Use restrict qualifiers in stpcpy().
- Declare off_t and size_t in stdio.h.
- Bump __FreeBSD_version in case the new symbols (particularly
getline()) cause issues with ports.
Reviewed by: standards@
Notes:
svn path=/head/; revision=189136
|