1. Takayuki KONDO
  2. linux-scalability-benchmarks

Source

linux-scalability-benchmarks / libowfat / io / io_readwritefile.c

The default branch has multiple heads

#define _FILE_OFFSET_BITS 64
#include <unistd.h>
#include <fcntl.h>
#include "io_internal.h"

int io_readwritefile(int64* d,const char* s) {
  long fd=open(s,O_RDWR);
  if (fd != -1) {
    *d=fd;
    return 1;
  }
  return 0;
}