#define MAXACL 400
-extern char *index ();
-extern char *rindex ();
#if !defined(AFS_LINUX20_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
extern sys_nerr;
extern char *sys_errlist[];
strcpy(parent, file);
- p = rindex(parent, '/');
+ p = strrchr(parent, '/');
if (!p) {
strcpy(parent, ".");
}
/*
* Find rightmost slash, if any.
*/
- last_component = (char *) rindex(true_name, '/');
+ last_component = (char *) strrchr(true_name, '/');
if (last_component) {
/*
* Found it. Designate everything before it as the parent directory,
blob->in_size = strlen(last_component)+1;
blob->out_size = MAXSIZE;
blob->out = space;
- bzero(space, MAXSIZE);
+ memset(space, 0, MAXSIZE);
code = pioctl(parent_dir, VIOC_AFS_STAT_MT_PT, blob, 0);