DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦ffd7f0f37⟧ TextFile

    Length: 483 (0x1e3)
    Types: TextFile
    Names: »saxer4.c«

Derivation

└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/saxer/saxer4.c« 
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21F/saxer/saxer4.c« 

TextFile

/* Program #4       John Saxer
                    read bench */
 
#include <stdio.h>
#ifndef BSIZE
#         define BSIZE BUFSIZ
#endif
#ifndef NBLOCKS
#         define NBLOCKS 2000
#endif
 
main()
{
          register int fd, i;
          char buf[BSIZE];
 
          if ( ( fd=open("saxer.dat",0) ) == -1 )
		    {
                    perror("saxer.dat");
		    exit(1);
		    }
          for ( i=0; i<NBLOCKS; i++ )
                    read(fd,buf,BSIZE);
          close(fd);
}