OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [sash/] [sash.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 * Copyright (c) 1993 by David I. Bell
3
 * Permission is granted to use, distribute, or modify this source,
4
 * provided that this copyright notice remains intact.
5
 *
6
 * Definitions for stand-alone shell for system maintainance for Linux.
7
 */
8
 
9
#include <stdio.h>
10
#include <stdlib.h>
11
#include <string.h>
12
#include <malloc.h>
13
#include <ctype.h>
14
/*#include "config.h"*/
15
 
16
#define PATHLEN         256     
17
#define CMDLEN          256 /* 512 */
18
#define MAXARGS         50      
19
#define ALIASALLOC      20
20
#define STDIN           0
21
#define STDOUT          1
22
#define MAXSOURCE       10
23
 
24
#ifndef isblank
25
#define isblank(ch)     (((ch) == ' ') || ((ch) == '\t'))
26
#endif
27
 
28
#define isquote(ch)     (((ch) == '"') || ((ch) == '\''))
29
#define isdecimal(ch)   (((ch) >= '0') && ((ch) <= '9'))
30
#define isoctal(ch)     (((ch) >= '0') && ((ch) <= '7'))
31
 
32
 
33
typedef int     BOOL;
34
 
35
#define FALSE   ((BOOL) 0)
36
#define TRUE    ((BOOL) 1)
37
 
38
 
39
extern  void    do_alias(), do_cd(), do_exec(), do_exit(), do_prompt();
40
extern  void    do_source(), do_umask(), do_unalias(), do_help(), do_ln();
41
extern  void    do_cp(), do_mv(), do_rm(), do_chmod(), do_mkdir(), do_rmdir();
42
extern  void    do_mknod(), do_chown(), do_chgrp(), do_sync(), do_printenv();
43
extern  void    do_more(), do_cmp(), do_touch(), do_ls(), do_dd(), do_tar();
44
extern  void    do_mount(), do_umount(), do_setenv(), do_pwd(), do_echo();
45
extern  void    do_kill(), do_grep(), do_ed(), do_hexdump(), do_pid();
46
extern  void    do_df(), do_ps(), do_reboot(), do_cat(), do_time(), do_free();
47
extern  void    do_hostname(), do_sleep();
48
extern  void    do_date();
49
 
50
 
51
extern  char    *buildname();
52
extern  char    *modestring();
53
extern  char    *timestring();
54
extern  BOOL    isadir();
55
extern  BOOL    copyfile();
56
extern  BOOL    match();
57
extern  BOOL    makestring();
58
extern  BOOL    makeargs();
59
extern  int     expandwildcards();
60
extern  int     namesort();
61
extern  char    *getchunk();
62
extern  void    freechunks();
63
extern  char    *expandenvvar();
64
 
65
extern  BOOL    intflag;
66
 
67
/* END CODE */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.