| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://austingroupbugs.net/view.php?id=385#c713
(Resolved state) recommend this way for the current standard (called
"earlier" in the text)
"However, earlier versions of this standard did not require this, and the
same example had to be written as:
// buf was obtained by malloc(buflen)
ret = write(fd, buf, buflen);
if (ret < 0) {
int save = errno;
free(buf);
errno = save;
return ret;
}
"
from feedback I have for previous commit it seems that many people prefer
to avoid mass code change needed for current standard compliance
and prefer to track unpublished standard instead, which requires now
that free() itself must save errno, not its usage code.
So, I back out "save errno across free()" part of previous commit,
and will fill PR for changing free() isntead.
2) Remove now unused serrno.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"The setting of errno after a successful call to a function is
unspecified unless the description of that function specifies that
errno shall not be modified."
However, free() in IEEE Std 1003.1-2008 does not mention its interaction
with errno, so MAY modify it after successful call
(it depends on particular free() implementation, OS-specific, etc.).
So, save errno across free() calls to make code portable and
POSIX-conformant.
2) Remove unused serrno assignment.
MFC after: 1 week
|
|
|
|
|
|
|
| |
Makefile, so these headers go into the same destination directory as
libc++'s own headers, currently /usr/include/c++/v1.
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
The stat structures returned on pipes seems to contain all the
information required by POSIX. Especially the wording "and thus to a
pipe" makes little sense, because it seems to imply a certain
relationship between sockets and pipes that simply isn't there.
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
| |
of local variable declarations, remove bogus casts, and resolve long
lines.
Reviewed by: bde
|
|
|
|
|
|
|
|
|
|
| |
(not verified by me to be accurate)
PR: bin/163847
Submitted by: Gabor Fischer <Gabor.Fischer@gmx.net>
Reviewed by: bp
Approved by: cperciva
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
| |
this fflush may fail to write data in the buffer.
PR: kern/137819
Submitted by: Eric Blake <ebb9@byu.net>
Reviewed by: theraven
Approved by: cperciva
MFC after: 2 weeks
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Feature Change
* BIND now recognizes the TLSA resource record type, created to
support IETF DANE (DNS-based Authentication of Named Entities)
Bug Fix
* The locking strategy around the handling of iterative queries
has been tuned to reduce unnecessary contention in a multi-
threaded environment.
Other critical bug fixes are included.
All BIND users are encouraged to upgrade.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
To avoid unexpected process termination from SIGPIPE when writing to a
closed network connection, enable SO_NOSIGPIPE on all network connections.
The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all
send calls to add this flag. This is particularly nasty for SSL connections.
Reviewed by: des
Tested by: bapt
MFC after: 5 days
|
| |
| |
| |
| | |
Reported by: Jan Beich <jbeich@tormail.org>
|
| |
| |
| |
| |
| |
| | |
Submitted by: Yamaya Takashi
Reviewed by: das
MFC after: 1 week
|
| |
| |
| |
| |
| |
| |
| | |
be acquired.
PR: 168317
MFC after: 3 days
|
|\ \ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
an empty string instead.
|
| | |
| | |
| | |
| | | |
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | | |
PR: bin/162670
Submitted by: Jan Beich <jbeich@tormail.net>
MFC after: 2 weeks
|
| | |
| | |
| | |
| | |
| | |
| | | |
current one (= FBSD_1.3).
Pointed out by: kib
|
| | |
| | |
| | |
| | |
| | | |
[there are 33 __LP64__'s in the kernel (minus cddl/ and contrib/),
and 11 _LP64's]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
function. The purpose of the __eabi() function is to set up the
runtime and is called first thing by main(). The runtime is already
set up for us prior to caling main, so there's nothing to do for
us in the EABI case.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
PR: 168016
Submitted by: Nobuyuki Koganemaru
Approved by: gjb
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | | |
found at: http://llvm.org/releases/3.1/docs/ReleaseNotes.html
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- libc/stdio/scanf_l.3
- libc/stdio/printf_l.3
Reviewed by: theraven
Approved by: gabor (mentor)
MFC after: 5 days
|
| | |
| | |
| | |
| | | |
MFC after: 3 days
|
| | |
| | |
| | |
| | | |
by testing for the right parameter name.
|
| | |
| | |
| | |
| | | |
Reported by: tinderbox
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
avoid creating bad entries in the grp list as a result of memory allocation
failures while building new entries.
PR: bin/83340
Reviewed by: delphij (prior version of patch)
|
| | |
| | |
| | |
| | | |
Reviewed by: delphij (prior version of the patch)
|
| | |
| | |
| | |
| | | |
Functions affected: strerror, strsignal, gai_strerror.
|
| | |
| | |
| | |
| | | |
Note that this still misses a proper dependency at this time.
|
| | |
| | |
| | |
| | | |
Requested by: kib@
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Introduce dirfd() libc exported symbol replacing macro with same name,
preserve _dirfd() macro for internal use.
Replace dirp->dd_fd with dirfd() call. Avoid using dirfd as variable
name to prevent shadowing global symbol.
Sponsored by: Google Summer Of Code 2011
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
it possible to work with a different type for the sdl_index field --
it only requires a recompile.
Obtained from: Juniper Networks, Inc.
|
| | |
| | |
| | |
| | | |
not the case for FreeBSD 7.x machines.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since ino_t size is about to change to 64-bits, casts to long would
truncate 64-bit numbers on 32-bit archs.
Sponsored by: Google Summer of Code 2011
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The NAND Flash environment consists of several distinct components:
- NAND framework (drivers harness for NAND controllers and NAND chips)
- NAND simulator (NANDsim)
- NAND file system (NAND FS)
- Companion tools and utilities
- Documentation (manual pages)
This work is still experimental. Please use with caution.
Obtained from: Semihalf
Supported by: FreeBSD Foundation, Juniper Networks
|
| | |
| | |
| | |
| | | |
sign expansion.
|
| | |
| | |
| | |
| | |
| | | |
in place allowing it to be used there and since r235388 (see also r235486)
we also have usable div/mod optimizations like libgcc has.
|
| | |
| | |
| | |
| | | |
MFC after: 2 weeks
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
of our manual pages.
|