Ignore:
Timestamp:
Jan 26, 2017, 10:38:38 PM (2 years ago)
Author:
cameron
Message:

Stdin kernel: initial check-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.h

    r5280 r5281  
    5454    //  Create a call to:  FILE *fopen(const char *filename, const char *mode);
    5555    llvm::Value * CreateFOpenCall(llvm::Value * filename, llvm::Value * mode);
     56    //  Create a call to:  size_t fread(void *ptr, size_t size, size_t nitems, FILE *stream);
     57    llvm::Value * CreateFReadCall(llvm::Value * ptr, llvm::Value * size, llvm::Value * nitems, llvm::Value * stream);
    5658    //  Create a call to:  size_t fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream));
    5759    llvm::Value * CreateFWriteCall(llvm::Value * ptr, llvm::Value * size, llvm::Value * nitems, llvm::Value * stream);
     
    6567    //  Create a call to:  ssize_t write(int fildes, const void *buf, size_t nbyte);
    6668    llvm::Value * CreateWriteCall(llvm::Value * fildes, llvm::Value * buf, llvm::Value * nbyte);
     69    //  Create a call to:  ssize_t read(int fildes, void *buf, size_t nbyte);
     70    llvm::Value * CreateReadCall(llvm::Value * fildes, llvm::Value * buf, llvm::Value * nbyte);
     71
    6772   
    6873    //  Posix thread (pthread.h) functions.
Note: See TracChangeset for help on using the changeset viewer.