Changeset d752cf4 in mainline for uspace/app/bdsh/cmds/builtin_cmds.c
- Timestamp:
- 2009-01-22T07:13:13Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 491af07
- Parents:
- 48c3d50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/builtin_cmds.c
r48c3d50 rd752cf4 40 40 41 41 extern volatile unsigned int cli_interactive; 42 43 int builtin_is_restricted(int pos)44 {45 builtin_t *cmd = builtins;46 cmd += pos;47 48 if (cli_interactive && cmd->restricted <= 0)49 return 0;50 if (!cli_interactive && cmd->restricted >= 0)51 return 0;52 53 return 1;54 }55 42 56 43 int is_builtin(const char *command)
Note:
See TracChangeset
for help on using the changeset viewer.