| Thread Tools | Search this thread |
|---|
porthos3
| July 7, 2009 3:13 PM PDT error: identifier "S_ISUID" is undefined | ||||
I am attempting to port a benchmark from linux to windows. I am using the Intel C++ Compiler,
and I have C99 support enabled. When I try to build the project, I get the following errors: .\decoder.c(192): error: identifier "S_ISUID" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.\decoder.c(192): error: identifier "S_ISGID" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.\decoder.c(192): error: identifier "S_IXGRP" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.\decoder.c(192): error: identifier "S_IXUSR" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
.\decoder.c(192): error: identifier "S_IXOTH" is undefined
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH));
^
The portion of code that appears to be causing the errors is this:
Reassemble(void * args) {
int chunkcount = 0;
int fd = -1;
struct chunk_list * list_head, * p;
list_head = NULL;
if (args != NULL) {
fd = open((char *)args, O_CREAT|O_WRONLY|O_TRUNC);
if (fd < 0)
perror("Reassemble open");
fchmod(fd, ~(S_ISUID | S_ISGID |S_IXGRP | S_IXUSR | S_IXOTH)); //Error points to this line.
}
//The rest of the function...
}
| |||||
|
|||||||||||||
|
|||||||||||||
| 8445 users have contributed to 31553 threads and 100398 posts to date. |
|---|
| In the past 24 hours, we have 10 new thread(s) 30 new posts(s), and 43 new user(s). In the past 3 days, the most popular thread for everyone has been Lost in MKL The most posts were made to TBB on linux segfaulting The post with the most views is Hi,if you were using imsl yo Please welcome our newest member nonamez |