Searched refs:fbuf (Results 1 - 2 of 2) sorted by relevance

/ast/src/cmd/mailx/
H A Dquit.c331 FILE* fbuf; local
366 if (!(fbuf = fileopen(state.path.mail, "r+")))
369 filelock(state.path.mail, fbuf, 1);
373 if (!(rbuf = fileopen(state.tmp.more, "w")) || !fbuf)
376 fseek(fbuf, state.mailsize, SEEK_SET);
377 filecopy(NiL, fbuf, NiL, rbuf, NiL, (off_t)0, NiL, NiL, 0);
379 if (filecopy(NiL, fbuf, NiL, rbuf, NiL, (off_t)(size - state.mailsize), NiL, NiL, 0))
389 fbuf = 0;
438 if (fbuf)
439 fileclose(fbuf);
[all...]
/ast/src/lib/libast/misc/
H A Dmagic.c158 char fbuf[SF_BUFSIZE + 1]; /* file data */ \
171 int fbsz; /* fbuf size */ \
172 int fbmx; /* fbuf max size */ \
178 Sfio_t* fp; /* fbuf fp */ \
293 return mp->fbuf + off;
1058 b = (unsigned char*)mp->fbuf;
1071 b = (unsigned char*)mp->fbuf;
1091 ccmaps(mp->fbuf, mp->fbsz, q, CC_NATIVE);
1133 b = (unsigned char*)mp->fbuf;
1165 if (s > mp->fbuf)
[all...]

Completed in 48 milliseconds