| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Obtained from: NetBSD via OpenBSD
|
|
|
|
|
|
|
|
|
| |
if the result is truncated.
db/hash/hash_page.c: use the same way to create temporary file as
bt_open.c; check snprintf() return value.
Obtained from: OpenBSD
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
all; before freeing memory, zero out them before we release it as free
heap. This will eliminate some potential information leak issue.
While there, remove the PURIFY option. There is a slight difference between
the new behavior and the old -DPURIFY behavior, with the latter initializes
memory with 0xff's. The difference between old and new approach does not
generate observable difference.
Obtained from: OpenBSD (partly).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now, getaddrinfo(3) returns two SOCK_STREAMs, IPPROTO_TCP and
IPPROTO_SCTP. It confuses some programs. If getaddrinfo(3) returns
IPPROTO_SCTP when SOCK_STREAM is specified by hints.ai_socktype, at
least Apache doesn't work. So, I made getaddrinfo(3) to return
IPPROTO_SCTP with SOCK_STREAM only when IPPROTO_SCTP is specified
explicitly by hints.ai_protocol.
PR: bin/128167
Submitted by: Bruce Cran <bruce__at__cran.org.uk> (partly)
MFC after: 2 week
|
|
|
|
|
|
| |
Some parts (ERANGE, ETXTBSY) triggered by Christoph Mallon.
Discussed with: brueffer, gabor (previous version)
|
|
|
|
|
| |
PR: conf/133004
Submitted by: Tatsiana Elavaya <t.elavaya@gmail.com>
|
|
|
|
|
|
|
|
| |
specified in hint or hints is NULL.
PR: bin/51827
Submitted by: Mark Andrews <marka__at__isc.org>
MFC after: 1 week
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
Obtained from: NetBSD via OpenBSD
|
|
|
|
|
| |
Submitted by: Florian Smeets <flo kasimir com>
MFC after: 3 days
|
| |
|
|
|
|
| |
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
|
|
|
|
|
|
| |
PR: kern/132773
Reported by: Alan R. S. Bueno <alan.bsd@gmail.com>
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com>
|
|
|
|
|
|
|
|
| |
- Fixes for German catalog [2]
PR: kern/132694 [1], conf/80504 [2]
Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1],
brueffer [2]
|
|
|
|
|
|
| |
mkdir calls
- Remove the ugly workaroung from libc NLS, which was to create some of
these directories
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to possible breakages in the catalog handling code. Since then, that
code has been replaced by the secure code from NetBSD but NLS in libc
remained turned off. Tests have shown that the feature is stable and
working so we can now turn it on again.
- Add several new catalog files:
- ca_ES.ISO8859-1
- de_DE.ISO8859-1
- el_GR.ISO8859-7 (by manolis@ and keramida@)
- es_ES.ISO8859-1 (kern/123179, by carvay@)
- fi_FI.ISO8859-1
- fr_FR.ISO8859-1 (kern/78756, by thierry@)
- hu_HU.ISO8859-2 (by gabor@)
- it_IT.ISO8859-15
- nl_NL.ISO8859-1 (corrections by rene@)
- no_NO.ISO8859-1
- mn_MN.UTF-8 (by ganbold@)
- sk_SK.ISO8859-2
- sv_SE.ISO8859-1
(The catalogs without explicit source has been obtained from NetBSD.)
Approved by: attilio
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
|
|
| |
manpage and UPDATING entry 20090302.
UPDATING changes suggested by bf2006a yahoo com.
man page corrections by bde.
|
|
|
|
|
|
| |
malloc(3) call, so don't test if a pointer is NULL.
Obtained from: OpenBSD (in spirit)
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
| |
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
| |
commit does not affect MD5 of object file.
|
|
|
|
|
|
|
| |
this commit does not affect any object code.
Obtained from: OpenBSD
Verified with: md5(1)
|
|
|
|
|
|
|
|
| |
(This is part of a larger changeset which is intended to reduce diff only,
thus some prototypes were left intact since they will be changed in the
future).
Verified with: md5(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
memory from int to size_t. Implement a workaround for current ABI not
allowing to properly save size for and report more then 2Gb sized segment
of shared memory.
This makes it possible to use > 2 Gb shared memory segments on 64bit
architectures. Please note the new BUGS section in shmctl(2) and
UPDATING note for limitations of this temporal solution.
Reviewed by: csjp
Tested by: Nikolay Dzham <i levsha org ua>
MFC after: 2 weeks
|
|
|
|
|
| |
number of functions that have an incestuous relationship with the
arcane innards of stdio.
|
|
|
|
| |
a size_t *, although the distinction is moot in practice.
|
|
|
|
| |
Reviewed by: md5(1)
|
| |
|
| |
|
|
|
|
|
|
|
| |
On FreeBSD, this is the default behaviour. According to the spec, we may
give this flag a value of zero, but I'd rather not do this. If we define
it to a non-zero value, we can always change default behaviour without
changing the ABI. This is very unlikely to happen, though.
|
| |
|
|
|
|
| |
I missed this file in my previous commit.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
The annotation mainly just serves as a hint that they're not intended
for use with overlapping strings.
|
|
|
|
|
|
|
| |
Fix harmless but related bugs in %_$zd and %_$tu.
PR: 131880
MFC after: 1 week
|
|
|
|
| |
to be relevant to FreeBSD at all.
|
|
|
|
|
|
| |
a release, I think there's no impact here...
Reviewed by: cognet@
|
|
|
|
|
|
|
|
|
| |
When calling setttyent() after calling endttyent(), pts_valid will never
be set to 1, because the readdir()-loop will likely never vind a pts
that has a higher number than before.
Simplify the code by removing pts_valid. We'll just set maxpts to -1
when we don't have a valid count yet.
|
|
|
|
|
|
|
| |
It seems ttyslot() calls rindex(), to strip the device name to the last
slash, but this is obviously invalid. /dev/pts/0 should be stripped
until pts/0. Because /etc/ttys only supports TTY names in /dev/, just
strip this piece of the pathname.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A more elegant way of obtaining a name of a character device by its file
descriptor on FreeBSD, is to use the FIODGNAME ioctl. Because a valid
file descriptor implies a file descriptor is visible in /dev, it will
always resolve a valid device name.
I'm adding a more friendly wrapper for this ioctl, called fdevname(). It
is a lot easier to use than devname() and also has better error
handling. When a device name cannot be resolved, it will just return
NULL instead of a generated device name that makes no sense.
Discussed with: kib
|
|
|
|
|
|
| |
PR: bin/127591
Submitted by: "Eugene M. Kim" <20080111.freebsd.org__at__ab.ote.we.lv>
MFC after: 1 week
|