mknod

Linux special file

I am trying to create the file mysql.sock as with the following permissions srwxrwxrwx 1 mysql mysql 0 2009-10-07 09:55 mysqld.sock I know this is done with mknod, but I am not sure of the parameters. I don't want the C programming documentation, just a command for the bash shell ...

Is there an OS X equivalent of FreeBSD's make_dev() function?

I'm trying to port some code from FreeBSD to OS X. The code is fairly low-level and it creates a number of special device files using make_dev() and controls functionality using functions like ioctl(). Ideally I'd like to keep my code as close to the original as possible so I can more easily merge upstream changes in the future: my q...

mknod(2) requires superuser on FreeBSD what to use instead?

I am porting from Linux to FreeBSD and have run into ::mknod() failing with errno: [EINVAL] Creating anything else than a block or character spe- cial file (or a whiteout) is not supported. But I also see it states earlier on the man page: The mknod() system call requires super-user privileges. So what...