| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/projects/release-arm-redux/; revision=282535
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=282322
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add the required __alloc_size attributes
Requested by: pfg
Notes:
svn path=/head/; revision=282317
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a manpage for it, assign the copyright to the OpenBSD project on it since it
is mostly copy/paste from OpenBSD manpage.
style(9) fixes
Differential Revision: https://reviews.freebsd.org/D2420
Reviewed by: kib
Notes:
svn path=/head/; revision=282314
|
|\|
| |
| |
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/projects/release-arm-redux/; revision=281853
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
discontinued by its initial authors. In FreeBSD the code was already
slightly edited during the pf(4) SMP project. It is about to be edited
more in the projects/ifnet. Moving out of contrib also allows to remove
several hacks to the make glue.
Reviewed by: net@
Notes:
svn path=/head/; revision=281613
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
Adjust all code that calls iconv.
PR: 199099
Exp-run by: antoine
MFC after: 2 weeks
Notes:
svn path=/head/; revision=281550
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The `nonnull' attribute specifies that some function parameters should be
non-null pointers. This is very useful as it helps the compiler generate
warnings on suspicious code and can also enable some small optimizations.
Also start using 'alloc_size' attribute in the allocator functions.
This is an initial step to better integrate our libc with the compiler:
these attributes are fully supported by clang and they are also useful
for the static analyzer.
Note that due to some bogus internal procedure in the way gcc ports
are built they may require updating if they were built before r280801.
Relnotes: yes
Hinted by: Android's bionic libc
Differential Revision: https://reviews.freebsd.org/D2107
Notes:
svn path=/head/; revision=281130
|
| |
| |
| |
| |
| |
| |
| | |
No, this file doesn't conform with KNF at all.
Notes:
svn path=/head/; revision=280820
|
|\|
| |
| |
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/projects/release-arm-redux/; revision=280641
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
GCC is still carries an old version of cdefs.h which doesn't
accept multiple parameters for the nonnull attribute.
Since this issue probably affects many ports in the tree
we will revert it for now until gcc gets fixed.
Notes:
svn path=/head/; revision=280636
|
| |
| |
| |
| | |
Notes:
svn path=/head/; revision=280626
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The `nonnull' attribute specifies that some function parameters should be
non-null pointers. This is very useful as it helps the compiler generate
warnings on suspicious code and can also enable some small optimizations.
In clang this is also useful for the static analyzer.
While we could go on defining this all over the tree, it only
makes sense to annotate a subset of critical functions.
Hinted by: Android's bionic libc
Differential Revision: https://reviews.freebsd.org/D2101
Notes:
svn path=/head/; revision=280458
|
|\|
| |
| |
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/projects/release-arm-redux/; revision=278967
|
| |
| |
| |
| |
| |
| |
| |
| | |
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=278600
|
|\|
| |
| |
| |
| |
| |
| | |
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/projects/release-arm-redux/; revision=278591
|
| |
| |
| |
| |
| |
| |
| |
| | |
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=278204
|
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
manpages, libraries, and binaries
MFC after: 1 week
X-MFC with: r278135
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=278202
|
| |
| |
| |
| |
| |
| |
| | |
manpages, libraries, and binaries
Notes:
svn path=/projects/building-blocks/; revision=275142
|
| |
| |
| |
| |
| |
| |
| | |
build knobs
Notes:
svn path=/projects/building-blocks/; revision=275115
|
| |
| |
| |
| | |
Notes:
svn path=/projects/building-blocks/; revision=275114
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- bootparamd
- bootpd
- finger/fingerd
- ftp/ftpd
- hastctl/hastd
- iscsid, et al
- rbootd
- talk/talkd
- tcpd, et al
- tftp/tftpd
Add src.conf entries for the various components and do a best effort
at adding components to tools/build/mk/OptionalObsoleteFiles.inc
Notes:
svn path=/projects/building-blocks/; revision=275106
|
| |
| |
| |
| |
| |
| |
| | |
Discussed with: pluknet
Notes:
svn path=/head/; revision=277983
|
| |
| |
| |
| |
| |
| |
| |
| | |
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=277682
|
|/
|
|
| |
Notes:
svn path=/head/; revision=276214
|
|
|
|
|
|
|
|
| |
Submitted by: jase
MFC after: 1 week
Notes:
svn path=/head/; revision=273613
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in a separate word from the _count. This does not permit both items to
be updated atomically in a portable manner. As a result, sem_post()
must always perform a system call to safely clear _has_waiters.
This change removes the _has_waiters field and instead uses the high bit
of _count as the _has_waiters flag. A new umtx object type (_usem2) and
two new umtx operations are added (SEM_WAIT2 and SEM_WAKE2) to implement
these semantics. The older operations are still supported under the
COMPAT_FREEBSD9/10 options. The POSIX semaphore API in libc has
been updated to use the new implementation. Note that the new
implementation is not compatible with the previous implementation.
However, this only affects static binaries (which cannot be helped by
symbol versioning). Binaries using a dynamic libc will continue to work
fine. SEM_MAGIC has been bumped so that mismatched binaries will error
rather than corrupting a shared semaphore. In addition, a padding field
has been added to sem_t so that it remains the same size.
Differential Revision: https://reviews.freebsd.org/D961
Reported by: adrian
Reviewed by: kib, jilles (earlier version)
Sponsored by: Norse
Notes:
svn path=/head/; revision=273604
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In some cases, TSC is broken and special applications might benefit
from memory mapping HPET and reading the registers to count time.
Most often the main HPET counter is 32-bit only[1], so this only gives
the application a 300 second window based on the default HPET
interval.
Other applications, such as Intel's DPDK, expect /dev/hpet to be
present and use it to count time as well.
Although we have an almost userland version of gettimeofday() which
uses rdtsc in userland, it's not always possible to use it, depending
on how broken the multi-socket hardware is.
Install the acpi_hpet.h so that applications can use the HPET register
definitions.
[1] I haven't found a system where HPET's main counter uses more than
32 bit. There seems to be a discrepancy in the Intel documentation
(claiming it's a 64-bit counter) and the actual implementation (a
32-bit counter in a 64-bit memory area).
MFC after: 1 week
Relnotes: yes
Notes:
svn path=/head/; revision=273598
|
|
|
|
| |
Notes:
svn path=/head/; revision=272808
|
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
MFC after: 2 weeks
Notes:
svn path=/head/; revision=272673
|
|
|
|
|
|
|
|
|
|
| |
They are useless and don't match the style of the header.
While here adjust the comment with tabs.
Suggested by: kevinlo
Notes:
svn path=/head/; revision=271878
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our setpgrp(2) differs from the specified by POSIX, which
only has one argument, and is only meant for compatibility
with BSD.
Reference:
http://pubs.opengroup.org/onlinepubs/009695399/functions/setpgrp.html
Pointed-out in: openbsd-tech (2014-09-16)
MFC after: 6 weeks
Notes:
svn path=/head/; revision=271792
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I've looked at the GCC sources and I now understand what's going wrong.
THe C11 keywords are simply nonexistent when using C++ mode. They are
marked as C-only in the parser. This is absolutely impractical for
multiple reasons:
- The C11 keywords do not conflict with C++ naming rules. They all start
with _[A-Z]. There is no reason to make them C-only.
- It makes it practically impossible for people to use these keywords in
C header files and expect them to work from within C++ sources.
As I said in my previous commit message: GCC is by far the weirdest
compiler that I've ever used.
Notes:
svn path=/head/; revision=271155
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As GCC also gained support for the C11 keywords over time, we can patch
up <sys/cdefs.h> to not define these anymore. This has the advantage
that error messages for static assertions are printed natively and that
_Alignas() will work with even a type outside of C11 mode.
All C11 keywords are supported with GCC 4.7 and higher, with the
exception of _Thread_local and _Generic. These are only supported as of
GCC 4.9.
Notes:
svn path=/head/; revision=271012
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bsearch_b is the Apple blocks enabled version of bsearch(3).
This was added to libc in Revision 264042 but the commit
missed the declaration required to make use of it.
While here move some other block-related functions to the
BSD_VISIBLE block as these are non-standard.
Phabric: D638
Reviewed by: theraven, wollman
Notes:
svn path=/head/; revision=270952
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change extends all of the functions present in the <pthread.h> and
<threads.h> headers to have lock annotations. This will allow Clang to
warn about the following:
- Locking a function twice,
- Unlocking a function without a mutex being locked,
- Forgetting to unlock a mutex before returning,
- Destroying or reinitializing a mutex that is currenty locked,
- Using an unlocked mutex in combination with a condition variable.
Enabling these annotations already allowed me to catch a bug in one of
our userspace tools (r270749).
Notes:
svn path=/head/; revision=270943
|
|
|
|
|
|
|
|
|
|
|
|
| |
Back in 2011 obrien has added the #define macro in sys/sys/stddef.h to
guard ptrdiff_t. Add similar protection to the identical code in
include/stddef.h.
Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
MFC after: 1 week
Notes:
svn path=/head/; revision=270277
|
|\
| |
| |
| |
| |
| |
| | |
Obtained from: ISC
Notes:
svn path=/head/; revision=269867
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/resolver/dist/; revision=269763
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
From
http://www.isc.org/downloads/libbind/
The libbind functions have been separated from the BIND suite as of BIND
9.6.0. Originally from older versions of BIND, they have been continually
maintained and improved but not installed by default with BIND 9. This
standard resolver library contains the same historical functions and
headers included with many Unix operating systems. In fact, most
implementations are based on the same original code.
At present, NetBSD maintains libbind code, now known as "netresolv".
Notes:
svn path=/vendor/resolver/dist/; revision=269610
|
| |
| |
| |
| |
| | |
Notes:
svn path=/vendor/resolver/dist/; revision=186083
svn path=/vendor/resolver/9.4.3/; revision=186084; tag=vendor/resolver/9.4.3
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/resolver/dist/; revision=170242
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/resolver/dist/; revision=165254
|
| |
| |
| |
| | |
Notes:
svn path=/vendor/resolver/dist/; revision=158782
|
|
|
|
| |
Notes:
svn path=/vendor/resolver/dist/; revision=156959
|
|
|
|
|
|
|
|
|
|
| |
While testing this I found a conformance issue in hdestroy()
that will be fixed in a subsequent commit.
Obtained from: NetBSD (hcreate.c, CVS Rev. 1.7)
Notes:
svn path=/head/; revision=268943
|
|
|
|
|
|
|
|
|
|
|
| |
The current ordering of this header is a feature as it
is more consistent with POSIX.
Also adding gratuitous newlines is not elegant.
Pointed out by: bde
Notes:
svn path=/head/; revision=268846
|
|
|
|
|
|
|
|
| |
MFC after: 3 days
Obtained from: NetBSD
Notes:
svn path=/head/; revision=268826
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- In the unionfs case, opendir() and fdopendir() read the directory's full
contents and cache it. This cache is not refreshed when rewinddir() is
called, so rewinddir() will not notice updates to a directory. Fix this
by splitting the code to fetch a directory's contents out of
__opendir_common() into a new _filldir() function and call this from
rewinddir() when operating on a unionfs directory.
- If rewinddir() is called on a directory opened with fdopendir() before
any directory entries are fetched, rewinddir() will not adjust the seek
location of the backing file descriptor. If the file descriptor passed
to fdopendir() had a non-zero offset, the rewinddir() will not rewind to
the beginning. Fix this by always seeking back to 0 in rewinddir().
This means the dd_rewind hack can also be removed.
While here, add missing locking to rewinddir().
CR: https://phabric.freebsd.org/D312
Reviewed by: jilles
MFC after: 1 week
Notes:
svn path=/head/; revision=268531
|
|
|
|
|
|
|
|
|
|
| |
Some ports assume GSS-API is supported when they find the headers.
PR: 189156
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Notes:
svn path=/head/; revision=267441
|