Annotation of researchv10no/cmd/spitbol/cint/sysef.c, revision 1.1.1.1

1.1       root        1: /*
                      2: /   sysef - eject file
                      3: */
                      4: 
                      5: #include "osint.h"
                      6: #include "spitblks.h"
                      7: #include "spitio.h"
                      8: 
                      9: struct scblk   ffscblk =
                     10: {
                     11:     0,         /*  type word - ignore          */
                     12:     1,         /*  string length               */
                     13:     '\f'       /*  string is a form-feed       */
                     14: };
                     15: 
                     16: sysef()
                     17: {
                     18:        register struct fcblk *fcb = WA (struct fcblk *);
                     19:        register struct ioblk *iob = fcb->iob;
                     20: 
                     21:        /* ensure the file is open */
                     22:        if ( osopen( iob ) != 0 )
                     23:                return EXIT_1;
                     24: 
                     25:        /* write the data, fail if unsuccessful */
                     26:        if ( oswrite( fcb->rsz, ffscblk.len, iob, &ffscblk) != 0 )
                     27:                return EXIT_2;
                     28: 
                     29:        return NORMAL_RETURN;
                     30: }

unix.superglobalmegacorp.com

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