home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
mm
/
mm-ccmd-0.91-20031009.tar.gz
/
mm-ccmd-0.91-20031009.tar
/
work
/
ccmd
/
cmfil.cnf
< prev
next >
Wrap
Text File
|
2002-02-20
|
2KB
|
61 lines
_
_ Copyright (c) 1986, 1990 by The Trustees of Columbia University in
_ the City of New York. Permission is granted to any individual or
_ institution to use, copy, or redistribute this software so long as it
_ is not sold for profit, provided this copyright notice is retained.
_
_ Author: Howie Kaye
/* filename parse errors */
fnerror(NM, `Does not match filename')
fnerror(AMB,`Ambiguous')
fnerror(NWLD,`Cannot specify wildcards in nonwild parse')
fnerror(INV,`Invalid combination of parse flags')
fnerror(BAD,`Invalid file spec')
fnerror(PMA,`Ambiguous')
/*
* FILBLK structure describes a data block to be passed to the file
* name parser
*/
typedef struct FILBLK {
char **pathv; /* NULL terminated vector of dirs */
char *exceptionspec; /* regexp of exceptions */
char **def_extension; /* list of extensions to use */
} filblk;
/*
* flags that can be present in a filename fdb
*/
fnflag(OLD) /* existing file */
fnflag(PO) /* nonexisting file */
fnflag(VAL) /* "validate" on PO parse */
fnflag(DIR) /* a directory */
fnflag(RD) /* a readable file */
fnflag(WR) /* a writable file */
fnflag(EXEC) /* an executable file */
fnflag(WLD) /* wild cards allowed */
fnflag(NOPTH) /* only display filename in help */
fnflag(NOEXT) /* don't display extention in help */
fnflag(TYPE) /* display the type of file in help */
fnflag(NODIR) /* don't complete on directories */
#if CCMD_OS_MSDOS
fnflag(HID) /* a hidden file (MSDOS) */
fnflag(SYS) /* a system file (MSDOS) */
#endif /* CCMD_OS_MSDOS */
#ifdef undef
fnflag(REGEXP) /* regexp's allowed */
#endif
#if CCMD_OS_MSDOS
#define FIL_ALL (FIL_DIR|FIL_RD|FIL_WR|FIL_EXEC|FIL_HID|FIL_SYS)
#else
#define FIL_ALL (FIL_DIR|FIL_RD|FIL_WR|FIL_EXEC)
#endif /* CCMD_OS_MSDOS */
typedef char **pvfil; /* return a NULL terminated string vector */
pvtype(pvfil)_ /* FIL returns a list of file structures */