/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_po.y | 97 struct loc *pos1; 107 pos1 = (struct loc *)Xmalloc(2 * sizeof (struct loc)); 174 struct loc *tmp; 180 tmp = (struct loc *)Xrealloc($1.pos, 181 no * sizeof (struct loc)); 204 struct loc *pos; 210 pos = (struct loc *)Xmalloc(sizeof (struct loc));
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | options.c | 49 uint_t loc; in add_option() local 50 loc = (uint_t)option; in add_option() 51 loc &= 0x7f; in add_option() 53 msk->bitmap[loc >> 3] |= bitlocation[loc & 7]; in add_option()
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | iswctype.c | 63 __istype_l(locale_t loc, wint_t c, unsigned int f) in __istype_l() argument 68 rt = __runetype(loc->runelocale, c); in __istype_l() 70 rt = loc->runelocale->__runetype[c]; in __istype_l() 81 iswctype_l(wint_t wc, wctype_t class, locale_t loc) in iswctype_l() argument 85 return (__istype_l(loc, wc, class)); in iswctype_l() 116 isw##type##_l(wint_t wc, locale_t loc) \ 120 __istype_l(loc, wc, mask)); \
|
H A D | strptime.c | 56 locale_t _RESTRICT_KYWD loc) in __strptime() argument 62 const struct lc_time *tptr = loc->time; in __strptime() 119 buf = __strptime(buf, tptr->c_fmt, tm, flagsp, loc); in __strptime() 125 buf = __strptime(buf, "%m/%d/%y", tm, flagsp, loc); in __strptime() 143 buf = __strptime(buf, "%Y-%m-%d", tm, flagsp, loc); in __strptime() 149 buf = __strptime(buf, "%H:%M", tm, flagsp, loc); in __strptime() 161 buf = __strptime(buf, "%H:%M:%S", tm, flagsp, loc); in __strptime() 167 buf = __strptime(buf, tptr->X_fmt, tm, flagsp, loc); in __strptime() 173 buf = __strptime(buf, tptr->x_fmt, tm, flagsp, loc); in __strptime() 557 struct tm *_RESTRICT_KYWD tm, locale_t loc) in strptime_l() argument [all …]
|
H A D | strcoll.c | 50 strcoll_l(const char *s1, const char *s2, locale_t loc) in strcoll_l() argument 56 const struct lc_collate *lcc = loc->collate; in strcoll_l() 89 if ((mbstowcs_l(w1, s1, sz1, loc)) == (size_t)-1) in strcoll_l() 92 if ((mbstowcs_l(w2, s2, sz2, loc)) == (size_t)-1) in strcoll_l() 95 ret = wcscoll_l(w1, w2, loc); in strcoll_l()
|
H A D | nl_langinfo.c | 47 nl_langinfo_l(nl_item item, locale_t loc) in nl_langinfo_l() argument 51 const struct lc_monetary *lmon = loc->monetary; in nl_langinfo_l() 52 const struct lc_numeric *lnum = loc->numeric; in nl_langinfo_l() 53 const struct lc_messages *lmsgs = loc->messages; in nl_langinfo_l() 54 const struct lc_time *ltime = loc->time; in nl_langinfo_l() 69 ldata = loc->locdata[LC_CTYPE]; in nl_langinfo_l()
|
H A D | tolower.c | 26 tolower_l(int c, locale_t loc) in tolower_l() argument 28 return (((unsigned)c > 255) ? c : loc->ctype->lc_trans_lower[c]); in tolower_l() 32 toupper_l(int c, locale_t loc) in toupper_l() argument 34 return (((unsigned)c > 255) ? c : loc->ctype->lc_trans_upper[c]); in toupper_l()
|
H A D | wctrans.c | 42 towctrans_l(wint_t wc, wctrans_t desc, locale_t loc) in towctrans_l() argument 46 wc = towlower_l(wc, loc); in towctrans_l() 49 wc = towupper_l(wc, loc); in towctrans_l() 71 wctrans_l(const char *charclass, locale_t loc __unused) in wctrans_l()
|
H A D | strxfrm.c | 41 size_t dlen, locale_t loc) in strxfrm_l() argument 60 if (loc->collate->lc_is_posix) in strxfrm_l() 66 if (mbstowcs_l(wcs, src, slen + 1, loc) == (size_t)-1) in strxfrm_l() 69 if ((xlen = _collate_sxfrm(wcs, xf, dlen, loc)) == (size_t)-1) in strxfrm_l()
|
H A D | mbrtowc.c | 37 size_t n, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) in mbrtowc_l() argument 43 return (loc->ctype->lc_mbrtowc(pwc, s, n, ps, B_FALSE)); in mbrtowc_l() 55 size_t n, mbstate_t *_RESTRICT_KYWD ps, locale_t loc) in mbrtowc_nz_l() argument 61 return (loc->ctype->lc_mbrtowc(pwc, s, n, ps, B_TRUE)); in mbrtowc_nz_l()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | errorx.c | 32 errorx(const char* loc, const char* cmd, const char* cat, const char* msg) in errorx() argument 40 if (!loc) in errorx() 41 loc = (const char*)locales[AST_LC_MESSAGES]->code; in errorx() 46 if (s = (*error_info.translate)(loc, cmd, cat, msg)) in errorx()
|
H A D | stk.c | 323 int stkon(register Sfio_t * stream, register char* loc) in stkon() argument 328 if(loc>=((char*)(fp+1)) && loc< fp->end) in stkon() 338 char *stkset(register Sfio_t * stream, register char* loc, size_t offset) in stkset() argument 355 if(loc==fp->aliases[n]) in stkset() 357 loc = cp; in stkset() 362 if(loc>=cp && loc<=sp->stkend) in stkset() 366 stream->_data = (unsigned char*)(cp + roundof(loc-cp,STK_ALIGN)); in stkset() 367 stream->_next = (unsigned char*)loc+offset; in stkset() 381 if(loc) in stkset()
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | lpaths.c | 68 char *loc; in helppath() local 70 loc = setlocale(LC_MESSAGES, NULL); in helppath() 71 if (loc != NULL) { in helppath() 73 LOCALEPATH, loc, file); in helppath()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fs.h | 387 #define blkmap(fs, map, loc) \ argument 388 (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag))) 401 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ argument 402 ((loc) & ~(fs)->fs_bmask) 403 #define fragoff(fs, loc) /* calculates (loc % fs->fs_fsize) */ \ argument 404 ((loc) & ~(fs)->fs_fmask) 405 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ argument 406 ((loc) >> (fs)->fs_bshift) 407 #define numfrags(fs, loc) /* calculates (loc / fs->fs_fsize) */ \ argument 408 ((loc) >> (fs)->fs_fshift)
|
H A D | fsys_ffs.c | 186 int block, off, loc, map, ino = ROOTINO; in ffs_dir() local 231 loc = 0; in ffs_dir() 237 if (loc >= INODE->i_size) in ffs_dir() 251 if (!(off = blkoff (SUPERBLOCK, loc))) in ffs_dir() 253 block = lblkno (SUPERBLOCK, loc); in ffs_dir() 267 loc += dp->d_reclen; in ffs_dir()
|
H A D | fsys_ufs.c | 231 int loc, off; in dlook() local 238 loc = 0; in dlook() 239 while (loc < INODE->ic_sizelo) { in dlook() 241 off = blkoff(SUPERBLOCK, loc); in dlook() 245 lbn = lblkno(SUPERBLOCK, loc); in dlook() 261 loc += dp->d_reclen; in dlook()
|
H A D | fsys_ufs2.c | 210 int block, off, loc, ino = ROOTINO; in ufs2_dir() local 256 loc = 0; in ufs2_dir() 262 if (loc >= INODE_UFS2->di_size) in ufs2_dir() 272 if (!(off = blkoff (SUPERBLOCK, loc))) in ufs2_dir() 274 block = lblkno (SUPERBLOCK, loc); in ufs2_dir() 288 loc += dp->d_reclen; in ufs2_dir()
|
/illumos-gate/usr/src/lib/scsi/libsmp/common/ |
H A D | smp_plugin.c | 212 smp_plugin_t *pp, **loc; in smp_plugin_loadone() local 244 for (loc = &tp->st_plugin_first; *loc != NULL; loc = &(*loc)->sp_next) { in smp_plugin_loadone() 245 if ((*loc)->sp_priority > pp->sp_priority) in smp_plugin_loadone() 249 if (*loc != NULL) in smp_plugin_loadone() 250 (*loc)->sp_prev = pp; in smp_plugin_loadone() 254 pp->sp_next = *loc; in smp_plugin_loadone() 255 *loc = pp; in smp_plugin_loadone()
|
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_plugin.c | 225 ses_plugin_t *sp, **loc; in ses_plugin_loadone() local 257 for (loc = &tp->st_plugin_first; *loc != NULL; loc = &(*loc)->sp_next) { in ses_plugin_loadone() 258 if ((*loc)->sp_priority > sp->sp_priority) in ses_plugin_loadone() 262 if (*loc != NULL) in ses_plugin_loadone() 263 (*loc)->sp_prev = sp; in ses_plugin_loadone() 267 sp->sp_next = *loc; in ses_plugin_loadone() 268 *loc = sp; in ses_plugin_loadone()
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_object_read_common.c | 62 _dwarf_object_read_random(int fd, char *buf, off_t loc, in _dwarf_object_read_random() argument 69 if (loc >= filesize) { in _dwarf_object_read_random() 75 endpoint = loc+size; in _dwarf_object_read_random() 82 scode = lseek(fd,loc,SEEK_SET); in _dwarf_object_read_random()
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | display_sun4v.c | 1128 char *loc; in sun4v_env_print_sensor_callback() local 1246 free(loc); in sun4v_env_print_sensor_callback() 1247 loc = NULL; in sun4v_env_print_sensor_callback() 1281 free(loc); in sun4v_env_print_sensor_callback() 1357 char *loc; in sun4v_env_print_indicator_callback() local 1437 free(loc); in sun4v_env_print_indicator_callback() 1443 if (loc) { in sun4v_env_print_indicator_callback() 1472 free(loc); in sun4v_env_print_indicator_callback() 1762 char *loc; in sun4v_print_fru_status_callback() local 1809 free(loc); in sun4v_print_fru_status_callback() [all …]
|
/illumos-gate/usr/src/test/libc-tests/tests/wcsrtombs/ |
H A D | wcsrtombs_test.c | 124 locale_t loc; in test_wcsrtombs_l() local 138 loc = newlocale(LC_ALL_MASK, locale, NULL); in test_wcsrtombs_l() 139 if (loc == NULL) { in test_wcsrtombs_l() 150 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); in test_wcsrtombs_l() 170 locale_t loc; in test_wcsrtombs_thr_iter() local 173 loc = newlocale(LC_ALL_MASK, locale, NULL); in test_wcsrtombs_thr_iter() 174 if (loc == NULL) { in test_wcsrtombs_thr_iter() 185 cnt = wcsrtombs_l(mbs, &wcs, sizeof (mbs), &ms, loc); in test_wcsrtombs_thr_iter() 199 freelocale(loc); in test_wcsrtombs_thr_iter()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/ |
H A D | seekdir.c | 41 seekdir(register DIR* dirp, long loc) 46 if (telldir(dirp) != loc) 50 while (telldir(dirp) != loc)
|
/illumos-gate/usr/src/tools/smatch/src/smatch_scripts/ |
H A D | show_ifs.sh | 16 grep 'if();' $file | cut -d ' ' -f1 | while read loc; do 17 code_file=$(echo $loc | cut -d ':' -f 1) 18 line=$(echo $loc | cut -d ':' -f 2)
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_table_c.x | 270 % bool_t cacheValid(entryp loc); 273 % bool_t dupEntry(entry_object *obj, entryp loc); 285 % void enumTouch(entryp loc); 287 % void enumSetup(entryp loc, long index); 289 % void touchEntry(entryp loc);
|