/ast/src/lib/libast/stdio/ |
H A D | fmemopen.c | 27 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.c | 29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument 31 return setvbuf(f, buf, type, size);
|
H A D | setvbuf.c | 27 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 D | fmtperm.c | 37 char* buf; local 39 s = buf = fmtbuf(32); 90 return buf;
|
H A D | fmtsignal.c | 37 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 D | fmttime.c | 35 char* buf; local 38 buf = fmtbuf(z = 80); 39 tmfmt(buf, z, format, &clock); 40 return buf;
|
/ast/src/lib/libast/tm/ |
H A D | tmform.c | 37 * 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 D | tmfmt.c | 33 * 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 D | vecstring.c | 40 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 D | msgname.c | 33 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 D | tsfstr.c | 25 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 D | tshare.c | 24 char buf[1024], *s; local 28 sfsetbuf(sfstdout,buf,sizeof(buf)); 29 sfsetbuf(sfstderr,buf,sizeof(buf));
|
H A D | tresize.c | 25 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 D | tstkpk.c | 25 char buf[1024]; local 33 strcpy(buf,"1234567890"); 34 if(!(f = sfopen(NIL(Sfio_t*),buf,"s")))
|
/ast/src/cmd/3d/ |
H A D | chdir3d.c | 30 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 D | peek.c | 29 * 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 D | procrun.c | 44 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 D | realopen.c | 36 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 D | dlllook.c | 38 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 D | tmpnam.c | 48 static char buf[L_tmpnam]; local 50 return pathtemp(s ? s : buf, L_tmpnam, NiL, "tn", NiL);
|
/ast/src/lib/libast/path/ |
H A D | pathnative.c | 27 * 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 D | pathtmp.c | 35 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 D | regfatal.c | 35 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 D | sfecvt.c | 35 static char buf[SF_MAXDIGITS]; local 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,SFFMT_EFORMAT);
|
H A D | sffcvt.c | 35 static char buf[SF_MAXDIGITS]; local 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,0);
|