Searched defs:buf (Results 1 - 25 of 482) 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))
45 sfsetbuf(f, (Void_t*)buf, size);
/ast/src/lib/libast/string/
H A Dfmtperm.c37 char* buf; local
39 s = buf = fmtbuf(32);
90 return buf;
H A Dfmtsignal.c37 char* buf; local
43 buf = sig_info.text[sig];
46 buf = fmtbuf(z = 20);
47 sfsprintf(buf, z, "Signal %d", sig);
54 buf = sig_info.name[sig];
57 buf = fmtbuf(z = 20);
58 sfsprintf(buf, z, "%d", sig);
61 return buf;
H A Dfmttime.c35 char* buf; local
38 buf = fmtbuf(z = 80);
39 tmfmt(buf, z, format, &clock);
40 return buf;
/ast/src/lib/libast/tm/
H A Dtmform.c37 * end of buf is returned
41 tmform(char* buf, const char* format, time_t* clock) argument
43 return tmfmt(buf, 256, format, clock);
H A Dtmfmt.c33 * format date given clock into buf of length len
38 tmfmt(char* buf, size_t len, const char* format, time_t* clock) argument
40 return tmxfmt(buf, len, format, tmxclock(clock));
/ast/src/lib/libast/vec/
H A Dvecstring.c40 register char* buf; local
43 if (!str || !*str || !(buf = strdup(str))) vec = 0;
44 else if (!(vec = vecload(buf))) free(buf);
/ast/src/lib/libcs/
H A Dmsgname.c33 static char buf[12]; local
37 sfsprintf(buf, sizeof(buf), "user_%d", n);
38 return (const char*)buf;
45 sfsprintf(buf, sizeof(buf), "f%s", msg_info.name[n]);
46 return (const char*)buf;
50 sfsprintf(buf, sizeof(buf), "ipc%s", msg_info.name[n]);
51 return (const char*)buf;
[all...]
/ast/src/cmd/tests/sfio/
H A Dtsfstr.c25 char *s, buf[1024]; local
51 if(sfstrbuf(fp, buf, sizeof(buf), 0) < 0)
53 if(sfstrbase(fp) != buf)
55 if(sfstrsize(fp) != sizeof(buf))
58 sfstrseek(fp,sizeof(buf),SEEK_SET);
H A Dtshare.c24 char buf[1024], *s; local
28 sfsetbuf(sfstdout,buf,sizeof(buf));
29 sfsetbuf(sfstderr,buf,sizeof(buf));
H A Dtresize.c25 char buf[8*1024]; local
34 for(i = 0; i < sizeof(buf); ++i)
35 buf[i] = '1';
38 if(sfwrite(f, buf, sizeof(buf)) != sizeof(buf) )
45 if(sfsize(f) != (s = 1024*sizeof(buf)) )
48 if(sfresize(f, s + sizeof(buf)) < 0)
50 if(sfsize(f) != s+sizeof(buf))
54 if(sfread(f,buf,sizeo
[all...]
H A Dtstkpk.c25 char buf[1024]; local
33 strcpy(buf,"1234567890");
34 if(!(f = sfopen(NIL(Sfio_t*),buf,"s")))
/ast/src/cmd/3d/
H A Dchdir3d.c30 char buf[2 * PATH_MAX + 1]; local
64 strcpy(buf, state.pwd);
65 sp = buf + state.pwdsize;
69 sp = buf;
74 if ((sp = pathcanon(buf, sizeof(buf), 0)) && *(sp - 1) == '.' && *(sp - 2) == '/')
76 state.pwdsize = strcopy(state.pwd, buf) - state.pwd;
H A Dpeek.c29 * peek siz chars from fd into buf
34 peek(int fd, void* buf, size_t siz) argument
38 n = cspeek(&cs, fd, buf, siz);
44 while ((n = read(fd, buf, siz)) != state.path.st.st_size && lseek(fd, 0L, 1) > 0 && lseek(fd, 0L, 0) == 0);
/ast/src/lib/libast/misc/
H A Dprocrun.c44 char buf[PATH_MAX]; local
46 return pathpath(path, NiL, PATH_REGULAR|PATH_EXECUTE, buf, sizeof(buf)) ? 0 : -1;
/ast/src/lib/libast/preroot/
H A Drealopen.c36 char buf[PATH_MAX + 8]; local
39 strcopy(strcopy(buf, PR_REAL), path);
40 return(open(buf, mode, perm));
/ast/src/lib/libdll/
H A Ddlllook.c38 char buf[256]; local
40 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2))
42 buf[0] = '_';
43 strcpy(buf + 1, name);
44 name = (const char*)buf;
/ast/src/lib/libast/comp/
H A Dtmpnam.c48 static char buf[L_tmpnam]; local
50 return pathtemp(s ? s : buf, L_tmpnam, NiL, "tn", NiL);
/ast/src/lib/libast/path/
H A Dpathnative.c27 * convert path to native fs representation in <buf,siz>
29 * if return length >= siz then buf is indeterminate, but another call
31 * if buf==0 then required size is returned
41 pathnative(const char* path, char* buf, size_t siz) argument
43 return uwin_path(path, buf, siz);
53 pathnative(const char* path, char* buf, size_t siz) argument
57 if (!buf || siz < PATH_MAX)
62 if ((n = strlen(tmp)) < siz && buf)
63 memcpy(buf, tmp, n + 1);
66 cygwin_conv_to_win32_path(path, buf);
75 pathnative(const char* path, char* buf, size_t siz) argument
98 pathnative(const char* path, char* buf, size_t siz) argument
111 pathnative(const char* path, char* buf, size_t siz) argument
[all...]
H A Dpathtmp.c35 pathtmp(char* buf, const char* dir, const char* pfx, int* fdp) argument
39 len = !buf ? 0 : !dir ? L_tmpnam : (strlen(dir) + 14);
40 return pathtemp(buf, len, dir, pfx, fdp);
/ast/src/lib/libast/regex/
H A Dregfatal.c35 char buf[128]; local
37 regerror(code, p, buf, sizeof(buf));
40 error(level, "regular expression: %s: %s", pat, buf);
42 error(level, "regular expression: %s", buf);
/ast/src/lib/libast/sfio/
H A Dsfecvt.c35 static char buf[SF_MAXDIGITS]; local
37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,SFFMT_EFORMAT);
H A Dsffcvt.c35 static char buf[SF_MAXDIGITS]; local
37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,0);

Completed in 40 milliseconds

1234567891011>>