Home | History | Annotate | Download | only in ed

Lines Matching defs:sfp

50 FILE *sfp;				/* scratch file pointer */
71 if (fseek(sfp, sfseek, SEEK_SET) < 0) {
79 if ((ct = fread(sfbuf, sizeof(char), len, sfp)) < 0 || ct != len) {
115 if (fseek(sfp, 0L, SEEK_END) < 0) {
121 sfseek = ftell(sfp);
125 if ((ct = fwrite(cs, sizeof(char), len, sfp)) < 0 || ct != len) {
231 if ((fd = mkstemp(sfn)) == -1 || (sfp = fdopen(fd, "w+")) == NULL) {
248 if (sfp) {
249 if (fclose(sfp) < 0) {
254 sfp = NULL;
270 if (sfp) {
271 fclose(sfp);