-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Consider the following simple program:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
int fd[2];
int main(){
struct stat statbuf;
pipe(fd);
int status = fstat(fd[0], &statbuf);
printf("status: %d\n", status);
return status;
}If I compile it with gcc and run it, it will print status: 0. If I compile it with emcc and run it with node, it will print status: -1.
Metadata
Metadata
Assignees
Labels
No labels