/ast/src/lib/libast/path/ |
H A D | pathprog.c | 28 * command!=0 is used as a default 47 prog(const char* command, char* path, size_t size) argument 103 if (command) 105 s = (char*)command; 117 pathprog(const char* command, char* path, size_t size) argument 122 if ((n = prog(command, path, size)) > 0 && n < size && *path != '/' && (rel = strdup(path)))
|
/ast/src/lib/libtk/generic/ |
H A D | tkMain.c | 52 static Tcl_DString command; /* Used to assemble lines of terminal input variable 110 * Parse command-line arguments. A leading "-file" argument is 131 * Make command-line arguments available in the Tcl variables "argc" 177 * Invoke the script specified on the command line, if any. 212 Tcl_DStringInit(&command); 250 * input characters, adds them to a command being assembled, and 251 * executes the command if it's complete. 257 * Could be almost arbitrary, depending on the command that's 289 (void) Tcl_DStringAppend(&command, Tcl_DStringValue(&line), -1); 290 cmd = Tcl_DStringAppend(&command, "\ [all...] |
H A D | tkConsole.c | 6 * and provides special access via a console command. 20 * which a handler (i.e. a Tcl command) has been defined for a particular 388 * The console command implements a Tcl interface to the various console 456 * This command allows the console interp to communicate with the 515 * If the console command is deleted we destroy the console window 600 Tcl_DString command, output; 626 Tcl_DStringInit(&command); 627 Tcl_DStringAppend(&command, cmd, strlen(cmd)); 628 Tcl_DStringAppendElement(&command, output.string); 632 Tcl_Eval(consoleInterp, command 587 Tcl_DString command, output; local [all...] |
H A D | tkSelect.c | 23 * about the command to invoke and its interpreter. 27 Tcl_Interp *interp; /* Interpreter in which to invoke command. */ 28 int cmdLength; /* # of non-NULL bytes in command. */ 29 char command[4]; /* Command to invoke. Actual space is member in struct:__anon417 35 * When selection ownership is claimed with the "selection own" Tcl command, 36 * one of the following structures is created to record the Tcl command 41 Tcl_Interp *interp; /* Interpreter in which to invoke command. */ 42 char command[4]; /* Command to invoke. Actual space is member in struct:LostCommand 582 * command. See the user documentation for details on what 760 " handle ?options? window command\"", (cha 1123 char *command; local [all...] |
H A D | tkTextTag.c | 4 * This module implements the "tag" subcommand of the widget command 92 * the widget command for text widgets. See the user documentation 110 * parsed this command enough to know that 187 argv[0], " tag bind tagName ?sequence? ?command?\"", 233 char *command; 235 command = Tk_GetBinding(interp, textPtr->bindingTable, 237 if (command == NULL) { 240 interp->result = command; 1103 * Depends on the command invoked as part of the binding 232 char *command; local
|
H A D | tkCmds.c | 40 * This procedure is invoked to process the "bell" Tcl command. 92 * This procedure is invoked to process the "bind" Tcl command. 117 " window ?pattern? ?command?\"", (char *) NULL); 149 char *command; 151 command = Tk_GetBinding(interp, winPtr->mainPtr->bindingTable, 153 if (command == NULL) { 157 interp->result = command; 178 * command. 256 * This procedure is invoked to process the "bindtags" Tcl command. 392 * This procedure is invoked to process the "destroy" Tcl command 147 char *command; local [all...] |
H A D | tkScrollbar.c | 35 Tcl_Command widgetCmd; /* Token for scrollbar's widget command. */ 42 char *command; /* Command prefix to use when invoking member in struct:__anon416 45 int commandSize; /* Number of non-NULL bytes in command. */ 98 * "set" widget command. This information can now be provided in 200 {TK_CONFIG_STRING, "-command", "command", "Command", 201 DEF_SCROLLBAR_COMMAND, Tk_Offset(Scrollbar, command), 270 * command. See the user documentation for details on what 321 scrollPtr->command = NULL; 374 * This procedure is invoked to process the Tcl command [all...] |
H A D | tkButton.c | 32 Tcl_Command widgetCmd; /* Token for button's widget command. */ 164 char *command; /* Command to execute when button is member in struct:__anon390 258 {TK_CONFIG_STRING, "-command", "command", "Command", 259 DEF_BUTTON_COMMAND, Tk_Offset(Button, command), 581 butPtr->command = NULL; 605 * This procedure is invoked to process the Tcl command 1486 * This procedure is invoked when a widget command is deleted. If 1488 * this command destroys it. 1508 * destroyed and the command wa [all...] |
/ast/src/lib/libast/sfio/ |
H A D | sfpopen.c | 42 /* execute command directly if possible; else use the shell */ 95 /* get the command name */ 134 Sfio_t* sfpopen(Sfio_t* f, const char* command, const char* mode) argument 136 Sfio_t* sfpopen(f,command,mode) 138 char* command; /* command to execute */ 149 if (!command || !command[0] || !mode) 167 av[2] = (char*)command; 197 if(!command || !comman [all...] |
/ast/src/cmd/pack/ |
H A D | pack.c | 92 static char command[] = "pack"; local 101 error_info.id = command; 178 sfprintf(sfstdout,"%s: %s : %.1f%% Compression\n",command,
|
H A D | unpack.c | 90 char *command; local 100 if(command = strrchr(argv[0],'/')) 101 command++; 103 command = argv[0]; 104 error_info.id = command; 105 pcat = (*command=='p'); 187 sfprintf(sfstdout,"%s: %s: unpacked\n",command, infile);
|
/ast/src/cmd/ksh93/bltins/ |
H A D | hist.c | 268 /* read in and run the command */ 286 * given a file containing a command and a string of the form old=new, 287 * execute the command with the string old replaced by new 290 static void hist_subst(const char *command,int fd,char *replace) argument 308 errormsg(SH_DICT,ERROR_exit(1),e_subst,command);
|
H A D | typeset.c | 90 char *command = argv[0]; local 96 while((flag = optget(argv,*command=='e'?sh_optexport:sh_optreadonly))) switch(flag) 99 tdata.prefix = command; 111 if(*command=='r')
|
/ast/src/cmd/sort/ |
H A D | sfopen.c | 30 * input<del><pattern><del>command<del> 31 * output<del><pattern><del>command<del> 37 * (literal) \0 in command expands to the file path 38 * (literal) \<n> in command expands to the <n>th subexpression in the file path pattern match 55 char* command; member in struct:Io_s 115 io->command = x; 184 sfprintf(sfstdout, " input %s %s\n", io->pattern, io->command); 186 sfprintf(sfstdout, " output %s %s\n", io->pattern, io->command); 224 if (s = io->command)
|
/ast/src/cmd/tests/ |
H A D | opt.c | 159 char* command; local 173 while (command = *(argv + 1)) 175 if (*command == '=' && (s = strchr(command + 1, '='))) 179 command++; 182 ip->name = command; 188 else if (streq(command, "-")) 193 else if (streq(command, "-+")) 201 else if (streq(command, "+") && *(argv + 2)) 211 if (!(command [all...] |
/ast/src/lib/libtksh/tcl/ |
H A D | tclPkg.c | 5 * the "package" command and a few C APIs. 18 * Each invocation of the "package ifneeded" command creates a structure 20 * interpreter if it is requested with a "package require" command. 130 * The script from some previous "package ifneeded" command may 152 Tcl_DString command; 217 * command, invoke it (but only on the first pass; after that, 226 Tcl_DStringInit(&command); 227 Tcl_DStringAppend(&command, script, -1); 228 Tcl_DStringAppendElement(&command, name); 229 Tcl_DStringAppend(&command, " ", 150 Tcl_DString command; local [all...] |
H A D | tclCmdIL.c | 4 * This file contains the top-level command routines for most of 31 * The variables below are used to implement the "lsort" command. 39 static Tcl_Interp *sortInterp = NULL; /* Interpreter for "lsort" command. 44 * user-defined command for 46 static Tcl_DString sortCmd; /* Holds command if mode is COMMAND. 48 * command. */ 53 * executing a comparison command, so 69 * This procedure is invoked to process the "if" Tcl command. 124 * The expression evaluated to false. Skip the command, then 163 * This procedure is invoked to process the "incr" Tcl command 859 char *command = NULL; /* Initialization needed only to local [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | main.c | 129 char *command; local 153 command = error_info.id; 242 shp->st.cmdname = error_info.id = command; 464 /* command loop */ 510 /* sets timeout for command entry */ 573 /* The last command may not have to fork */ 702 * fix up command line for ps command
|
H A D | suid_exec.c | 90 static char *command; variable 107 if((command = argv[1]) == 0) 243 argv[0] = command; 284 sfprintf(sfstdout,"%s: %s\n",command,message);
|
/ast/src/cmd/tksh/ |
H A D | tkMain.c | 54 static Tcl_DString command; /* Used to assemble lines of terminal input variable 115 * Parse command-line arguments. A leading "-file" argument is 136 * Make command-line arguments available in the Tcl variables "argc" 184 * Invoke the script specified on the command line, if any. 258 Tcl_DStringInit(&command); 302 * input characters, adds them to a command being assembled, and 303 * executes the command if it's complete. 309 * Could be almost arbitrary, depending on the command that's 341 (void) Tcl_DStringAppend(&command, Tcl_DStringValue(&line), -1); 342 cmd = Tcl_DStringAppend(&command, "\ [all...] |
/ast/src/cmd/coshell/ |
H A D | command.c | 25 * remote coshell server command interface support 39 * send command message to fd and read ack 40 * 0 returned after the last command 154 * command loop on server stream fd 161 command(int fd, char** ap) function 300 if (ap) error(3, "%c: unknown command -- use h for help", c); 301 error(2, "%c: unknown command", c);
|
/ast/src/lib/libtksh/include/ |
H A D | tkshlib.h | 148 * The structure below defines a command procedure, which consists of 154 struct Interp *iPtr; /* Interpreter for which this command 157 * in command table plus 1 for each call 161 char *command; /* Command that constitutes the body of member in struct:Proc 282 Tcl_CmdTraceProc *proc; /* Procedure to call to trace command. */
|
/ast/src/lib/libtksh/src/ |
H A D | eval.c | 108 * returns the current name of the command (which may have changed 112 * The return value is the name of the given command. 121 Tcl_GetCommandName(Tcl_Interp *interp, Tcl_Command command) argument 123 Namval_t *nv = (Namval_t *) command; 228 int Tksh_Eval(Tcl_Interp *interp, char *command, int flag) argument 239 dprintf2(("-- Tksh Eval --\n%s\n---------\n", flag?"--FILE--":command)); 244 f = sfopen(NIL(Sfio_t *),command, "r"); 252 result = sh_trap(command, 0); 456 /* This command just returns one because there is no point in using
|
H A D | list.c | 96 char *command; local 110 command = (char *) malloc(strlen(list)+strlen(SPLIT_CMD_NAME)+2); 112 if (args && command) 114 sprintf(command, "%s %s",SPLIT_CMD_NAME, list); 119 if ((str = sfopen((Sfio_t *) 0, command, "s"))) 125 free(command);
|
/ast/src/lib/libast/port/ |
H A D | lcgen.c | 279 char* command; local 293 command = *argv++; 297 fprintf(stderr, "%s: { hdr lib tab } arguments expected\n", command); 302 fprintf(stderr, "%s: %s: cannot write\n", command, hdr); 307 fprintf(stderr, "%s: %s: cannot write\n", command, lib); 316 fprintf(hf, "/* : : generated by %s : : */\n", command); 338 fprintf(lf, "/* : : generated by %s : : */\n", command); 371 fprintf(stderr, "%s: %d: %s: must be specified after :territory:\n", command, line, arg[0]); 381 fprintf(stderr, "%s: %d: %s must be specified first\n", command, line, arg[0]); 391 fprintf(stderr, "%s: %d: %s: must be specified after :language:\n", command, lin [all...] |