Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 17631) sorted by path

12345678910>>...706

/netbsd/
H A DUPDATING70 in an original UFS2 file system then "fsck -p" will now fail due to
/netbsd/bin/chio/
H A Dchio.c771 char *p; in parse_element_unit() local
774 i = (int)strtol(cp, &p, 10); in parse_element_unit()
775 if ((i < 0) || (*p != '\0')) in parse_element_unit()
/netbsd/bin/chmod/
H A Dchmod.c75 FTSENT *p; in main() local
187 for (rval = 0; (p = fts_read(ftsp)) != NULL;) { in main()
188 switch (p->fts_info) { in main()
191 (void)fts_set(ftsp, p, FTS_SKIP); in main()
194 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main()
201 warnx("%s: %s", p->fts_path, strerror(p->fts_errno)); in main()
218 nval = set ? getmode(set, p->fts_statp->st_mode) : mval; in main()
219 if (dflag && nval == p->fts_statp->st_mode) in main()
221 if ((*change_mode)(p->fts_accpath, nval) && !fflag) { in main()
222 warn("%s", p->fts_path); in main()
/netbsd/bin/cp/
H A Dcp.c81 #define STRIP_TRAILING_SLASH(p) { \ argument
82 while ((p).p_end > (p).p_path + 1 && (p).p_end[-1] == '/') \
83 *--(p).p_end = '\0'; \
332 char *p, *target_mid; in copy() local
389 p = strrchr(curr->fts_path, '/'); in copy()
390 base = (p == NULL) ? 0 : in copy()
391 (int)(p - curr->fts_path + 1); in copy()
400 p = &curr->fts_path[base]; in copy()
403 if (*p != '/' && target_mid[-1] != '/') in copy()
409 to.p_path, p); in copy()
[all …]
H A Dutils.c104 char *p; in copy_file() local
200 p = mmap(NULL, fsize, PROT_READ, MAP_FILE|MAP_SHARED, in copy_file()
202 if (p != MAP_FAILED) { in copy_file()
207 (void) madvise(p, (size_t)fs->st_size, MADV_SEQUENTIAL); in copy_file()
221 if (write(to_fd, &p[fsize - remainder], in copy_file()
233 if (munmap(p, fsize) < 0) { in copy_file()
304 copy_link(FTSENT *p, int exists) in copy_link() argument
309 if ((len = readlink(p->fts_path, target, sizeof(target)-1)) == -1) { in copy_link()
310 warn("readlink: %s", p->fts_path); in copy_link()
322 return (pflag ? setfile(p->fts_statp, 0) : 0); in copy_link()
/netbsd/bin/csh/
H A Dalloc.c63 Realloc(void *p, size_t n) in Realloc() argument
67 if ((ptr = realloc(p, n)) == NULL) { in Realloc()
H A Dcsh.h88 #define xrealloc(p, i) Realloc(p, i) argument
H A Ddir.c386 for (p = dcwd->di_name; *p++;) in dgoto()
390 for (p = cp; *p++;) in dgoto()
442 Char *p; in dfollow() local
446 for (dp = buf, p = *cdp; (*dp++ = *p++) != '\0';) in dfollow()
449 for (p = cp; (*dp++ = *p++) != '\0';) in dfollow()
583 dnewcwd(p); in dopopd()
653 *p = 0; in dcanon()
666 p = --sp; in dcanon()
753 p = sp; in dcanon()
777 sp = p; in dcanon()
[all …]
H A Ddol.c106 Char *p, **pp; in Dfix() local
111 for (pp = t->t_dcom; (p = *pp++) != NULL;) in Dfix()
112 for (; *p; p++) { in Dfix()
113 if (cmap(*p, _DOL | QUOTES)) { /* $, \, ', ", ` */ in Dfix()
H A Dfile.c166 Char *p; in pushback() local
186 for (p = string; (c = (char)*p) != '\0'; p++) in pushback()
194 len_str = (size_t)(p - string); in pushback()
351 Char *o, *p; in tilde() local
356 for (p = person, o = &old[1]; *o && *o != '/'; *p++ = *o++) in tilde()
358 *p = '\0'; in tilde()
427 Char *p; in extract_dir_and_name() local
429 p = Strrchr(path, '/'); in extract_dir_and_name()
430 if (p == NULL) { in extract_dir_and_name()
435 copyn(name, ++p, MAXNAMLEN); in extract_dir_and_name()
[all …]
H A Dfunc.c193 Char *p; in doalias() local
196 p = *v++; in doalias()
197 if (p == 0) in doalias()
200 vp = adrof1(strip(p), &aliases); in doalias()
207 if (eq(p, STRalias) || eq(p, STRunalias)) { in doalias()
208 setname(vis_str(p)); in doalias()
211 set1(strip(p), saveblk(v), &aliases); in doalias()
966 Char **ep, *p, *n; in dounsetenv() local
975 for (i = 0, p = *ep; *p && *p != '='; p++, i++) in dounsetenv()
986 for (n = name, p = *ep; *p && *p != '='; *n++ = *p++) in dounsetenv()
H A Dglob.c138 for (lm = gbuf, p = s; *p != LBRC; *lm++ = *p++) in globbrace()
526 while (*p) in rscan()
536 while (*p) in trim()
546 if (*p == '~' || *p == '=') in tglob()
549 (p[1] == '\0' || (p[1] == '}' && p[2] == '\0'))) in tglob()
557 while (*p && *p != '`') in tglob()
560 p++; in tglob()
565 p++; in tglob()
808 for (p = blk; *p; p++) in Gmatch()
893 for (p = s1; *p++;) in Gcat()
[all …]
H A Dhist.c67 Char *p = cp; in savehist() local
69 while (*p) { in savehist()
70 if (!Isdigit(*p)) { in savehist()
74 histlen = histlen * 10 + *p++ - '0'; in savehist()
H A Dlex.c1239 Char *dp, *p, *q; in findev() local
1257 p = cp; in findev()
1260 if (!*p) in findev()
1262 while (*p++ == *q++); in findev()
1267 p = cp; in findev()
1270 if (!*p) { in findev()
1274 while (*p++ == *q++); in findev()
1479 const char *p; in bgetc() local
1481 if ((p = el_gets(el, &d)) != NULL) { in bgetc()
1485 for (i = 0; *p && i < BUFSIZE; i++, p++) in bgetc()
[all …]
H A Dmisc.c69 char *p, *r; in strsave() local
75 r = p = xmalloc((size_t)(n - s) * sizeof(*p)); in strsave()
76 while ((*p++ = *s++) != '\0') in strsave()
182 char *ep, *p, *q; in strspl() local
188 for (p = cp; *p++;) in strspl()
192 ep = xmalloc((size_t)(((p - cp) + (q - dp) - 1) * sizeof(*ep))); in strspl()
193 for (p = ep, q = cp; *p++ = *q++;) in strspl()
195 for (p--, q = dp; *p++ = *q++;) in strspl()
H A Dparse.c110 for (p = p1; p != p2; p = p->next) in asyn0()
122 p = p->next; in asyn0()
238 for (p = p1; p != p2; p = p->next) in syn0()
254 p = p->next; in syn0()
299 for (p = p1; p != p2; p = p->next) in syn1()
335 for (p = p1; p != p2; p = p->next) in syn1a()
372 for (p = p1; p != p2; p = p->next) in syn1b()
408 for (p = p1; p != p2; p = p->next) in syn2()
461 p = p->next; in syn3()
478 for (p = p1; p != p2; p = p->next) in syn3()
[all …]
H A Dset.c71 char *p; in alias_text() local
174 vp = p; in doset()
176 for (; alnum(*p); p++) in doset()
184 p = getinx(p, &subscr); in doset()
278 for (; alnum(*p); p++) in dolet()
286 p = getinx(p, &subscr); in dolet()
301 p = xset(p, &v); in dolet()
319 p = xset(p, &v); in dolet()
856 p = p->v_left; in plist()
869 p = p->v_right; in plist()
[all …]
H A Dstr.c308 const Char *p; in s_strsave() local
313 for (p = s; *p++;) in s_strsave()
315 p = n = xmalloc((size_t)(p - s) * sizeof(*n)); in s_strsave()
318 return __UNCONST(p); in s_strsave()
325 const Char *p, *q; in s_strspl() local
331 for (p = cp; *p++;) in s_strspl()
335 ep = xmalloc((size_t)((p - cp) + (q - dp) - 1) * sizeof(*ep)); in s_strspl()
/netbsd/bin/date/
H A Ddate.c233 badcanotime("Unexpected dot", p, t - p); in setthetime()
236 badcanotime("Expected digit", p, t - p); in setthetime()
245 p, strlen(p) - 1); in setthetime()
248 p, strlen(p)); in setthetime()
253 badcanotime("Seconds out of range", p, strlen(p) - 1); in setthetime()
259 op = p; in setthetime()
272 yearset = ATOI2(p); in setthetime()
280 lt->tm_mon = ATOI2(p); in setthetime()
339 lt->tm_min = ATOI2(p); in setthetime()
351 badcanotime("Not enough digits", p, strlen(p) - len); in setthetime()
[all …]
/netbsd/bin/dd/
H A Dmisc.c206 #define ADDS(p) do { if (enable != 0) buffer_write(p, strlen(p), 0); } \ in dd_write_msg() argument
/netbsd/bin/ed/
H A DPOSIX17 `r', `g' and `p'. In contrast, POSIX specifies any character except
H A Dcbc.c228 char *p; /* used to obtain the key */ in get_keyword() local
234 if (*(p = getpass("Enter key: "))) { in get_keyword()
239 expand_des_key(BUFFER(msgbuf), p); in get_keyword()
240 MEMZERO(p, _PASSWORD_LEN); in get_keyword()
H A Ded.h114 #define STRTOL(i, p) { \ argument
116 if (((i = strtol(p, &p, 10)) == LONG_MIN || i == LONG_MAX) && \
H A Dmain.c1141 long p = first_addr - 1; in move_lines() local
1147 b2 = get_addressed_line_node(p); in move_lines()
1149 } else if (push_undo_stack(UMOV, p, n) == NULL || in move_lines()
1156 b1 = get_addressed_line_node(p); in move_lines()
1161 b1 = get_addressed_line_node(p); in move_lines()
1219 line_t *n, *p; in delete_lines() local
1227 p = get_addressed_line_node(from - 1); in delete_lines()
1230 unset_active_nodes(p->q_forw, n); in delete_lines()
1231 REQUE(p, n); in delete_lines()
/netbsd/bin/ed/test/
H A Dg1.t4 g/hello /s/lo/p!/\

12345678910>>...706