003 File Manager
Current Path:
/usr/src/sys/contrib/openzfs/config
usr
/
src
/
sys
/
contrib
/
openzfs
/
config
/
📁
..
📄
.gitignore
(96 B)
📄
Abigail.am
(873 B)
📄
Rules.am
(1.77 KB)
📄
Substfiles.am
(1.11 KB)
📄
always-arch.m4
(855 B)
📄
always-compiler-options.m4
(5.25 KB)
📄
always-python.m4
(2.18 KB)
📄
always-pyzfs.m4
(2.84 KB)
📄
always-sed.m4
(539 B)
📄
always-system.m4
(639 B)
📄
ax_code_coverage.m4
(11.69 KB)
📄
ax_python_devel.m4
(11.49 KB)
📄
ax_restore_flags.m4
(881 B)
📄
ax_save_flags.m4
(871 B)
📄
config.awk
(334 B)
📄
config.rpath
(18.14 KB)
📄
deb.am
(2.98 KB)
📄
find_system_library.m4
(2.93 KB)
📄
gettext.m4
(14.14 KB)
📄
host-cpu-c-abi.m4
(20.99 KB)
📄
iconv.m4
(9.47 KB)
📄
intlmacosx.m4
(3.24 KB)
📄
kernel-access-ok-type.m4
(747 B)
📄
kernel-acl.m4
(7.63 KB)
📄
kernel-aio-fsync.m4
(534 B)
📄
kernel-automount.m4
(817 B)
📄
kernel-bdi.m4
(2.12 KB)
📄
kernel-bio.m4
(9.91 KB)
📄
kernel-blk-queue.m4
(8.08 KB)
📄
kernel-blkdev.m4
(8.09 KB)
📄
kernel-block-device-operations.m4
(1.76 KB)
📄
kernel-clear-inode.m4
(1.4 KB)
📄
kernel-commit-metadata.m4
(810 B)
📄
kernel-config-defined.m4
(5.3 KB)
📄
kernel-current-time.m4
(590 B)
📄
kernel-declare-event-class.m4
(1.35 KB)
📄
kernel-dentry-operations.m4
(4.66 KB)
📄
kernel-dirty-inode.m4
(817 B)
📄
kernel-discard-granularity.m4
(568 B)
📄
kernel-encode-fh-inode.m4
(934 B)
📄
kernel-evict-inode.m4
(701 B)
📄
kernel-fallocate.m4
(697 B)
📄
kernel-file-dentry.m4
(653 B)
📄
kernel-file-inode.m4
(533 B)
📄
kernel-fmode-t.m4
(440 B)
📄
kernel-follow-down-one.m4
(576 B)
📄
kernel-fpu.m4
(3.33 KB)
📄
kernel-fst-mount.m4
(951 B)
📄
kernel-fsync.m4
(1.18 KB)
📄
kernel-generic_io_acct.m4
(2.42 KB)
📄
kernel-generic_readlink.m4
(637 B)
📄
kernel-get-disk-and-module.m4
(0 B)
📄
kernel-get-disk-ro.m4
(455 B)
📄
kernel-get-link.m4
(2.95 KB)
📄
kernel-global_page_state.m4
(3.71 KB)
📄
kernel-group-info.m4
(557 B)
📄
kernel-hotplug.m4
(720 B)
📄
kernel-in-compat-syscall.m4
(635 B)
📄
kernel-inode-create.m4
(613 B)
📄
kernel-inode-getattr.m4
(1.29 KB)
📄
kernel-inode-lock.m4
(650 B)
📄
kernel-inode-lookup.m4
(620 B)
📄
kernel-inode-set-flags.m4
(542 B)
📄
kernel-inode-set-iversion.m4
(560 B)
📄
kernel-inode-times.m4
(1.1 KB)
📄
kernel-insert-inode-locked.m4
(541 B)
📄
kernel-is_owner_or_cap.m4
(639 B)
📄
kernel-kmap-atomic-args.m4
(532 B)
📄
kernel-kmem-cache.m4
(1.12 KB)
📄
kernel-kmem.m4
(3.03 KB)
📄
kernel-kstrtoul.m4
(479 B)
📄
kernel-ktime.m4
(1.36 KB)
📄
kernel-kuid-helpers.m4
(611 B)
📄
kernel-kuidgid.m4
(543 B)
📄
kernel-lseek-execute.m4
(744 B)
📄
kernel-make-request-fn.m4
(4.33 KB)
📄
kernel-misc-minor.m4
(885 B)
📄
kernel-mkdir-umode-t.m4
(1 KB)
📄
kernel-mod-param.m4
(789 B)
📄
kernel-objtool.m4
(1.61 KB)
📄
kernel-pde-data.m4
(422 B)
📄
kernel-percpu.m4
(1.51 KB)
📄
kernel-proc-operations.m4
(1.31 KB)
📄
kernel-put-link.m4
(1.54 KB)
📄
kernel-rename.m4
(787 B)
📄
kernel-revalidate-disk-size.m4
(1.14 KB)
📄
kernel-rw.m4
(1.53 KB)
📄
kernel-rwsem.m4
(1.47 KB)
📄
kernel-sched.m4
(2.01 KB)
📄
kernel-security-inode-init.m4
(1.19 KB)
📄
kernel-set-nlink.m4
(450 B)
📄
kernel-setattr-prepare.m4
(748 B)
📄
kernel-sget-args.m4
(609 B)
📄
kernel-show-options.m4
(596 B)
📄
kernel-shrink.m4
(3.96 KB)
📄
kernel-super-userns.m4
(633 B)
📄
kernel-timer.m4
(1.95 KB)
📄
kernel-tmpfile.m4
(636 B)
📄
kernel-totalhigh_pages.m4
(500 B)
📄
kernel-totalram-pages-func.m4
(620 B)
📄
kernel-truncate-setsize.m4
(518 B)
📄
kernel-userns-capabilities.m4
(2.59 KB)
📄
kernel-usleep_range.m4
(608 B)
📄
kernel-vfs-direct_IO.m4
(2.7 KB)
📄
kernel-vfs-fsync.m4
(464 B)
📄
kernel-vfs-getattr.m4
(2.02 KB)
📄
kernel-vfs-iov_iter.m4
(4.97 KB)
📄
kernel-vfs-iterate.m4
(2.23 KB)
📄
kernel-vfs-rw-iterate.m4
(1.93 KB)
📄
kernel-wait.m4
(2.82 KB)
📄
kernel-xattr-handler.m4
(11.09 KB)
📄
kernel-zlib.m4
(931 B)
📄
kernel.m4
(23.74 KB)
📄
lib-ld.m4
(5.24 KB)
📄
lib-link.m4
(31.99 KB)
📄
lib-prefix.m4
(9.43 KB)
📄
mount-helper.m4
(240 B)
📄
nls.m4
(1.2 KB)
📄
pkg.m4
(10.01 KB)
📄
po.m4
(18.39 KB)
📄
progtest.m4
(3.02 KB)
📄
rpm.am
(3.72 KB)
📄
tgz.am
(992 B)
📄
toolchain-simd.m4
(9.44 KB)
📄
user-clock_gettime.m4
(387 B)
📄
user-dracut.m4
(545 B)
📄
user-gettext.m4
(171 B)
📄
user-libaio.m4
(218 B)
📄
user-libblkid.m4
(327 B)
📄
user-libcrypto.m4
(325 B)
📄
user-libexec.m4
(246 B)
📄
user-libtirpc.m4
(990 B)
📄
user-libudev.m4
(457 B)
📄
user-libuuid.m4
(250 B)
📄
user-makedev.m4
(793 B)
📄
user-pam.m4
(1 KB)
📄
user-runstatedir.m4
(208 B)
📄
user-systemd.m4
(1.88 KB)
📄
user-sysvinit.m4
(276 B)
📄
user-udev.m4
(724 B)
📄
user-zlib.m4
(230 B)
📄
user.m4
(1.14 KB)
📄
zfs-build.m4
(16.37 KB)
📄
zfs-meta.m4
(6.68 KB)
Editing: iconv.m4
# iconv.m4 serial 21 dnl Copyright (C) 2000-2002, 2007-2014, 2016-2019 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl so that if libiconv is installed, it will be used (unless disabled dnl via --without-libiconv-prefix). The first AC_LINK_IFELSE will dnl then fail, the second AC_LINK_IFELSE will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include <stdlib.h> #include <iconv.h> ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[ #include <stdlib.h> #include <iconv.h> ]], [[iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, dnl Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi am_cv_func_iconv_works=no for ac_iconv_const in '' 'const'; do AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[ #include <iconv.h> #include <string.h> #ifndef ICONV_CONST # define ICONV_CONST $ac_iconv_const #endif ]], [[int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 1; iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\263"; char buf[10]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) result |= 2; iconv_close (cd_ascii_to_88591); } } /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ { iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304"; static char buf[2] = { (char)0xDE, (char)0xAD }; ICONV_CONST char *inptr = input; size_t inbytesleft = 1; char *outptr = buf; size_t outbytesleft = 1; size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) result |= 4; iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) result |= 8; iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ { /* Try standardized names. */ iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); /* Try IRIX, OSF/1 names. */ iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); /* Try AIX names. */ iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); /* Try HP-UX names. */ iconv_t cd4 = iconv_open ("utf8", "eucJP"); if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) result |= 16; if (cd1 != (iconv_t)(-1)) iconv_close (cd1); if (cd2 != (iconv_t)(-1)) iconv_close (cd2); if (cd3 != (iconv_t)(-1)) iconv_close (cd3); if (cd4 != (iconv_t)(-1)) iconv_close (cd4); } return result; ]])], [am_cv_func_iconv_works=yes], , [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) test "$am_cv_func_iconv_works" = no || break done LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [m4_ifdef([gl_00GNULIB], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[ #include <stdlib.h> #include <iconv.h> extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ]], [[]])], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$am_cv_proto_iconv]) else dnl When compiling GNU libiconv on a system that does not have iconv yet, dnl pick the POSIX compliant declaration without 'const'. am_cv_proto_iconv_arg1="" fi AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>. m4_ifdef([gl_ICONV_H_DEFAULTS], [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) if test -n "$am_cv_proto_iconv_arg1"; then ICONV_CONST="const" fi ]) ])
Upload File
Create Folder