p 111 bsp/boot/common/string.c char *p = (char *)dest; p 114 bsp/boot/common/string.c *p++ = (char)ch; p 441 bsp/drv/dev/base/kd.c char *p; p 449 bsp/drv/dev/base/kd.c p = argv[1]; p 453 bsp/drv/dev/base/kd.c p = NULL; p 456 bsp/drv/dev/base/kd.c p = argv[1]; p 460 bsp/drv/dev/base/kd.c if (*p != '/') p 462 bsp/drv/dev/base/kd.c p++; p 463 bsp/drv/dev/base/kd.c switch (*p) { p 468 bsp/drv/dev/base/kd.c fmt = *p; p 469 bsp/drv/dev/base/kd.c p++; p 472 bsp/drv/dev/base/kd.c len = strtoul(p, NULL, 16); p 475 bsp/drv/dev/base/kd.c p = argv[2]; p 480 bsp/drv/dev/base/kd.c if (p != NULL) { p 481 bsp/drv/dev/base/kd.c addr = strtoul(p, NULL, 16); p 525 bsp/drv/dev/base/kd.c char *p, *pa, *pv; p 536 bsp/drv/dev/base/kd.c p = argv[1]; p 537 bsp/drv/dev/base/kd.c if (*p != '/') p 539 bsp/drv/dev/base/kd.c p++; p 540 bsp/drv/dev/base/kd.c switch (*p) { p 608 bsp/drv/dev/base/kd.c char *p, *word = NULL; p 615 bsp/drv/dev/base/kd.c p = line; p 616 bsp/drv/dev/base/kd.c while (*p) { p 619 bsp/drv/dev/base/kd.c if (*p != ' ' && *p != '\t') p 620 bsp/drv/dev/base/kd.c word = p; p 622 bsp/drv/dev/base/kd.c if (*p == ' ' || *p == '\t') { p 623 bsp/drv/dev/base/kd.c *p = '\0'; p 632 bsp/drv/dev/base/kd.c p++; p 649 bsp/drv/dev/base/kd.c char *p = line; p 657 bsp/drv/dev/base/kd.c *p = '\0'; p 663 bsp/drv/dev/base/kd.c *p = '\0'; p 664 bsp/drv/dev/base/kd.c p--; p 672 bsp/drv/dev/base/kd.c *p = (char)c; p 673 bsp/drv/dev/base/kd.c p++; p 676 bsp/drv/dev/base/kd.c *p = '\0'; p 528 bsp/drv/dev/cpufreq/est.c char *p, *q; p 568 bsp/drv/dev/cpufreq/est.c p = q = brand_str; p 569 bsp/drv/dev/cpufreq/est.c while (*p == ' ') p 570 bsp/drv/dev/cpufreq/est.c p++; p 571 bsp/drv/dev/cpufreq/est.c while (*p) p 572 bsp/drv/dev/cpufreq/est.c *q++ = *p++; p 65 bsp/drv/dev/misc/zero.c void *p; p 68 bsp/drv/dev/misc/zero.c if ((p = kmem_map(buf, *nbyte)) == NULL) p 71 bsp/drv/dev/misc/zero.c memset(p, 0, *nbyte); p 43 bsp/drv/include/pm.h #define pm_set_power(p) do {} while (0) p 87 bsp/drv/lib/string.c const char *p = src; p 95 bsp/drv/lib/string.c return (size_t)(src - p - 1); /* count does not include NULL */ p 113 bsp/drv/lib/string.c char *p = (char *)dest; p 118 bsp/drv/lib/string.c *p++ = (char)ch; p 39 bsp/drv/x86/include/cpufunc.h void cpuid(u_int eax, u_int *p); p 53 include/sys/list.h #define list_entry(p, type, member) \ p 54 include/sys/list.h ((type *)((char *)(p) - (unsigned long)(&((type *)0)->member))) p 137 include/sys/param.h #define ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) &~ _ALIGNBYTES) p 52 include/sys/syslog.h #define LOG_PRI(p) ((p) & LOG_PRIMASK) p 83 include/sys/syslog.h #define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3) p 126 include/sys/types.h #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) p 127 include/sys/types.h #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) p 128 include/sys/types.h #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) p 130 include/sys/types.h #define FD_ZERO(p) bzero(p, sizeof(*(p))) p 105 sys/lib/string.c char *p = (char *)dest; p 110 sys/lib/string.c *p++ = (char)ch; p 73 sys/lib/vsprintf.c char *p, *str; p 79 sys/lib/vsprintf.c for (p = buf; *fmt; fmt++) { p 81 sys/lib/vsprintf.c *p++ = *fmt; p 103 sys/lib/vsprintf.c *p++ = (char)va_arg(args, int); p 110 sys/lib/vsprintf.c *p++ = *str; p 113 sys/lib/vsprintf.c *p++ = pad; p 130 sys/lib/vsprintf.c *p++ = '-'; p 141 sys/lib/vsprintf.c *p++ = pad; p 143 sys/lib/vsprintf.c *p++ = tmp[i]; p 145 sys/lib/vsprintf.c *p = '\0'; p 180 sys/mem/kmem.c void *p; p 252 sys/mem/kmem.c p = (void *)((vaddr_t)blk + BLKHDR_SIZE); p 255 sys/mem/kmem.c return p; p 135 usr/bin/cp/cp.c char *p; p 138 usr/bin/cp/cp.c p = strrchr(from, '/'); p 139 usr/bin/cp/cp.c p = p ? p + 1 : from; p 143 usr/bin/cp/cp.c strlcat(path, p, sizeof(path)); p 86 usr/bin/mkdir/mkdir.c char *p; p 88 usr/bin/mkdir/mkdir.c p = path; p 89 usr/bin/mkdir/mkdir.c if (p[0] == '/') /* Skip leading '/'. */ p 90 usr/bin/mkdir/mkdir.c ++p; p 91 usr/bin/mkdir/mkdir.c for (;; ++p) { p 92 usr/bin/mkdir/mkdir.c if (p[0] == '\0' || (p[0] == '/' && p[1] == '\0')) p 94 usr/bin/mkdir/mkdir.c if (p[0] != '/') p 96 usr/bin/mkdir/mkdir.c *p = '\0'; p 104 usr/bin/mkdir/mkdir.c *p = '/'; p 47 usr/bin/mv/mv.c char *src, *dest, *p; p 69 usr/bin/mv/mv.c p = strrchr(src, '/'); p 70 usr/bin/mv/mv.c p = p ? p + 1 : src; p 74 usr/bin/mv/mv.c strlcat(path, p, sizeof(path)); p 45 usr/bin/pwd/pwd.c char *p; p 51 usr/bin/pwd/pwd.c if ((p = getcwd(cwd, PATH_MAX)) == NULL) { p 55 usr/bin/pwd/pwd.c puts(p); p 74 usr/bin/sh/cmds.c char *p; p 81 usr/bin/sh/cmds.c p = getenv("HOME"); p 82 usr/bin/sh/cmds.c if (p == NULL) p 83 usr/bin/sh/cmds.c p = "/"; p 85 usr/bin/sh/cmds.c p = argv[1]; p 87 usr/bin/sh/cmds.c if (chdir(p) < 0) p 205 usr/bin/sh/sh.c char *p, *file; p 208 usr/bin/sh/sh.c p = args[i]; p 209 usr/bin/sh/sh.c switch (*p) { p 215 usr/bin/sh/sh.c if (*(p + 1) == '>') { p 217 usr/bin/sh/sh.c p++; p 226 usr/bin/sh/sh.c if (*(p + 1) == '\0') { p 230 usr/bin/sh/sh.c file = p + 1; p 278 usr/bin/sh/sh.c char *p, *word = NULL; p 287 usr/bin/sh/sh.c p = cmds; p 288 usr/bin/sh/sh.c while (*p) { p 291 usr/bin/sh/sh.c if (*p != ' ' && *p != '\t') p 292 usr/bin/sh/sh.c word = p; p 294 usr/bin/sh/sh.c if (*p == ' ' || *p == '\t') { p 295 usr/bin/sh/sh.c *p = '\0'; p 304 usr/bin/sh/sh.c p++; p 314 usr/bin/sh/sh.c if ((p = strchr(args[0], '=')) != NULL) { p 315 usr/bin/sh/sh.c *p++ = '\0'; p 316 usr/bin/sh/sh.c if (*p == '\0') p 319 usr/bin/sh/sh.c setvar(args[0], p); p 353 usr/bin/sh/sh.c char *p, *cmds; p 355 usr/bin/sh/sh.c p = cmds = str; p 357 usr/bin/sh/sh.c switch (*p) { p 359 usr/bin/sh/sh.c *p = '\0'; p 367 usr/bin/sh/sh.c cmds = p + 1; p 375 usr/bin/sh/sh.c p++; p 382 usr/bin/sh/sh.c char *p, *cmds; p 384 usr/bin/sh/sh.c p = cmds = line; p 386 usr/bin/sh/sh.c switch (*p) { p 388 usr/bin/sh/sh.c *p = '\0'; p 390 usr/bin/sh/sh.c cmds = p + 1; p 393 usr/bin/sh/sh.c *p = '\0'; p 395 usr/bin/sh/sh.c cmds = p + 1; p 400 usr/bin/sh/sh.c *p = '\0'; p 404 usr/bin/sh/sh.c p++; p 411 usr/bin/sh/sh.c char *p = line; p 416 usr/bin/sh/sh.c cnt = read(fd, p, 1); p 420 usr/bin/sh/sh.c if (p == line) p 424 usr/bin/sh/sh.c if (*p == '\n') p 426 usr/bin/sh/sh.c p++; p 428 usr/bin/sh/sh.c *p = '\0'; p 436 usr/bin/sh/sh.c char *p; p 443 usr/bin/sh/sh.c p = readline(fd, line, sizeof(line)); p 444 usr/bin/sh/sh.c if (p == (char *)-1) p 446 usr/bin/sh/sh.c if (p == NULL) p 65 usr/bin/sh/var.c char *p; p 67 usr/bin/sh/var.c for (p = name; *p != '\0'; p++) { p 68 usr/bin/sh/var.c if (!is_name(*p)) p 151 usr/bin/sh/var.c char *p, *s; p 155 usr/bin/sh/var.c p = name; p 157 usr/bin/sh/var.c *p++ = *s++; p 161 usr/bin/sh/var.c *p = '\0'; p 162 usr/bin/sh/var.c p = strchr(str, '='); p 163 usr/bin/sh/var.c setvar(name, p + 1); p 422 usr/bin/test/test.c char *p; p 426 usr/bin/test/test.c r = strtol(s, &p, 10); p 431 usr/bin/test/test.c while (isspace((unsigned char)*p)) p 432 usr/bin/test/test.c p++; p 434 usr/bin/test/test.c if (*p) p 288 usr/include/stdio.h #define __sfeof(p) (((p)->_flags & __SEOF) != 0) p 289 usr/include/stdio.h #define __sferror(p) (((p)->_flags & __SERR) != 0) p 290 usr/include/stdio.h #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) p 291 usr/include/stdio.h #define __sfileno(p) ((p)->_file) p 293 usr/include/stdio.h #define feof(p) __sfeof(p) p 294 usr/include/stdio.h #define ferror(p) __sferror(p) p 295 usr/include/stdio.h #define clearerr(p) __sclearerr(p) p 298 usr/include/stdio.h #define fileno(p) __sfileno(p) p 68 usr/lib/crt/crt1.c _strrchr(char *p, int ch) p 72 usr/lib/crt/crt1.c for (save = NULL;; ++p) { p 73 usr/lib/crt/crt1.c if (*p == ch) p 74 usr/lib/crt/crt1.c save = (char *)p; p 75 usr/lib/crt/crt1.c if (!*p) p 51 usr/lib/libc/gen/execvp.c const char *bp, *path, *p; p 73 usr/lib/libc/gen/execvp.c for (p = path; *path != 0 && *path != ':'; path++) p 79 usr/lib/libc/gen/execvp.c if (p == path) { p 80 usr/lib/libc/gen/execvp.c p = "."; p 83 usr/lib/libc/gen/execvp.c lp = path - p; p 92 usr/lib/libc/gen/execvp.c memcpy(buf, p, lp); p 73 usr/lib/libc/gen/fts.c FTSENT *p, *root; p 115 usr/lib/libc/gen/fts.c p = fts_alloc(sp, *argv, len); p 116 usr/lib/libc/gen/fts.c p->fts_level = FTS_ROOTLEVEL; p 117 usr/lib/libc/gen/fts.c p->fts_parent = parent; p 118 usr/lib/libc/gen/fts.c p->fts_accpath = p->fts_name; p 119 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW)); p 122 usr/lib/libc/gen/fts.c if (p->fts_info == FTS_DOT) p 123 usr/lib/libc/gen/fts.c p->fts_info = FTS_D; p 130 usr/lib/libc/gen/fts.c p->fts_link = root; p 131 usr/lib/libc/gen/fts.c root = p; p 133 usr/lib/libc/gen/fts.c p->fts_link = NULL; p 135 usr/lib/libc/gen/fts.c tmp = root = p; p 137 usr/lib/libc/gen/fts.c tmp->fts_link = p; p 138 usr/lib/libc/gen/fts.c tmp = p; p 175 usr/lib/libc/gen/fts.c fts_load(FTS *sp, FTSENT *p) p 187 usr/lib/libc/gen/fts.c len = p->fts_pathlen = p->fts_namelen; p 188 usr/lib/libc/gen/fts.c memmove(sp->fts_path, p->fts_name, len + 1); p 189 usr/lib/libc/gen/fts.c if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) { p 191 usr/lib/libc/gen/fts.c memmove(p->fts_name, cp, len + 1); p 192 usr/lib/libc/gen/fts.c p->fts_namelen = len; p 194 usr/lib/libc/gen/fts.c p->fts_accpath = p->fts_path = sp->fts_path; p 195 usr/lib/libc/gen/fts.c sp->fts_dev = p->fts_dev; p 201 usr/lib/libc/gen/fts.c FTSENT *freep, *p; p 210 usr/lib/libc/gen/fts.c for (p = sp->fts_cur; p->fts_level >= FTS_ROOTLEVEL;) { p 211 usr/lib/libc/gen/fts.c freep = p; p 212 usr/lib/libc/gen/fts.c p = p->fts_link ? p->fts_link : p->fts_parent; p 215 usr/lib/libc/gen/fts.c free(p); p 246 usr/lib/libc/gen/fts.c #define NAPPEND(p) \ p 247 usr/lib/libc/gen/fts.c (p->fts_level == FTS_ROOTLEVEL && p->fts_pathlen == 1 && \ p 248 usr/lib/libc/gen/fts.c p->fts_path[0] == '/' ? 0 : p->fts_pathlen) p 253 usr/lib/libc/gen/fts.c FTSENT *p, *tmp; p 263 usr/lib/libc/gen/fts.c p = sp->fts_cur; p 266 usr/lib/libc/gen/fts.c instr = p->fts_instr; p 267 usr/lib/libc/gen/fts.c p->fts_instr = FTS_NOINSTR; p 271 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 0); p 272 usr/lib/libc/gen/fts.c return (p); p 282 usr/lib/libc/gen/fts.c (p->fts_info == FTS_SL || p->fts_info == FTS_SLNONE)) { p 283 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 1); p 284 usr/lib/libc/gen/fts.c if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { p 285 usr/lib/libc/gen/fts.c if ((p->fts_symfd = open(".", O_RDONLY, 0)) < 0) { p 286 usr/lib/libc/gen/fts.c p->fts_errno = errno; p 287 usr/lib/libc/gen/fts.c p->fts_info = FTS_ERR; p 289 usr/lib/libc/gen/fts.c p->fts_flags |= FTS_SYMFOLLOW; p 291 usr/lib/libc/gen/fts.c return (p); p 295 usr/lib/libc/gen/fts.c if (p->fts_info == FTS_D) { p 298 usr/lib/libc/gen/fts.c (ISSET(FTS_XDEV) && p->fts_dev != sp->fts_dev)) { p 299 usr/lib/libc/gen/fts.c if (p->fts_flags & FTS_SYMFOLLOW) p 300 usr/lib/libc/gen/fts.c (void)close(p->fts_symfd); p 305 usr/lib/libc/gen/fts.c p->fts_info = FTS_DP; p 306 usr/lib/libc/gen/fts.c return (p); p 329 usr/lib/libc/gen/fts.c if (CHDIR(sp, p->fts_accpath)) { p 330 usr/lib/libc/gen/fts.c p->fts_errno = errno; p 331 usr/lib/libc/gen/fts.c p->fts_flags |= FTS_DONTCHDIR; p 332 usr/lib/libc/gen/fts.c for (p = sp->fts_child; p; p = p->fts_link) p 333 usr/lib/libc/gen/fts.c p->fts_accpath = p 334 usr/lib/libc/gen/fts.c p->fts_parent->fts_accpath; p 339 usr/lib/libc/gen/fts.c return (p); p 341 usr/lib/libc/gen/fts.c p = sp->fts_child; p 347 usr/lib/libc/gen/fts.c next: tmp = p; p 348 usr/lib/libc/gen/fts.c if ((p = p->fts_link) != NULL) { p 355 usr/lib/libc/gen/fts.c if (p->fts_level == FTS_ROOTLEVEL) { p 360 usr/lib/libc/gen/fts.c fts_load(sp, p); p 361 usr/lib/libc/gen/fts.c return (sp->fts_cur = p); p 369 usr/lib/libc/gen/fts.c if (p->fts_instr == FTS_SKIP) p 371 usr/lib/libc/gen/fts.c if (p->fts_instr == FTS_FOLLOW) { p 372 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 1); p 373 usr/lib/libc/gen/fts.c if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { p 374 usr/lib/libc/gen/fts.c if ((p->fts_symfd = p 376 usr/lib/libc/gen/fts.c p->fts_errno = errno; p 377 usr/lib/libc/gen/fts.c p->fts_info = FTS_ERR; p 379 usr/lib/libc/gen/fts.c p->fts_flags |= FTS_SYMFOLLOW; p 381 usr/lib/libc/gen/fts.c p->fts_instr = FTS_NOINSTR; p 384 usr/lib/libc/gen/fts.c name: t = sp->fts_path + NAPPEND(p->fts_parent); p 386 usr/lib/libc/gen/fts.c memmove(t, p->fts_name, p->fts_namelen + 1); p 387 usr/lib/libc/gen/fts.c return (sp->fts_cur = p); p 391 usr/lib/libc/gen/fts.c p = tmp->fts_parent; p 394 usr/lib/libc/gen/fts.c if (p->fts_level == FTS_ROOTPARENTLEVEL) { p 399 usr/lib/libc/gen/fts.c free(p); p 405 usr/lib/libc/gen/fts.c sp->fts_path[p->fts_pathlen] = '\0'; p 412 usr/lib/libc/gen/fts.c if (p->fts_level == FTS_ROOTLEVEL) { p 417 usr/lib/libc/gen/fts.c } else if (p->fts_flags & FTS_SYMFOLLOW) { p 418 usr/lib/libc/gen/fts.c if (FCHDIR(sp, p->fts_symfd)) { p 420 usr/lib/libc/gen/fts.c (void)close(p->fts_symfd); p 425 usr/lib/libc/gen/fts.c (void)close(p->fts_symfd); p 426 usr/lib/libc/gen/fts.c } else if (!(p->fts_flags & FTS_DONTCHDIR)) { p 432 usr/lib/libc/gen/fts.c p->fts_info = p->fts_errno ? FTS_ERR : FTS_DP; p 433 usr/lib/libc/gen/fts.c return (sp->fts_cur = p); p 444 usr/lib/libc/gen/fts.c fts_set(FTS *sp, FTSENT *p, int instr) p 451 usr/lib/libc/gen/fts.c p->fts_instr = instr; p 458 usr/lib/libc/gen/fts.c FTSENT *p; p 467 usr/lib/libc/gen/fts.c p = sp->fts_cur; p 480 usr/lib/libc/gen/fts.c if (p->fts_info == FTS_INIT) p 481 usr/lib/libc/gen/fts.c return (p->fts_link); p 488 usr/lib/libc/gen/fts.c if (p->fts_info != FTS_D /* && p->fts_info != FTS_DNR */) p 508 usr/lib/libc/gen/fts.c if (p->fts_level != FTS_ROOTLEVEL || p->fts_accpath[0] == '/' || p 539 usr/lib/libc/gen/fts.c FTSENT *p, *head; p 644 usr/lib/libc/gen/fts.c if ((p = fts_alloc(sp, dp->d_name, (int)dp->d_namlen)) == NULL) p 654 usr/lib/libc/gen/fts.c if (p) p 655 usr/lib/libc/gen/fts.c free(p); p 667 usr/lib/libc/gen/fts.c p->fts_pathlen = len + dp->d_namlen + 1; p 668 usr/lib/libc/gen/fts.c p->fts_parent = sp->fts_cur; p 669 usr/lib/libc/gen/fts.c p->fts_level = level; p 673 usr/lib/libc/gen/fts.c p->fts_flags |= FTS_ISW; p 678 usr/lib/libc/gen/fts.c p->fts_info = FTS_NS; p 679 usr/lib/libc/gen/fts.c p->fts_errno = cderrno; p 681 usr/lib/libc/gen/fts.c p->fts_info = FTS_NSOK; p 682 usr/lib/libc/gen/fts.c p->fts_accpath = cur->fts_accpath; p 689 usr/lib/libc/gen/fts.c p->fts_accpath = p 690 usr/lib/libc/gen/fts.c ISSET(FTS_NOCHDIR) ? p->fts_path : p->fts_name; p 691 usr/lib/libc/gen/fts.c p->fts_info = FTS_NSOK; p 695 usr/lib/libc/gen/fts.c p->fts_accpath = p->fts_path; p 696 usr/lib/libc/gen/fts.c memmove(cp, p->fts_name, p->fts_namelen + 1); p 698 usr/lib/libc/gen/fts.c p->fts_accpath = p->fts_name; p 700 usr/lib/libc/gen/fts.c p->fts_info = fts_stat(sp, p, 0); p 703 usr/lib/libc/gen/fts.c if (nlinks > 0 && (p->fts_info == FTS_D || p 704 usr/lib/libc/gen/fts.c p->fts_info == FTS_DC || p->fts_info == FTS_DOT)) p 709 usr/lib/libc/gen/fts.c p->fts_link = NULL; p 711 usr/lib/libc/gen/fts.c head = tail = p; p 713 usr/lib/libc/gen/fts.c tail->fts_link = p; p 714 usr/lib/libc/gen/fts.c tail = p; p 766 usr/lib/libc/gen/fts.c fts_stat(FTS *sp, FTSENT *p, int follow) p 775 usr/lib/libc/gen/fts.c sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; p 779 usr/lib/libc/gen/fts.c if (p->fts_flags & FTS_ISW) { p 794 usr/lib/libc/gen/fts.c if (stat(p->fts_accpath, sbp)) { p 796 usr/lib/libc/gen/fts.c if (!lstat(p->fts_accpath, sbp)) { p 800 usr/lib/libc/gen/fts.c p->fts_errno = saved_errno; p 803 usr/lib/libc/gen/fts.c } else if (lstat(p->fts_accpath, sbp)) { p 804 usr/lib/libc/gen/fts.c p->fts_errno = errno; p 817 usr/lib/libc/gen/fts.c dev = p->fts_dev = sbp->st_dev; p 818 usr/lib/libc/gen/fts.c ino = p->fts_ino = sbp->st_ino; p 819 usr/lib/libc/gen/fts.c p->fts_nlink = sbp->st_nlink; p 821 usr/lib/libc/gen/fts.c if (ISDOT(p->fts_name)) p 830 usr/lib/libc/gen/fts.c for (t = p->fts_parent; p 833 usr/lib/libc/gen/fts.c p->fts_cycle = t; p 848 usr/lib/libc/gen/fts.c FTSENT **ap, *p; p 865 usr/lib/libc/gen/fts.c for (ap = sp->fts_array, p = head; p; p = p->fts_link) p 866 usr/lib/libc/gen/fts.c *ap++ = p; p 879 usr/lib/libc/gen/fts.c FTSENT *p; p 893 usr/lib/libc/gen/fts.c if ((p = malloc(len)) == NULL) p 897 usr/lib/libc/gen/fts.c memmove(p->fts_name, name, namelen + 1); p 900 usr/lib/libc/gen/fts.c p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2); p 901 usr/lib/libc/gen/fts.c p->fts_namelen = namelen; p 902 usr/lib/libc/gen/fts.c p->fts_path = sp->fts_path; p 903 usr/lib/libc/gen/fts.c p->fts_errno = 0; p 904 usr/lib/libc/gen/fts.c p->fts_flags = 0; p 905 usr/lib/libc/gen/fts.c p->fts_instr = FTS_NOINSTR; p 906 usr/lib/libc/gen/fts.c p->fts_number = 0; p 907 usr/lib/libc/gen/fts.c p->fts_pointer = NULL; p 908 usr/lib/libc/gen/fts.c return (p); p 914 usr/lib/libc/gen/fts.c FTSENT *p; p 917 usr/lib/libc/gen/fts.c while ((p = head) != NULL) { p 919 usr/lib/libc/gen/fts.c free(p); p 944 usr/lib/libc/gen/fts.c FTSENT *p; p 946 usr/lib/libc/gen/fts.c #define ADJUST(p) { \ p 947 usr/lib/libc/gen/fts.c (p)->fts_accpath = \ p 948 usr/lib/libc/gen/fts.c (char *)addr + ((p)->fts_accpath - (p)->fts_path); \ p 949 usr/lib/libc/gen/fts.c (p)->fts_path = addr; \ p 952 usr/lib/libc/gen/fts.c for (p = sp->fts_child; p; p = p->fts_link) p 953 usr/lib/libc/gen/fts.c ADJUST(p); p 956 usr/lib/libc/gen/fts.c for (p = sp->fts_cur; p->fts_level >= FTS_ROOTLEVEL;) { p 957 usr/lib/libc/gen/fts.c ADJUST(p); p 958 usr/lib/libc/gen/fts.c p = p->fts_link ? p->fts_link : p->fts_parent; p 43 usr/lib/libc/gen/getpass.c register char *p; p 69 usr/lib/libc/gen/getpass.c for (p = buf; (ch = getc(fp)) != EOF && ch != '\n';) { p 70 usr/lib/libc/gen/getpass.c if (p < buf + PASSWORD_LEN + 1) p 71 usr/lib/libc/gen/getpass.c *p++ = ch; p 73 usr/lib/libc/gen/getpass.c *p = '\0'; p 56 usr/lib/libc/stdio/fflush.c unsigned char *p; p 63 usr/lib/libc/stdio/fflush.c if ((p = fp->_bf._base) == NULL) p 66 usr/lib/libc/stdio/fflush.c n = fp->_p - p; /* write this much */ p 72 usr/lib/libc/stdio/fflush.c fp->_p = p; p 75 usr/lib/libc/stdio/fflush.c for (; n > 0; n -= t, p += t) { p 76 usr/lib/libc/stdio/fflush.c t = __swrite(fp, (char *)p, n); p 44 usr/lib/libc/stdio/fread.c char *p; p 58 usr/lib/libc/stdio/fread.c p = buf; p 60 usr/lib/libc/stdio/fread.c (void)memcpy((void *)p, (void *)fp->_p, (size_t)r); p 63 usr/lib/libc/stdio/fread.c p += r; p 70 usr/lib/libc/stdio/fread.c (void)memcpy((void *)p, (void *)fp->_p, resid); p 50 usr/lib/libc/stdio/fvwrite.c char *p; p 63 usr/lib/libc/stdio/fvwrite.c #define COPY(n) (void)memcpy((void *)fp->_p, (void *)p, (size_t)(n)) p 66 usr/lib/libc/stdio/fvwrite.c p = iov->iov_base; p 72 usr/lib/libc/stdio/fvwrite.c p = iov->iov_base; \ p 82 usr/lib/libc/stdio/fvwrite.c w = __swrite(fp, p, MIN(len, BUFSIZ)); p 85 usr/lib/libc/stdio/fvwrite.c p += w; p 119 usr/lib/libc/stdio/fvwrite.c w = __swrite(fp, p, w); p 129 usr/lib/libc/stdio/fvwrite.c p += w; p 145 usr/lib/libc/stdio/fvwrite.c nl = memchr((void *)p, '\n', len); p 146 usr/lib/libc/stdio/fvwrite.c nldist = nl ? nl + 1 - p : len + 1; p 158 usr/lib/libc/stdio/fvwrite.c w = __swrite(fp, p, w); p 173 usr/lib/libc/stdio/fvwrite.c p += w; p 46 usr/lib/libc/stdio/fwrite.c unsigned char *p = (unsigned char *)buf; p 51 usr/lib/libc/stdio/fwrite.c if (putc((int)*p, fp) == EOF) p 53 usr/lib/libc/stdio/fwrite.c p++; p 41 usr/lib/libc/stdio/getw.c char *p = (char *) &w; p 44 usr/lib/libc/stdio/getw.c *p++ = getc(fp); p 69 usr/lib/libc/stdio/makebuf.c void *p; p 80 usr/lib/libc/stdio/makebuf.c if ((p = malloc(size)) == NULL) { p 88 usr/lib/libc/stdio/makebuf.c fp->_bf._base = fp->_p = p; p 41 usr/lib/libc/stdio/putw.c char *p = (char *) &w; p 44 usr/lib/libc/stdio/putw.c putc(*p++, fp); p 420 usr/lib/libc/stdio/vfprintf.c char *p = memchr(cp, 0, prec); p 422 usr/lib/libc/stdio/vfprintf.c if (p != NULL) { p 423 usr/lib/libc/stdio/vfprintf.c size = p - cp; p 91 usr/lib/libc/stdio/vfscanf.c char *p; /* points into all kinds of strings */ p 343 usr/lib/libc/stdio/vfscanf.c p0 = p = va_arg(ap, char *); p 346 usr/lib/libc/stdio/vfscanf.c *p++ = *fp->_p++; p 350 usr/lib/libc/stdio/vfscanf.c if (p == p0) p 355 usr/lib/libc/stdio/vfscanf.c n = p - p0; p 358 usr/lib/libc/stdio/vfscanf.c *p = 0; p 379 usr/lib/libc/stdio/vfscanf.c p0 = p = va_arg(ap, char *); p 382 usr/lib/libc/stdio/vfscanf.c *p++ = *fp->_p++; p 388 usr/lib/libc/stdio/vfscanf.c *p = 0; p 389 usr/lib/libc/stdio/vfscanf.c nread += p - p0; p 406 usr/lib/libc/stdio/vfscanf.c for (p = buf; width; width--) { p 473 usr/lib/libc/stdio/vfscanf.c if (flags & PFXOK && p == buf + 1) { p 490 usr/lib/libc/stdio/vfscanf.c *p++ = c; p 503 usr/lib/libc/stdio/vfscanf.c if (p > buf) p 504 usr/lib/libc/stdio/vfscanf.c (void) ungetc(*(u_char *)--p, fp); p 507 usr/lib/libc/stdio/vfscanf.c c = ((u_char *)p)[-1]; p 509 usr/lib/libc/stdio/vfscanf.c --p; p 515 usr/lib/libc/stdio/vfscanf.c *p = 0; p 527 usr/lib/libc/stdio/vfscanf.c nread += p - buf; p 38 usr/lib/libc/stdlib/calloc.c void *p; p 41 usr/lib/libc/stdlib/calloc.c if ((p = malloc(size)) != NULL) p 42 usr/lib/libc/stdlib/calloc.c bzero(p, size); p 43 usr/lib/libc/stdlib/calloc.c return(p); p 67 usr/lib/libc/stdlib/getenv.c char **p, *c; p 74 usr/lib/libc/stdlib/getenv.c for (p = environ; (c = *p) != NULL; ++p) p 76 usr/lib/libc/stdlib/getenv.c *offset = p - environ; p 48 usr/lib/libc/stdlib/getsubopt.c char *p; p 56 usr/lib/libc/stdlib/getsubopt.c for (p = *optionp; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); p 58 usr/lib/libc/stdlib/getsubopt.c if (!*p) { p 59 usr/lib/libc/stdlib/getsubopt.c *optionp = p; p 64 usr/lib/libc/stdlib/getsubopt.c for (suboptarg = p; p 65 usr/lib/libc/stdlib/getsubopt.c *++p && *p != ',' && *p != '=' && *p != ' ' && *p != '\t';); p 67 usr/lib/libc/stdlib/getsubopt.c if (*p) { p 73 usr/lib/libc/stdlib/getsubopt.c if (*p == '=') { p 74 usr/lib/libc/stdlib/getsubopt.c *p = '\0'; p 75 usr/lib/libc/stdlib/getsubopt.c for (*valuep = ++p; p 76 usr/lib/libc/stdlib/getsubopt.c *p && *p != ',' && *p != ' ' && *p != '\t'; ++p); p 77 usr/lib/libc/stdlib/getsubopt.c if (*p) p 78 usr/lib/libc/stdlib/getsubopt.c *p++ = '\0'; p 80 usr/lib/libc/stdlib/getsubopt.c *p++ = '\0'; p 82 usr/lib/libc/stdlib/getsubopt.c for (; *p && (*p == ',' || *p == ' ' || *p == '\t'); ++p); p 86 usr/lib/libc/stdlib/getsubopt.c *optionp = p; p 37 usr/lib/libc/stdlib/putenv.c char *p, *equal; p 40 usr/lib/libc/stdlib/putenv.c if ((p = strdup(str)) == NULL) p 42 usr/lib/libc/stdlib/putenv.c if ((equal = index(p, '=')) == NULL) { p 43 usr/lib/libc/stdlib/putenv.c (void)free(p); p 47 usr/lib/libc/stdlib/putenv.c rval = setenv(p, equal + 1, 1); p 48 usr/lib/libc/stdlib/putenv.c (void)free(p); p 65 usr/lib/libc/stdlib/setenv.c char **p; p 67 usr/lib/libc/stdlib/setenv.c for (p = environ, cnt = 0; *p; ++p, ++cnt); p 76 usr/lib/libc/stdlib/setenv.c p = malloc((size_t)(sizeof(char *) * (cnt + 2))); p 77 usr/lib/libc/stdlib/setenv.c if (!p) p 79 usr/lib/libc/stdlib/setenv.c bcopy(environ, p, cnt * sizeof(char *)); p 80 usr/lib/libc/stdlib/setenv.c environ = p; p 102 usr/lib/libc/stdlib/setenv.c char **p; p 106 usr/lib/libc/stdlib/setenv.c for (p = &environ[offset];; ++p) p 107 usr/lib/libc/stdlib/setenv.c if (!(*p = *(p + 1))) p 36 usr/lib/libc/string/index.c strchr(p, ch) p 38 usr/lib/libc/string/index.c index(p, ch) p 40 usr/lib/libc/string/index.c const char *p, ch; p 42 usr/lib/libc/string/index.c for (;; ++p) { p 43 usr/lib/libc/string/index.c if (*p == ch) p 44 usr/lib/libc/string/index.c return((char *)p); p 45 usr/lib/libc/string/index.c if (!*p) p 43 usr/lib/libc/string/memchr.c const unsigned char *p = s; p 46 usr/lib/libc/string/memchr.c if (*p++ == c) p 47 usr/lib/libc/string/memchr.c return ((void *)(p - 1)); p 35 usr/lib/libc/string/rindex.c strrchr(p, ch) p 37 usr/lib/libc/string/rindex.c rindex(p, ch) p 39 usr/lib/libc/string/rindex.c const char *p; p 44 usr/lib/libc/string/rindex.c for (save = NULL;; ++p) { p 45 usr/lib/libc/string/rindex.c if (*p == ch) p 46 usr/lib/libc/string/rindex.c save = (char *)p; p 47 usr/lib/libc/string/rindex.c if (!*p) p 44 usr/lib/libc/string/strcspn.c const char *p, *spanp; p 51 usr/lib/libc/string/strcspn.c for (p = s1;;) { p 52 usr/lib/libc/string/strcspn.c c = *p++; p 56 usr/lib/libc/string/strcspn.c return (p - 1 - s1); p 36 usr/lib/libc/string/strmode.c strmode(mode, p) p 38 usr/lib/libc/string/strmode.c char *p; p 43 usr/lib/libc/string/strmode.c *p++ = 'd'; p 46 usr/lib/libc/string/strmode.c *p++ = 'c'; p 49 usr/lib/libc/string/strmode.c *p++ = 'b'; p 52 usr/lib/libc/string/strmode.c *p++ = '-'; p 55 usr/lib/libc/string/strmode.c *p++ = 'l'; p 58 usr/lib/libc/string/strmode.c *p++ = 's'; p 62 usr/lib/libc/string/strmode.c *p++ = 'p'; p 67 usr/lib/libc/string/strmode.c *p++ = 'w'; p 71 usr/lib/libc/string/strmode.c *p++ = '?'; p 76 usr/lib/libc/string/strmode.c *p++ = 'r'; p 78 usr/lib/libc/string/strmode.c *p++ = '-'; p 80 usr/lib/libc/string/strmode.c *p++ = 'w'; p 82 usr/lib/libc/string/strmode.c *p++ = '-'; p 85 usr/lib/libc/string/strmode.c *p++ = '-'; p 88 usr/lib/libc/string/strmode.c *p++ = 'x'; p 91 usr/lib/libc/string/strmode.c *p++ = 'S'; p 94 usr/lib/libc/string/strmode.c *p++ = 's'; p 99 usr/lib/libc/string/strmode.c *p++ = 'r'; p 101 usr/lib/libc/string/strmode.c *p++ = '-'; p 103 usr/lib/libc/string/strmode.c *p++ = 'w'; p 105 usr/lib/libc/string/strmode.c *p++ = '-'; p 108 usr/lib/libc/string/strmode.c *p++ = '-'; p 111 usr/lib/libc/string/strmode.c *p++ = 'x'; p 114 usr/lib/libc/string/strmode.c *p++ = 'S'; p 117 usr/lib/libc/string/strmode.c *p++ = 's'; p 122 usr/lib/libc/string/strmode.c *p++ = 'r'; p 124 usr/lib/libc/string/strmode.c *p++ = '-'; p 126 usr/lib/libc/string/strmode.c *p++ = 'w'; p 128 usr/lib/libc/string/strmode.c *p++ = '-'; p 131 usr/lib/libc/string/strmode.c *p++ = '-'; p 134 usr/lib/libc/string/strmode.c *p++ = 'x'; p 137 usr/lib/libc/string/strmode.c *p++ = 'T'; p 140 usr/lib/libc/string/strmode.c *p++ = 't'; p 143 usr/lib/libc/string/strmode.c *p++ = ' '; /* will be a '+' if ACL's implemented */ p 144 usr/lib/libc/string/strmode.c *p = '\0'; p 41 usr/lib/libc/string/strspn.c const char *p = s1, *spanp; p 48 usr/lib/libc/string/strspn.c c = *p++; p 52 usr/lib/libc/string/strspn.c return (p - 1 - s1); p 251 usr/lib/libc/time/strftime.c char *p; p 257 usr/lib/libc/time/strftime.c for (p = buf + sizeof(buf) - 2; s > 0 && p > buf; s /= 10) p 258 usr/lib/libc/time/strftime.c *p-- = s % 10 + '0'; p 259 usr/lib/libc/time/strftime.c return(_add(++p)); p 267 usr/lib/libc/time/strftime.c char *p; p 269 usr/lib/libc/time/strftime.c for (p = buf + sizeof(buf) - 2; n > 0 && p > buf; n /= 10, --digits) p 270 usr/lib/libc/time/strftime.c *p-- = n % 10 + '0'; p 271 usr/lib/libc/time/strftime.c while (p > buf && digits-- > 0) p 272 usr/lib/libc/time/strftime.c *p-- = pad; p 273 usr/lib/libc/time/strftime.c return(_add(++p)); p 89 usr/lib/libsa/vsprintf.c char *p, *str; p 96 usr/lib/libsa/vsprintf.c for (p = buf; *fmt && (size < LINE_MAX); fmt++, size++) { p 98 usr/lib/libsa/vsprintf.c *p++ = *fmt; p 119 usr/lib/libsa/vsprintf.c *p++ = (unsigned char)va_arg(args, int); p 126 usr/lib/libsa/vsprintf.c *p++ = *str; p 146 usr/lib/libsa/vsprintf.c *p++ = '-'; p 157 usr/lib/libsa/vsprintf.c *p++ = pad; p 159 usr/lib/libsa/vsprintf.c *p++ = tmp[i]; p 161 usr/lib/libsa/vsprintf.c *p = '\0'; p 162 usr/lib/libsa/vsprintf.c return (p - buf); p 54 usr/lib/prex/malloc/malloc.c struct header *p, *prev; p 70 usr/lib/prex/malloc/malloc.c for (p = prev->next;; prev = p, p = p->next) { p 71 usr/lib/prex/malloc/malloc.c if (p->size >= size) { /* big enough */ p 72 usr/lib/prex/malloc/malloc.c if (p->size == size) /* exactly */ p 73 usr/lib/prex/malloc/malloc.c prev->next = p->next; p 75 usr/lib/prex/malloc/malloc.c p->size -= size; p 76 usr/lib/prex/malloc/malloc.c p = (struct header *)((char *)p + p->size); p 77 usr/lib/prex/malloc/malloc.c p->size = size; p 78 usr/lib/prex/malloc/malloc.c p->vm_size = 0; p 81 usr/lib/prex/malloc/malloc.c p->magic = MALLOC_MAGIC; p 86 usr/lib/prex/malloc/malloc.c if (p == scan_head) { p 87 usr/lib/prex/malloc/malloc.c if ((p = more_core(size)) == NULL) p 93 usr/lib/prex/malloc/malloc.c if (p == NULL) { p 99 usr/lib/prex/malloc/malloc.c return (void *)(p + 1); p 107 usr/lib/prex/malloc/malloc.c struct header *p, *prev; p 110 usr/lib/prex/malloc/malloc.c if (vm_allocate(task_self(), (void *)&p, size, 1)) p 112 usr/lib/prex/malloc/malloc.c p->size = size; p 113 usr/lib/prex/malloc/malloc.c p->vm_size = size; p 116 usr/lib/prex/malloc/malloc.c for (prev = scan_head; !(p > prev && p < prev->next); prev = prev->next) { p 117 usr/lib/prex/malloc/malloc.c if (prev >= prev->next && (p > prev || p < prev->next)) p 120 usr/lib/prex/malloc/malloc.c p->next = prev->next; p 121 usr/lib/prex/malloc/malloc.c prev->next = p; p 129 usr/lib/prex/malloc/malloc.c struct header *p, *prev; p 135 usr/lib/prex/malloc/malloc.c p = (struct header *)addr - 1; p 137 usr/lib/prex/malloc/malloc.c if (p->magic != MALLOC_MAGIC) p 139 usr/lib/prex/malloc/malloc.c p->magic = 0; p 141 usr/lib/prex/malloc/malloc.c for (prev = scan_head; !(p > prev && p < prev->next); prev = prev->next) { p 142 usr/lib/prex/malloc/malloc.c if (prev >= prev->next && (p > prev || p < prev->next)) p 146 usr/lib/prex/malloc/malloc.c ((char *)p + p->size == (char *)prev->next)) { p 147 usr/lib/prex/malloc/malloc.c p->size += prev->next->size; p 148 usr/lib/prex/malloc/malloc.c p->next = prev->next->next; p 150 usr/lib/prex/malloc/malloc.c p->next = prev->next; p 152 usr/lib/prex/malloc/malloc.c if ((p->vm_size == 0) && /* join to lower block */ p 153 usr/lib/prex/malloc/malloc.c ((char *)prev + prev->size == (char *)p)) { p 154 usr/lib/prex/malloc/malloc.c prev->size += p->size; p 155 usr/lib/prex/malloc/malloc.c prev->next = p->next; p 157 usr/lib/prex/malloc/malloc.c prev->next = p; p 160 usr/lib/prex/malloc/malloc.c if (p->size == p->vm_size) { p 161 usr/lib/prex/malloc/malloc.c prev->next = p->next; p 162 usr/lib/prex/malloc/malloc.c vm_free(task_self(), p); p 172 usr/lib/prex/malloc/malloc.c struct header *p; p 175 usr/lib/prex/malloc/malloc.c for (p = free_list.next; p != &free_list; p = p->next) { p 176 usr/lib/prex/malloc/malloc.c printf("mstat: addr=%x size=%d next=%x\n", p, p->size, p->next); p 43 usr/lib/prex/malloc/malloc_r.c void *p; p 46 usr/lib/prex/malloc/malloc_r.c p = malloc(size); p 48 usr/lib/prex/malloc/malloc_r.c return p; p 37 usr/lib/prex/malloc/realloc.c struct header *p, *old; p 49 usr/lib/prex/malloc/realloc.c if ((p = malloc(size)) == NULL) p 52 usr/lib/prex/malloc/realloc.c memcpy(p, addr, old_size); p 54 usr/lib/prex/malloc/realloc.c memcpy(p, addr, size); p 56 usr/lib/prex/malloc/realloc.c return p; p 81 usr/sample/tetris/tetris.c cell *p; p 83 usr/sample/tetris/tetris.c p = board; p 85 usr/sample/tetris/tetris.c *p++ = i <= (2 * B_COLS) || (i % B_COLS) < 2; p 95 usr/sample/tetris/tetris.c cell *p; p 99 usr/sample/tetris/tetris.c p = &board[base]; p 100 usr/sample/tetris/tetris.c for (j = B_COLS - 2; *p++ != 0;) { p 119 usr/sbin/install/install.c char *p; p 121 usr/sbin/install/install.c p = strrchr(from, '/'); p 122 usr/sbin/install/install.c p = p ? p + 1 : from; p 125 usr/sbin/install/install.c strlcat(path, p, sizeof(path)); p 58 usr/sbin/lock/lock.c char *p; p 74 usr/sbin/lock/lock.c if (((p = fgets(passcode, sizeof(passcode), fp)) == NULL) || p 125 usr/sbin/lock/lock.c char *p, *t; p 129 usr/sbin/lock/lock.c p = getpass("New passcode:"); p 130 usr/sbin/lock/lock.c if (!*p) { p 134 usr/sbin/lock/lock.c for (t = p; *t && isdigit(*t); ++t); p 135 usr/sbin/lock/lock.c if (strlen(p) != 4 || *t) { p 139 usr/sbin/lock/lock.c strlcpy(buf, p, sizeof(buf)); p 126 usr/server/boot/boot.c char *spec, *file, *type, *p; p 161 usr/server/boot/boot.c if ((p = fgets(line, sizeof(line), fp)) == NULL) p 163 usr/server/boot/boot.c spec = strtok(p, " \t\n"); p 54 usr/server/exec/exec_execve.c #define SP_ALIGN(p) ((unsigned)(p) &~ _ALIGNBYTES) p 235 usr/server/exec/exec_execve.c char *src, *tgt, *p, *end; p 261 usr/server/exec/exec_execve.c p = src; p 262 usr/server/exec/exec_execve.c while (*p != '/' && *p != '\0') p 263 usr/server/exec/exec_execve.c p++; p 264 usr/server/exec/exec_execve.c *p = '\0'; p 286 usr/server/exec/exec_execve.c if (p == end) p 292 usr/server/exec/exec_execve.c src = p + 1; p 68 usr/server/exec/exec_script.c char *p, *name; p 75 usr/server/exec/exec_script.c for (p = hdrstr + 2; *p == ' ' || *p == '\t'; p++) p 77 usr/server/exec/exec_script.c if (*p == '\0') p 83 usr/server/exec/exec_script.c name = p; p 84 usr/server/exec/exec_script.c for (; *p != '\0' && *p != ' ' && *p != '\t'; p++) p 86 usr/server/exec/exec_script.c *p++ = '\0'; p 50 usr/server/fs/arfs/arfs.h #define free(p) free_r(p) p 151 usr/server/fs/arfs/arfs_vnops.c char *p; p 179 usr/server/fs/arfs/arfs_vnops.c if ((p = memchr(&hdr->ar_name, '/', 16)) != NULL) p 180 usr/server/fs/arfs/arfs_vnops.c *p = '\0'; p 291 usr/server/fs/arfs/arfs_vnops.c char *p; p 325 usr/server/fs/arfs/arfs_vnops.c if ((p = memchr(&hdr->ar_name, '/', 16)) != NULL) p 326 usr/server/fs/arfs/arfs_vnops.c *p = '\0'; p 50 usr/server/fs/devfs/devfs.h #define free(p) free_r(p) p 55 usr/server/fs/fatfs/fatfs.h #define free(p) free_r(p) p 50 usr/server/fs/fifofs/fifo.h #define free(p) free_r(p) p 222 usr/server/fs/fifofs/fifo_vnops.c char *p = buf; p 252 usr/server/fs/fifofs/fifo_vnops.c *p++ = np->fn_buf[pos]; p 267 usr/server/fs/fifofs/fifo_vnops.c char *p = buf; p 293 usr/server/fs/fifofs/fifo_vnops.c np->fn_buf[pos] = *p++; p 49 usr/server/fs/ramfs/ramfs.h #define free(p) free_r(p) p 69 usr/server/fs/vfs/vfs.h #define free(p) free_r(p) p 53 usr/server/fs/vfs/vfs_lookup.c char *p; p 66 usr/server/fs/vfs/vfs_lookup.c if (vfs_findroot(path, &mp, &p)) p 69 usr/server/fs/vfs/vfs_lookup.c strlcat(node, p, sizeof(node)); p 88 usr/server/fs/vfs/vfs_lookup.c while (*p != '\0') { p 92 usr/server/fs/vfs/vfs_lookup.c while (*p == '/') p 93 usr/server/fs/vfs/vfs_lookup.c p++; p 95 usr/server/fs/vfs/vfs_lookup.c if (*p == '\0' || *p == '/') p 97 usr/server/fs/vfs/vfs_lookup.c name[i] = *p++; p 115 usr/server/fs/vfs/vfs_lookup.c if (error || (*p == '/' && vp->v_type != VDIR)) { p 124 usr/server/fs/vfs/vfs_lookup.c while (*p != '\0' && *p != '/') p 125 usr/server/fs/vfs/vfs_lookup.c p++; p 226 usr/server/fs/vfs/vfs_task.c char *src, *tgt, *p, *end, *cwd; p 253 usr/server/fs/vfs/vfs_task.c p = src; p 254 usr/server/fs/vfs/vfs_task.c while (*p != '/' && *p != '\0') p 255 usr/server/fs/vfs/vfs_task.c p++; p 256 usr/server/fs/vfs/vfs_task.c *p = '\0'; p 278 usr/server/fs/vfs/vfs_task.c if (p == end) p 284 usr/server/fs/vfs/vfs_task.c src = p + 1; p 284 usr/server/proc/main.c struct proc *p, *parent; p 290 usr/server/proc/main.c if ((p = task_to_proc(orgtask)) == NULL) p 293 usr/server/proc/main.c p_remove(p); p 294 usr/server/proc/main.c p->p_task = newtask; p 295 usr/server/proc/main.c p_add(p); p 296 usr/server/proc/main.c p->p_invfork = 0; p 297 usr/server/proc/main.c p->p_stackbase = (void *)msg->data[2]; p 299 usr/server/proc/main.c if (p->p_flag & P_TRACED) { p 304 usr/server/proc/main.c parent = p->p_parent; p 318 usr/server/proc/main.c struct proc *p; p 323 usr/server/proc/main.c if ((p = task_to_proc(task)) == NULL) p 326 usr/server/proc/main.c msg->data[0] = (int)p->p_pid; p 327 usr/server/proc/main.c msg->data[2] = (int)p->p_stat; p 328 usr/server/proc/main.c if (p->p_parent == NULL) p 331 usr/server/proc/main.c msg->data[1] = (int)p->p_parent->p_pid; p 364 usr/server/proc/main.c struct proc *p; p 368 usr/server/proc/main.c if ((p = task_to_proc(task)) == NULL) p 372 usr/server/proc/main.c p->p_flag ^= P_TRACED; p 382 usr/server/proc/main.c struct proc *p; p 390 usr/server/proc/main.c if ((p = malloc(sizeof(struct proc))) == NULL) p 392 usr/server/proc/main.c memset(p, 0, sizeof(struct proc)); p 395 usr/server/proc/main.c if (newproc(p, 0, msg->hdr.task)) p 398 usr/server/proc/main.c DPRINTF(("proc: register pid=%d\n", p->p_pid)); p 449 usr/server/proc/main.c struct proc *p; p 460 usr/server/proc/main.c p = list_entry(n, struct proc, p_link); p 461 usr/server/proc/main.c dprintf(" %6d %6d %6d %6d %s %08x\n", p->p_pid, p 462 usr/server/proc/main.c p->p_parent->p_pid, p->p_pgrp->pg_pgid, p 463 usr/server/proc/main.c p->p_pgrp->pg_session->s_leader->p_pid, p 464 usr/server/proc/main.c stat[p->p_stat], p->p_task); p 487 usr/server/proc/main.c struct proc *p; p 491 usr/server/proc/main.c p = &proc0; p 501 usr/server/proc/main.c sess->s_leader = p; p 504 usr/server/proc/main.c p->p_parent = 0; p 505 usr/server/proc/main.c p->p_pgrp = pg; p 506 usr/server/proc/main.c p->p_stat = SRUN; p 507 usr/server/proc/main.c p->p_exitcode = 0; p 508 usr/server/proc/main.c p->p_pid = 0; p 509 usr/server/proc/main.c p->p_task = task_self(); p 510 usr/server/proc/main.c p->p_vforked = 0; p 511 usr/server/proc/main.c p->p_invfork = 0; p 513 usr/server/proc/main.c list_init(&p->p_children); p 514 usr/server/proc/main.c p_add(p); p 515 usr/server/proc/main.c list_insert(&pg->pg_members, &p->p_pgrp_link); p 146 usr/server/proc/proc_exit.c struct proc *p; p 161 usr/server/proc/proc_exit.c p = NULL; p 164 usr/server/proc/proc_exit.c p = list_entry(n, struct proc, p_sibling); p 174 usr/server/proc/proc_exit.c if (p->p_pid == pid) p 180 usr/server/proc/proc_exit.c if (p->p_pgrp->pg_pgid == curproc->p_pgrp->pg_pgid) p 186 usr/server/proc/proc_exit.c if (p->p_pgrp->pg_pgid == -pid) p 198 usr/server/proc/proc_exit.c if (p->p_stat == SSTOP) { p 199 usr/server/proc/proc_exit.c pid_child = p->p_pid; p 200 usr/server/proc/proc_exit.c code = p->p_exitcode; p 202 usr/server/proc/proc_exit.c } else if (p->p_stat == SZOMB) { p 203 usr/server/proc/proc_exit.c pid_child = p->p_pid; p 204 usr/server/proc/proc_exit.c code = p->p_exitcode; p 205 usr/server/proc/proc_exit.c cleanup(p); p 84 usr/server/proc/proc_fork.c newproc(struct proc *p, pid_t pid, task_t task) p 100 usr/server/proc/proc_fork.c p->p_parent = curproc; p 101 usr/server/proc/proc_fork.c p->p_pgrp = pg; p 102 usr/server/proc/proc_fork.c p->p_stat = SRUN; p 103 usr/server/proc/proc_fork.c p->p_exitcode = 0; p 104 usr/server/proc/proc_fork.c p->p_pid = pid; p 105 usr/server/proc/proc_fork.c p->p_task = task; p 106 usr/server/proc/proc_fork.c p->p_vforked = 0; p 107 usr/server/proc/proc_fork.c p->p_invfork = 0; p 109 usr/server/proc/proc_fork.c list_init(&p->p_children); p 110 usr/server/proc/proc_fork.c p_add(p); p 111 usr/server/proc/proc_fork.c list_insert(&curproc->p_children, &p->p_sibling); p 112 usr/server/proc/proc_fork.c list_insert(&pg->pg_members, &p->p_pgrp_link); p 113 usr/server/proc/proc_fork.c list_insert(&allproc, &p->p_link); p 128 usr/server/proc/proc_fork.c struct proc *p; p 143 usr/server/proc/proc_fork.c if ((p = malloc(sizeof(struct proc))) == NULL) p 145 usr/server/proc/proc_fork.c memset(p, 0, sizeof(*p)); p 147 usr/server/proc/proc_fork.c error = newproc(p, 0, child); p 153 usr/server/proc/proc_fork.c p->p_invfork = 1; p 156 usr/server/proc/proc_fork.c DPRINTF(("proc: fork newpid=%d\n", p->p_pid)); p 157 usr/server/proc/proc_fork.c *retval = p->p_pid; p 165 usr/server/proc/proc_fork.c cleanup(struct proc *p) p 169 usr/server/proc/proc_fork.c DPRINTF(("proc: cleanup pid=%d\n", p->p_pid)); p 170 usr/server/proc/proc_fork.c pp = p->p_parent; p 171 usr/server/proc/proc_fork.c list_remove(&p->p_sibling); p 172 usr/server/proc/proc_fork.c list_remove(&p->p_pgrp_link); p 173 usr/server/proc/proc_fork.c list_remove(&p->p_link); p 174 usr/server/proc/proc_fork.c free(p); p 178 usr/server/proc/proc_fork.c vfork_start(struct proc *p) p 185 usr/server/proc/proc_fork.c DPRINTF(("proc: vfork_start stack=%x\n", p->p_stackbase)); p 187 usr/server/proc/proc_fork.c if (vm_allocate(p->p_task, &stack, DFLSTKSZ, 1) != 0) { p 192 usr/server/proc/proc_fork.c memcpy(stack, p->p_stackbase, DFLSTKSZ); p 193 usr/server/proc/proc_fork.c p->p_stacksaved = stack; p 195 usr/server/proc/proc_fork.c p->p_vforked = 1; p 200 usr/server/proc/proc_fork.c vfork_end(struct proc *p) p 203 usr/server/proc/proc_fork.c DPRINTF(("proc: vfork_end org=%x saved=%x\n", p->p_stackbase, p 204 usr/server/proc/proc_fork.c p->p_stacksaved)); p 208 usr/server/proc/proc_fork.c memcpy(p->p_stackbase, p->p_stacksaved, DFLSTKSZ); p 209 usr/server/proc/proc_fork.c vm_free(p->p_task, p->p_stacksaved); p 214 usr/server/proc/proc_fork.c p->p_vforked = 0; p 215 usr/server/proc/proc_fork.c task_resume(p->p_task); p 56 usr/server/proc/proc_hash.c struct proc *p = NULL; p 61 usr/server/proc/proc_hash.c p = list_entry(n, struct proc, p_pid_link); p 62 usr/server/proc/proc_hash.c if (p->p_pid == pid) p 63 usr/server/proc/proc_hash.c return p; p 96 usr/server/proc/proc_hash.c struct proc *p = NULL; p 102 usr/server/proc/proc_hash.c p = list_entry(n, struct proc, p_task_link); p 103 usr/server/proc/proc_hash.c if (p->p_task == task) p 104 usr/server/proc/proc_hash.c return p; p 115 usr/server/proc/proc_hash.c p_add(struct proc *p) p 118 usr/server/proc/proc_hash.c list_insert(&pid_table[IDHASH(p->p_pid)], &p->p_pid_link); p 119 usr/server/proc/proc_hash.c list_insert(&task_table[IDHASH(p->p_task)], &p->p_task_link); p 126 usr/server/proc/proc_hash.c p_remove(struct proc *p) p 129 usr/server/proc/proc_hash.c list_remove(&p->p_pid_link); p 130 usr/server/proc/proc_hash.c list_remove(&p->p_task_link); p 77 usr/server/proc/proc_pid.c struct proc *p; p 82 usr/server/proc/proc_pid.c p = curproc; p 84 usr/server/proc/proc_pid.c if ((p = p_find(pid)) == NULL) p 87 usr/server/proc/proc_pid.c *retval = p->p_pgrp->pg_pgid; p 98 usr/server/proc/proc_pid.c struct proc *p, *leader; p 103 usr/server/proc/proc_pid.c p = curproc; p 105 usr/server/proc/proc_pid.c if ((p = p_find(pid)) == NULL) p 108 usr/server/proc/proc_pid.c leader = p->p_pgrp->pg_session->s_leader; p 120 usr/server/proc/proc_pid.c enterpgrp(struct proc *p, pid_t pgid) p 124 usr/server/proc/proc_pid.c DPRINTF(("proc: enter pgrp pid=%d pgid=%d\n", p->p_pid, pgid)); p 141 usr/server/proc/proc_pid.c list_remove(&p->p_pgrp_link); p 142 usr/server/proc/proc_pid.c list_insert(&pgrp->pg_members, &p->p_pgrp_link); p 144 usr/server/proc/proc_pid.c p->p_pgrp = pgrp; p 152 usr/server/proc/proc_pid.c leavepgrp(struct proc *p) p 154 usr/server/proc/proc_pid.c struct pgrp *pgrp = p->p_pgrp; p 156 usr/server/proc/proc_pid.c list_remove(&p->p_pgrp_link); p 164 usr/server/proc/proc_pid.c p->p_pgrp = 0; p 179 usr/server/proc/proc_pid.c struct proc *p; p 184 usr/server/proc/proc_pid.c p = curproc; p 186 usr/server/proc/proc_pid.c if ((p = p_find(pid)) == NULL) p 192 usr/server/proc/proc_pid.c pgid = p->p_pid; p 193 usr/server/proc/proc_pid.c if (p->p_pgrp->pg_pgid == pgid) /* already leader */ p 195 usr/server/proc/proc_pid.c return (enterpgrp(p, pgid)); p 204 usr/server/proc/proc_pid.c struct proc *p; p 211 usr/server/proc/proc_pid.c p = curproc; p 212 usr/server/proc/proc_pid.c if (p->p_pid == p->p_pgrp->pg_pgid) /* already leader */ p 222 usr/server/proc/proc_pid.c if ((error = enterpgrp(p, p->p_pid)) != 0) { p 226 usr/server/proc/proc_pid.c pgrp = p->p_pgrp; p 232 usr/server/proc/proc_pid.c sess->s_leader = p; p 236 usr/server/proc/proc_pid.c *retval = p->p_pid; p 60 usr/server/proc/proc_sig.c sendsig(struct proc *p, int sig) p 67 usr/server/proc/proc_sig.c if (p->p_pid == 0) p 74 usr/server/proc/proc_sig.c if (p->p_pid == 1 && sig != SIGCHLD) p 77 usr/server/proc/proc_sig.c DPRINTF(("proc: sendsig task=%x\n", p->p_task)); p 78 usr/server/proc/proc_sig.c return exception_raise(p->p_task, sig); p 87 usr/server/proc/proc_sig.c struct proc *p; p 91 usr/server/proc/proc_sig.c if ((p = p_find(pid)) == NULL) p 93 usr/server/proc/proc_sig.c return sendsig(p, sig); p 102 usr/server/proc/proc_sig.c struct proc *p; p 114 usr/server/proc/proc_sig.c p = list_entry(n, struct proc, p_pgrp_link); p 115 usr/server/proc/proc_sig.c if ((error = sendsig(p, sig)) != 0) p 144 usr/server/proc/proc_sig.c struct proc *p; p 172 usr/server/proc/proc_sig.c p = list_entry(n, struct proc, p_link); p 181 usr/server/proc/proc_sig.c if (p->p_pid != 0 && p->p_pid != 1 && p 182 usr/server/proc/proc_sig.c p->p_pid != curproc->p_pid) p 184 usr/server/proc/proc_sig.c error = kill_one(p->p_pid, sig); p 51 usr/test/kmon/kmon.c char *p, *word = NULL; p 58 usr/test/kmon/kmon.c p = line; p 59 usr/test/kmon/kmon.c while (*p) { p 62 usr/test/kmon/kmon.c if (*p != ' ' && *p != '\t') p 63 usr/test/kmon/kmon.c word = p; p 65 usr/test/kmon/kmon.c if (*p == ' ' || *p == '\t') { p 66 usr/test/kmon/kmon.c *p = '\0'; p 75 usr/test/kmon/kmon.c p++; p 92 usr/test/kmon/kmon.c char *p = line; p 97 usr/test/kmon/kmon.c *p = '\0'; p 100 usr/test/kmon/kmon.c *p = (char)c; p 101 usr/test/kmon/kmon.c p++; p 44 usr/test/malloc/malloc.c char *p, *q; p 49 usr/test/malloc/malloc.c p = malloc((size_t)buflen); p 50 usr/test/malloc/malloc.c if (p == NULL) { p 54 usr/test/malloc/malloc.c for (q = p, i = 0; i < buflen; i++) p 57 usr/test/malloc/malloc.c for (q = p, i = 0; i < buflen; i++) p 61 usr/test/malloc/malloc.c return p; p 67 usr/test/malloc/malloc.c char *p; p 71 usr/test/malloc/malloc.c p = alloc(1); p 72 usr/test/malloc/malloc.c free(p); p 73 usr/test/malloc/malloc.c p = alloc(2); p 74 usr/test/malloc/malloc.c free(p); p 75 usr/test/malloc/malloc.c p = alloc(256); p 76 usr/test/malloc/malloc.c free(p); p 77 usr/test/malloc/malloc.c p = alloc(1024); p 78 usr/test/malloc/malloc.c free(p); p 79 usr/test/malloc/malloc.c p = alloc(8096); p 80 usr/test/malloc/malloc.c free(p); p 81 usr/test/malloc/malloc.c p = alloc(-1); p 82 usr/test/malloc/malloc.c free(p); p 124 usr/test/malloc/malloc.c char *p; p 128 usr/test/malloc/malloc.c p = alloc(256); p 129 usr/test/malloc/malloc.c free(p); p 132 usr/test/malloc/malloc.c free(p); /* invalid */ p 43 usr/test/memleak/memleak.c char *p; p 54 usr/test/memleak/memleak.c p = malloc(size); p 55 usr/test/memleak/memleak.c if (!p) {