christos
bfdd69f658
-Wstringop-truncation is only gcc.
2019-10-08 18:50:34 +00:00
uwe
86bd1b8280
getlogin_r: use strcpy(). We check namelen before copying the result.
...
gcc 8 -Wstringop-overflow is uhappy when the specified bounds depend
on the length of the source and is not smart enough to see the check
we do. Besides we don't want the padding effect of strncpy() here.
2019-10-05 19:19:51 +00:00
uwe
fdee483c8f
__dberr: tweak signature to make gcc8 -Wbad-function-cast happy about
...
casts in __dbpanic. Admittedly this is a bit too "cute".
2019-10-05 18:07:58 +00:00
jhigh
c7ab523edc
adding full scheme comparison to libcrypt:crypt and pwhash tests
2019-10-05 18:06:16 +00:00
uwe
da97884ede
__dbpanic: use the official DB typedef name in the casts. They were
...
copied from the declaration point where it's not yet available.
2019-10-05 18:01:52 +00:00
christos
c8863f455b
deduplicate the conversion function from statvfs -> statfs12
2019-10-04 01:28:02 +00:00
christos
573d865676
Ignore strncpy(foo, bar, sizeof(foo)) for the wtmp fields where we don't
...
want NUL termination. We can't use pragma's because the old gcc complains
about the new warnings it does not understand.
2019-10-04 00:03:56 +00:00
tnn
00bf802c59
annotate __dead
2019-10-03 20:29:19 +00:00
christos
5c84fc8d45
provide a default error function instead of trying to cast exit(3).
2019-10-03 18:12:44 +00:00
christos
d97b323d0b
Cast function pointers that take different arguments through void *
2019-10-03 18:02:05 +00:00
christos
d3574aa770
- user (an alias to the login buffer should be NUL terminated so use strlcpy
...
- double the size of the resulting buffer so that it can fit a copy of the
same sized buffer + more.
2019-10-03 17:56:17 +00:00
christos
ae8d4ecfdb
Use strlcpy to NUL terminate the name string here. The kernel already
...
uses strlcpy() to set values in this field. We leave the kernel's strncmp()
alone to maintain compatibility.
2019-10-03 17:10:16 +00:00
christos
194e441521
use strlcpy here; the destination string is passed to strtok_r, and if it
...
is not NUL terminated, bad things can happen.
2019-10-03 17:08:26 +00:00
christos
01d1183f90
Since ch gets reassigned, it is not certain that it will be & or | again,
...
so return an illegal token if it is not instead of telling the compiler
that this is impossible.
2019-10-03 16:37:45 +00:00
christos
b490ea0c99
provide sizes so that we don't truncate accidentally.
2019-10-03 16:35:57 +00:00
rmind
04cb50ac51
libnpf/npfctl: support dynamic NAT rulesets using a name prefix.
2019-09-30 00:37:11 +00:00
mrg
21303c93e9
convert HAVE_GCC == 7 to HAVE_GCC >= 7.
2019-09-29 23:44:58 +00:00
wiz
9d3e825cb4
Sort errors. Remove trailing whitespace.
2019-09-27 07:20:07 +00:00
christos
75a357d94d
document errors returned by F_GETPATH
2019-09-26 17:13:52 +00:00
christos
ed9ca5deea
teach hijack about the new vfs syscalls
2019-09-25 20:19:59 +00:00
christos
accd2f2682
lint is not smart enough to figure out that ilog2() is constant.
2019-09-23 18:17:03 +00:00
christos
38a0431bfa
Restore binary compatibility by using the statvfs90 structure internally.
2019-09-23 12:00:57 +00:00
christos
02cdd248ec
Add a new member to struct vfsstat and grow the unused members
...
The new member is caled f_mntfromlabel and it is the dkw_wname
of the corresponding wedge. This is now used by df -W to display
the mountpoint name as NAME=
2019-09-22 22:59:37 +00:00
brad
2e0a32871b
Add USE_SHLIBDIR=yes to a number of Makefiles for the libraries used
...
by /sbin/{zfs,zpool,mount_zfs}. The general effect is to move them
from /usr/lib to /lib. Compatibility links are installed in /usr/lib
and nothing that is installed, say in /usr/pkg, appears to break.
With this, it is possible to have a /var and /usr mount using ZFS
legacy mounting early on in the boot process.
Run tested on amd64 and i386 and compile tested on evbarm.
2019-09-22 18:45:19 +00:00
wiz
911f6cb213
Sort errors; remove two more duplicates.
2019-09-18 04:57:53 +00:00
christos
26260efb9b
merge the two E2BIG entries (wiz)
2019-09-16 11:03:08 +00:00
wiz
5a2de753fb
Sort errors.
2019-09-16 04:59:32 +00:00
wiz
4799815d98
Add missing word, add comma in enumeration.
2019-09-16 04:54:23 +00:00
wiz
6cc77413c5
Add missing word, fix typo, remove trailing whitespace.
2019-09-16 04:49:46 +00:00
kamil
889b81b138
Remove _INCOMPLETE_XOPEN_C063, no longer needed
2019-09-16 01:25:16 +00:00
kamil
d3dd6160fd
Stop passing -D_INCOMPLETE_XOPEN_C063 (obsolete define)
2019-09-16 00:00:56 +00:00
christos
a5a5a01f84
Fix type and remove cast (Yuichiro NAITO/FreeBSD).
2019-09-15 21:09:11 +00:00
christos
6f91a43aa9
Document O_EXEC, and add some extra explanation for O_CREAT from FreeBSD.
2019-09-15 20:53:24 +00:00
christos
20f72bdb4e
documentation for fexecve(2)
2019-09-15 16:55:00 +00:00
christos
0a76d2ed5a
Add F_GETPATH, presented to tech-kern.
2019-09-15 16:25:57 +00:00
wiz
5ac2498fa8
Fix markup, and remove two superfluous Pp.
2019-09-15 07:01:13 +00:00
christos
9aeb91c2c4
fix wrong names and add markup
2019-09-15 01:03:23 +00:00
mlelstv
d87f421944
Need register defines that were moved to armreg.h
2019-09-12 10:18:50 +00:00
kamil
36ec32beff
Switch back _Noreturn to __dead in C11 threads
...
There is an ongoing discussion to unify unreturn attribute between C and
C++, making a compatible version, shared between languages. Instead of
picking C11-only approach here, switch back to __dead that wraps the
compiler extension for the same purpose.
This change makes this header more compatible with C++ and pre-C11.
Reference:
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2410.pdf
2019-09-10 22:34:19 +00:00
wiz
5f4f33c6a5
Remove superfluous Pp.
2019-09-09 07:46:49 +00:00
sevan
fb87f380ab
mprotect first appeared in SunOS 4.0
...
Page 25 of SunOS 4.0 Change Notes
http://chiclassiccomp.org/docs/content/computing/Sun/software/800-1731-10_SunOS4.0ChangeNotes9May88.pdf
2019-09-08 22:35:44 +00:00
sevan
7e18ab6233
Extend history
2019-09-08 17:47:33 +00:00
sevan
a4cf051b9a
Sort flags
2019-09-08 17:24:49 +00:00
sevan
4fef48b525
Document MAP_ANONYMOUS
2019-09-08 17:17:55 +00:00
uwe
6ba5b90bdf
Use the right values for .Bl -width
...
Typeset "fuse" literal (default value for type) as a literal.
2019-09-08 11:34:56 +00:00
abhinav
c3d00a7d30
PR lib/54510: Fix file completion inside quotes which broke in rev 1.53
...
While there also fix handling character appending in the file completions when
inside quotes. For example when inside a quote, if the completion is a directory then
append a '/' but don't close the quote. On the other hand when inside a quote if the
completion is a file name and it is the only match then we can close the quote.
2019-09-08 05:50:58 +00:00
wiz
2583d20169
Add missing word. More markup.
2019-09-07 19:32:11 +00:00
wiz
d46d61dd74
Punctuation nit.
2019-09-07 19:30:39 +00:00
sevan
16210d39ba
New sentence, new line
2019-09-07 13:17:43 +00:00
sevan
1cd8c1fa55
Document the destiny for these functions.
2019-09-07 12:40:17 +00:00