/titanic_50/usr/src/cmd/factor/ |
H A D | factor.c | 41 double nn, vv; variable 69 ret = sscanf(argv[1], "%lf", &nn); in main() 71 printf("%.0f\n", nn); in main() 75 ret = scanf("%lf", &nn); in main() 77 if((ret<1) || (nn == 0.0)){ in main() 80 if((nn<0.0) || (nn>huge)){ in main() 84 fr = modf(nn, &junk); in main() 89 vv = 1. + sqrt(nn); in main() 99 modf(nn/ii, &temp); in main() 100 if(nn == temp*ii){ in main() [all …]
|
/titanic_50/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | charray.c | 76 int i, n, nn; in ldap_charray_merge() local 84 for ( nn = 0; s[nn] != NULL; nn++ ) { in ldap_charray_merge() 89 (n + nn + 1) * sizeof(char *) ); in ldap_charray_merge() 94 for ( i = 0; i < nn; i++ ) { in ldap_charray_merge() 97 (*a)[n + nn] = NULL; in ldap_charray_merge()
|
/titanic_50/usr/src/cmd/mandoc/ |
H A D | man_macro.c | 280 const struct man_node *nn; in blk_close() local 290 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close() 291 if (nn->tok == ntok && nn->type == MAN_BLOCK) in blk_close() 314 for (nn = man->last->parent; nn; nn = nn->parent) in blk_close() 315 if (nn->tok == ntok && nn->type == MAN_BLOCK && ! --nrew) in blk_close() 318 if (nn == NULL) { in blk_close() 326 man_unscope(man, nn); in blk_close()
|
H A D | man_term.c | 282 struct man_node *nn; in pre_alternate() local 317 for (i = 0, nn = n->child; nn; nn = nn->next, i = 1 - i) { in pre_alternate() 319 if (savelit && NULL == nn->next) in pre_alternate() 321 print_man_node(p, mt, nn, meta); in pre_alternate() 322 if (nn->next) in pre_alternate() 490 const struct man_node *nn; in pre_HP() local 510 if ((nn = n->parent->head->child) != NULL && in pre_HP() 511 a2roffsu(nn->string, &su, SCALE_EN)) { in pre_HP() 564 const struct man_node *nn; in pre_IP() local 583 if ((nn = n->parent->head->child) != NULL && in pre_IP() [all …]
|
H A D | man_html.c | 402 const struct man_node *nn; in man_alt_pre() local 412 for (i = 0, nn = n->child; nn; nn = nn->next, i++) { in man_alt_pre() 444 print_man_node(man, nn, mh, h); in man_alt_pre() 498 const struct man_node *nn; in man_IP_pre() local 520 nn = n->child; in man_IP_pre() 521 while (NULL != nn && 0 == (MAN_LINE & nn->flags)) in man_IP_pre() 522 nn = nn->next; in man_IP_pre() 523 while (NULL != nn) { in man_IP_pre() 524 print_man_node(man, nn, mh, h); in man_IP_pre() 525 nn = nn->next; in man_IP_pre()
|
H A D | mdoc_validate.c | 1036 struct mdoc_node *nn; in post_defaults() local 1047 nn = mdoc->last; in post_defaults() 1050 switch (nn->tok) { in post_defaults() 1052 mdoc_word_alloc(mdoc, nn->line, nn->pos, "file"); in post_defaults() 1053 mdoc_word_alloc(mdoc, nn->line, nn->pos, "..."); in post_defaults() 1058 mdoc_word_alloc(mdoc, nn->line, nn->pos, "~"); in post_defaults() 1064 mdoc->last = nn; in post_defaults() 1282 struct mdoc_node *n, *nn; in post_bl_block_tag() local 1297 for (nn = n->body->child; nn; nn = nn->next) { in post_bl_block_tag() 1298 if (MDOC_It != nn->tok) in post_bl_block_tag() [all …]
|
H A D | mdoc_term.c | 554 const struct mdoc_node *nn; in print_bvspace() local 567 nn = n; in print_bvspace() 568 while (nn->prev == NULL) { in print_bvspace() 570 nn = nn->parent; in print_bvspace() 571 if (nn->type == MDOC_ROOT) in print_bvspace() 573 } while (nn->type != MDOC_BLOCK); in print_bvspace() 574 if (nn->tok == MDOC_Sh || nn->tok == MDOC_Ss) in print_bvspace() 576 if (nn->tok == MDOC_It && in print_bvspace() 577 nn->parent->parent->norm->Bl.type != LIST_item) in print_bvspace() 612 const struct mdoc_node *bl, *nn; in termp_it_pre() local [all …]
|
H A D | mdoc_html.c | 1128 struct mdoc_node *nn; in mdoc_bd_pre() local 1136 for (nn = n; nn && ! comp; nn = nn->parent) { in mdoc_bd_pre() 1137 if (MDOC_BLOCK != nn->type) in mdoc_bd_pre() 1139 if (MDOC_Ss == nn->tok || MDOC_Sh == nn->tok) in mdoc_bd_pre() 1141 if (nn->prev) in mdoc_bd_pre() 1180 for (nn = n->child; nn; nn = nn->next) { in mdoc_bd_pre() 1181 print_mdoc_node(meta, nn, h); in mdoc_bd_pre() 1188 switch (nn->tok) { in mdoc_bd_pre() 1209 (nn->next && ! (nn->next->flags & MDOC_LINE))) in mdoc_bd_pre() 1211 else if (nn->next) in mdoc_bd_pre() [all …]
|
H A D | man_validate.c | 463 struct man_node *nn; in post_AT() local 476 nn = n->next; in post_AT() 477 if (nn && MAN_TEXT == nn->type && nn->string[0]) in post_AT()
|
/titanic_50/usr/src/ucblib/libucb/port/stdio/ |
H A D | doprnt.c | 71 #define PAD(s, n) { int nn; \ 72 for (nn = (n); nn > 20; nn -= 20) \ 74 PUT((s), nn); \ 758 int nn = decpt - 1; in _doprnt() local 759 if (nn < 0) in _doprnt() 760 nn = -nn; in _doprnt() 761 for (; nn > 9; nn /= 10) in _doprnt() 762 *--suffix = todigit(nn % 10); in _doprnt() 763 *--suffix = todigit(nn); in _doprnt() 842 int nn = decpt; in _doprnt() local [all …]
|
/titanic_50/usr/src/lib/libsmbfs/smb/ |
H A D | nb_name.c | 158 nb_name_encode(struct mbdata *mbp, struct nb_name *nn) in nb_name_encode() argument 165 bcopy(nn->nn_name, namebuf, NB_NAMELEN); in nb_name_encode() 166 namebuf[NB_NAMELEN-1] = (char)nn->nn_type; in nb_name_encode() 204 if (nn->nn_scope == NULL) { in nb_name_encode() 212 for (p = nn->nn_scope; ; p++) { in nb_name_encode()
|
H A D | nbns_rq.c | 183 struct nb_name nn; in nbns_resolvename() local 198 bzero(&nn, sizeof (nn)); in nbns_resolvename() 199 snprintf(nn.nn_name, NB_NAMELEN, "%-15.15s", name); in nbns_resolvename() 200 nn.nn_type = NBT_SERVER; in nbns_resolvename() 201 nn.nn_scope = ctx->nb_scope; in nbns_resolvename() 203 rqp->nr_qdname = &nn; in nbns_resolvename() 272 struct nb_name nn; in nbns_getnodestatus() local 282 bzero(&nn, sizeof (nn)); in nbns_getnodestatus() 283 strcpy((char *)nn.nn_name, "*"); in nbns_getnodestatus() 284 nn.nn_scope = ctx->nb_scope; in nbns_getnodestatus() [all …]
|
/titanic_50/usr/src/lib/libc/port/print/ |
H A D | doprnt.c | 168 #define PAD(s, n) { ssize_t nn; \ 169 for (nn = n; nn > PAD_LEN; nn -= PAD_LEN) \ 172 PUT(s, nn); \ 364 ssize_t nn; in pad_wide() local 382 for (nn = n; nn > PAD_LEN; nn -= PAD_LEN) { in pad_wide() 386 newbufptr = *bufptr + nn; in pad_wide() 388 if (!_dowrite(s, nn, iop, bufptr)) in pad_wide() 391 (void) memcpy(*bufptr, s, nn); in pad_wide() 677 ssize_t nn = bufptr - iop->_ptr; in _wndoprnt() local 686 iop->_cnt -= nn; in _wndoprnt() [all …]
|
/titanic_50/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_nw.c | 391 int nn; in get1101answer() local 393 nn = dn_expand(ansbuf, eom, cp, bp, ep - bp); in get1101answer() 394 if (nn < 0 || !maybe_hnok(pvt->res, bp) || nn != n) { in get1101answer() 407 nn = strlen(bp) + 1; in get1101answer() 408 bp += nn; in get1101answer() 506 int nn, mm; in get1101mask() local 509 for (nn = 0; nn < INADDRSZ; nn++) in get1101mask() 511 if (cp[nn] & (1 << mm)) in get1101mask()
|
/titanic_50/usr/src/common/bzip2/ |
H A D | decompress.c | 426 UInt32 nn; in BZ2_decompress() local 427 nn = (UInt32)(nextSym - 1); in BZ2_decompress() 429 if (nn < MTFL_SIZE) { in BZ2_decompress() 432 uc = s->mtfa[pp+nn]; in BZ2_decompress() 433 while (nn > 3) { in BZ2_decompress() 434 Int32 z = pp+nn; in BZ2_decompress() 439 nn -= 4; in BZ2_decompress() 441 while (nn > 0) { in BZ2_decompress() 442 s->mtfa[(pp+nn)] = s->mtfa[(pp+nn)-1]; nn--; in BZ2_decompress() 447 lno = nn / MTFL_SIZE; in BZ2_decompress() [all …]
|
/titanic_50/usr/src/cmd/localedef/ |
H A D | charmap.c | 282 char *nn; in add_charmap_range() local 283 (void) asprintf(&nn, "%s%0*u", s, ls - si, i); in add_charmap_range() 284 if (nn == NULL) { in add_charmap_range() 289 add_charmap_impl(nn, wc, 1); in add_charmap_range()
|
/titanic_50/usr/src/lib/libnisdb/ |
H A D | ldap_nisdbquery.c | 443 int nn, err = 0; in createQuery() local 447 for (nn = 0, i = 0; i < rvq[a].numColumns; i++) { in createQuery() 456 qc[nn].which_index = j; in createQuery() 458 qc[nn].index_value = buildItem( in createQuery() 461 if (qc[nn].index_value == 0) in createQuery() 469 nn++; in createQuery() 472 q[a] = buildQuery(nn, qc); in createQuery() 476 for (a = 0; a < nn; a++) in createQuery() 625 int i, nq, nn; in filterQuery() local 650 for (i = 0, nn = 0; i < nq; i++) { in filterQuery() [all …]
|
/titanic_50/usr/src/lib/libast/common/misc/ |
H A D | stk.c | 502 int nn=0; in stkgrow() local 513 nn = fp->nalias+1; in stkgrow() 517 cp = newof(dp, char, n, nn*sizeof(char*)); in stkgrow() 523 nn--; in stkgrow() 530 if(fp->nalias=nn) in stkgrow() 533 fp->aliases[nn-1] = dp + roundof(sizeof(struct frame),STK_ALIGN); in stkgrow()
|
/titanic_50/usr/src/cmd/devfsadm/sparc/ |
H A D | misc_link_sparc.c | 86 char *nn = di_node_name(node); in ddi_other() local 89 if (strcmp(nn, "SUNW,pmc") == 0) { in ddi_other() 91 } else if (strcmp(nn, "SUNW,mic") == 0) { in ddi_other()
|
/titanic_50/usr/src/lib/libnsl/netdir/ |
H A D | netdir.c | 215 struct nd_addrlist *nn; /* the results */ in __classic_netdir_getbyname() local 224 nn = (*(t->gbn))(tp, serv); in __classic_netdir_getbyname() 225 if (nn) { in __classic_netdir_getbyname() 226 *addrs = nn; in __classic_netdir_getbyname() 242 nn = (*(t->gbn))(tp, serv); in __classic_netdir_getbyname() 243 if (nn) { in __classic_netdir_getbyname() 244 *addrs = nn; in __classic_netdir_getbyname()
|
/titanic_50/usr/src/cmd/fm/modules/common/disk-lights/ |
H A D | disk_lights.c | 108 char *nn = NULL, *tt = NULL; in get_facility_props() local 116 if (nvlist_lookup_string(fnvl, FM_FMRI_FACILITY_NAME, &nn) != 0) in get_facility_props() 122 *facname = topo_hdl_strdup(hdl, nn); in get_facility_props()
|
/titanic_50/usr/src/cmd/diff3/ |
H A D | diff3prog.c | 234 int nn; in number() local 235 nn = 0; in number() 237 nn = nn*10 + *(*lc)++ - '0'; in number() 238 return (nn); in number()
|
/titanic_50/usr/src/cmd/sgs/yacc/common/ |
H A D | y4.c | 275 int *r, n, nn, flag, j, *q1, *q2; in stin() local 286 nn = -maxoff; in stin() 288 for (n = nn; n < new_actsize; ++n) { in stin() 365 nn = new_actsize - ACTSIZE; in stin()
|
/titanic_50/usr/src/cmd/itadm/ |
H A D | itadm.c | 770 char *nn; in create_target() local 777 nn = nvpair_name(nvp); in create_target() 782 nn, nv); in create_target() 1264 char *nn; in modify_target() local 1271 nn = nvpair_name(nvp); in modify_target() 1276 nn, nv); in modify_target() 1689 char *nn; in modify_initiator() local 1696 nn = nvpair_name(nvp); in modify_initiator() 1701 "\t%s: %s\n", nn, nv); in modify_initiator() 1898 char *nn; in modify_defaults() local [all …]
|
/titanic_50/usr/src/cmd/dc/ |
H A D | dc.c | 980 int nn, neg; in removr() local 987 nn = (n + 1) / 2; in removr() 988 q = salloc(nn); in removr() 1027 int c, n, nn; in sqrt() local 1038 nn = 1; in sqrt() 1039 while ((c -= nn) >= 0) in sqrt() 1040 nn += 2; in sqrt() 1041 c = (nn + 1) >> 1; in sqrt() 1063 nn = sfbeg(t) ? 0 : sbackc(t); in sqrt() 1064 if (nn >= 0) in sqrt() [all …]
|