/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | canonize.c | 40 char *pt, *last; in canonize() local 44 for (pt = file; *pt; /* void */) { in canonize() 45 if (isdot(pt)) in canonize() 46 (void) strcpy(pt, pt[1] ? pt+2 : pt+1); in canonize() 47 else if (isdotdot(pt)) { in canonize() 49 last = pt; in canonize() 56 --pt; /* point to previous '/' */ in canonize() 58 if (pt <= file) in canonize() 60 while ((*--pt != '/') && (pt > file)) in canonize() 63 if (*pt == '/') in canonize() [all …]
|
H A D | mappath.c | 41 #define mode(flag, pt) (!flag || ((flag == 1) && islower(pt[1])) || \ argument 42 ((flag == 2) && isupper(pt[1]))) 65 char *npt, *pt, *pt2, *copy; in mappath() local 75 for (pt = path; *pt; /* void */) { in mappath() 80 if ((*pt == '$') && isalpha(pt[1]) && in mappath() 81 ((pt == path) || (pt[-1] == '/'))) { in mappath() 83 if (mode(flag, pt)) { in mappath() 86 for (npt = pt+1; *npt && (*npt != '/'); in mappath() 100 pt = npt; in mappath() 103 *copy++ = *pt++; in mappath() [all …]
|
H A D | ckparam.c | 52 static int not_alnum(char *param, char *pt); 53 static int not_ascii(char *param, char *pt); 54 static int too_long(char *param, char *pt, int len); 55 static int isnull(char *param, char *pt); 157 isnull(char *param, char *pt) in isnull() argument 159 if (!pt || *pt == '\0') { in isnull() 167 too_long(char *param, char *pt, int len) in too_long() argument 169 if (strlen(pt) > (size_t)len) { in too_long() 177 not_ascii(char *param, char *pt) in not_ascii() argument 179 while (*pt) { in not_ascii() [all …]
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strftime.c | 113 _fmt(locale_t loc, const char *format, const struct tm *t, char *pt, in _fmt() argument 132 pt = _add((t->tm_wday < 0 || in _fmt() 135 pt, ptlim); in _fmt() 138 pt = _add((t->tm_wday < 0 || in _fmt() 141 pt, ptlim); in _fmt() 144 pt = _add((t->tm_mon < 0 || in _fmt() 147 pt, ptlim); in _fmt() 151 pt = _add((t->tm_mon < 0 || in _fmt() 154 pt, ptlim); in _fmt() 164 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | ptms_conf.c | 341 struct pt_ttys *pt = NULL; in pt_ttys_alloc() local 389 pt = kmem_cache_alloc(ptms_cache, KM_NOSLEEP); in pt_ttys_alloc() 390 if (pt == NULL) { in pt_ttys_alloc() 395 pt->pt_minor = dminor; in pt_ttys_alloc() 396 pt->pt_pid = curproc->p_pid; /* For debugging */ in pt_ttys_alloc() 397 pt->pt_state = (PTMOPEN | PTLOCK); in pt_ttys_alloc() 398 pt->pt_zoneid = getzoneid(); in pt_ttys_alloc() 399 pt->pt_ruid = 0; /* we don't know uid/gid yet. Report as root */ in pt_ttys_alloc() 400 pt->pt_rgid = 0; in pt_ttys_alloc() 402 ptms_slots[dminor - 1] = pt; in pt_ttys_alloc() [all …]
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_paths.c | 94 char *pt; in z_path_canonize() local 99 for (pt = a_file; *pt; /* void */) { in z_path_canonize() 100 if (isdot(pt)) { in z_path_canonize() 101 (void) strcpy(pt, pt[1] ? pt+2 : pt+1); in z_path_canonize() 102 } else if (isdotdot(pt)) { in z_path_canonize() 104 last = pt; in z_path_canonize() 112 --pt; /* point to previous '/' */ in z_path_canonize() 114 if (pt <= a_file) { in z_path_canonize() 117 while ((*--pt != '/') && (pt > a_file)) in z_path_canonize() 120 if (*pt == '/') { in z_path_canonize() [all …]
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | getvol.c | 103 char *advice, *pt; in _getvol() local 125 if (pt = strchr(origfsname, ',')) { in _getvol() 126 *pt = '\0'; in _getvol() 128 if (pt = strchr(label, ',')) { in _getvol() 129 (void) strncpy(origvolname, pt+1, LABELSIZ); in _getvol() 182 char *pt, *look, buffer[512]; in ckilabel() local 189 if (pt = strchr(fsname, ',')) { in ckilabel() 190 *pt = '\0'; in ckilabel() 192 if (pt = strchr(label, ',')) { in ckilabel() 193 (void) strncpy(volname, pt+1, LABELSIZ); in ckilabel() [all …]
|
H A D | pkgparam.c | 322 char *pt, *copy, *value, line[PATH_MAX]; in pkgparam() local 370 if (pt = fpkgparam(fp, param)) { in pkgparam() 374 value = copy = pt; in pkgparam() 382 return (pt); in pkgparam() 447 char *pt, *last; in canonize_name() local 452 for (pt = file; *pt; ) { in canonize_name() 453 if (isdot(pt)) in canonize_name() 454 (void) strcpy(pt, pt[1] ? pt+2 : pt+1); in canonize_name() 455 else if (isdotdot(pt)) { in canonize_name() 457 last = pt; in canonize_name() [all …]
|
H A D | ckitem.c | 101 CKMENU *pt; in allocmenu() local 103 if (pt = calloc(1, sizeof (CKMENU))) { in allocmenu() 104 pt->attr = attr; in allocmenu() 105 pt->label = label; in allocmenu() 107 return (pt); in allocmenu() 194 char *pt; in getnum() local 197 pt = strval; in getnum() 199 if (*pt == '$') { in getnum() 201 pt++; in getnum() 203 n = (int)strtol(pt, &pt, 10); in getnum() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | tidbit.c | 210 register struct tidb *pt; local 231 pt = &tidbs[i]; 256 pt = &tidbs[i]; 273 if (pt->tiebuf) 274 Free(pt->tiebuf); 275 if (!(pt->tiebuf = Malloc(statbuf.st_size))) { 280 n = Read(tfd, pt->tiebuf, statbuf.st_size); 282 if (n <= 0 || n >= 4096 || _Getsh(pt->tiebuf) != 0432) { 283 Free(pt->tiebuf); 284 pt->tiebuf = 0; [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_page_tables.c | 646 amd_iommu_insert_pgtable_hash(amd_iommu_page_table_t *pt) in amd_iommu_insert_pgtable_hash() argument 648 uint64_t pa_4K = ((uint64_t)pt->pt_cookie.dmac_cookie_addr) >> 12; in amd_iommu_insert_pgtable_hash() 651 ASSERT((pt->pt_cookie.dmac_cookie_addr & AMD_IOMMU_PGTABLE_ALIGN) == 0); in amd_iommu_insert_pgtable_hash() 655 pt->pt_next = amd_iommu_page_table_hash.ampt_hash[idx]; in amd_iommu_insert_pgtable_hash() 656 pt->pt_prev = NULL; in amd_iommu_insert_pgtable_hash() 657 amd_iommu_page_table_hash.ampt_hash[idx] = pt; in amd_iommu_insert_pgtable_hash() 658 if (pt->pt_next) in amd_iommu_insert_pgtable_hash() 659 pt->pt_next->pt_prev = pt; in amd_iommu_insert_pgtable_hash() 665 amd_iommu_remove_pgtable_hash(amd_iommu_page_table_t *pt) in amd_iommu_remove_pgtable_hash() argument 667 uint64_t pa_4K = (pt->pt_cookie.dmac_cookie_addr >> 12); in amd_iommu_remove_pgtable_hash() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/ |
H A D | mkpkgmap.c | 119 static void translate(register char *pt, register char *copy); 125 char *pt, *path, mybuff[PATH_LGTH]; in mkpkgmap() local 150 (pt = strchr(envparam[i], '=')); i++) { in mkpkgmap() 151 *pt = '\0'; in mkpkgmap() 153 *pt = '='; in mkpkgmap() 366 register char *pt; in findfile() local 421 pt = strrchr(temp, '/'); in findfile() 422 if (!pt++) in findfile() 423 pt = temp; in findfile() 425 basename = pt; in findfile() [all …]
|
/illumos-gate/usr/src/cmd/lp/lib/filters/ |
H A D | freefilter.c | 49 register TYPE *pt; local 52 for (pt = typel; pt->name; pt++) 53 Free (pt->name); 69 register TEMPLATE *pt; local 72 for (pt = templ; pt->keyword; pt++) { 73 Free (pt->keyword); 74 if (pt->pattern) 75 Free (pt->pattern); 76 if (pt->re) 77 Free (pt->re); [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ptm/ |
H A D | ptm.c | 76 ptms_pr_qinfo(char *buf, size_t nbytes, struct pt_ttys *pt, char *peername, in ptms_pr_qinfo() argument 81 pt->pt_minor, peername, peerq, pt->pt_pid, procname); in ptms_pr_qinfo() 89 struct pt_ttys pt; in ptms() local 123 if (mdb_vread(&pt, sizeof (pt), addr) == -1) { in ptms() 128 if (mask != 0 && !(pt.pt_state & mask)) in ptms() 131 if (not_mask != 0 && (pt.pt_state & not_mask)) in ptms() 143 if (pt.pt_pid != 0) { in ptms() 144 if (mdb_pid2proc(pt.pt_pid, &p) == 0) in ptms() 152 addr, pt.pt_minor, pt.pt_state, pt.ptm_rdq, pt.pts_rdq, in ptms() 153 pt.pt_zoneid, pt.pt_pid, c); in ptms() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_proc.c | 162 pt_data_t *pt = t->t_data; in pt_open_aout() local 165 if ((pt->p_file = mdb_gelf_create(io, ET_NONE, GF_FILE)) == NULL) in pt_open_aout() 168 pt->p_symtab = mdb_gelf_symtab_create_file(pt->p_file, in pt_open_aout() 170 pt->p_dynsym = mdb_gelf_symtab_create_file(pt->p_file, in pt_open_aout() 180 if (mdb_gelf_symtab_lookup_by_name(pt->p_dynsym, "_start", &s1, in pt_open_aout() 183 if (mdb_gelf_symtab_lookup_by_name(pt->p_dynsym, "_mcount", in pt_open_aout() 190 pt->p_fio = io; in pt_open_aout() 191 return (pt->p_file); in pt_open_aout() 202 pt_data_t *pt = t->t_data; in pt_close_aout() local 204 if (pt->p_symtab != NULL) { in pt_close_aout() [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/ |
H A D | structure.tex | 7 \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} % Page margins 64 numbersep=10pt, % Distance of line numbers from the code box 83 {\addvspace{15pt}\large\sffamily\bfseries} % Spacing and font options for chapters 89 {\addvspace{5pt}\sffamily\bfseries} % Spacing and font options for sections 96 {\addvspace{1pt}\sffamily\small} % Spacing and font options for subsections 128 \renewcommand{\sectionmark}[1]{\markright{\sffamily\large\thesection\hspace{5pt} #1}{}} % Section t… 133 \renewcommand{\headrulewidth}{0.5pt} % Width of the rule under the header 134 \addtolength{\headheight}{2.5pt} % Increase the spacing around the header slightly 135 \renewcommand{\footrulewidth}{0pt} % Removes the rule in the footer 136 \fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}} % Style for when a plain pag… [all …]
|
/illumos-gate/usr/src/uts/common/pcmcia/cs/ |
H A D | cs_stubs.c | 592 csx_Parse_CISTPL_CONFIG(client_handle_t ch, tuple_t *tp, cistpl_config_t *pt) in csx_Parse_CISTPL_CONFIG() argument 599 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_CONFIG() 603 csx_Parse_CISTPL_DEVICE(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE() argument 610 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE() 614 csx_Parse_CISTPL_DEVICE_A(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE_A() argument 621 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE_A() 625 csx_Parse_CISTPL_DEVICE_OA(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE_OA() argument 632 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE_OA() 636 csx_Parse_CISTPL_DEVICE_OC(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE_OC() argument 643 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE_OC() [all …]
|
/illumos-gate/usr/src/uts/sun4u/cpu/ |
H A D | opl_olympus_copy.S | 679 brz,pt %o0, label2/**/f ;\ 697 bleu,pt %ncc, .kcopy_small ! go to larger cases 700 bz,pt %ncc, .kcopy_8 ! check for longword alignment 703 bz,pt %ncc, .kcopy_2 ! check for half-word 710 bleu,pt %ncc, .kcopy_small ! go to small copy 712 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 716 bz,pt %ncc, .kcopy_4 ! check for word alignment 723 bleu,pt %ncc, .kcopy_small ! go to small copy 725 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 734 bleu,pt %ncc, .kcopy_small ! go to small copy [all …]
|
H A D | cheetah_copy.S | 722 brz,pt %o0, label2##f ;\ 740 bleu,pt %ncc, .kcopy_small ! go to larger cases 743 bz,pt %ncc, .kcopy_8 ! check for longword alignment 746 bz,pt %ncc, .kcopy_2 ! check for half-word 753 bleu,pt %ncc, .kcopy_small ! go to small copy 755 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 759 bz,pt %ncc, .kcopy_4 ! check for word alignment 766 bleu,pt %ncc, .kcopy_small ! go to small copy 768 ba,pt %ncc, .kcopy_more ! otherwise go to large copy 777 bleu,pt %ncc, .kcopy_small ! go to small copy [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_icmp.c | 71 char *pt, *pc, *px; in interpret_icmp() local 83 pt = "Unknown"; in interpret_icmp() 89 pt = "Echo reply"; in interpret_icmp() 95 pt = "Destination unreachable"; in interpret_icmp() 199 pt = "Packet lost, slow down"; in interpret_icmp() 202 pt = "Redirect"; in interpret_icmp() 225 pt = "Echo request"; in interpret_icmp() 236 pt = "Router advertisement"; in interpret_icmp() 313 pt = "Router solicitation"; in interpret_icmp() 316 pt = "Time exceeded"; in interpret_icmp() [all …]
|
/illumos-gate/usr/src/lib/libm/common/Q/ |
H A D | rintl.c | 52 int *pt = (int *) &two112; in rintl() local 58 pt[0] = 0x406f0000; in rintl() 59 pt[1] = pt[2] = pt[3] = 0; in rintl() 61 pt[3] = 0x406f0000; in rintl() 62 pt[0] = pt[1] = pt[2] = 0; in rintl()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | setlist.c | 122 char *pt; in setlist() local 145 pt = strtok(slist, " \t\n"); in setlist() 146 while (pt) { in setlist() 147 if (sn == -1 && strcmp(pt, "none") == 0) in setlist() 151 if ((struct_ptr = new_cl_attr(pt)) == NULL) in setlist() 156 pt = strtok(NULL, " \t\n"); in setlist() 157 if (pt && sn != -1) in setlist() 158 if (strcmp(pt, "none") == 0) in setlist() 159 pt = strtok(NULL, " \t\n"); in setlist() 220 char *pt = NULL; in cl_putl() local [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | check.c | 77 char *pt; in rckrunlevel() local 86 pt = getenv("RSTATES"); in rckrunlevel() 87 if (pt == NULL) { in rckrunlevel() 99 rstates = qstrdup(pt); in rckrunlevel() 100 if ((pt = strtok(pt, " \t\n, ")) == NULL) in rckrunlevel() 103 if (strcmp(pt, uxstate) == 0) { in rckrunlevel() 107 } while (pt = strtok(NULL, " \t\n, ")); in rckrunlevel() 116 pt = strtok(rstates, " \t\n, "); in rckrunlevel() 119 ptext(stderr, "\\t%s", pt); in rckrunlevel() 121 (void) fprintf(stdout, ":%s", pt); in rckrunlevel() [all …]
|
/illumos-gate/usr/src/lib/libc/sparcv9/gen/ |
H A D | strncmp.S | 72 bnz,pt %icc, 1b 89 be,pt %icc, .w1cmp 94 bgeu,a,pt %xcc, 3f 113 be,a,pt %icc, 2b 122 bnz,pt %icc, 1f 125 1: bnz,pt %icc, 1f 128 1: bnz,pt %icc, 1f 144 bgeu,a,pt %xcc, 4f 156 be,pt %icc, 1f 163 be,a,pt %icc, 3b [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgscripts/ |
H A D | cmdexec.c | 53 *pt, in main() local 98 for (pt = line; isspace(*pt); /* void */) in main() 99 ++pt; in main() 100 if (*pt == '#') in main() 102 if (*pt == COMMAND) { in main() 105 pt = strtok(pt+1, " \t\n"); in main() 106 if (!pt) { in main() 110 flag = (strcmp(pt, keyword) ? 0 : 1); in main()
|