| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
is mostly harmless, but it does upset some of valgrind's functionality.
|
|
|
|
|
|
|
| |
is used to set the ELF size attribute for functions. It isn't normally
critical but some things can make use of it (gdb for stack traces).
Valgrind needs it so I'm adding it in. The problem is present on all
branches and on both i386 and amd64.
|
|
|
|
|
|
|
|
| |
match the code.
PR: docs/128089
Submitted by: Mel
MFC after: 3 days
|
|
|
|
|
| |
MFC after: 3 days
Submitted by: Bruce Cran <bruce at cran dot org dot uk>
|
|
|
|
| |
always-false condition.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As discussed on the commits list, there is no need to call revoke()
inside openpty(). On RELENG_6 and RELENG_7 unlockpt() will call
revoke(). On HEAD we create pseudo-terminals on demand, so there is no
need to revoke the slave device node.
This change should never be MFC'd, because the implementation we have in
RELENG_6 and RELENG_7 should work flawlessly with older versions of
libc.
Discussed with: jhb
MFC after: never
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
according to my reading of the CAM draft is mandatory for
all CCB function calls and enforced by xptioctl() since at
least r168752. Previously we happened to use 0 as the Path
ID, causing the XPT_DEV_MATCH call to fail if there's no
SCSI bus 0. Basically the same bug was also fixed the same
way for camcontrol(8) as part of r126514.
PR: 127605
Submitted by: Eygene Ryabinkin
Approved by: silence from ken and scottl
MFC after: 1 week
|
|
|
|
|
|
|
| |
from the description but not the errors section. This revision removes it
from the errors statement.
Add a statement about the non-portability of non-page-aligned offsets.
|
|
|
|
| |
Reviewed by: des
|
|
|
|
| |
Approved by: kib (mentor)
|
|
|
|
|
| |
Reported by: ache
Pointy hat to: kib
|
|
|
|
|
|
|
|
|
|
|
|
| |
I believe this is not a valid C99 construct. Use directly calculated
offsets into the supplied buffer, using specified members length,
to fill appropriate structure.
Either use sysctl, or copy the value of the UNAME_x environment
variable, instead of unconditionally doing sysctl, and then
overriding a returned value with user-specified one.
Noted and tested by: rdivacky
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
If it's not a regular file, don't return any data, even if the size is unknown.
Update the Zip test with a hand-tweaked Zip archive that has a
directory (with length-at-end set), a regular file without
length-at-end set, and a regular file with length-at-end set and a bad
CRC. Update the test code to verify that the file size is unset
for the regular file with length-at-end.
MFC after: 7 days
|
|
|
|
| |
lock if the file is opened with O_RDONLY.
|
| |
|
|
|
|
| |
latter is implemented.
|
|
|
|
|
| |
are about to close, so don't. As a bonus, pidfile_remove(3) will now
work with an fcntl(2)-based flopen(3).
|
|
|
|
| |
be part of the public API. Accordingly, add prototypes and document them.
|
| |
|
| |
|
| |
|
|
|
|
| |
part of the public API. Accordingly, add a prototype and document it.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- ANSIfy;
- Convert do {} while loop -> while {} for clarity;
- Sync RCS ID with OpenBSD;
Obtained from: OpenBSD
|
|
|
|
| |
Submitted by: Christoph Mallon <christoph.mallon gmx.de>
|
|
|
|
|
|
|
|
| |
restore fails if ACL provided), apply patch from kern/128203, and verify fix.
PR: kern/128203
Submitted by: Udo Schweigert
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
| |
|
| |
|
|
|
|
| |
and memset afterward.
|
|
|
|
| |
returns zeroed memory, so don't redo the initialization.
|
|
|
|
|
|
|
| |
Allow to define MALLOC_PRODUCTION with a make variable instead of polluting
the global CFLAGS.
Reviewed by: jasone
|
|
|
|
| |
This is a pre-requisite for loader(8) + U-Boot support library on this arch.
|
|
|
|
|
|
|
|
|
|
|
| |
reduce ABI disruptions when new cpu types and new PMC events are added
in the future.
- Support alternate spellings for PMC events. Derive the canonical
spelling of an event name from its enumeration name in 'enum pmc_event'.
- Provide a way for users to disambiguate between identically named events
supported by multiple classes of PMCs in a CPU.
- Change libpmc's machine-dependent event specifier parsing code to
better support CPUs containing two or more classes of PMC resources.
|
| |
|
|
|
|
| |
- Tweak -mdoc use.
|
| |
|
| |
|
|
|
|
| |
- Spell new PMC class names correctly.
|
|
|
|
| |
Intel Atom(tm), Core(tm) and Core2(tm) CPUs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Pass O_NOCTTY to posix_openpt(2). This makes the implementation work
consistently on implementations that make the PTY the controlling TTY
by default.
- Call unlockpt() before opening the slave device. POSIX mentions that
de slave device should only be opened after grantpt() and unlockpt()
have been called.
- Replace some redundant code by a label.
In theory we could remove a lot of code from openpty() on FreeBSD
-CURRENT, because grantpt(), unlockpt() and revoke() are not needed in
our implementation. We'd better keep them there. This makes the code
still work with older FreeBSD releases and even makes it work on other
non-BSD operating systems.
I've compiled openpty() on Linux. You only need to remove the revoke()
call, because revoke() on Linux always returns -1. Apart from that, it
seems to work like it should.
Reviewed by: jhb
|
|
|
|
|
| |
- Document an event that was missed out earlier.
- Sort event names alphabetically.
|
|
|
|
| |
- Sort event names.
|
| |
|
|
|
|
| |
- Correct misspellings of two event names.
|
|
|
|
| |
Requested by: Arun Sharma <arun at sharma-home dot net>
|
|
|
|
|
|
| |
Update referenced example to include unistd.h per manpage.
Update example to be more style(9)-ish, silence warnings and add
FreeBSD id to the source file.
|