/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2012 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#ifndef PATH_OFFSET
/*
* UNIX shell path handling interface
* Written by David Korn
* These are the definitions for the lexical analyzer
*/
#include <nval.h>
#include "defs.h"
#if !defined(SHOPT_SPAWN)
# endif
#endif /* !SHOPT_SPAWN */
/*
* path component structure for path searching
*/
typedef struct pathcomp
{
int refcount;
char *name;
char *lib;
char *bbuf;
char *blib;
unsigned short len;
unsigned short flags;
} Pathcomp_t;
#ifndef ARG_RAW
struct argnod;
#endif /* !ARG_RAW */
/* pathname handling routines */
extern void path_delete(Pathcomp_t*);
extern char *path_basename(const char*);
extern char *path_fullname(Shell_t*,const char*);
# define extern __EXPORT__
#endif
#undef extern
extern char *path_relative(Shell_t*,const char*);
#if SHOPT_BRACEPAT
#endif /* SHOPT_BRACEPAT */
extern int path_xattr(Shell_t*, const char*, char*);
/* constant strings needed for whence */
extern const char e_timeformat[];
extern const char e_badtformat[];
extern const char e_dot[];
extern const char e_funload[];
extern const char e_pfsh[];
extern const char e_pwd[];
extern const char e_logout[];
extern const char e_alphanum[];
extern const char e_mailmsg[];
extern const char e_suidprofile[];
extern const char e_sysprofile[];
extern const char e_traceprompt[];
extern const char e_crondir[];
#if SHOPT_SUID_EXEC
extern const char e_suidexec[];
#endif /* SHOPT_SUID_EXEC */
extern const char is_alias[];
extern const char is_builtin[];
extern const char is_spcbuiltin[];
extern const char is_builtver[];
extern const char is_reserved[];
extern const char is_talias[];
extern const char is_xalias[];
extern const char is_function[];
extern const char is_ufunction[];
#ifdef SHELLMAGIC
extern const char e_prohibited[];
#endif /* SHELLMAGIC */
#if SHOPT_ACCT
# ifdef _sys_acct
extern void sh_accinit(void);
extern void sh_accbegin(const char*);
extern void sh_accend(void);
extern void sh_accsusp(void);
# else
# endif /* _sys_acct */
#endif /* SHOPT_ACCT */
#endif /*! PATH_OFFSET */