Lines Matching +defs:pathname +defs:name
40 findenv(const char *name, int *offset)
45 len = strlen(name);
50 if (strncmp(name, q, len) == 0) {
60 getenv(const char *name)
64 return findenv(name, &offset);
68 unsetenv(const char *name)
73 if (name == NULL || *name == '\0' || strchr(name, '=') != NULL) {
78 while (findenv(name, &offset)) { /* if set multiple times */
87 setenv(const char *name, const char *value, int rewrite)
94 if (name == NULL || value == NULL) {
104 if ((c = findenv(name, &offset))) {
127 for (cc = name; *cc && *cc != '='; cc++) /* no `=' in name */
129 size = cc - name;
130 /* name + `=' + value */
134 (void)memcpy(c, name, size);
235 getwd(char *pathname)
247 (void)sprintf(pathname,
258 (void)sprintf(pathname,
270 (void)strcpy(pathname, *pathptr != '/' ? "/" : pathptr);
271 return pathname;
276 (void)sprintf(pathname,
282 (void)sprintf(pathname,
304 (void)sprintf(pathname,
317 (void)sprintf(pathname,