#include #include #include #include #include int main (int argc, char * argv[], char * envp[]) { char path[] = {0xE0, 0x9F, 0x80, 0x00}; mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH; int fd = open (path, O_WRONLY | O_EXCL | O_CREAT, mode); if (fd == -1) { perror ("open"); return 2; } else { printf("It worked! The file descriptor is %d.\n",fd); } return 0; }