Newer
Older
UbixOS / debug / test.c
#include <stdio.h>

int main(int argc, char **argv) {
  int fd = 0;
  FILE *f;

  char buf[1024];

  fd = open("/etc/motd", 0x1);
  f = fdopen(fd, "wb");

  printf("TEST: %i:%i\n", fd, read(fd, buf, 0));

  close(fd);

  return(0);
}