/ast/src/lib/libcs/ |
H A D | msgindex.c | 27 * return call index given name 28 * !isalnum() chars at end of name are ignored 33 msgindex(const char* name) argument 43 lo = msg_info.name; 44 hi = msg_info.name + MSG_STD; 48 n = (unsigned char*)name; 55 return mid - msg_info.name; 70 if (name[0] == 'f') 72 name++; 75 if (name[ [all...] |
H A D | csping.c | 25 * ping host by name 34 csping(register Cs_t* state, const char* name) argument 39 sfsprintf(state->temp, sizeof(state->path), "/dev/tcp/%s/inet.echo", name); 43 if (n) messagef((state->id, NiL, -1, "ping: %s: no contact", name)); 48 _cs_ping(const char* name) argument 50 return csping(&cs, name);
|
H A D | csstat.c | 25 * return host status given name 33 initiate(register Cs_t* state, const char* name, char* buf) argument 39 messagef((state->id, NiL, -1, "stat: %s: %s: cannot find stat daemon", name, CS_STAT_DAEMON)); 43 av[1] = (char*)name; 50 csstat(register Cs_t* state, const char* name, register Csstat_t* sp) argument 63 messagef((state->id, NiL, -8, "stat(%s) call", name)); 65 if (!name || streq(name, CS_HOST_LOCAL)) 66 name = (const char*)csname(state, 0); 67 if (!strchr(name, '/')) 127 _cs_stat(const char* name, Csstat_t* sp) argument [all...] |
/ast/src/cmd/dsslib/ip_t/ |
H A D | ivmeth.c | 27 const char* name; member in struct:Method_s 43 ivmeth(const char* name) argument 47 if ((name[0] == 'i' || name[0] == 'I') && (name[1] == 'v' || name[1] == 'V')) 48 name += 2; 50 if (!strncmp(methods[i].name, name, 4))
|
/ast/src/cmd/std/ |
H A D | ls-color.sh | 21 ls -D name='%(mode:case:d*:\E[01;34m%(name)s\E[0m:l*:\E[01;36m%(name)s\E[0m:*x*:\E[01;32m%(name)s\E[0m:*:%(name)s)s' "$@"
|
/ast/src/lib/libdll/ |
H A D | dlllook.c | 35 dlllook(void* dll, const char* name) argument 40 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2)) 43 strcpy(buf + 1, name); 44 name = (const char*)buf; 45 addr = dlsym(dll, name); 47 errorf("dll", NiL, -1, "dlllook: %s addr %p", name, addr);
|
H A D | dllopen.c | 38 dllopen(const char* name, int mode) 58 if (base = strrchr(name, '/')) 60 dir = (char*)name; 67 base = (char*)name; 87 dllopen(const char* name, int mode) argument 90 return dlopen(name, mode);
|
/ast/src/lib/libtksh/lib/tksh7.6/ |
H A D | parray.tcl | 19 foreach name [lsort [array names array $pattern]] { 20 if {[string length $name] > $maxl} { 21 set maxl [string length $name] 25 foreach name [lsort [array names array $pattern]] { 26 set nameString [format %s(%s) $a $name] 27 puts stdout [format "%-*s = %s" $maxl $nameString $array($name)]
|
/ast/src/lib/libast/include/ |
H A D | namval.h | 27 * common name-value struct support 35 char* name; member in struct:__anon272
|
/ast/src/lib/libast/string/ |
H A D | fmtgid.c | 27 * cached gid number -> name 52 char name[1]; member in struct:Id_s 56 * return gid name given gid number 63 register char* name; local 77 return ip->name; 80 name = gr->gr_name; 82 if (streq(name, "Administrators")) 83 name = "sys"; 87 name = "sys"; 90 name [all...] |
H A D | fmtuid.c | 27 * uid number -> name 52 char name[1]; member in struct:Id_s 56 * return uid name given uid number 63 register char* name; local 77 return ip->name; 80 name = pw->pw_name; 82 if (streq(name, "Administrator")) 83 name = "root"; 87 name = "root"; 90 name [all...] |
H A D | strlook.c | 31 * return pointer to name in tab with element size siz 34 * the last name in tab must be 0 36 * 0 returned if name not found 40 strlook(const void* tab, size_t siz, register const char* name) argument 44 register int c = *name; 47 if (*s == c && !strcmp(s, name))
|
H A D | struid.c | 27 * uid name -> number 55 char name[1]; member in struct:Id_s 59 * return uid number given uid name 60 * -1 on first error for a given name 61 * -2 on subsequent errors for a given name 65 struid(const char* name) argument 77 disc.key = offsetof(Id_t, name); 80 else if (ip = (Id_t*)dtmatch(dict, name)) 82 if (pw = getpwnam(name)) 86 id = strtol(name, [all...] |
/ast/src/cmd/ksh93/tests/ |
H A D | statics.sh | 40 typeset name 92 name='compound' 111 name='compound_nameref' 132 name='type' 158 name='type_nameref' 189 name='indexed_string_array_appendelement' 206 name='indexed_string_array_nameref_appendelement' 227 name='associative_string_array_appendelement' 244 name='associative_string_array_nameref_appendelement' 266 name [all...] |
/ast/src/lib/libcodex/ |
H A D | codexmeth.c | 25 * return the codex method for name 32 codexmeth(const char* name) argument 43 if (!name) 49 if (!codexcmp(name, meth->name)) 55 for (s = name, t = 0; *s && *s != '+'; s++) 64 sfsprintf(tmp, sizeof(tmp), "%-.*s", s - name, name); 67 if ((lib = (Codexlib_f)dlllook(dll, "codex_lib")) && (meth = (*lib)(name)))
|
/ast/src/lib/libast/comp/ |
H A D | unsetenv.c | 44 unsetenv(const char *name) 46 if (!strchr(name, '=')) 47 setenviron(name);
|
H A D | setenv.c | 45 setenv(const char* name, const char* value, int overwrite) 49 if (overwrite || !getenv(name)) 51 if (!(s = sfprints("%s=%s", name, value)) || !(s = strdup(s)))
|
/ast/src/lib/librecsort/ |
H A D | rskeymeth.c | 24 * rskey method by name 39 * return rs method given name 44 rskeymeth(register Rskey_t* kp, const char* name) argument 46 rskeymeth(kp, name) 48 char* name; 53 if (!name || !*name || streq(name, "-") || streq(name, "default")) 56 if (streq(name, (*method [all...] |
/ast/src/lib/libast/misc/ |
H A D | getenv.c | 55 default_getenv(const char* name) argument 64 if (!av || !name || !(c0 = *name)) 66 if (!(c1 = *++name)) 72 sp = name; 86 * get name from the environment 94 getenv(const char* name) argument 108 return intercepts.intercept_getenv ? (*intercepts.intercept_getenv)(name) : (*posix_getenv)(name); 111 return intercepts.intercept_getenv ? (*intercepts.intercept_getenv)(name) [all...] |
/ast/src/lib/libvcodex/Vcwindow/ |
H A D | vcwmethod.c | 22 /* Return a windowing method by its string name. 43 Vcwmethod_t* vcwgetmeth(char* name) argument 45 Vcwmethod_t* vcwgetmeth(name) 46 char* name; 51 if(!name) 55 { for(k = 0; name[k] && _Vcwmethods[i]->name[k]; ++k) 56 if(name[k] != _Vcwmethods[i]->name[k]) 58 if(name[ [all...] |
/ast/src/cmd/nmake/ |
H A D | archive.c | 39 arupdate(char* name) argument 47 if (!(ar = ardiropen(name, NiL, ARDIR_LOCAL))) 49 if (streq(ar->meth->name, "local")) 65 walkar(register Ardir_t* ar, Dir_t* d, char* name) argument 72 putar(d->name, d); 80 message((-1, "member %s is newer than archive %s", ent->name, name)); 81 addfile(d, ent->name, ((r = staterule(RULE, NiL, ent->name, -1)) && ent->mtime == tmxsec(r->time)) ? r->time : tmxsns(ent->mtime, 0)); 83 else if ((r = getrule(ent->name)) 122 artouch(char* name, register char* member) argument [all...] |
/ast/src/lib/libjcl/ |
H A D | sym.c | 29 * add symbol name=value to the current step 30 * value==0 => name==name=value, got it? 31 * no diagnostic if value==0 and name!=name=value 35 jclsym(Jcl_t* jcl, const char* name, const char* value, int flags) argument 44 if (!(set = name)) 47 n = strlen(name); 48 else if (value = (const char*)strchr(name, '=')) 49 n = value++ - name; [all...] |
/ast/src/lib/libtk/generic/ |
H A D | tkAtom.c | 67 * keeps a local cache of atoms. Once a name is known, 68 * the server need not be contacted again for that name. 71 * The return value is the Atom corresponding to name. 80 Tk_InternAtom(tkwin, name) 81 Tk_Window tkwin; /* Window token; map name to atom 83 char *name; /* Name to turn into atom. */ 94 hPtr = Tcl_CreateHashEntry(&dispPtr->nameTable, name, &new); 99 atom = XInternAtom(dispPtr->display, name, False); 133 Tk_Window tkwin; /* Window token; map atom to name 136 Atom atom; /* Atom whose name i 146 char *name; local 203 char *name; local [all...] |
/ast/src/lib/libdss/ |
H A D | dssmagic.c | 33 dssmagic(Dss_t* dss, Sfio_t* sp, const char* name, const char* type, uint32_t version, size_t size) argument 40 if (!name) 41 name = dss->id; 42 strncopy(magic.name, name, sizeof(magic.name));
|
/ast/src/lib/libpp/ |
H A D | pppragma.c | 31 pppragma(char* directive, char* pass, char* name, char* value, int newline) argument 50 if (name) 56 ppprintf("%s", name);
|