Annotation of researchv10dc/dist/man/v3/man3/putc.3, revision 1.1.1.1

1.1       root        1: .pa 1
                      2: .he 'PUTC,PUTW,FCREAT,FLUSH (III)'6/12/72'PUTC,PUTW,FCREAT,FLUSH (III)'
                      3: .ti 0
                      4: NAME           putc, putw, fcreat, flush  --  buffered output
                      5: .sp
                      6: .ti 0
                      7: SYNOPSIS       mov     $filename,r0
                      8: .br
                      9: jsr    r5,fcreat; iobuf
                     10: 
                     11: (get byte in r0)
                     12: .br
                     13: jsr    r5,putc; iobuf
                     14: 
                     15: (get word in r0)
                     16: .br
                     17: jsr    r5,putw; iobuf
                     18: .sp
                     19: jsr    r5,flush; iobuf
                     20: .sp
                     21: .ti 0
                     22: DESCRIPTION    fcreat______ creates
                     23: the given file (mode 17) and sets up the buffer iobuf_____ (size 518(10) bytes);
                     24: putc____ and putw____ write a byte or word respectively
                     25: onto the file;
                     26: flush_____ forces the contents of the buffer to be written, but
                     27: does not close the file.
                     28: The format of the buffer is:
                     29: .sp
                     30: .nf
                     31: iobuf: .=.+2           / file descriptor
                     32:        .=.+2           / characters unused in buffer
                     33:        .=.+2           / ptr to next free character
                     34:        .=.+512.        / buffer
                     35: .sp
                     36: .fi
                     37: fcreat______ sets the error bit (c-bit) if the 
                     38: file creation failed; none of the other routines
                     39: return error information.
                     40: .sp
                     41: Before terminating, a program should call
                     42: flush_____ to force out the last of the output.
                     43: .sp
                     44: The user must supply iobuf_____, which should begin on a word boundary.
                     45: 
                     46: To write a new file using the same buffer, it
                     47: suffices to call flush_____, close the file,
                     48: and call fcreat______ again.
                     49: .sp
                     50: .ti 0
                     51: FILES          kept in /lib/liba.a
                     52: .sp
                     53: .ti 0
                     54: SEE ALSO       creat(II), write(II), getc(III)
                     55: .sp
                     56: .ti 0
                     57: DIAGNOSTICS    error bit possible on fcreat______ call
                     58: .sp
                     59: .ti 0
                     60: BUGS           --

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.