|
|
1.1 ! root 1: /* ! 2: * @(#)lcmd.h 3.5 4/24/85 ! 3: */ ! 4: ! 5: /* ! 6: * Copyright (c) 1983 Regents of the University of California, ! 7: * All rights reserved. Redistribution permitted subject to ! 8: * the terms of the Berkeley Software License Agreement. ! 9: */ ! 10: ! 11: #define LCMD_NARG 20 /* maximum number of arguments */ ! 12: ! 13: struct lcmd_tab { ! 14: char *lc_name; ! 15: int lc_minlen; ! 16: int (*lc_func)(); ! 17: struct lcmd_arg *lc_arg; ! 18: }; ! 19: ! 20: struct lcmd_arg { ! 21: char *arg_name; ! 22: int arg_minlen; ! 23: int arg_flags; ! 24: }; ! 25: ! 26: /* arg_flags bits */ ! 27: #define ARG_TYPE 0x0f /* type of arg */ ! 28: #define ARG_ANY 0x00 /* any type */ ! 29: #define ARG_NUM 0x01 /* must be a number */ ! 30: #define ARG_STR 0x02 /* must be a string */ ! 31: #define ARG_LIST 0x10 /* this arg can be a list */ ! 32: ! 33: struct lcmd_tab *lcmd_lookup();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.