Skip to content

Commit

Permalink
Create /dev/zero and /dev/full on start
Browse files Browse the repository at this point in the history
  • Loading branch information
stek29 committed Jul 25, 2019
1 parent 72b4c2e commit f879254
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ - (int)startThings {
generic_mknod("/dev/tty", S_IFCHR|0666, dev_make(5, 0));
generic_mknod("/dev/ptmx", S_IFCHR|0666, dev_make(5, 2));
generic_mknod("/dev/null", S_IFCHR|0666, dev_make(1, 3));
generic_mknod("/dev/zero", S_IFCHR|0666, dev_make(1, 5));
generic_mknod("/dev/full", S_IFCHR|0666, dev_make(1, 7));
generic_mknod("/dev/random", S_IFCHR|0666, dev_make(1, 8));
generic_mknod("/dev/urandom", S_IFCHR|0666, dev_make(1, 9));
generic_mkdirat(AT_PWD, "/dev/pts", 0755);
Expand Down

0 comments on commit f879254

Please sign in to comment.