| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
password database.
PR: bin/126650, misc/140514
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- fix a memory leak on the USB backend
- fix invalid pointer computations (in one case memory outside the allocated
area was written in LibUSB v1.0)
- make sure memory is always initialised, also in failing cases
- add missing functions from v1.0.4
PR: usb/140325
Reported by: Robert Jenssen
Submitted by: Hans Petter Selasky
MFC After: 3 days
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
a page mapped by a large page in the kernel.
Submitted by: Dorr H. Clark dclark of engr.scu.edu
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
instead.
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
later on would try to free it, leading to a crash.
PR: 93998
Submitted by: neel
MFC after: 1 week
|
|
|
|
|
| |
Noted by: jhb
MFC after: 1 month
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
well-known race condition, which elimination was the reason for the
function appearance in first place. If sigmask supplied as argument to
pselect() enables a signal, the signal might be delivered before thread
called select(2), causing lost wakeup. Reimplement pselect() in kernel,
making change of sigmask and sleep atomic.
Since signal shall be delivered to the usermode, but sigmask restored,
set TDP_OLDMASK and save old mask in td_oldsigmask. The TDP_OLDMASK
should be cleared by ast() in case signal was not gelivered during
syscall execution.
Reviewed by: davidxu
Tested by: pho
MFC after: 1 month
|
|
|
|
|
|
| |
Do not use reserved C++ keyword "new"
MFC after: 1 month
|
| |
|
|
|
|
|
|
|
| |
counters. For such CPUs, use an alternate mapping of convenience
names to events supported by PMC_CLASS_IAP programmable counters.
Testing and review by: fabient
|
|
|
|
|
|
|
|
|
|
|
|
| |
* retry various system calls on EINTR
* retry the rest after a short read (common if there is more than about 1K
of output)
* block SIGCHLD like system(3) does (note that this does not and cannot
work fully in threaded programs, they will need to be careful with wait
functions)
PR: 90580
MFC after: 1 month
|
|
|
|
| |
Submitted by: HPS
|
|
|
|
|
|
| |
Approved by: des
Obtained from: Xavier Heiny <xavier.heiny@netasq.com>
MFC after: 3 weeks
|
|
|
|
|
| |
It is no longer necessary to construct long paths consisting of repeated
"../" which may be slow to process and may exceed PATH_MAX.
|
|
|
|
|
|
|
| |
ENOLINK, EPROTO, ENOTCAPABLE.
Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com>
MFC after: 3 days (most)
|
|
|
|
|
|
|
| |
This is required by POSIX and matches open(2).
Reviewed by: kib, jhb
MFC after: 1 month
|
|
|
|
|
| |
whole process. Also explicitely name the parameter that specifies
sleep interval.
|
| |
|
|
|
|
|
|
|
|
| |
operation on a file descriptor that is not authorized by the descriptor's
capability flags.
MFC after: 1 month
Sponsored by: Google
|
|
|
|
|
|
|
|
| |
a caller-allocated buffer of at least MAXPATHLEN, rather than using a
global buffer.
MFC after: 1 month
Sponsored by: Google
|
|
|
|
|
|
|
|
|
| |
one path. When the list is empty (contain only a NULL pointer), return
EINVAL instead of pretending to succeed, which will cause a NULL pointer
deference in a later fts_read() call.
Noticed by: Christoph Mallon (via rdivacky@)
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
| |
Also modify the "-k list" option to display only fields with a certain prefix.
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Tolerate applications that pass a NULL pointer for the buffer and
claim that the capacity of the buffer is nonzero.
- If an application passes in a non-NULL buffer pointer and claims the
buffer has zero capacity, we should free (well, realloc) it
anyway. It could have been obtained from malloc(0), so failing to
free it would be a small memory leak.
MFC After: 2 weeks
Reported by: naddy
PR: ports/138320
|
|
|
|
| |
Reviewed by: jkoshy
|
|
|
|
|
|
|
|
|
| |
the type argument. This is known to fix some pthread_mutexattr_settype()
invocations, especially when it comes to pulseaudio.
Approved by: kib
deischen (threads)
MFC after: 3 days
|
|
|
|
|
|
| |
trying backup servers.
PR: kern/103764, misc/139214
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- F_READAHEAD: specify the amount for sequential access. The amount is
specified in bytes and is rounded up to nearest block size.
- F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
access size.
A third argument of zero disables the read-ahead behavior.
Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.
Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.
Submitted by: Igor Sysoev <is rambler-co ru>
Reviewed by: kib@
MFC after: 1 month
|