/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_ps.c | 44 #define PNT2AFM(p, x) \ argument 45 (size_t)((double)(x) * (1000.0 / (double)(p)->ps->scale)) 48 #define AFM2PNT(p, x) \ argument 49 ((double)(x) / (1000.0 / (double)(p)->ps->scale)) 529 struct termp *p; in pspdf_alloc() local 534 p = mandoc_calloc(1, sizeof(*p)); in pspdf_alloc() 535 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in pspdf_alloc() 536 p->maxtcol = 1; in pspdf_alloc() 537 p->type = type; in pspdf_alloc() 539 p->enc = TERMENC_ASCII; in pspdf_alloc() [all …]
|
H A D | term.c | 47 term_setcol(struct termp *p, size_t maxtcol) in term_setcol() argument 49 if (maxtcol > p->maxtcol) { in term_setcol() 50 p->tcols = mandoc_recallocarray(p->tcols, in term_setcol() 51 p->maxtcol, maxtcol, sizeof(*p->tcols)); in term_setcol() 52 p->maxtcol = maxtcol; in term_setcol() 54 p->lasttcol = maxtcol - 1; in term_setcol() 55 p->tcol = p->tcols; in term_setcol() 59 term_free(struct termp *p) in term_free() argument 61 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free() 62 free(p->tcol->buf); in term_free() [all …]
|
H A D | term_ascii.c | 68 struct termp *p; in ascii_init() local 70 p = mandoc_calloc(1, sizeof(*p)); in ascii_init() 71 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in ascii_init() 72 p->maxtcol = 1; in ascii_init() 74 p->line = 1; in ascii_init() 75 p->defrmargin = p->lastrmargin = 78; in ascii_init() 76 p->fontq = mandoc_reallocarray(NULL, in ascii_init() 77 (p->fontsz = 8), sizeof(*p->fontq)); in ascii_init() 78 p->fontq[0] = p->fontl = TERMFONT_NONE; in ascii_init() 80 p->begin = ascii_begin; in ascii_init() [all …]
|
H A D | mdoc_term.c | 47 #define DECL_ARGS struct termp *p, \ 252 struct termp *p; in terminal_mdoc() local 255 p = (struct termp *)arg; in terminal_mdoc() 256 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_mdoc() 257 term_tab_set(p, NULL); in terminal_mdoc() 258 term_tab_set(p, "T"); in terminal_mdoc() 259 term_tab_set(p, ".5i"); in terminal_mdoc() 262 if (p->synopsisonly) { in terminal_mdoc() 273 p->flags |= TERMP_NOSPACE; in terminal_mdoc() 275 print_mdoc_nodelist(p, NULL, mdoc, n); in terminal_mdoc() [all …]
|
H A D | man_term.c | 51 #define DECL_ARGS struct termp *p, \ 153 struct termp *p; in terminal_man() local 157 p = (struct termp *)arg; in terminal_man() 158 save_defindent = p->defindent; in terminal_man() 159 if (p->synopsisonly == 0 && p->defindent == 0) in terminal_man() 160 p->defindent = 7; in terminal_man() 161 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_man() 162 term_tab_set(p, NULL); in terminal_man() 163 term_tab_set(p, "T"); in terminal_man() 164 term_tab_set(p, ".5i"); in terminal_man() [all …]
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | vdbeaux.c | 37 Vdbe *p; in sqliteVdbeCreate() local 38 p = sqliteMalloc( sizeof(Vdbe) ); in sqliteVdbeCreate() 39 if( p==0 ) return 0; in sqliteVdbeCreate() 40 p->db = db; in sqliteVdbeCreate() 42 db->pVdbe->pPrev = p; in sqliteVdbeCreate() 44 p->pNext = db->pVdbe; in sqliteVdbeCreate() 45 p->pPrev = 0; in sqliteVdbeCreate() 46 db->pVdbe = p; in sqliteVdbeCreate() 47 p->magic = VDBE_MAGIC_INIT; in sqliteVdbeCreate() 48 return p; in sqliteVdbeCreate() [all …]
|
/illumos-gate/usr/src/common/lzma/ |
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 …]
|
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 …]
|
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
H A D | udfslib.c | 273 ud_swap_ext_ad(struct extent_ad *p) in ud_swap_ext_ad() argument 275 p->ext_len = SWAP32(p->ext_len); in ud_swap_ext_ad() 276 p->ext_loc = SWAP32(p->ext_loc); in ud_swap_ext_ad() 282 ud_swap_regid(struct regid *p) in ud_swap_regid() argument 287 ud_swap_icb_tag(struct icb_tag *p) in ud_swap_icb_tag() argument 289 p->itag_prnde = SWAP32(p->itag_prnde); in ud_swap_icb_tag() 290 p->itag_strategy = SWAP16(p->itag_strategy); in ud_swap_icb_tag() 291 p->itag_param = SWAP16(p->itag_param); in ud_swap_icb_tag() 292 p->itag_max_ent = SWAP16(p->itag_max_ent); in ud_swap_icb_tag() 293 p->itag_lb_loc = SWAP32(p->itag_lb_loc); in ud_swap_icb_tag() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
H A D | pointer-add.c | 1 char *caddv(char *p, int o) { char *r = p; r = r + o; return r; } in caddv() argument 2 void *vaddv(void *p, int o) { void *r = p; r = r + o; return r; } in vaddv() argument 3 int *iaddv(int *p, int o) { int *r = p; r = r + o; return r; } in iaddv() argument 5 char *caddc(char *p, int o) { char *r = p; r = r + 3; return r; } in caddc() argument 6 void *vaddc(void *p, int o) { void *r = p; r = r + 3; return r; } in vaddc() argument 7 int *iaddc(int *p, int o) { int *r = p; r = r + 3; return r; } in iaddc() argument 9 char *cincv(char *p, int o) { char *r = p; r += o; return r; } in cincv() argument 10 void *vincv(void *p, int o) { void *r = p; r += o; return r; } in vincv() argument 11 int *iincv(int *p, int o) { int *r = p; r += o; return r; } in iincv() argument 13 char *cincc(char *p, int o) { char *r = p; r += 3; return r; } in cincc() argument [all …]
|
/illumos-gate/usr/src/man/man4p/ |
H A D | Makefile | 19 MANSECT= 4p 21 MANFILES= arp.4p \ 22 dlpi.4p \ 23 icmp.4p \ 24 icmp6.4p \ 25 if_tcp.4p \ 26 inet.4p \ 27 inet6.4p \ 28 ip.4p \ 29 ip6.4p \ [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | exit.c | 160 proc_t *p = ttoproc(t); in restart_init() local 161 proc_t *pp = p->p_zone->zone_zsched; in restart_init() 162 user_t *up = PTOU(p); in restart_init() 172 zcmn_err(p->p_zone->zone_id, CE_WARN, in restart_init() 176 if (!INGLOBALZONE(p)) { in restart_init() 179 p->p_zone->zone_name, p->p_pid, reason_buf); in restart_init() 188 closeall(P_FINFO(p)); in restart_init() 195 mutex_enter(&p->p_lock); in restart_init() 196 prbarrier(p); in restart_init() 198 p->p_flag &= ~(SKILLED | SEXTKILLED | SEXITING | SDOCORE); in restart_init() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_zip.c | 44 uint8_t *p; in interpret_ddp_zip() local 68 p = &zip->zip_func; in interpret_ddp_zip() 70 if ((p+6 > tail) || (p+7+p[6] > tail)) in interpret_ddp_zip() 74 "ZIP GNI Zone = \"%.*s\"", p[6], &p[7]); in interpret_ddp_zip() 77 p = &zip->zip_func; in interpret_ddp_zip() 79 gniflags = p[1]; in interpret_ddp_zip() 106 p = (uint8_t *)(zip + 1); in interpret_ddp_zip() 108 if (p+2 > tail) in interpret_ddp_zip() 110 net = get_short(p); in interpret_ddp_zip() 111 p += 2; in interpret_ddp_zip() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | aso | 11 #define _aso_cas8(p,o,n) __sync_val_compare_and_swap(p,o,n) 12 #define _aso_inc8(p) __sync_fetch_and_add(p,1) 13 #define _aso_dec8(p) __sync_fetch_and_sub(p,1) 14 #define _aso_cas16(p,o,n) __sync_val_compare_and_swap(p,o,n) 15 #define _aso_inc16(p) __sync_fetch_and_add(p,1) 16 #define _aso_dec16(p) __sync_fetch_and_sub(p,1) 17 #define _aso_cas32(p,o,n) __sync_val_compare_and_swap(p,o,n) 18 #define _aso_inc32(p) __sync_fetch_and_add(p,1) 19 #define _aso_dec32(p) __sync_fetch_and_sub(p,1) 20 #define _aso_cas64(p,o,n) __sync_val_compare_and_swap(p,o,n) [all …]
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | doconfig.c | 77 char *p; /* scratch pointer */ in doconfig() local 90 p = strchr(buf, '\n'); in doconfig() 92 if (p == NULL) { in doconfig() 96 *p = '\0'; in doconfig() 99 p = strchr(buf, COMMENT); in doconfig() 100 if (p) in doconfig() 101 *p = '\0'; in doconfig() 110 p = &buf[strlen(buf) - 1]; in doconfig() 111 while (*p && isspace(*p)) in doconfig() 112 *p-- = '\0'; in doconfig() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | sfstr.c | 27 #define VALID(p,f) ((p=(Sfstr_t*)f)>=&strs[0]&&p<&strs[elementsof(strs)]) argument 32 extend(Sfstr_t* p, int n) in extend() argument 38 n += p->end - p->beg; in extend() 39 o = p->nxt - p->beg; in extend() 40 if (!(p->beg = realloc(p->beg, n))) in extend() 42 p->nxt = p->beg + o; in extend() 43 p->end = p->beg + n; in extend() 50 Sfstr_t* p; in sfclose() local 53 if (VALID(p, f)) in sfclose() 55 p->nxt = 0; in sfclose() [all …]
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | util.c | 51 char *p; in strnormalize() local 55 for (p = str; *p != '\0'; p++) { in strnormalize() 56 if (isspace(*p)) { in strnormalize() 57 *p = ' '; in strnormalize() 60 p--; in strnormalize() 61 while (p >= str && (isspace(*p) || *p == ';')) in strnormalize() 62 *p-- = '\0'; in strnormalize() 74 char *p; in strtrim() local 76 for (p = str; *p != '\0'; p++) in strtrim() 78 p--; in strtrim() [all …]
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | check_header.c | 53 char *p = *mbuf; in get_one_line() local 66 q = p; in get_one_line() 67 while (((*fsize) != 0) && (*p++ != '\n')) { in get_one_line() 70 len = p - q; in get_one_line() 78 *mbuf = p; in get_one_line() 88 char *mbuf, *p, *buf; in check_gnu() local 106 p = linebuf; in check_gnu() 108 while ((*p == '#') || (*p == '\n')) { in check_gnu() 114 p = linebuf; in check_gnu() 117 if (strncmp(p, "domain", 6) == 0) in check_gnu() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fts.c | 57 #define ALIGN(p) (((unsigned long)(p) + ALIGNBYTES) & ~ALIGNBYTES) argument 88 FTSENT *p, *root; in fts_open() local 128 if ((p = fts_alloc(sp, *argv, strlen(*argv))) == NULL) in fts_open() 130 p->fts_level = FTS_ROOTLEVEL; in fts_open() 131 p->fts_parent = parent; in fts_open() 132 p->fts_accpath = p->fts_name; in fts_open() 133 p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW), -1); in fts_open() 136 if (p->fts_info == FTS_DOT) in fts_open() 137 p->fts_info = FTS_D; in fts_open() 144 p->fts_link = root; in fts_open() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | driver-cpu-amd-zen.p5m | 64 alias=pci1022,1122,p \ 65 alias=pci1022,1248,p \ 66 alias=pci1022,1249,p \ 67 alias=pci1022,124a,p \ 68 alias=pci1022,124b,p \ 69 alias=pci1022,124c,p \ 70 alias=pci1022,124d,p \ 71 alias=pci1022,124e,p \ 72 alias=pci1022,124f,p \ 73 alias=pci1022,12b8,p \ [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_string_len.c | 41 char *p = *pp; in handle_format() local 46 p++; /* we passed it with *p == '%' */ in handle_format() 48 if (*p == '%') { in handle_format() 49 p++; in handle_format() 53 if (*p == 'c') { in handle_format() 54 p++; in handle_format() 60 if (isdigit(*p) || *p == '.') { in handle_format() 63 if (*p == '.') in handle_format() 64 p++; in handle_format() 66 num = strtoul(p, &p, 10); in handle_format() [all …]
|
/illumos-gate/usr/src/cmd/auditd/ |
H A D | doorway.c | 269 load_function(plugin_t *p, char *name, auditd_rc_t (**func)()) in load_function() argument 271 *func = (auditd_rc_t (*)())dlsym(p->plg_dlptr, name); in load_function() 290 load_plugin(plugin_t *p) in load_plugin() argument 299 if ((fd = open(p->plg_path, O_NONBLOCK | O_RDONLY)) != -1) { in load_plugin() 309 p->plg_path, strerror(errno)); in load_plugin() 323 p->plg_path); in load_plugin() 336 p->plg_path); in load_plugin() 346 p->plg_path); in load_plugin() 354 p->plg_dlptr = dlopen(p->plg_path, RTLD_LAZY); in load_plugin() 356 if (p->plg_dlptr == NULL) { in load_plugin() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_conv.c | 69 char *p; local 90 p = (char *)GETBINTERNAL(h, i); 91 P_32_SWAP(p); 92 p += sizeof(u_int32_t); 93 P_32_SWAP(p); 94 p += sizeof(db_pgno_t); 95 if (*(u_char *)p & P_BIGKEY) { 96 p += sizeof(u_char); 97 P_32_SWAP(p); 98 p += sizeof(db_pgno_t); [all …]
|
/illumos-gate/usr/src/cmd/mdb/intel/mdb/ |
H A D | proc_x86util.c | 50 char *p = buf; in fpcw2str() local 62 p += mdb_snprintf(p, (size_t)(end - p), "|IM"); in fpcw2str() 64 p += mdb_snprintf(p, (size_t)(end - p), "|DM"); in fpcw2str() 66 p += mdb_snprintf(p, (size_t)(end - p), "|ZM"); in fpcw2str() 68 p += mdb_snprintf(p, (size_t)(end - p), "|OM"); in fpcw2str() 70 p += mdb_snprintf(p, (size_t)(end - p), "|UM"); in fpcw2str() 72 p += mdb_snprintf(p, (size_t)(end - p), "|PM"); in fpcw2str() 80 p += mdb_snprintf(p, (size_t)(end - p), "|SIG24"); in fpcw2str() 84 p += mdb_snprintf(p, (size_t)(end - p), "|SIG53"); in fpcw2str() 88 p += mdb_snprintf(p, (size_t)(end - p), "|SIG64"); in fpcw2str() [all …]
|