Searched refs:loc (Results 1 - 25 of 75) sorted by relevance

123

/osnet-11/usr/src/cmd/dtrace_toolkit/DTT/
H A Dinstall30 read loc junk
31 if [[ "$loc" == "" ]]; then loc="/opt/DTT"; fi
33 (( DEBUG )) && print "DEBUG: loc $loc"
36 if print "$loc" | grep '^[./]*$' > /dev/null; then
37 print "ERROR1: Location \"$loc\" is ambiguous.\n."
45 if print "$loc" | grep '[^a-zA-Z0-9_.-/]' > /dev/null; then
46 print "ERROR2: Sorry, location \"$loc\" contains bad characters.\n."
54 basename=${loc
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dtsdalloc.c48 tsdent_t *loc = ptr; local
53 if (loc != NULL) {
55 if ((p = loc[i].buf) != NULL) {
56 destructor = loc[i].destructor;
59 lfree(p, loc[i].size);
62 lfree(loc, _T_NUM_ENTRIES * sizeof (tsdent_t));
70 tsdent_t *loc; local
84 if ((loc = pthread_getspecific(key)) != NULL) {
85 if ((p = loc[n].buf) != NULL)
89 loc
[all...]
H A Dseekdir.c50 seekdir(DIR *dirp, long loc) argument
61 if (off != loc) {
63 (void) lseek(dirp->d_fd, loc, SEEK_SET);
70 ((dirent_t *)(uintptr_t)&dirp->d_buf[0])->d_off = loc;
83 seekdir64(DIR *dirp, off64_t loc) argument
104 if (off != loc) {
106 (void) lseek64(dirp->d_fd, loc, SEEK_SET);
113 ((dirent64_t *)(uintptr_t)&dirp->d_buf[0])->d_off = loc;
119 seekdir(DIR *dirp, long loc) argument
121 seekdir64(dirp, (off64_t)(uint32_t)loc);
[all...]
H A Dgettxt.c70 char *loc; member in struct:db_cache
128 if (strcmp(curloc, dbc->loc) == 0) {
149 if ((dbc->loc = lmalloc(strlen(curloc) + 1)) == NULL) {
155 (void) strcpy(dbc->loc, curloc);
166 _DFLT_LOC_PATH "%s" MESSAGES "%s", dbc->loc, msgfile) >=
180 if (strcmp(dbc->loc, "C") == 0) {
/osnet-11/usr/src/lib/libast/common/misc/
H A Derrorx.c32 errorx(const char* loc, const char* cmd, const char* cat, const char* msg) argument
40 if (!loc)
41 loc = (const char*)locales[AST_LC_MESSAGES]->code;
46 if (s = (*error_info.translate)(loc, cmd, cat, msg))
H A Dstk.c321 * returns 1 if <loc> is on this stack
323 int stkon(register Sfio_t * stream, register char* loc) argument
328 if(loc>=((char*)(fp+1)) && loc< fp->end)
333 * reset the bottom of the current stack back to <loc>
334 * if <loc> is not in this stack, then the stack is reset to the beginning
338 char *stkset(register Sfio_t * stream, register char* loc, unsigned offset) argument
355 if(loc==fp->aliases[n])
357 loc = cp;
361 /* see whether <loc> i
[all...]
H A Dtranslate.c272 * loc the LC_MESSAGES locale name
298 translate(const char* loc, const char* cmd, const char* cat, const char* msg) argument
366 sfprintf(sfstderr, "AHA#%d:%s cp->locale `%s' %p loc `%s' %p\n", __LINE__, __FILE__, cp->locale, cp->locale, loc, loc);
373 if (cp->locale != loc || cp->nlspath != nlspath)
375 cp->locale = loc;
429 if (r == (char*)msg && (!cp && streq(loc, "debug") || cp && cp->debug))
432 sfprintf(state.tmp, "(%s,%s,%s,%s)", loc, cmd, cat, r);
/osnet-11/usr/src/lib/libnisdb/
H A Ddb_index_entry_c.c45 register db_index_entry *loc; local
85 loc = ep->next;
90 if (loc == NULL) {
91 ep->next = loc = (db_index_entry *)
93 if (loc == NULL) {
98 memset(loc, 0, sizeof (db_index_entry));
106 freeptr = loc;
110 if (loc == NULL)
112 ep = loc;
144 register db_free_entry *loc; local
[all...]
H A Ddb_table_c.x271 %/* Check if entry at 'loc' is valid (not expired) */
272 % bool_t cacheValid(entryp loc);
274 %/* Update expiration time if supplied object same as the one at 'loc' */
275 % bool_t dupEntry(entry_object *obj, entryp loc);
287 % void enumTouch(entryp loc);
289 % void enumSetup(entryp loc, long index);
291 % void touchEntry(entryp loc);
H A Ddb_table.cc881 /* Return TRUE if the entry at 'loc' hasn't expired */
883 db_table::cacheValid(entryp loc) { argument
891 if (loc < 0 || loc >= table_size || tab == 0 || tab[loc] == 0)
893 else if (mapping.expire == 0 || mapping.expire[loc] >= now.tv_sec)
904 * If the supplied object has the same content as the one at 'loc',
908 db_table::dupEntry(entry_object *obj, entryp loc) { argument
909 if (obj == 0 || loc < 0 || loc >
1026 enumTouch(entryp loc) argument
1050 enumSetup(entryp loc, long index) argument
1064 touchEntry(entryp loc) argument
[all...]
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dxdr_refer.c68 caddr_t loc = *pp; local
71 if (loc == NULL)
76 *pp = loc = malloc(size);
77 if (loc == NULL) {
81 (void) memset(loc, 0, (int)size);
85 stat = (*proc)(xdrs, loc, LASTUNSIGNED);
88 free(loc);
/osnet-11/usr/src/cmd/ast/msgcc/
H A Dmsgget.c54 char* loc; local
79 if (error_info.errors || !(loc = *argv++) || !(cmd = *argv++) || !(s = *argv++))
89 if (streq(loc, "-"))
90 loc = 0;
93 if (!mcfind(loc, cmd, LC_MESSAGES, 0, path, sizeof(path)) && (!cat || !mcfind(loc, cat, LC_MESSAGES, 0, path, sizeof(path))))
106 s = errorx(loc, cmd, cat, msg);
/osnet-11/usr/src/lib/fm/topo/libtopo/common/
H A Dsvc.c511 char *str, *loc, val; local
526 if ((loc = strpbrk(str, "@/")) == NULL)
529 if (*loc == '@') {
531 *loc = '\0';
533 *loc = '@';
538 *loc = '@';
542 *loc = '@';
543 str = loc + 1;
544 if ((loc = strchr(str, '/')) == NULL)
548 if (loc !
[all...]
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Drunlist.c171 * @loc: append the new runlist @src after this element in @dst
173 * Append the runlist @src after element @loc in @dst. Merge the right end of
186 int dsize, runlist_element *src, int ssize, int loc)
199 if ((loc + 1) < dsize)
200 right = ntfs_rl_are_mergeable(src + ssize - 1, dst + loc + 1);
213 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1);
216 marker = loc + ssize + 1;
219 ntfs_rl_mm(dst, marker, loc + 1 + right, dsize - loc - 1 - right);
220 ntfs_rl_mc(dst, loc
185 ntfs_rl_append(runlist_element *dst, int dsize, runlist_element *src, int ssize, int loc) argument
252 ntfs_rl_insert(runlist_element *dst, int dsize, runlist_element *src, int ssize, int loc) argument
348 ntfs_rl_replace(runlist_element *dst, int dsize, runlist_element *src, int ssize, int loc) argument
435 ntfs_rl_split(runlist_element *dst, int dsize, runlist_element *src, int ssize, int loc) argument
[all...]
/osnet-11/usr/src/lib/libadr/common/
H A Dadr_name.c166 char *loc = name->an_domain; local
168 int count = strlcpy(loc, domain, end - loc);
169 if (count >= end - loc)
171 loc += count + 1;
174 count = strlcpy(loc, name->an_keys[i], end - loc);
175 if (count >= end - loc)
177 name->an_keys[i] = loc;
178 loc
[all...]
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dfsys_ffs.c186 int block, off, loc, map, ino = ROOTINO; local
231 loc = 0;
237 if (loc >= INODE->i_size)
251 if (!(off = blkoff (SUPERBLOCK, loc)))
253 block = lblkno (SUPERBLOCK, loc);
267 loc += dp->d_reclen;
H A Dfsys_ufs.c231 int loc, off; local
238 loc = 0;
239 while (loc < INODE->ic_sizelo) {
241 off = blkoff(SUPERBLOCK, loc);
245 lbn = lblkno(SUPERBLOCK, loc);
261 loc += dp->d_reclen;
H A Dfsys_ufs2.c210 int block, off, loc, ino = ROOTINO; local
256 loc = 0;
262 if (loc >= INODE_UFS2->di_size)
272 if (!(off = blkoff (SUPERBLOCK, loc)))
274 block = lblkno (SUPERBLOCK, loc);
288 loc += dp->d_reclen;
H A Dfs.h387 #define blkmap(fs, map, loc) \
388 (((map)[(loc) / NBBY] >> ((loc) % NBBY)) & (0xff >> (NBBY - (fs)->fs_frag)))
401 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \
402 ((loc) & ~(fs)->fs_bmask)
403 #define fragoff(fs, loc) /* calculates (loc % fs->fs_fsize) */ \
404 ((loc) & ~(fs)->fs_fmask)
405 #define lblkno(fs, loc) /* calculate
[all...]
H A Dfsys_minix.c316 int loc; /* location within a directory */ local
448 loc = 0;
453 printf ("dirname=`%s', rest=`%s', loc=%d\n", dirname, rest, loc);
458 if (loc >= INODE->i_size)
475 blk = loc >> BLOCK_SIZE_BITS;
491 off = loc & (BLOCK_SIZE - 1);
493 /* advance loc prematurely to next on-disk directory entry */
494 loc += sizeof (dp->inode) + namelen;
H A Dufs.h217 #define blkoff(fs, loc) ((int)((loc & ~(fs)->fs_bmask)))
218 #define lblkno(fs, loc) ((grub_int32_t)((loc) >> (fs)->fs_bshift))
/osnet-11/usr/src/lib/fm/topo/modules/sun4v/pcibus/common/
H A Dpci_sun4v.c64 uchar_t *loc = NULL; local
71 PI_PROP_CHASSIS_LOCATION_NAME, &locsiz, &loc);
86 (void) memcpy(nac, loc, locsiz);
109 uchar_t *loc; local
175 PI_PROP_CHASSIS_LOCATION_NAME, &locsiz, &loc) == 0 && locsiz > 0) {
180 return (platform_pci_fru_location(mod, node, loc,
189 platform_pci_fru_location(topo_mod_t *mod, tnode_t *node, uchar_t *loc, argument
211 (void) memcpy(walkdata.location, loc, locsiz);
/osnet-11/usr/src/lib/scsi/libses/common/
H A Dses_plugin.c256 ses_plugin_t *sp, **loc; local
288 for (loc = &tp->st_plugin_first; *loc != NULL; loc = &(*loc)->sp_next) {
289 if ((*loc)->sp_priority > sp->sp_priority)
293 if (*loc != NULL)
294 (*loc)->sp_prev = sp;
298 sp->sp_next = *loc;
299 *loc
[all...]
/osnet-11/usr/src/lib/scsi/libsmp/common/
H A Dsmp_plugin.c212 smp_plugin_t *pp, **loc; local
244 for (loc = &tp->st_plugin_first; *loc != NULL; loc = &(*loc)->sp_next) {
245 if ((*loc)->sp_priority > pp->sp_priority)
249 if (*loc != NULL)
250 (*loc)->sp_prev = pp;
254 pp->sp_next = *loc;
255 *loc
[all...]
/osnet-11/usr/src/lib/libc/port/i18n/
H A Dwdresolve.c65 char *loc; local
73 loc = setlocale(LC_CTYPE, NULL); /* this never return NULL */
74 loclen = strlen(loc);
82 (void) strcpy(wdmodpath + _DFLTLOCPATH_LEN, loc);

Completed in 80 milliseconds

123