#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>

int main(void)
{
    int fd;
    fd = open("/dev/pippo", O_RDWR, 0777);
    if (fd == -1)
    {
        perror("open");
        return -1;
    }
    
    ioctl(fd, 5555, NULL);
    
    close(fd);
    return 0;
}