Please check the manual page mknod(2).