added lchown check to configure.ac
This commit is contained in:
parent
588560abbb
commit
50eec135d8
2
qse/configure
vendored
2
qse/configure
vendored
@ -18095,7 +18095,7 @@ _ACEOF
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for ac_func in fchmod fchmodat fchown fchownat fsync ftruncate
|
for ac_func in fchmod fchmodat fchown fchownat lchown fsync ftruncate
|
||||||
do :
|
do :
|
||||||
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
||||||
|
@ -123,7 +123,7 @@ AC_CHECK_FUNCS([isblank iswblank])
|
|||||||
AC_CHECK_FUNCS([lseek64 ftruncate64 readdir64 dirfd])
|
AC_CHECK_FUNCS([lseek64 ftruncate64 readdir64 dirfd])
|
||||||
AC_CHECK_FUNCS([stat64 fstat64 lstat64 fstatat64])
|
AC_CHECK_FUNCS([stat64 fstat64 lstat64 fstatat64])
|
||||||
AC_CHECK_FUNCS([fstat fstatat])
|
AC_CHECK_FUNCS([fstat fstatat])
|
||||||
AC_CHECK_FUNCS([fchmod fchmodat fchown fchownat fsync ftruncate])
|
AC_CHECK_FUNCS([fchmod fchmodat fchown fchownat lchown fsync ftruncate])
|
||||||
AC_CHECK_FUNCS([timegm timelocal localtime_r gmtime_r gettimeofday settimeofday])
|
AC_CHECK_FUNCS([timegm timelocal localtime_r gmtime_r gettimeofday settimeofday])
|
||||||
AC_CHECK_FUNCS([utime utimes futimes lutimes futimens utimensat])
|
AC_CHECK_FUNCS([utime utimes futimes lutimes futimens utimensat])
|
||||||
AC_CHECK_FUNCS([sysconf prctl fdopendir setrlimit getrlimit getpgid getpgrp])
|
AC_CHECK_FUNCS([sysconf prctl fdopendir setrlimit getrlimit getpgid getpgrp])
|
||||||
|
@ -283,6 +283,9 @@
|
|||||||
/* Define to 1 if you have the `kqueue1' function. */
|
/* Define to 1 if you have the `kqueue1' function. */
|
||||||
#undef HAVE_KQUEUE1
|
#undef HAVE_KQUEUE1
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `lchown' function. */
|
||||||
|
#undef HAVE_LCHOWN
|
||||||
|
|
||||||
/* Define to 1 if you have the <linux/ethtool.h> header file. */
|
/* Define to 1 if you have the <linux/ethtool.h> header file. */
|
||||||
#undef HAVE_LINUX_ETHTOOL_H
|
#undef HAVE_LINUX_ETHTOOL_H
|
||||||
|
|
||||||
|
@ -1311,14 +1311,12 @@ int qse_awk_fnc_sprintf (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
|
|||||||
{
|
{
|
||||||
qse_size_t nargs;
|
qse_size_t nargs;
|
||||||
qse_awk_val_t* a0;
|
qse_awk_val_t* a0;
|
||||||
qse_awk_val_type_t vtype;
|
|
||||||
|
|
||||||
nargs = qse_awk_rtx_getnargs (rtx);
|
nargs = qse_awk_rtx_getnargs (rtx);
|
||||||
QSE_ASSERT (nargs > 0);
|
QSE_ASSERT (nargs > 0);
|
||||||
|
|
||||||
a0 = qse_awk_rtx_getarg(rtx, 0);
|
a0 = qse_awk_rtx_getarg(rtx, 0);
|
||||||
vtype = QSE_AWK_RTX_GETVALTYPE(rtx, a0);
|
if (QSE_AWK_RTX_GETVALTYPE(rtx, a0) == QSE_AWK_VAL_MBS)
|
||||||
if (vtype == QSE_AWK_VAL_MBS)
|
|
||||||
{
|
{
|
||||||
qse_mbs_t out, fbu;
|
qse_mbs_t out, fbu;
|
||||||
int out_inited = 0, fbu_inited = 0;
|
int out_inited = 0, fbu_inited = 0;
|
||||||
@ -1402,7 +1400,7 @@ int qse_awk_fnc_sprintf (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fnc_int (qse_awk_rtx_t* run, const qse_awk_fnc_info_t* fi)
|
static int fnc_int (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
|
||||||
{
|
{
|
||||||
qse_size_t nargs;
|
qse_size_t nargs;
|
||||||
qse_awk_val_t* a0;
|
qse_awk_val_t* a0;
|
||||||
@ -1410,22 +1408,22 @@ static int fnc_int (qse_awk_rtx_t* run, const qse_awk_fnc_info_t* fi)
|
|||||||
qse_awk_val_t* r;
|
qse_awk_val_t* r;
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
nargs = qse_awk_rtx_getnargs (run);
|
nargs = qse_awk_rtx_getnargs(rtx);
|
||||||
QSE_ASSERT (nargs == 1);
|
QSE_ASSERT (nargs == 1);
|
||||||
|
|
||||||
a0 = qse_awk_rtx_getarg (run, 0);
|
a0 = qse_awk_rtx_getarg(rtx, 0);
|
||||||
|
|
||||||
n = qse_awk_rtx_valtoint (run, a0, &lv);
|
n = qse_awk_rtx_valtoint(rtx, a0, &lv);
|
||||||
if (n <= -1) return -1;
|
if (n <= -1) return -1;
|
||||||
|
|
||||||
r = qse_awk_rtx_makeintval (run, lv);
|
r = qse_awk_rtx_makeintval(rtx, lv);
|
||||||
if (r == QSE_NULL) return -1;
|
if (r == QSE_NULL) return -1;
|
||||||
|
|
||||||
qse_awk_rtx_setretval (run, r);
|
qse_awk_rtx_setretval (rtx, r);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fnc_asort (qse_awk_rtx_t* run, const qse_awk_fnc_info_t* fi)
|
static int fnc_asort (qse_awk_rtx_t* rtx, const qse_awk_fnc_info_t* fi)
|
||||||
{
|
{
|
||||||
qse_size_t nargs;
|
qse_size_t nargs;
|
||||||
qse_awk_val_t* a0;
|
qse_awk_val_t* a0;
|
||||||
@ -1434,17 +1432,17 @@ static int fnc_asort (qse_awk_rtx_t* run, const qse_awk_fnc_info_t* fi)
|
|||||||
int n;
|
int n;
|
||||||
|
|
||||||
/* TODO: .......................... */
|
/* TODO: .......................... */
|
||||||
nargs = qse_awk_rtx_getnargs (run);
|
nargs = qse_awk_rtx_getnargs(rtx);
|
||||||
QSE_ASSERT (nargs == 1);
|
QSE_ASSERT (nargs == 1);
|
||||||
|
|
||||||
a0 = qse_awk_rtx_getarg (run, 0);
|
a0 = qse_awk_rtx_getarg(rtx, 0);
|
||||||
|
|
||||||
n = qse_awk_rtx_valtoint (run, a0, &lv);
|
n = qse_awk_rtx_valtoint(rtx, a0, &lv);
|
||||||
if (n <= -1) return -1;
|
if (n <= -1) return -1;
|
||||||
|
|
||||||
r = qse_awk_rtx_makeintval (run, lv);
|
r = qse_awk_rtx_makeintval(rtx, lv);
|
||||||
if (r == QSE_NULL) return -1;
|
if (r == QSE_NULL) return -1;
|
||||||
|
|
||||||
qse_awk_rtx_setretval (run, r);
|
qse_awk_rtx_setretval (rtx, r);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -410,7 +410,6 @@ pdfdir = @pdfdir@
|
|||||||
prefix = @prefix@
|
prefix = @prefix@
|
||||||
program_transform_name = @program_transform_name@
|
program_transform_name = @program_transform_name@
|
||||||
psdir = @psdir@
|
psdir = @psdir@
|
||||||
runstatedir = @runstatedir@
|
|
||||||
sbindir = @sbindir@
|
sbindir = @sbindir@
|
||||||
sharedstatedir = @sharedstatedir@
|
sharedstatedir = @sharedstatedir@
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
|
Loading…
Reference in New Issue
Block a user