aboutsummaryrefslogtreecommitdiff
path: root/src/librc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-04 16:26:44 +0000
committerRoy Marples <roy@marples.name>2007-10-04 16:26:44 +0000
commite2e40afddef5253d5d669002b9afbea6bf3d6c66 (patch)
tree41314af54291fc3358361132463307a4b0da9d20 /src/librc-misc.c
parentd65c484f3a1b210048045613c524c29fdfcb470c (diff)
punt rc_is_exec
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r--src/librc-misc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c
index 060bee09..29d2763d 100644
--- a/src/librc-misc.c
+++ b/src/librc-misc.c
@@ -15,10 +15,6 @@
#define PATH_PREFIX RC_LIBDIR "/bin:/bin:/sbin:/usr/bin:/usr/sbin"
-#ifndef S_IXUGO
-# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
-#endif
-
void *rc_xmalloc (size_t size)
{
void *value = malloc (size);
@@ -166,21 +162,6 @@ bool rc_is_dir (const char *pathname)
}
librc_hidden_def(rc_is_dir)
-bool rc_is_exec (const char *pathname)
-{
- struct stat buf;
-
- if (! pathname)
- return (false);
-
- if (lstat (pathname, &buf) == 0)
- return (buf.st_mode & S_IXUGO);
-
- errno = 0;
- return (false);
-}
-librc_hidden_def(rc_is_exec)
-
char **rc_ls_dir (const char *dir, int options)
{
DIR *dp;