Home
last modified time | relevance | path

Searched refs:pt (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/titanic_41/usr/src/lib/libpkg/common/
H A Dcanonize.c40 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 Dmappath.c41 #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 Dckparam.c47 static int not_alnum(char *param, char *pt);
48 static int not_ascii(char *param, char *pt);
49 static int too_long(char *param, char *pt, int len);
50 static int isnull(char *param, char *pt);
152 isnull(char *param, char *pt) in isnull() argument
154 if (!pt || *pt == '\0') { in isnull()
162 too_long(char *param, char *pt, int len) in too_long() argument
164 if (strlen(pt) > (size_t)len) { in too_long()
172 not_ascii(char *param, char *pt) in not_ascii() argument
174 while (*pt) { in not_ascii()
[all …]
/titanic_41/usr/src/lib/libc/port/locale/
H A Dstrftime.c91 _fmt(locale_t loc, const char *format, const struct tm *t, char *pt, in _fmt() argument
110 pt = _add((t->tm_wday < 0 || in _fmt()
113 pt, ptlim); in _fmt()
116 pt = _add((t->tm_wday < 0 || in _fmt()
119 pt, ptlim); in _fmt()
122 pt = _add((t->tm_mon < 0 || in _fmt()
125 pt, ptlim); in _fmt()
129 pt = _add((t->tm_mon < 0 || in _fmt()
132 pt, ptlim); in _fmt()
142 pt = _yconv(t->tm_year, TM_YEAR_BASE, 1, 0, in _fmt()
[all …]
/titanic_41/usr/src/lib/libinstzones/common/
H A Dzones_paths.c94 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 …]
/titanic_41/usr/src/uts/common/io/
H A Dptms_conf.c334 struct pt_ttys *pt = NULL; in pt_ttys_alloc() local
382 pt = kmem_cache_alloc(ptms_cache, KM_NOSLEEP); in pt_ttys_alloc()
383 if (pt == NULL) { in pt_ttys_alloc()
388 pt->pt_minor = dminor; in pt_ttys_alloc()
389 pt->pt_pid = curproc->p_pid; /* For debugging */ in pt_ttys_alloc()
390 pt->pt_state = (PTMOPEN | PTLOCK); in pt_ttys_alloc()
391 pt->pt_zoneid = getzoneid(); in pt_ttys_alloc()
392 pt->pt_ruid = 0; /* we don't know uid/gid yet. Report as root */ in pt_ttys_alloc()
393 pt->pt_rgid = 0; in pt_ttys_alloc()
395 ptms_slots[dminor - 1] = pt; in pt_ttys_alloc()
[all …]
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dtidbit.c210 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 …]
/titanic_41/usr/src/lib/libadm/common/
H A Dgetvol.c103 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 Dpkgparam.c322 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 Dckitem.c101 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 …]
/titanic_41/usr/src/uts/i86pc/io/amd_iommu/
H A Damd_iommu_page_tables.c646 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 …]
/titanic_41/usr/src/cmd/lp/lib/filters/
H A Dfreefilter.c49 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 …]
/titanic_41/usr/src/uts/common/io/drm/
H A Ddrm_auth.c54 drm_magic_entry_t *pt; in drm_find_file() local
58 for (pt = dev->magiclist[hash].head; pt; pt = pt->next) { in drm_find_file()
59 if (pt->magic == magic) { in drm_find_file()
60 retval = pt->priv; in drm_find_file()
99 drm_magic_entry_t *pt; in drm_remove_magic() local
106 for (pt = dev->magiclist[hash].head; pt; prev = pt, pt = pt->next) { in drm_remove_magic()
107 if (pt->magic == magic) { in drm_remove_magic()
108 if (dev->magiclist[hash].head == pt) { in drm_remove_magic()
109 dev->magiclist[hash].head = pt->next; in drm_remove_magic()
111 if (dev->magiclist[hash].tail == pt) { in drm_remove_magic()
[all …]
/titanic_41/usr/src/cmd/svr4pkg/pkgmk/
H A Dmkpkgmap.c119 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 …]
/titanic_41/usr/src/cmd/mdb/common/modules/ptm/
H A Dptm.c77 ptms_pr_qinfo(char *buf, size_t nbytes, struct pt_ttys *pt, char *peername, in ptms_pr_qinfo() argument
82 pt->pt_minor, peername, peerq, pt->pt_pid, procname); in ptms_pr_qinfo()
90 struct pt_ttys pt; in ptms() local
124 if (mdb_vread(&pt, sizeof (pt), addr) == -1) { in ptms()
129 if (mask != 0 && !(pt.pt_state & mask)) in ptms()
132 if (not_mask != 0 && (pt.pt_state & not_mask)) in ptms()
144 if (pt.pt_pid != 0) { in ptms()
145 if (mdb_pid2proc(pt.pt_pid, &p) == NULL) in ptms()
153 addr, pt.pt_minor, pt.pt_state, pt.ptm_rdq, pt.pts_rdq, in ptms()
154 pt.pt_zoneid, pt.pt_pid, c); in ptms()
[all …]
/titanic_41/usr/src/cmd/mdb/common/mdb/
H A Dmdb_proc.c160 pt_data_t *pt = t->t_data; in pt_open_aout() local
163 if ((pt->p_file = mdb_gelf_create(io, ET_NONE, GF_FILE)) == NULL) in pt_open_aout()
166 pt->p_symtab = mdb_gelf_symtab_create_file(pt->p_file, in pt_open_aout()
168 pt->p_dynsym = mdb_gelf_symtab_create_file(pt->p_file, in pt_open_aout()
178 if (mdb_gelf_symtab_lookup_by_name(pt->p_dynsym, "_start", &s1, in pt_open_aout()
181 if (mdb_gelf_symtab_lookup_by_name(pt->p_dynsym, "_mcount", in pt_open_aout()
188 pt->p_fio = io; in pt_open_aout()
189 return (pt->p_file); in pt_open_aout()
200 pt_data_t *pt = t->t_data; in pt_close_aout() local
202 if (pt->p_symtab != NULL) { in pt_close_aout()
[all …]
/titanic_41/usr/src/lib/libm/common/Q/
H A Drintl.c52 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()
/titanic_41/usr/src/uts/common/pcmcia/cs/
H A Dcs_stubs.c591 csx_Parse_CISTPL_CONFIG(client_handle_t ch, tuple_t *tp, cistpl_config_t *pt) in csx_Parse_CISTPL_CONFIG() argument
598 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_CONFIG()
602 csx_Parse_CISTPL_DEVICE(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE() argument
609 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE()
613 csx_Parse_CISTPL_DEVICE_A(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE_A() argument
620 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE_A()
624 csx_Parse_CISTPL_DEVICE_OA(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE_OA() argument
631 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE_OA()
635 csx_Parse_CISTPL_DEVICE_OC(client_handle_t ch, tuple_t *tp, cistpl_device_t *pt) in csx_Parse_CISTPL_DEVICE_OC() argument
642 return (CardServices(ParseTuple, ch, tp, pt)); in csx_Parse_CISTPL_DEVICE_OC()
[all …]
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dgetcwd.c50 getcwd(char *pt,size_t size) in getcwd() argument
70 if (pt) { in getcwd()
76 ept = pt + size; in getcwd()
78 if ((pt = malloc(ptsize = 1024 - 4)) == NULL) in getcwd()
80 ept = pt + ptsize; in getcwd()
122 memmove(pt, bpt, ept - bpt); in getcwd()
124 return (pt); in getcwd()
190 if (bpt - pt < dp->d_namlen + (first ? 1 : 2)) { in getcwd()
198 off = bpt - pt; in getcwd()
200 if ((npt = realloc(pt, ptsize *= 2)) == NULL) in getcwd()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_icmp.c67 char *pt, *pc, *px; in interpret_icmp() local
79 pt = "Unknown"; in interpret_icmp()
85 pt = "Echo reply"; in interpret_icmp()
91 pt = "Destination unreachable"; in interpret_icmp()
195 pt = "Packet lost, slow down"; in interpret_icmp()
198 pt = "Redirect"; in interpret_icmp()
221 pt = "Echo request"; in interpret_icmp()
232 pt = "Router advertisement"; in interpret_icmp()
310 pt = "Router solicitation"; in interpret_icmp()
313 pt = "Time exceeded"; in interpret_icmp()
[all …]
/titanic_41/usr/src/uts/sun4u/cpu/
H A Dopl_olympus_copy.s683 brz,pt %o0, label2/**/f ;\
710 bleu,pt %ncc, .kcopy_small ! go to larger cases
713 bz,pt %ncc, .kcopy_8 ! check for longword alignment
716 bz,pt %ncc, .kcopy_2 ! check for half-word
723 bleu,pt %ncc, .kcopy_small ! go to small copy
725 ba,pt %ncc, .kcopy_more ! otherwise go to large copy
729 bz,pt %ncc, .kcopy_4 ! check for word alignment
736 bleu,pt %ncc, .kcopy_small ! go to small copy
738 ba,pt %ncc, .kcopy_more ! otherwise go to large copy
747 bleu,pt %ncc, .kcopy_small ! go to small copy
[all …]
H A Dcheetah_copy.s728 brz,pt %o0, label2/**/f ;\
755 bleu,pt %ncc, .kcopy_small ! go to larger cases
758 bz,pt %ncc, .kcopy_8 ! check for longword alignment
761 bz,pt %ncc, .kcopy_2 ! check for half-word
768 bleu,pt %ncc, .kcopy_small ! go to small copy
770 ba,pt %ncc, .kcopy_more ! otherwise go to large copy
774 bz,pt %ncc, .kcopy_4 ! check for word alignment
781 bleu,pt %ncc, .kcopy_small ! go to small copy
783 ba,pt %ncc, .kcopy_more ! otherwise go to large copy
792 bleu,pt %ncc, .kcopy_small ! go to small copy
[all …]
/titanic_41/usr/src/cmd/svr4pkg/libinst/
H A Dsetlist.c122 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 …]
H A Dpathdup.c111 char *pt; in pathalloc() local
115 pt = NULL; in pathalloc()
125 pt = &tail->mem[MEMSIZ-size]; in pathalloc()
129 return (pt); in pathalloc()
136 char *pt; in pathdup() local
141 pt = NULL; in pathdup()
151 pt = &tail->mem[MEMSIZ-size]; in pathdup()
154 (void) strcpy(pt, s); in pathdup()
157 return (pt); in pathdup()
/titanic_41/usr/src/cmd/svr4pkg/pkgremove/
H A Dcheck.c73 char *pt; in rckrunlevel() local
82 pt = getenv("RSTATES"); in rckrunlevel()
83 if (pt == NULL) { in rckrunlevel()
95 rstates = qstrdup(pt); in rckrunlevel()
96 if ((pt = strtok(pt, " \t\n, ")) == NULL) in rckrunlevel()
99 if (strcmp(pt, uxstate) == NULL) { in rckrunlevel()
103 } while (pt = strtok(NULL, " \t\n, ")); in rckrunlevel()
112 pt = strtok(rstates, " \t\n, "); in rckrunlevel()
115 ptext(stderr, "\\t%s", pt); in rckrunlevel()
117 (void) fprintf(stdout, ":%s", pt); in rckrunlevel()
[all …]

12345678910>>...12