version 1.6, 2012/05/14 12:52:08 |
version 1.7, 2019/12/13 15:41:36 |
|
|
/* Copyright (c) 1987, 1988 by Software Research Associates, Inc. */ |
/* Copyright (c) 1987, 1988 by Software Research Associates, Inc. */ |
|
|
|
#if defined(ANDROID) |
|
#include <strings.h> |
|
#define index(s,c) strchr(s,c) |
|
#define rindex(s,c) strrchr(s,c) |
|
#endif |
|
|
#ifndef lint |
#ifndef lint |
static char rcsid[]= |
static char rcsid[]= |
"$Id$ (SRA)"; |
"$Id$ (SRA)"; |
Line 26 static char rcsid[]= |
|
Line 32 static char rcsid[]= |
|
#if defined(__CYGWIN__) |
#if defined(__CYGWIN__) |
#include <sys/dirent.h> |
#include <sys/dirent.h> |
#define direct dirent |
#define direct dirent |
#elif defined(sun) || defined(__FreeBSD__) |
#elif defined(sun) || defined(__FreeBSD__) || defined(ANDROID) |
#include <dirent.h> |
#include <dirent.h> |
#define direct dirent |
#define direct dirent |
#include <unistd.h> |
#include <unistd.h> |
Line 1771 expand_file_name () |
|
Line 1777 expand_file_name () |
|
int found = 0; |
int found = 0; |
int i; |
int i; |
int tilde_expanded = 0; |
int tilde_expanded = 0; |
|
#if !defined(ANDROID) |
CHAR *index(), *rindex(); |
CHAR *index(), *rindex(); |
|
#endif |
|
|
if (delimiters == NULL) |
if (delimiters == NULL) |
delimiters = DEFAULT_DELIMITERS; |
delimiters = DEFAULT_DELIMITERS; |
Line 1884 list_file_name () |
|
Line 1892 list_file_name () |
|
CHAR *cp; |
CHAR *cp; |
char dir[256]; |
char dir[256]; |
DIR *dirp, *x_opendir(); |
DIR *dirp, *x_opendir(); |
|
#if !defined(ANDROID) |
CHAR *index(), *rindex(); |
CHAR *index(), *rindex(); |
|
#endif |
|
|
if (delimiters == NULL) |
if (delimiters == NULL) |
delimiters = DEFAULT_DELIMITERS; |
delimiters = DEFAULT_DELIMITERS; |