From 354e38690890f748b60e89763c7b8c48182447b5 Mon Sep 17 00:00:00 2001 From: emaste Date: Tue, 15 Mar 2016 19:26:32 +0000 Subject: libc: don't build compat functions if building WITHOUT_SYMVER WITHOUT_SYMVER necessarily implies building a system without symver backwards compatability. Sponsored by: The FreeBSD Foundation --- lib/libc/db/mpool/Makefile.inc | 5 ++++- lib/libc/gen/Makefile.inc | 6 ++++-- lib/libc/iconv/Makefile.inc | 6 +++++- lib/libc/posix1e/Makefile.inc | 4 +++- lib/libc/secure/Makefile.inc | 7 ++++--- 5 files changed, 20 insertions(+), 8 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/db/mpool/Makefile.inc b/lib/libc/db/mpool/Makefile.inc index bab7e6d..76ec0eb 100644 --- a/lib/libc/db/mpool/Makefile.inc +++ b/lib/libc/db/mpool/Makefile.inc @@ -3,4 +3,7 @@ .PATH: ${LIBC_SRCTOP}/db/mpool -SRCS+= mpool.c mpool-compat.c +SRCS+= mpool.c +.if ${MK_SYMVER} == yes +SRCS+= mpool-compat.c +.endif diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc index 7de8ce3..a68f5c7 100644 --- a/lib/libc/gen/Makefile.inc +++ b/lib/libc/gen/Makefile.inc @@ -49,7 +49,6 @@ SRCS+= __getosreldate.c \ fstab.c \ ftok.c \ fts.c \ - fts-compat.c \ ftw.c \ getbootfile.c \ getbsize.c \ @@ -137,7 +136,6 @@ SRCS+= __getosreldate.c \ ualarm.c \ ulimit.c \ uname.c \ - unvis-compat.c \ usleep.c \ utime.c \ utxdb.c \ @@ -147,6 +145,10 @@ SRCS+= __getosreldate.c \ waitpid.c \ waitid.c \ wordexp.c +.if ${MK_SYMVER} == yes +SRCS+= fts-compat.c \ + unvis-compat.c +.endif .PATH: ${LIBC_SRCTOP}/../../contrib/libc-pwcache SRCS+= pwcache.c pwcache.h diff --git a/lib/libc/iconv/Makefile.inc b/lib/libc/iconv/Makefile.inc index 5442f79..3b24737 100644 --- a/lib/libc/iconv/Makefile.inc +++ b/lib/libc/iconv/Makefile.inc @@ -14,7 +14,11 @@ SRCS+= citrus_bcs.c citrus_bcs_strtol.c citrus_bcs_strtoul.c \ citrus_esdb.c citrus_hash.c citrus_iconv.c citrus_lookup.c \ citrus_lookup_factory.c citrus_mapper.c citrus_memstream.c \ citrus_mmap.c citrus_module.c citrus_none.c citrus_pivot_factory.c \ - citrus_prop.c citrus_stdenc.c bsd_iconv.c iconv_compat.c + citrus_prop.c citrus_stdenc.c bsd_iconv.c +.if ${MK_SYMVER} == yes +SRCS+= iconv_compat.c +.endif + SYM_MAPS+= ${LIBC_SRCTOP}/iconv/Symbol.map .if ${MK_ICONV} == yes diff --git a/lib/libc/posix1e/Makefile.inc b/lib/libc/posix1e/Makefile.inc index 2cc4158..85fed32 100644 --- a/lib/libc/posix1e/Makefile.inc +++ b/lib/libc/posix1e/Makefile.inc @@ -11,7 +11,6 @@ subr_acl_nfs4.c: ${LIBC_SRCTOP}/../../sys/kern/subr_acl_nfs4.c SRCS+= acl_branding.c \ acl_calc_mask.c \ acl_copy.c \ - acl_compat.c \ acl_delete.c \ acl_delete_entry.c \ acl_entry.c \ @@ -36,6 +35,9 @@ SRCS+= acl_branding.c \ mac_get.c \ mac_set.c \ subr_acl_nfs4.c +.if ${MK_SYMVER} == yes +SRCS+= acl_compat.c +.endif SYM_MAPS+=${LIBC_SRCTOP}/posix1e/Symbol.map diff --git a/lib/libc/secure/Makefile.inc b/lib/libc/secure/Makefile.inc index 6f18bde..e2e75c7 100644 --- a/lib/libc/secure/Makefile.inc +++ b/lib/libc/secure/Makefile.inc @@ -5,8 +5,9 @@ .PATH: ${LIBC_SRCTOP}/secure # Sources common to both syscall interfaces: -SRCS+= \ - stack_protector.c \ - stack_protector_compat.c +SRCS+= stack_protector.c +.if ${MK_SYMVER} == yes +SRCS+= stack_protector_compat.c +.endif SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map -- cgit v1.1 From f935438dcf193a38b91ac0a79a1ca4fa9f4829ad Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 18 Mar 2016 08:47:17 +0000 Subject: Use the right argumant name MFC after: 1 week Sponsored by: Panzura inc --- lib/libc/sys/modfind.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/modfind.2 b/lib/libc/sys/modfind.2 index 3f48579..38d09c4 100644 --- a/lib/libc/sys/modfind.2 +++ b/lib/libc/sys/modfind.2 @@ -49,7 +49,7 @@ The .Fn modfind system call returns the modid of the kernel module referenced by -.Fa file . +.Fa modname . Upon error, .Fn modfind returns -1 and sets -- cgit v1.1 From 6f8f2fe58616ae4446066288b54bcca96eac69be Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 21 Mar 2016 21:37:33 +0000 Subject: Fully handle size_t lengths in AIO requests. First, update the return types of aio_return() and aio_waitcomplete() to ssize_t. POSIX requires aio_return() to return a ssize_t so that it can represent all return values from read() and write(). aio_waitcomplete() should use ssize_t for the same reason. aio_return() has used ssize_t in since r31620 but the manpage and system call entry were not updated. aio_waitcomplete() has always returned int. Note that this does not require new system call stubs as this is effectively only an API change in how the compiler interprets the return value. Second, allow aio_nbytes values up to IOSIZE_MAX instead of just INT_MAX. aio_read/write should now honor the same length limits as normal read/write. Third, use longs instead of ints in the aio_return() and aio_waitcomplete() system call functions so that the 64-bit size_t in the in-kernel aiocb isn't truncated to 32-bits before being copied out to userland or being returned. Finally, a simple test has been added to verify the bounds checking on the maximum read size from a file. --- lib/libc/sys/aio_return.2 | 4 ++-- lib/libc/sys/aio_waitcomplete.2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/aio_return.2 b/lib/libc/sys/aio_return.2 index 2ef6c25..df55873 100644 --- a/lib/libc/sys/aio_return.2 +++ b/lib/libc/sys/aio_return.2 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 7, 2006 +.Dd March 21, 2016 .Dt AIO_RETURN 2 .Os .Sh NAME @@ -34,7 +34,7 @@ .Lb libc .Sh SYNOPSIS .In aio.h -.Ft int +.Ft ssize_t .Fn aio_return "struct aiocb *iocb" .Sh DESCRIPTION The diff --git a/lib/libc/sys/aio_waitcomplete.2 b/lib/libc/sys/aio_waitcomplete.2 index 885b3d7..66e7208 100644 --- a/lib/libc/sys/aio_waitcomplete.2 +++ b/lib/libc/sys/aio_waitcomplete.2 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 19, 2000 +.Dd March 21, 2016 .Dt AIO_WAITCOMPLETE 2 .Os .Sh NAME @@ -34,7 +34,7 @@ .Lb libc .Sh SYNOPSIS .In aio.h -.Ft int +.Ft ssize_t .Fn aio_waitcomplete "struct aiocb **iocbp" "struct timespec *timeout" .Sh DESCRIPTION The -- cgit v1.1 From d4d16ecba26c5867cff9778c3902fd4428a34987 Mon Sep 17 00:00:00 2001 From: emaste Date: Thu, 24 Mar 2016 18:47:19 +0000 Subject: libc: stop exporting curbrk and minbrk in the private namespace They are not used anywhere else in the base system and are an internal implementation detail that does not need to be exposed. Reviewed by: kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5728 --- lib/libc/aarch64/Symbol.map | 2 -- lib/libc/amd64/Symbol.map | 2 -- lib/libc/arm/Symbol.map | 2 -- lib/libc/i386/Symbol.map | 2 -- lib/libc/mips/Symbol.map | 2 -- lib/libc/powerpc/Symbol.map | 2 -- lib/libc/powerpc64/Symbol.map | 2 -- lib/libc/riscv/Symbol.map | 2 -- lib/libc/sparc64/Symbol.map | 2 -- 9 files changed, 18 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/aarch64/Symbol.map b/lib/libc/aarch64/Symbol.map index 84c38d8..0c00ec2 100644 --- a/lib/libc/aarch64/Symbol.map +++ b/lib/libc/aarch64/Symbol.map @@ -36,7 +36,5 @@ FBSD_1.0 { FBSDprivate_1.0 { _set_tp; _end; - curbrk; - minbrk; __makecontext; }; diff --git a/lib/libc/amd64/Symbol.map b/lib/libc/amd64/Symbol.map index bbf6113..5354d66 100644 --- a/lib/libc/amd64/Symbol.map +++ b/lib/libc/amd64/Symbol.map @@ -63,8 +63,6 @@ FBSDprivate_1.0 { __signalcontext; signalcontext; __siglongjmp; - .curbrk; - .minbrk; _brk; _end; __sys_vfork; diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map index cf65492..01c0237 100644 --- a/lib/libc/arm/Symbol.map +++ b/lib/libc/arm/Symbol.map @@ -60,8 +60,6 @@ FBSDprivate_1.0 { _vfork; _brk; _end; - curbrk; - minbrk; _sbrk; /* softfloat */ diff --git a/lib/libc/i386/Symbol.map b/lib/libc/i386/Symbol.map index 78be4c4..20dbc3e 100644 --- a/lib/libc/i386/Symbol.map +++ b/lib/libc/i386/Symbol.map @@ -64,6 +64,4 @@ FBSDprivate_1.0 { _vfork; _end; _brk; - .curbrk; - .minbrk; }; diff --git a/lib/libc/mips/Symbol.map b/lib/libc/mips/Symbol.map index d7fbd0a..5eb87f2 100644 --- a/lib/libc/mips/Symbol.map +++ b/lib/libc/mips/Symbol.map @@ -52,8 +52,6 @@ FBSDprivate_1.0 { __sys_vfork; _vfork; _end; - __curbrk; - minbrk; _brk; _sbrk; diff --git a/lib/libc/powerpc/Symbol.map b/lib/libc/powerpc/Symbol.map index 10b7c57..0da4141 100644 --- a/lib/libc/powerpc/Symbol.map +++ b/lib/libc/powerpc/Symbol.map @@ -56,7 +56,5 @@ FBSDprivate_1.0 { __signalcontext; __syncicache; _end; - .curbrk; - .minbrk; .cerror; }; diff --git a/lib/libc/powerpc64/Symbol.map b/lib/libc/powerpc64/Symbol.map index 018a193..ab9670e 100644 --- a/lib/libc/powerpc64/Symbol.map +++ b/lib/libc/powerpc64/Symbol.map @@ -52,7 +52,5 @@ FBSDprivate_1.0 { __signalcontext; __syncicache; _end; - _curbrk; - _minbrk; _cerror; }; diff --git a/lib/libc/riscv/Symbol.map b/lib/libc/riscv/Symbol.map index 84c38d8..0c00ec2 100644 --- a/lib/libc/riscv/Symbol.map +++ b/lib/libc/riscv/Symbol.map @@ -36,7 +36,5 @@ FBSD_1.0 { FBSDprivate_1.0 { _set_tp; _end; - curbrk; - minbrk; __makecontext; }; diff --git a/lib/libc/sparc64/Symbol.map b/lib/libc/sparc64/Symbol.map index 4f90486..bf0f198 100644 --- a/lib/libc/sparc64/Symbol.map +++ b/lib/libc/sparc64/Symbol.map @@ -80,8 +80,6 @@ FBSDprivate_1.0 { signalcontext; __signalcontext; __siglongjmp; - .curbrk; - .minbrk; __sys_brk; _brk; .cerror; -- cgit v1.1 From 991d92a87e83e1b02cebee9d52af4a783ab2c66b Mon Sep 17 00:00:00 2001 From: bdrewery Date: Sat, 26 Mar 2016 03:46:12 +0000 Subject: Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. Sponsored by: EMC / Isilon Storage Division --- lib/libc/net/Makefile.inc | 1 - lib/libc/stdtime/Makefile.inc | 1 - 2 files changed, 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index 6f51f08..304c465 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -35,7 +35,6 @@ YFLAGS+=-p_nsyy LFLAGS+=-P_nsyy CFLAGS.nslexer.c= -DYY_BUF_SIZE=1024 -CFLAGS+= ${CFLAGS.${.IMPSRC:T}} MAN+= byteorder.3 ethers.3 eui64.3 \ getaddrinfo.3 gai_strerror.3 gethostbyname.3 \ diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc index 3220cc9..9b53ba5 100644 --- a/lib/libc/stdtime/Makefile.inc +++ b/lib/libc/stdtime/Makefile.inc @@ -12,7 +12,6 @@ SYM_MAPS+= ${LIBC_SRCTOP}/stdtime/Symbol.map CFLAGS+= -I${LIBC_SRCTOP}/../../contrib/tzcode/stdtime -I${LIBC_SRCTOP}/stdtime CFLAGS.localtime.c= -fwrapv -CFLAGS+= ${CFLAGS.${.IMPSRC:T}} MAN+= ctime.3 strftime.3 strptime.3 time2posix.3 MAN+= tzfile.5 -- cgit v1.1 From e94990b345ddf2df45ce59ae5a38beae33e86178 Mon Sep 17 00:00:00 2001 From: trasz Date: Mon, 28 Mar 2016 16:48:28 +0000 Subject: Fix bunch of .Xrs. MFC after: 1 month Sponsored by: The FreeBSD Foundation --- lib/libc/stdio/open_memstream.3 | 4 ++-- lib/libc/sys/ptrace.2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/open_memstream.3 b/lib/libc/stdio/open_memstream.3 index 1a0cb07..8e2c1e9 100644 --- a/lib/libc/stdio/open_memstream.3 +++ b/lib/libc/stdio/open_memstream.3 @@ -144,8 +144,8 @@ Memory for the stream or buffer could not be allocated. .Xr fopen 3 , .Xr free 3 , .Xr fseek 3 , -.Xr sbuf 3 , -.Xr stdio 3 +.Xr stdio 3 , +.Xr sbuf 9 .Sh STANDARDS The .Fn open_memstream diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index 786f457..10ad660 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -103,7 +103,7 @@ be ignored. If the child was created by .Xr vfork 2 system call or -.Xr rfork(2) +.Xr rfork 2 call with the .Dv RFMEM flag specified, the debugging events are reported to the parent -- cgit v1.1 From dd505c7bdadb032f6e8d5b063b17b0044d3c1983 Mon Sep 17 00:00:00 2001 From: pfg Date: Wed, 30 Mar 2016 01:32:08 +0000 Subject: freopen(3): prevent uninitialized errno. The case doesn't look very likely but clean the possibility nevertheless CID: 1018720 MFC after: 1 week --- lib/libc/stdio/freopen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c index e0104c8..13c19a7 100644 --- a/lib/libc/stdio/freopen.c +++ b/lib/libc/stdio/freopen.c @@ -66,7 +66,8 @@ freopen(const char * __restrict file, const char * __restrict mode, (void) fclose(fp); errno = sverrno; return (NULL); - } + } else + sverrno = 0; FLOCKFILE(fp); -- cgit v1.1 From 3b7dd3908649871ac4cbd66a47ff4c055b7c82a8 Mon Sep 17 00:00:00 2001 From: pfg Date: Wed, 30 Mar 2016 06:13:58 +0000 Subject: freopen(3): prevent uninitialized errno. Revert r297407 and redo it cleanly. Pointed out by: Jukka A. Ukkonen CID: 1018720 MFC after: 1 week --- lib/libc/stdio/freopen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c index 13c19a7..8138a6b 100644 --- a/lib/libc/stdio/freopen.c +++ b/lib/libc/stdio/freopen.c @@ -66,8 +66,7 @@ freopen(const char * __restrict file, const char * __restrict mode, (void) fclose(fp); errno = sverrno; return (NULL); - } else - sverrno = 0; + } FLOCKFILE(fp); @@ -79,6 +78,7 @@ freopen(const char * __restrict file, const char * __restrict mode, * re-open the same file with a different mode. We allow this only * if the modes are compatible. */ + sverrno = 0; if (file == NULL) { /* See comment below regarding freopen() of closed files. */ if (fp->_flags == 0) { -- cgit v1.1 From 743d44200ec9374c72cd347b700bc811f99d04ac Mon Sep 17 00:00:00 2001 From: pfg Date: Wed, 30 Mar 2016 13:26:35 +0000 Subject: freopen(3): prevent uninitialized errno. Revert completley r297408 (and r297407): this ends up touching errno, which we are not allowed to do. Pointed out by: ache, bde --- lib/libc/stdio/freopen.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c index 8138a6b..e0104c8 100644 --- a/lib/libc/stdio/freopen.c +++ b/lib/libc/stdio/freopen.c @@ -78,7 +78,6 @@ freopen(const char * __restrict file, const char * __restrict mode, * re-open the same file with a different mode. We allow this only * if the modes are compatible. */ - sverrno = 0; if (file == NULL) { /* See comment below regarding freopen() of closed files. */ if (fp->_flags == 0) { -- cgit v1.1 From 718fbb1dc638f5d6d9083101954eb47d86501103 Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 30 Mar 2016 14:42:09 +0000 Subject: libc: stop exporting cerror i386 stopped exporting .cerror in r240152, and likewise for amd64 in r240178. It is not used by other libraries on any platform, so apply the same change to the remaining architectures. Reviewed by: jhibbits, jilles Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5774 --- lib/libc/arm/Symbol.map | 1 - lib/libc/mips/Symbol.map | 1 - lib/libc/powerpc/Symbol.map | 1 - lib/libc/powerpc64/Symbol.map | 1 - lib/libc/sparc64/Symbol.map | 1 - 5 files changed, 5 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map index 01c0237..3c5c80f 100644 --- a/lib/libc/arm/Symbol.map +++ b/lib/libc/arm/Symbol.map @@ -29,7 +29,6 @@ FBSD_1.0 { ntohs; vfork; brk; - cerror; /* XXX - Should this be .cerror (see sys/cerror.S)? */ sbrk; }; diff --git a/lib/libc/mips/Symbol.map b/lib/libc/mips/Symbol.map index 5eb87f2..3868080 100644 --- a/lib/libc/mips/Symbol.map +++ b/lib/libc/mips/Symbol.map @@ -28,7 +28,6 @@ FBSD_1.0 { ntohs; vfork; brk; - cerror; /* XXX - Should this be .cerror (see sys/cerror.S)? */ sbrk; }; diff --git a/lib/libc/powerpc/Symbol.map b/lib/libc/powerpc/Symbol.map index 0da4141..f695c81 100644 --- a/lib/libc/powerpc/Symbol.map +++ b/lib/libc/powerpc/Symbol.map @@ -56,5 +56,4 @@ FBSDprivate_1.0 { __signalcontext; __syncicache; _end; - .cerror; }; diff --git a/lib/libc/powerpc64/Symbol.map b/lib/libc/powerpc64/Symbol.map index ab9670e..c429e84 100644 --- a/lib/libc/powerpc64/Symbol.map +++ b/lib/libc/powerpc64/Symbol.map @@ -52,5 +52,4 @@ FBSDprivate_1.0 { __signalcontext; __syncicache; _end; - _cerror; }; diff --git a/lib/libc/sparc64/Symbol.map b/lib/libc/sparc64/Symbol.map index bf0f198..1dc3d15 100644 --- a/lib/libc/sparc64/Symbol.map +++ b/lib/libc/sparc64/Symbol.map @@ -82,7 +82,6 @@ FBSDprivate_1.0 { __siglongjmp; __sys_brk; _brk; - .cerror; __sys_exect; _exect; _end; -- cgit v1.1 From 9fd5efc7e54ec4734354c84ffad10395c3eb8399 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Thu, 31 Mar 2016 17:27:01 +0000 Subject: WITHOUT_TOOLCHAIN: Fix build of rtld. MK_TOOLCHAIN==no disables building and installing of pic archives. c_pic.a is still needed for rtld though so force it to build in lib/libc and link directly to the objdir version of it for rtld. Somehow this has been broken since r148725. Sponsored by: EMC / Isilon Storage Division --- lib/libc/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 707fc1a..8b3f201 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -5,6 +5,9 @@ SHLIBDIR?= /lib .include +# Force building of libc_pic.a +MK_TOOLCHAIN= yes + LIBC_SRCTOP?= ${.CURDIR} # Pick the current architecture directory for libc. In general, this is -- cgit v1.1 From 42da510ee854f9caa310848f6abe9e86fb750d7d Mon Sep 17 00:00:00 2001 From: bdrewery Date: Thu, 31 Mar 2016 17:27:17 +0000 Subject: WITHOUT_TOOLCHAIN: Skip building of h_raw. -fsanitize does not seem to work when a --sysroot is specified and there is no /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.ubsan_standalone-*.a. Sponsored by: EMC / Isilon Storage Division --- lib/libc/tests/ssp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/tests/ssp/Makefile b/lib/libc/tests/ssp/Makefile index 61caced..2ac74aa 100644 --- a/lib/libc/tests/ssp/Makefile +++ b/lib/libc/tests/ssp/Makefile @@ -32,7 +32,7 @@ PROGS+= h_memset # # sanitizer is not tested or supported for ARM right now. sbruno .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" -.if ${COMPILER_TYPE} == "clang" +.if ${COMPILER_TYPE} == "clang" && ${MK_TOOLCHAIN} == "yes" .if ${COMPILER_VERSION} < 30500 || 30700 <= ${COMPILER_VERSION} PROGS+= h_raw .endif -- cgit v1.1 From a7a00fecb83caac41dffa2ec4bc5110ef4de8300 Mon Sep 17 00:00:00 2001 From: brooks Date: Thu, 31 Mar 2016 23:55:19 +0000 Subject: Document KTRFAC_FAULT and KTRFAC_FAULTEND. Obtained from: CheriBSD (9d70f563f1b033e6a9b51eaf3b145a8cbbc6617c) MFC after: 1 week Sponsored by: DARPA, AFRL --- lib/libc/sys/ktrace.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2 index 4e5d92a..b02a672 100644 --- a/lib/libc/sys/ktrace.2 +++ b/lib/libc/sys/ktrace.2 @@ -28,7 +28,7 @@ .\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd October 10, 2011 +.Dd March 31, 2016 .Dt KTRACE 2 .Os .Sh NAME @@ -94,6 +94,8 @@ generate much output). .It KTRFAC_PROCCTOR Ta "Trace process construction." .It KTRFAC_PROCDTOR Ta "Trace process destruction." .It KTRFAC_CAPFAIL Ta "Trace capability failures." +.It KTRFAC_FAULT Ta "Trace page faults." +.It KTRFAC_FAULTEND Ta "Trace the end of page faults." .It KTRFAC_INHERIT Ta "Inherit tracing to future children." .El .Pp -- cgit v1.1 From d3bad64f6d53dc36ef21f75dbf184ebb3c978c5a Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 4 Apr 2016 02:43:35 +0000 Subject: EUC-type encodings don't have single byte characters >= 128 This change should not be MFCed until new collate will be MFCed first, because our old EUC tables have some hacks for missing codesets. --- lib/libc/locale/euc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/locale/euc.c b/lib/libc/locale/euc.c index c2a2e3b..2fe4046 100644 --- a/lib/libc/locale/euc.c +++ b/lib/libc/locale/euc.c @@ -132,7 +132,7 @@ _EUC_CN_init(struct xlocale_ctype *l, _RuneLocale *rl) l->runes = rl; l->__mb_cur_max = 4; - l->__mb_sb_limit = 256; + l->__mb_sb_limit = 128; return (0); } @@ -226,7 +226,7 @@ _EUC_JP_init(struct xlocale_ctype *l, _RuneLocale *rl) l->runes = rl; l->__mb_cur_max = 3; - l->__mb_sb_limit = 196; + l->__mb_sb_limit = 128; return (0); } @@ -273,7 +273,7 @@ _EUC_TW_init(struct xlocale_ctype *l, _RuneLocale *rl) l->runes = rl; l->__mb_cur_max = 4; - l->__mb_sb_limit = 256; + l->__mb_sb_limit = 128; return (0); } -- cgit v1.1 From b6c01ffbf517baa5a9a91cc3281fd91013b806df Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 4 Apr 2016 15:56:14 +0000 Subject: SJIS encoding don't have single byte characters >= 224 MFC after: 1 week --- lib/libc/locale/mskanji.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/locale/mskanji.c b/lib/libc/locale/mskanji.c index dc2d0e1..c7da4b5 100644 --- a/lib/libc/locale/mskanji.c +++ b/lib/libc/locale/mskanji.c @@ -83,7 +83,7 @@ _MSKanji_init(struct xlocale_ctype *l, _RuneLocale *rl) l->__mbsinit = _MSKanji_mbsinit; l->runes = rl; l->__mb_cur_max = 2; - l->__mb_sb_limit = 256; + l->__mb_sb_limit = 224; return (0); } -- cgit v1.1