| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| | |
While this MAX_LUNS limitation is too synthetic and should be removed,
it is better to enforce it while it is here.
|
| |
| |
| |
| |
| |
| | |
MFH (r310823): fix multi-line CONNECT responses
PR: 112515 173451 194483 209546
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Quiesce warnings by updating headerfile includes
r257404 | sbruno | 2013-10-30 23:41:18 +0100 (Wed, 30 Oct 2013) | 9 lines
Quiesce two warnings:
1. define the CODE * as const
2. restructure function to eliminate warning about exiting with no return.
severity_map() never returns when it can't find an appropriate sysylog
facility, and it longjmp()'s away into error code handling. Keep this
behavior by stashing the facility value found during our search and
checking for -1 if found.
MFC r257405 (by sbruno):
Quiesce warning, which could be a bug IMO, by correctly defining the host_info
structure name
MFC r257406 (by sbruno):
Queisce warning about undeclared function usage.
yp_get_default_domain is defined in workaround.c but is not declared
in any header file. Tie the declaration to the same #define conditional
used when the function is called, NETGROUP
MFC r311459:
Put proper prototypes in tcpd.h
Clang 4.0.0 complains about tcpd.h's not-really-prototypes, e.g.:
/usr/include/tcpd.h:75:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
extern int hosts_access(); /* access control */
^
To fix this, turn these declarations into real prototypes. While here,
garbage collect the incompatible rfc931() function from scaffold.c, as
it is never used.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D9052
MFC r311461:
Also remove unnecessary extern keywords from tcpd.h.
Noticed by: kib
MFC r311556:
After r311459, some ports can break, because a few of the newly added
prototypes in <tcpd.h> use FILE. Pull in a minimal forward declaration
of FILE from <stdio.h> to minimize impact. Sorry for the breakage.
Reported by: Shawn Webb <shawn.webb@hardenedbsd.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Defer USB enumeration until the SI_SUB_KICK_SCHEDULER is executed to avoid
boot panics in conjunction with the recently added EARLY_AP_STARTUP feature.
The panics happen due to using kernel facilities like callouts too early.
Tested by: jhb @
|
| |
| |
| |
| |
| |
| |
| |
| | |
Fix initialisation of mlx4_pci_table's .driver_data fields.
Differential Revision: https://reviews.freebsd.org/D8791
Sponsored by: Mellanox Technologies
Submitted by: Dexuan Cui <decui@microsoft.com>
|
| |
| |
| |
| |
| |
| | |
Add more comments regarding collection of statistics counters.
Sponsored by: Mellanox Technologies
|
| |
| |
| |
| |
| |
| | |
Make a read only pointer constant.
Sponsored by: Mellanox Technologies
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
There is no need to use temporary statfs buffer for fsid obliteration
and prison enforcement. Do it on the caller buffer directly.
|
| |
| |
| |
| | |
Style.
|
| |
| |
| |
| | |
Move common code from kern_statfs() and kern_fstatfs() into a new helper.
|
| |
| |
| |
| | |
Change knlist_destroy() to assertion.
|
| |
| |
| |
| | |
Remove unneeded externs keywords. Reindent long lines.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
sfxge(4): allow DMA descs to cross 4k boundary on EF10
Siena has limitation on maximum byte count and 4k boundary crosssing
(which is stricter than maximum byte count).
EF10 has limitation on maximum byte count only.
Sponsored by: Solarflare Communications, Inc.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
sfxge(4): treat EFX_LINK_UNKOWN as link down
It is safer to consider EFX_LINK_UNKNOWN as link down.
link_mode is set to EFX_LINK_UNKNOWN on port stop and fini.
Sponsored by: Solarflare Communications, Inc.
|
| |
| |
| |
| |
| |
| | |
sfxge(4): use SFXGE_LINK_UP() to report link up state
Sponsored by: Solarflare Communications, Inc.
|
| | |
|
| |
| |
| |
| |
| |
| | |
- pstat(8) does not accept any arguments other than getopt() args,
so don't bother to adjust argc/argv after getopt() loop.
- Make a string pointer constant.
|
| |
| |
| |
| | |
portion is used.
|
| | |
|
| |
| |
| |
| | |
Build libexec/kadmind when MK_GSSAPI != no because it requires gssapi
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
r311112:
libgssapi_{krb5,ntlm,spnego} requires MK_GSSAPI != no; conditionalize
their building on the knob
r311115:
Conditionalize adding ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et to ETSRCS
if MK_GSSAPI != "no"
|
| |
| |
| |
| | |
Remove unnecessary __unused attribute attached to `ctx` in op_begemot_mibII(..)
|
| |
| |
| |
| | |
op_usm_users: fix indentation in SNMP_OP_SET block
|
| |
| |
| |
| | |
Use calloc instead of malloc + memset(.., 0, ..)
|
| |
| |
| |
| |
| | |
OS_getSystemUptime: use nitems for calculating the number of elements
in a sysctl mib instead of hardcoding the number 2
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
r310984:
Use calloc instead of malloc + memset(.., 0, ..)
r311102 (by pfg):
Cleanup inelegant calloc(3) introduced in r310984.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The kernel uses a few negative errno values for internal conditions
such as requesting a system call restart. Normally these errno values
are not exposed to userland. However, kdump needs access to these
values as some of then can be present in a ktrace system call return
record. Previously kdump was defining _KERNEL to gain access to ehse
values, but was then having to manually declare 'errno' (and doing it
incorrectly). Now, kdump uses _WANT_KERNEL_ERRNO instead of _KERNEL
and uses the system-provided declaration of errno.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Tidy up the early parts of vm_map_insert().
MFC r267645 (by alc):
When MAP_STACK_GROWS_{DOWN,UP} are passed to vm_map_insert() set the
corresponding flag(s) in the new map entry.
Pass MAP_STACK_GROWS_DOWN to vm_map_insert() from vm_map_growstack() when
extending the stack in the downward direction.
MFC r267850 (by alc):
Place the check that blocks map entry coalescing on stack entries in
vm_map_simplify_entry().
MFC r267917 (by alc):
Delay the call to crhold() in vm_map_insert() until we know that we won't
have to undo it by calling crfree().
Eliminate an unnecessary variable from vm_map_insert().
MFC r311014:
Style fixes for vm_map_insert().
Tested by: pho
|
| |
| |
| |
| | |
Reported by: Jilles Tjoelker <jilles@stack.nl>
|
| |
| |
| |
| |
| | |
In particular, decode the off_t argument as a 64-bit argument to fix
decoding for 32-bit processes.
|
| |
| |
| |
| | |
Ansify vm/vm_pager.c. Style.
|
| |
| |
| |
| | |
Remove unused declaration.
|
| |
| |
| |
| |
| |
| | |
tty: don't leak s after opening it with openpty
CID: 978321
|
| |
| |
| |
| |
| |
| | |
mkfifoat_fd: close dfd after use to avoid leaking it
CID: 978286
|
| |
| |
| |
| |
| |
| | |
mknodat_fd: close dfd after use to avoid leaking it
CID: 978287
|
| |
| |
| |
| |
| |
| | |
ttyname_err: close fd if it was opened successfully
CID: 978292
|
| |
| |
| |
| |
| |
| |
| |
| | |
kqueue_desc_passing: initialize m.msg_flags to 0
This mutes an uninitialized scalar warning from Coverity
CID: 979620
|
| |
| |
| |
| |
| |
| | |
setrlimit_basic: don't leak buf; free it on completion
CID: 978311
|
| |
| |
| |
| |
| |
| | |
ftok_link: don't leak fd
CID: 978291
|
| |
| |
| |
| |
| |
| | |
mincore_resid: free buf after use
CID: 978304
|
| |
| |
| |
| |
| |
| | |
stat_symlink: don't leak fd; close the file descriptor when done
CID: 978314
|
| |
| |
| |
| |
| |
| |
| |
| | |
swapcontext1: test for getcontext(3) and swapcontext(3) success properly
The beforementioned libcalls both succeed if the return codes aren't -1
CID: 976790, 976791
|
| |
| |
| |
| |
| |
| | |
{strchr,strlen}_basic: don't leak the dlopen'ed handle; close after use
CID: 978299, 978300
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
revoke_perm: don't leak fd at the end of the test; close it
This code is unused on FreeBSD, but it mutes a valid Coverity warning
which would be true on NetBSD
CID: 978311
|
| |
| |
| |
| |
| |
| | |
fexecve: don't leak fd on fexecve(2) failure; close before calling err
CID: 978285
|
| |
| |
| |
| |
| |
| | |
pipe_restart: free f on function exit to quell complaint from Coverity
CID: 978307
|
| |
| |
| |
| | |
bridge_get_pfval: use nitems instead of spelling it out longhand
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Be more strict about IpAddress type in snmp_value_parse(..)
- Use inet_pton with AF_INET instead of doing longhand with sscanf.
- Use gethostbyname2 with AF_INET to ensure that the hostname isn't
accidentally parsed with another address family, e.g. AF_INET6.
NB: IpAddress per RFC-2578 is IPv4 only. Work is in progress to add
the InetAddress type and friends documented in RFC-4001 and
elsewhere (which supports IPv4, IPv6, and more).
|