Searched refs:namesize (Results 1 - 18 of 18) sorted by relevance

/ast/src/lib/libcodex/
H A Dcodexid.c32 codexid(const void* head, size_t headsize, char* name, size_t namesize) argument
37 if (meth->identf && (*meth->identf)(meth, head, headsize, name, namesize))
/ast/src/lib/libast/hash/
H A Dhashlib.h64 int namesize; /* fixed name size: 0 => string */ \
84 #define HASH(r,n,h) if (r->local->hash) h = r->namesize ? (*r->local->hash)(n, r->namesize) : (*r->local->hash)(n);\
89 if (r->namesize)\
91 register const char* _hash_s2 = _hash_s1 + r->namesize;\
H A Dhashdump.c75 if (n = tab->root->namesize)
142 if (root->namesize) sfprintf(sfstderr, "namesize=%d ", root->namesize);
H A Dhashlook.c109 if (tab->root->namesize)
111 register char* s3 = s1 + tab->root->namesize;
119 else if (tab->root->namesize)
121 if (!(*tab->root->local->compare)(hashname(b), name, tab->root->namesize)) goto found;
209 else if (b->name && tab->root->namesize)
211 memcpy(b->name, value, tab->root->namesize);
306 m = tab->root->namesize ? tab->root->namesize : strlen(name) + 1;
H A Dhashalloc.c133 tab->root->namesize = va_arg(ap, int);
/ast/src/cmd/pax/
H A Dpax-cpio.c63 short namesize; member in struct:Binary_header_s
107 if (f->namesize > (c = strlen(f->name) + 1))
155 if ((f->namesize += n) > CPIO_NAMESIZE)
171 paxwrite(pax, ap, f->name, f->namesize -= n);
275 if (header = (header + f->namesize) % align)
280 f->name = paxstash(pax, &ap->stash.head, NiL, f->namesize + align);
281 paxread(pax, ap, f->name, (off_t)0, (off_t)(f->namesize + align), 1);
282 if (f->name[f->namesize - 1])
284 paxunread(pax, ap, &f->name[f->namesize - 1], 1);
285 f->name[f->namesize
[all...]
H A Dpax-vdb.c203 complete(ap, f, state.record.header ? state.record.headerlen : f->namesize);
208 f->name[f->namesize - 1] = '\n';
209 paxwrite(pax, ap, f->name, f->namesize);
210 f->name[f->namesize - 1] = 0;
H A Dpax.h267 int namesize; /* name size with null byte */ member in struct:Link_s
289 int namesize; /* name size with null byte */ \
H A Dmisc.c156 if (f->skip || f->namesize <= 1 || f->linkpath && !*f->linkpath)
361 f->namesize = pathcanon(f->name = name, 0, 0) - name + 1;
H A Dfile.c814 f->namesize = strlen(f->name) + 1;
1031 p->namesize = n;
1140 f->namesize = strlen(name) + 1;
H A Dcopy.c362 f->name = stash(&state.out->path.copy, NiL, state.pwdlen + f->namesize);
H A Dpax-tar.c192 if (!(n = f->namesize) || --n <= TARSIZEOF(name))
784 synthesize(ap, f, headname(ap, f, "@PaxPathText.%(sequence)s"), LREGTYPE, f->name, f->namesize);
H A Dformat.c684 f->namesize = strlen(f->name) + 1;
/ast/src/lib/libardir/
H A Dar-aix.c67 size_t namesize; /* max size for name */ member in struct:State_s
153 if (n >= state->namesize)
155 state->namesize = roundof(n + 1, 256);
156 if (!(state->name = newof(state->name, char, state->namesize, 0)))
H A Dar-aixbig.c68 size_t namesize; /* max size for name */ member in struct:State_s
154 if (n >= state->namesize)
156 state->namesize = roundof(n + 1, 256);
157 if (!(state->name = newof(state->name, char, state->namesize, 0)))
/ast/src/cmd/codexlib/bzip/
H A Dbzip.c25 bzip_ident(Codexmeth_t* meth, const void* head, size_t headsize, char* name, size_t namesize) argument
31 strncopy(name, meth->name, namesize);
/ast/src/cmd/codexlib/gzip/
H A Dgzip.c26 gzip_ident(Codexmeth_t* meth, const void* head, size_t headsize, char* name, size_t namesize) argument
32 strncopy(name, meth->name, namesize);
/ast/src/cmd/codexlib/compress/
H A Dcompress.c432 lzw_ident(Codexmeth_t* meth, const void* head, size_t headsize, char* name, size_t namesize) argument
438 strncopy(name, meth->name, namesize);

Completed in 29 milliseconds