From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: Re: PATCH: Re: zsh tests (dev-15)
Date: Sun, 12 Mar 2000 22:21:35 +0000 [thread overview]
Message-ID: <1000312222135.ZM31017@candle.brasslantern.com> (raw)
In-Reply-To: <38CAAF7B.6330EA2B@u.genie.co.uk>
On Mar 11, 8:41pm, Oliver Kiddle wrote:
} Subject: PATCH: Re: zsh tests (dev-15)
}
} After a quick look at some man pages, it seems that Linux maybe doesn't
} have faccessx(). Is this right?
Here's a follow-up patch to test for faccessx() and omit Oliver's bit
if it isn't found. I've taken the liberty of rearranging the function
list for AC_CHECK_FUNCS a bit so that related things are grouped, after
a fashion.
I've kept the backslash at the end of every line, but are those really
necessary? I thought m4 would do the right thing with macro arguments
that span multiple lines.
Index: configure.in
===================================================================
@@ -802,22 +802,33 @@
#include <netinet/in.h>
], struct sockaddr_in6, sin6_scope_id)
+dnl ---------------
+dnl CHECK FUNCTIONS
+dnl ---------------
+
dnl need to integrate this function
dnl AC_FUNC_STRFTIME
-AC_CHECK_FUNCS(lchown memcpy memmove \
- strftime waitpid select poll tcsetpgrp tcgetattr strstr lstat \
- getlogin setpgid gettimeofday gethostname mkfifo wait3 difftime \
- sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit \
- sigprocmask setuid seteuid setreuid setresuid setsid strerror \
- nis_list initgroups fchdir cap_get_proc readlink nice \
- getgrgid getgrnam getpwent getpwnam getpwuid setpgrp \
- inet_aton inet_pton inet_ntop getipnodebyname gethostbyname2 \
- fseeko ftello mmap munmap msync ftruncate setlocale _mktemp)
+AC_CHECK_FUNCS(strftime difftime gettimeofday \
+ select poll \
+ readlink lstat lchown faccessx fchdir ftruncate \
+ fseeko ftello \
+ mkfifo _mktemp \
+ waitpid wait3 \
+ sigaction sigblock sighold sigrelse sigsetmask sigprocmask \
+ killpg setpgid setpgrp tcsetpgrp tcgetattr nice \
+ gethostname gethostbyname2 getipnodebyname \
+ inet_aton inet_pton inet_ntop \
+ getlogin getpwent getpwnam getpwuid getgrgid getgrnam \
+ initgroups nis_list \
+ setuid seteuid setreuid setresuid setsid \
+ memcpy memmove strstr strerror \
+ mmap munmap msync \
+ cap_get_proc \
+ getrlimit \
+ setlocale)
+AC_FUNC_STRCOLL
-dnl ---------------
-dnl CHECK FUNCTIONS
-dnl ---------------
if test $ac_cv_func_setpgrp = yes; then
AC_FUNC_GETPGRP
else
@@ -828,7 +839,6 @@
ac_cv_func_getpgrp_void=yes
AC_DEFINE(GETPGRP_VOID)
fi
-AC_FUNC_STRCOLL
if test $dynamic = yes; then
AC_CHECK_FUNCS(dlopen dlerror dlsym dlclose load loadquery loadbind unload \
Index: Src/cond.c
===================================================================
@@ -310,9 +310,10 @@
static int
doaccess(char *s, int c)
{
+#ifdef HAVE_FACCESSX
if (!strncmp(s, "/dev/fd/", 8))
return !faccessx(atoi(s + 8), c, ACC_SELF);
-
+#endif
return !access(unmeta(s), c);
}
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~2000-03-12 22:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-19 13:29 Oliver Kiddle
2000-01-19 19:26 ` Clint Adams
2000-01-19 19:55 ` Peter Stephenson
2000-03-11 20:41 ` PATCH: " Oliver Kiddle
2000-03-12 4:12 ` Bart Schaefer
2000-03-12 22:21 ` Bart Schaefer [this message]
2000-03-13 14:36 ` PATCH: " Zefram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1000312222135.ZM31017@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).