previous: >>108515827
#define __NR_mknod 133
#define __NR_mknodat 259
https://man7.org/linux/man-pages/man2/mknod.2.html
tl;dr:
make a file (but not a directory!)
see also https://man7.org/linux/man-pages/man7/inode.7.html
you're only ever going to want to use this to make special files, since making an ordinary file is more intuitive with open or creat
character and block files are pretty interesting. most anons have used them before, whether they know it or not, but have you ever had occasion to manually create one?
relevant resources:
Comment too long. Click here to view the full text.