Searched defs:size (Results 1 - 25 of 327) sorted by relevance

1234567891011>>

/ast/src/lib/libast/stdio/
H A Dfmemopen.c27 fmemopen(void* buf, size_t size, const char* mode) argument
29 STDIO_PTR(0, "fmemopen", Sfio_t*, (void*, size_t, const char*), (buf, size, mode))
31 return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL, NiL));
H A D_stdvbuf.c29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument
31 return setvbuf(f, buf, type, size);
H A Dsetvbuf.c27 setvbuf(Sfio_t* f, char* buf, int type, size_t size) argument
29 STDIO_INT(f, "setvbuf", int, (Sfio_t*, char*, int, size_t), (f, buf, type, size))
42 if (size == 0)
43 size = SF_BUFSIZE;
45 sfsetbuf(f, (Void_t*)buf, size);
H A Dswprintf.c27 swprintf(wchar_t* s, size_t size, const wchar_t* fmt, ...) argument
33 v = vswprintf(s, size, fmt, args);
/ast/src/lib/libast/vmalloc/
H A Dvmgetmem.c37 Void_t* vmgetmem(Vmalloc_t* vm, Void_t* data, size_t size) argument
39 Void_t* vmgetmem(vm, data, size)
42 size_t size;
47 if (data || size)
48 return vmresize(vm, data, size, VM_RSMOVE|VM_RSCOPY|VM_RSZERO);
H A Dvmclear.c43 size_t size, s; local
63 size = seg->baddr - ((Vmuchar_t*)tp) - 2*sizeof(Head_t);
66 SIZE(tp) = size;
/ast/src/lib/libcodex/
H A Dcodexsize.c25 * set expected output size
31 codexsize(Sfio_t* sp, Sfoff_t size) argument
33 return sfraise(sp, CODEX_SIZE, &size);
/ast/src/lib/libast/sfio/
H A Dsfresize.c29 int sfresize(Sfio_t* f, Sfoff_t size) argument
31 int sfresize(f, size)
33 Sfoff_t size;
40 if(size < 0 || f->extent < 0 ||
49 if(f->extent >= size)
50 { if((f->flags&SF_MALLOC) && (f->next - f->data) <= size)
51 { size_t s = (((size_t)size + 1023)/1024)*1024;
53 if(s < f->size && (d = realloc(f->data, s)) )
55 f->size = s;
59 memclear((char*)(f->data+size), (in
[all...]
H A Dsfnew.c32 Sfio_t* sfnew(Sfio_t* oldf, Void_t* buf, size_t size, int file, int flags) argument
34 Sfio_t* sfnew(oldf,buf,size,file,flags)
37 size_t size; /* buffer size if buf is given or desired buffer size */
73 if(f->data && ((flags&SF_STRING) || size != (size_t)SF_UNBOUND) )
116 if(size != (size_t)SF_UNBOUND)
117 { f->size = size;
118 f->data = size <
[all...]
H A Dsfpeek.c35 extern ssize_t sfpeek(reg Sfio_t* f, Void_t** bp, reg size_t size) argument
37 extern ssize_t sfpeek(f,bp,size)
40 reg size_t size; /* size of peek */
46 if((sz = size) == 0 || !bp)
58 else if(n > 0) /* size == 0 */
70 *bp = sfreserve(f, sz <= 0 ? 0 : sz > f->size ? f->size : sz, 0);
/ast/src/lib/libast/string/
H A Dswapop.c35 * if size<0 then (-size) used and (-size==4)&&(op==3) => op=7
40 swapop(const void* internal, const void* external, int size) argument
46 if ((z = size) < 0)
54 if (size < 0 && z == 4 && op == 3)
/ast/src/cmd/dsslib/ip_t/
H A Divopen.c26 ivopen(Ivdisc_t* disc, Ivmeth_t* meth, int size, const char* options) argument
30 if (!disc || !meth || !(iv = newof(0, Iv_t, 1, 3 * size)))
36 fvset(size, iv->unit, 1);
37 iv->r1 = iv->unit + size;
38 iv->r2 = iv->r1 + size;
39 iv->size = size;
/ast/src/cmd/mailx/port/
H A Ddtsize.c92 reg int size; local
96 if(dt->data->size < 0) /* !(dt->data->type&DT_HASH) */
98 dt->data->size = dtcount(dt->data->here);
101 for(size = 0; t; t = t->right)
102 size += 1;
103 dt->data->size = size;
107 return dt->data->size;
/ast/src/cmd/3d/
H A Dreadlink3d.c27 readlink3d(const char* path, char* buf, register size_t size) argument
35 return(READLINK(path, buf, size));
37 if (!fscall(NiL, MSG_readlink, 0, path, buf, size))
54 if (mp) fscall(mp, MSG_readlink, r, path, buf, size);
57 fscall(mp, MSG_readlink, r, path, buf, size);
H A Dfstatfs3d.c71 fstatfs3d(int fd, struct statfs* fs, int size, int type) argument
79 if (!fscall(NiL, MSG_fstatfs, 0, fd, VFS, size, type))
96 if (FSTATFS(fd, fs, size, type))
111 fscall(mp, MSG_fstatfs, 0, fd, VFS, size, type);
114 fscall(mp, MSG_fstatfs, 0, fd, VFS, size, type);
H A Dpathcanon.c37 pathcanon(char* path, size_t size, int phys) argument
47 if (!size) size = strlen(dp) + 1;
/ast/src/lib/libvcodex/
H A Dvcbuffer.c28 Vcchar_t* _vcbuffer(Vcodex_t* vc, Vcchar_t* trunc, ssize_t size, ssize_t head) argument
30 Vcchar_t* _vcbuffer(vc, trunc, size, head)
33 ssize_t size; /* the size needed for buffered data */
50 if(trunc >= b->buf && trunc < b->buf+b->size)
59 if(size < 0 ) /* just free the buffer */
60 { /**/DEBUG_SET(Busy, Busy - b->size);
63 /**/DEBUG_PRINT(2,"size=%d\n",b->size);
65 vc->busy -= b->size;
[all...]
/ast/src/lib/libast/cdt/
H A Ddtdisc.c32 static Void_t* dtmemory(Dt_t* dt, Void_t* addr, size_t size, Dtdisc_t* disc) argument
34 static Void_t* dtmemory(dt, addr, size, disc)
37 size_t size; /* size to obtain */
42 { if(size == 0)
46 else return realloc(addr,size);
48 else return size > 0 ? malloc(size) : NIL(Void_t*);
/ast/src/lib/libast/comp/
H A Dresolvepath.c44 resolvepath(const char* file, char* path, size_t size) argument
52 if (n >= size)
63 else if (!getcwd(path, size - n))
70 strlcpy(s, file, size - (s - path));
71 return (s = pathcanon(path, size, PATH_PHYSICAL|PATH_DOTDOT|PATH_EXISTS)) ? (s - path) : -1;
/ast/src/lib/libast/include/
H A Dmagicid.h43 Magicid_data_t size; member in struct:Magicid_s
/ast/src/lib/libdll/
H A Ddllfind.c33 * if path!=0 then library path up to size chars copied to path with trailing 0
38 dllfind(const char* lib, const char* ver, int flags, char* path, size_t size) argument
43 if ((id = error_info.id) && (dll = dllplug(id, lib, ver, flags, path, size)))
45 return dllplug(NiL, lib, ver, flags, path, size);
/ast/src/lib/libdss/
H A Ddssmagic.c33 dssmagic(Dss_t* dss, Sfio_t* sp, const char* name, const char* type, uint32_t version, size_t size) argument
45 magic.size = size;
47 while (size < sizeof(magic))
48 size += magic.size;
49 for (n = size; size > sizeof(magic); size--)
/ast/src/cmd/pax/
H A Dpax-bzip.c29 bzip_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
31 if (size < 3 || buf[0] != 0x42 || buf[1] != 0x5a || buf[2] != 0x68)
33 ap->uncompressed = ap->io->size * 7;
H A Dpax-compress.c29 compress_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
31 if (size < 2 || buf[0] != 0x1f || buf[1] != 0x9d)
33 ap->uncompressed = ap->io->size * 3;
H A Dpax-vczip.c29 vczip_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size) argument
31 if (size < 4 || buf[0] != 0326 || buf[1] != 0303 || buf[2] != 0304 || buf[3] && buf[3] != 0330)
33 ap->uncompressed = ap->io->size * 25;

Completed in 133 milliseconds

1234567891011>>