/titanic_41/usr/src/cmd/mandoc/ |
H A D | term.c | 37 static void adjbuf(struct termp *p, size_t); 43 term_free(struct termp *p) in term_free() argument 46 if (p->buf) in term_free() 47 free(p->buf); in term_free() 48 if (p->symtab) in term_free() 49 mchars_free(p->symtab); in term_free() 51 free(p); in term_free() 56 term_begin(struct termp *p, term_margin head, in term_begin() argument 60 p->headf = head; in term_begin() 61 p->footf = foot; in term_begin() [all …]
|
H A D | term_ps.c | 41 #define PNT2AFM(p, x) /* LINTED */ \ argument 42 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale)) 45 #define AFM2PNT(p, x) /* LINTED */ \ argument 46 ((double)(x) / (1000.0 / (double)(p)->ps->scale)) 409 struct termp *p; in pdf_alloc() local 411 if (NULL != (p = pspdf_alloc(outopts))) in pdf_alloc() 412 p->type = TERMTYPE_PDF; in pdf_alloc() 414 return(p); in pdf_alloc() 420 struct termp *p; in ps_alloc() local 422 if (NULL != (p = pspdf_alloc(outopts))) in ps_alloc() [all …]
|
H A D | mdoc_term.c | 43 #define DECL_ARGS struct termp *p, \ 255 struct termp *p; in terminal_mdoc() local 257 p = (struct termp *)arg; in terminal_mdoc() 259 if (0 == p->defindent) in terminal_mdoc() 260 p->defindent = 5; in terminal_mdoc() 262 p->overstep = 0; in terminal_mdoc() 263 p->maxrmargin = p->defrmargin; in terminal_mdoc() 264 p->tabwidth = term_len(p, 5); in terminal_mdoc() 266 if (NULL == p->symtab) in terminal_mdoc() 267 p->symtab = mchars_alloc(); in terminal_mdoc() [all …]
|
H A D | man_term.c | 48 #define DECL_ARGS struct termp *p, \ 143 struct termp *p; in terminal_man() local 148 p = (struct termp *)arg; in terminal_man() 150 if (0 == p->defindent) in terminal_man() 151 p->defindent = 7; in terminal_man() 153 p->overstep = 0; in terminal_man() 154 p->maxrmargin = p->defrmargin; in terminal_man() 155 p->tabwidth = term_len(p, 5); in terminal_man() 157 if (NULL == p->symtab) in terminal_man() 158 p->symtab = mchars_alloc(); in terminal_man() [all …]
|
/titanic_41/usr/src/lib/libsqlite/src/ |
H A D | vdbeaux.c | 40 Vdbe *p; in sqliteVdbeCreate() local 41 p = sqliteMalloc( sizeof(Vdbe) ); in sqliteVdbeCreate() 42 if( p==0 ) return 0; in sqliteVdbeCreate() 43 p->db = db; in sqliteVdbeCreate() 45 db->pVdbe->pPrev = p; in sqliteVdbeCreate() 47 p->pNext = db->pVdbe; in sqliteVdbeCreate() 48 p->pPrev = 0; in sqliteVdbeCreate() 49 db->pVdbe = p; in sqliteVdbeCreate() 50 p->magic = VDBE_MAGIC_INIT; in sqliteVdbeCreate() 51 return p; in sqliteVdbeCreate() [all …]
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | nscd_initf.c | 32 _nss_initf_passwd(nss_db_params_t *p) in _nss_initf_passwd() argument 34 p->name = NSS_DBNAM_PASSWD; in _nss_initf_passwd() 35 p->default_config = NSS_DEFCONF_PASSWD; in _nss_initf_passwd() 39 _nss_initf_hosts(nss_db_params_t *p) in _nss_initf_hosts() argument 41 p->name = NSS_DBNAM_HOSTS; in _nss_initf_hosts() 42 p->default_config = NSS_DEFCONF_HOSTS; in _nss_initf_hosts() 46 _nss_initf_group(nss_db_params_t *p) in _nss_initf_group() argument 48 p->name = NSS_DBNAM_GROUP; in _nss_initf_group() 49 p->default_config = NSS_DEFCONF_GROUP; in _nss_initf_group() 53 _nss_initf_ipnodes(nss_db_params_t *p) in _nss_initf_ipnodes() argument [all …]
|
/titanic_41/usr/src/common/lzma/ |
H A D | LzFind.c | 22 static void LzInWindow_Free(CMatchFinder *p, ISzAlloc *alloc) in LzInWindow_Free() argument 24 if (!p->directInput) in LzInWindow_Free() 26 alloc->Free(alloc, p->bufferBase, 0); in LzInWindow_Free() 27 p->bufferBase = 0; in LzInWindow_Free() 33 static int LzInWindow_Create(CMatchFinder *p, UInt32 keepSizeReserv, ISzAlloc *alloc) in LzInWindow_Create() argument 35 UInt32 blockSize = p->keepSizeBefore + p->keepSizeAfter + keepSizeReserv; in LzInWindow_Create() 36 if (p->directInput) in LzInWindow_Create() 38 p->blockSize = blockSize; in LzInWindow_Create() 41 if (p->bufferBase == 0 || p->blockSize != blockSize) in LzInWindow_Create() 43 LzInWindow_Free(p, alloc); in LzInWindow_Create() [all …]
|
H A D | LzmaEnc.c | 50 void LzmaEncProps_Init(CLzmaEncProps *p) in LzmaEncProps_Init() argument 52 p->level = 5; in LzmaEncProps_Init() 53 p->dictSize = p->mc = 0; in LzmaEncProps_Init() 54 p->lc = p->lp = p->pb = p->algo = p->fb = p->btMode = p->numHashBytes = p->numThreads = -1; in LzmaEncProps_Init() 55 p->writeEndMark = 0; in LzmaEncProps_Init() 58 void LzmaEncProps_Normalize(CLzmaEncProps *p) in LzmaEncProps_Normalize() argument 60 int level = p->level; in LzmaEncProps_Normalize() 62 p->level = level; in LzmaEncProps_Normalize() 63 …if (p->dictSize == 0) p->dictSize = (level <= 5 ? (1 << (level * 2 + 14)) : (level == 6 ? (1 << 25… in LzmaEncProps_Normalize() 64 if (p->lc < 0) p->lc = 3; in LzmaEncProps_Normalize() [all …]
|
/titanic_41/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | udfslib.c | 275 ud_swap_ext_ad(struct extent_ad *p) in ud_swap_ext_ad() argument 277 p->ext_len = SWAP32(p->ext_len); in ud_swap_ext_ad() 278 p->ext_loc = SWAP32(p->ext_loc); in ud_swap_ext_ad() 284 ud_swap_regid(struct regid *p) in ud_swap_regid() argument 289 ud_swap_icb_tag(struct icb_tag *p) in ud_swap_icb_tag() argument 291 p->itag_prnde = SWAP32(p->itag_prnde); in ud_swap_icb_tag() 292 p->itag_strategy = SWAP16(p->itag_strategy); in ud_swap_icb_tag() 293 p->itag_param = SWAP16(p->itag_param); in ud_swap_icb_tag() 294 p->itag_max_ent = SWAP16(p->itag_max_ent); in ud_swap_icb_tag() 295 p->itag_lb_loc = SWAP32(p->itag_lb_loc); in ud_swap_icb_tag() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | exit.c | 157 proc_t *p = ttoproc(t); in restart_init() local 158 user_t *up = PTOU(p); in restart_init() 168 zcmn_err(p->p_zone->zone_id, CE_WARN, in restart_init() 172 if (!INGLOBALZONE(p)) { in restart_init() 175 p->p_zone->zone_name, p->p_pid, reason_buf); in restart_init() 184 closeall(P_FINFO(p)); in restart_init() 191 mutex_enter(&p->p_lock); in restart_init() 192 prbarrier(p); in restart_init() 194 p->p_flag &= ~(SKILLED | SEXTKILLED | SEXITING | SDOCORE); in restart_init() 201 sigemptyset(&p->p_sig); in restart_init() [all …]
|
H A D | lwp.c | 79 lwp_kernel_create(proc_t *p, void (*proc)(), void *arg, int state, pri_t pri) in lwp_kernel_create() argument 83 VERIFY((p->p_flag & SSYS) != 0); in lwp_kernel_create() 85 lwp = lwp_create(proc, arg, 0, p, state, pri, &t0.t_hold, syscid, 0); in lwp_kernel_create() 96 lwp_create(void (*proc)(), caddr_t arg, size_t len, proc_t *p, in lwp_create() argument 123 ASSERT(p != &p0); /* No new LWPs in p0. */ in lwp_create() 125 mutex_enter(&p->p_lock); in lwp_create() 126 mutex_enter(&p->p_zone->zone_nlwps_lock); in lwp_create() 131 if (p->p_task->tk_nlwps >= p->p_task->tk_nlwps_ctl) in lwp_create() 132 if (rctl_test(rc_task_lwps, p->p_task->tk_rctls, p, in lwp_create() 135 if (p->p_task->tk_proj->kpj_nlwps >= in lwp_create() [all …]
|
/titanic_41/usr/src/man/man7p/ |
H A D | Makefile | 19 MANSECT= 7p 21 MANFILES= arp.7p \ 22 dlpi.7p \ 23 icmp.7p \ 24 icmp6.7p \ 25 if_tcp.7p \ 26 inet.7p \ 27 inet6.7p \ 28 ip.7p \ 29 ip6.7p \ [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_zip.c | 46 uint8_t *p; in interpret_ddp_zip() local 70 p = &zip->zip_func; in interpret_ddp_zip() 72 if ((p+6 > tail) || (p+7+p[6] > tail)) in interpret_ddp_zip() 76 "ZIP GNI Zone = \"%.*s\"", p[6], &p[7]); in interpret_ddp_zip() 79 p = &zip->zip_func; in interpret_ddp_zip() 81 gniflags = p[1]; in interpret_ddp_zip() 108 p = (uint8_t *)(zip + 1); in interpret_ddp_zip() 110 if (p+2 > tail) in interpret_ddp_zip() 112 net = get_short(p); in interpret_ddp_zip() 113 p += 2; in interpret_ddp_zip() [all …]
|
/titanic_41/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 79 char *p; /* scratch pointer */ in doconfig() local 92 p = strchr(buf, '\n'); in doconfig() 94 if (p == NULL) { in doconfig() 98 *p = '\0'; in doconfig() 101 p = strchr(buf, COMMENT); in doconfig() 102 if (p) in doconfig() 103 *p = '\0'; in doconfig() 112 p = &buf[strlen(buf) - 1]; in doconfig() 113 while (*p && isspace(*p)) in doconfig() 114 *p-- = '\0'; in doconfig() [all …]
|
/titanic_41/usr/src/cmd/msgfmt/ |
H A D | check_header.c | 55 char *p = *mbuf; in get_one_line() local 68 q = p; in get_one_line() 69 while (((*fsize) != 0) && (*p++ != '\n')) { in get_one_line() 72 len = p - q; in get_one_line() 80 *mbuf = p; in get_one_line() 90 char *mbuf, *p, *buf; in check_gnu() local 108 p = linebuf; in check_gnu() 110 while ((*p == '#') || (*p == '\n')) { in check_gnu() 116 p = linebuf; in check_gnu() 119 if (strncmp(p, "domain", 6) == 0) in check_gnu() [all …]
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | xlist.c | 17 char *p, *q; in xsplit() local 20 for (n = 0, p = list; p && *p; ) { in xsplit() 21 while (p && *p && *p == sep) in xsplit() 22 p++; in xsplit() 23 if (!*p) in xsplit() 26 p = strchr(p, sep); in xsplit() 29 for (n = 0, p = list; p && *p; ) { in xsplit() 30 while (*p == sep) in xsplit() 31 p++; in xsplit() 32 if (!*p) in xsplit() [all …]
|
/titanic_41/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | util.c | 53 char *p; in strnormalize() local 57 for (p = str; *p != NULL; p++) { in strnormalize() 58 if (isspace(*p)) { in strnormalize() 59 *p = ' '; in strnormalize() 62 p--; in strnormalize() 63 while (p >= str && (isspace(*p) || *p == ';')) in strnormalize() 64 *p-- = NULL; in strnormalize() 76 char *p; in strtrim() local 78 for (p = str; *p != NULL; p++) in strtrim() 80 p--; in strtrim() [all …]
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_conv.c | 71 char *p; local 92 p = (char *)GETBINTERNAL(h, i); 93 P_32_SWAP(p); 94 p += sizeof(u_int32_t); 95 P_32_SWAP(p); 96 p += sizeof(db_pgno_t); 97 if (*(u_char *)p & P_BIGKEY) { 98 p += sizeof(u_char); 99 P_32_SWAP(p); 100 p += sizeof(db_pgno_t); [all …]
|
/titanic_41/usr/src/cmd/mdb/intel/mdb/ |
H A D | proc_ia32dep.c | 224 char *p = buf; in fpcw2str() local 232 p += mdb_snprintf(p, (size_t)(end - p), "|IM"); in fpcw2str() 234 p += mdb_snprintf(p, (size_t)(end - p), "|DM"); in fpcw2str() 236 p += mdb_snprintf(p, (size_t)(end - p), "|ZM"); in fpcw2str() 238 p += mdb_snprintf(p, (size_t)(end - p), "|OM"); in fpcw2str() 240 p += mdb_snprintf(p, (size_t)(end - p), "|UM"); in fpcw2str() 242 p += mdb_snprintf(p, (size_t)(end - p), "|PM"); in fpcw2str() 244 p += mdb_snprintf(p, (size_t)(end - p), "|PC"); in fpcw2str() 246 p += mdb_snprintf(p, (size_t)(end - p), "|RC"); in fpcw2str() 248 p += mdb_snprintf(p, (size_t)(end - p), "|IC"); in fpcw2str() [all …]
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_pq.c | 34 dt_pq_t *p; in dt_pq_init() local 37 if ((p = dt_zalloc(dtp, sizeof (dt_pq_t))) == NULL) in dt_pq_init() 40 p->dtpq_items = dt_zalloc(dtp, size * sizeof (p->dtpq_items[0])); in dt_pq_init() 41 if (p->dtpq_items == NULL) { in dt_pq_init() 42 dt_free(dtp, p); in dt_pq_init() 46 p->dtpq_hdl = dtp; in dt_pq_init() 47 p->dtpq_size = size; in dt_pq_init() 48 p->dtpq_last = 1; in dt_pq_init() 49 p->dtpq_value = value_cb; in dt_pq_init() 50 p->dtpq_arg = cb_arg; in dt_pq_init() [all …]
|
/titanic_41/usr/src/cmd/tip/ |
H A D | value.c | 33 value_t *p; in vinit() local 38 for (p = vtable; p->v_name != NULL; p++) { in vinit() 39 if (p->v_type&ENVIRON) in vinit() 40 if (cp = getenv(p->v_name)) in vinit() 41 p->v_value = cp; in vinit() 42 if (p->v_type&IREMOTE) in vinit() 43 number(p->v_value) = *address(p->v_value); in vinit() 75 vassign(value_t *p, char *v) in vassign() argument 78 if (!vaccess(p->v_access, WRITE)) { in vassign() 82 switch (p->v_type&TMASK) { in vassign() [all …]
|
/titanic_41/usr/src/cmd/auditd/ |
H A D | doorway.c | 260 load_function(plugin_t *p, char *name, auditd_rc_t (**func)()) in load_function() argument 262 *func = (auditd_rc_t (*)())dlsym(p->plg_dlptr, name); in load_function() 281 load_plugin(plugin_t *p) in load_plugin() argument 290 if ((fd = open(p->plg_path, O_NONBLOCK | O_RDONLY)) != -1) { in load_plugin() 300 p->plg_path, strerror(errno)); in load_plugin() 314 p->plg_path); in load_plugin() 327 p->plg_path); in load_plugin() 337 p->plg_path); in load_plugin() 345 p->plg_dlptr = dlopen(p->plg_path, RTLD_LAZY); in load_plugin() 347 if (p->plg_dlptr == NULL) { in load_plugin() [all …]
|
/titanic_41/usr/src/cmd/troff/nroff.d/ |
H A D | n10.c | 107 char *p, *cp, *q; in ptinit() local 126 p = codestr; in ptinit() 127 p = skipstr(p); /* skip over type, could check */ in ptinit() 128 p = skipstr(p); p = getint(p, &t.bset); in ptinit() 129 p = skipstr(p); p = getint(p, &t.breset); in ptinit() 130 p = skipstr(p); p = getint(p, &t.Hor); in ptinit() 131 p = skipstr(p); p = getint(p, &t.Vert); in ptinit() 132 p = skipstr(p); p = getint(p, &t.Newline); in ptinit() 133 p = skipstr(p); p = getint(p, &t.Char); in ptinit() 134 p = skipstr(p); p = getint(p, &t.Em); in ptinit() [all …]
|
/titanic_41/usr/src/cmd/vntsd/ |
H A D | queue.c | 71 vntsd_que_t *p; in vntsd_que_append() local 84 p = *que_hd; in vntsd_que_append() 86 if (p == NULL) { in vntsd_que_append() 91 while (p->nextp != NULL) in vntsd_que_append() 92 p = p->nextp; in vntsd_que_append() 93 p->nextp = el; in vntsd_que_append() 96 el->prevp = p; in vntsd_que_append() 143 vntsd_que_t *p = *que_hd; in vntsd_que_rm() local 147 while (p != NULL) { in vntsd_que_rm() 149 if (p->handle == handle) { in vntsd_que_rm() [all …]
|
/titanic_41/usr/src/cmd/spell/ |
H A D | malloc.c | 28 #define ASSERT(p) if(!(p))botch("p");else argument 36 #define ASSERT(p) argument 64 #define testbusy(p) ((INT)(p)&BUSY) argument 65 #define setbusy(p) (union store *)((INT)(p)|BUSY) argument 66 #define clearbusy(p) (union store *)((INT)(p)&~BUSY) argument 84 register union store *p, *q; local 92 p = allocp; 95 if(!testbusy(p->ptr)) { 96 while(!testbusy((q=p->ptr)->ptr)) { 97 ASSERT(q>p); [all …]
|