| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by: carvay,
the.infamous.paul@gmail.com,
Joan Picanyol i Puig <lists-freebsd-es@biaix.org>,
Ing . Marcos Luis Ortiz Valmaseda <mlortiz@uci.cu>,
eskanete@gmail.com,
Jose M Rodriguez <josemi@freebsd.jazztel.es>,
Guillermo Hernandez <guillermo@QuerySoft.es>,
dani.doni@gmail.com
|
|
|
|
|
|
|
|
|
|
| |
long instead of an int when examining the results of select() to look for
RPC requests. Previously this routine would ignore RPC requests to sockets
whose file descriptor mod 64 was greater than 31 on a 64-bit platform.
PR: amd64/141130
Submitted by: liujb of array networks
MFC after: 3 days
|
|
|
|
|
|
| |
PR: 141087
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
MFC after: 3 days
|
|
|
|
|
|
| |
PR: 141037
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
MFC after: 3 days
|
|
|
|
| |
modified so that it will abort when the environment is bad.
|
|
|
|
|
|
|
|
|
|
| |
copied from NetBSD's manpage, and it also matches the behavior
described by the Open Group's online copy of setpgid.2 at
http://www.opengroup.org/onlinepubs/009695399/functions/setpgid.html
Obtained from: NetBSD
Submitted by: Petros Barbayiannis <petrosbarbayiannis@yahoo.gr>
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
**environ entries. This puts non-getenv(3) operations in line with
getenv(3) in that bad environ entries do not cause all operations to
fail. There is still some inconsistency in that getenv(3) in the
absence of any environment-modifying operation does not emit corrupt
environ entry warnings.
I also fixed another inconsistency in getenv(3) where updating the
global environ pointer would not be reflected in the return values.
It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3)
in order to see the change.
|
|
|
|
|
|
| |
PR: docs/140940
Submitted by: Bruce Cran <bruce@cran.org.uk>
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
execvPe() is called by _execvpe(), which we added to implement
posix_spawnp(). We just took execvP() and added the envp argument.
Unfortunately we forgot to change the implementation to use envp over
environ.
This fixes the following piece of code:
| char * const arg[2] = { "env", NULL };
| char * const env[2] = { "FOO=BAR", NULL };
| posix_spawnp(NULL, "/usr/bin/env", NULL, NULL, arg, env);
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
| |
FTS_NOCHDIR option is used. fts_build() could strip a trailing slash
from path name in post-order visit if a path pointing to an empty
directory was given for fts_open().
PR: bin/133907, kern/134513
Reviewed by: das
Approved by: trasz (mentor)
MFC after: 1 month
|
|
|
|
|
|
| |
Discussed with: das
Approved by: trasz (mentor)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
| |
from SUSv4 XSI. Note that the functions are obsoleted, and only
provided to ease porting from System V-like systems. Since sigpause
already exists in compat with different interface, XSI sigpause is
named xsi_sigpause.
Reviewed by: davidxu
MFC after: 3 weeks
|
|
|
|
| |
structure.
|
|
|
|
|
|
|
| |
file-scope variable clntraw_private.
Found by: Clang static analyzer
MFC after: 7 days
|
|
|
|
|
|
|
| |
&& SUCCESS case succeeds. The stack garbage might be zero.
Found by: Clang static analyzer
MFC after: 7 days
|
|
|
|
|
| |
Found by: Clang static analyzer
MFC after: 7 days
|
|
|
|
|
|
|
|
| |
and moving the default initialization of prec into the else clause.
The clang static analyzer erroneously thought that nsec can be used
uninitialized here; it was not actually possible, but better to make
the code clearer. (Clang can't know that sprintf() won't modify *pi
behind the scenes.)
|
|
|
|
|
|
|
|
|
| |
uninitialized. Initialize it to a safe value so that there's no
chance of returning an error if stack garbage happens to be equal to
(size_t)-1 or (size_t)-2.
Found by: Clang static analyzer
MFC after: 7 days
|
|
|
|
|
| |
Found by: Clang static analyzer
MFC after: 7 days
|
|
|
|
|
|
|
|
| |
a feature that libstdc++ depends on to simulate the behavior of libc's
internal '__isthreaded' variable. One benefit of this is that _libc_once()
is now private to _once_stub.c.
Requested by: kan
|
|
|
|
|
|
| |
an init routine run on the first invocation via _once().
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with the additional property that it is safe for routines in libc to use
in both single-threaded and multi-threaded processes. Multi-threaded
processes use the pthread_once() implementation from the threading library
while single-threaded processes use a simplified "stub" version internal
to libc. The libc stub-version of pthread_once() now also uses the
simplified "stub" version as well instead of being a nop.
Reviewed by: deischen, Matthew Fleming @ Isilon
Suggested by: alc
MFC after: 1 week
|
| |
|
|
|
|
|
| |
Otherwise the tzload() (when called by gmtload()) fails to locate the UTC
file and loads the posixrules.
|
| |
|
|
|
|
|
|
| |
PR: 140459
Submitted by: Jeremy Huddleston <Jeremyhu@apple.com>
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: Jim Wilcoxson <prirun@gmail.com>
MFC after: 1 week
|
|
|
|
|
|
| |
in order to distinguish it from free(NULL), which is logged as (0, 0, 0).
Reviewed by: jhb
|
|
|
|
|
| |
Submitted by: kib
MFC after: 1 week
|
|
|
|
|
|
|
|
|
| |
was provided by jhb.
PR: 140528
Submitted by: Chris Petrik <chris@officialunix.com>
Discussed with: remko, jhb and the submitter
MFC after: 1 week
|
|
|
|
|
| |
PR: 140456
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
|
|
|
|
|
|
| |
PR: 140455
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
MFC after: 2 weeks
|
| |
|
|
|
|
|
| |
Reviewed by: remko
Approved by: remko
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
| |
PR: 140454
Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
MFC after: 2 weeks
|
|
|
|
| |
ENOLINK, EPROTO, ENOTCAPABLE.
|
| |
|
|
|
|
| |
Controlled by NLS define.
|
|
|
|
|
| |
Pointed out by: nyan
MFC after: 1 week
|
|
|
|
|
| |
Reviewed by: hrs, nork, takawata
MFC after: 1 week
|
|
|
|
|
| |
Reviewed by: hrs, nork, takawata
MFC after: 1 week
|
|
|
|
|
|
| |
PR: 140386
Submitted by: soulcatcher <soulcatcher13@gmail.com
MFC after: 1 week
|
|
|
|
| |
Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
|
|
|
|
| |
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
|
|
|
|
|
|
|
|
| |
Many operating systems also provide MAP_ANONYMOUS. It's not hard to
support this ourselves, we'd better add it to make it more likely for
applications to work out of the box.
Reviewed by: alc (mman.h)
|
|
|
|
| |
Submitted by: Ulrich Spoerlein
|
|
|
|
|
|
|
|
| |
accept(2)ed sockets do not necessarily inherit O_NONBLOCK from
listening sockets on non-FreeBSD platforms.
Feet shot: cperciva
MFC after: 1 month
|
|
|
|
|
| |
Noted by: jhb
MFC after: 1 month
|
| |
|