6.828 Lab util - Unix utilities

https://pdos.csail.mit.edu/6.828/2020/labs/util.html

// Directory is a file containing a sequence of dirent structures.
#define DIRSIZ 14

struct dirent {
  ushort inum;
  char name[DIRSIZ];
};
  • Why does ls.c use memmmove over memcpy?
  • I didn’t do the challenges, but I implemented all the other utilities here
Edit