| 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...
}
| |||||
|
|||||||||||||
|
|||||||||||||
| 8286 users have contributed to 31231 threads and 99107 posts to date. |
|---|
| In the past 24 hours, we have 7 new thread(s) 31 new posts(s), and 43 new user(s). In the past 3 days, the most popular thread for everyone has been comparison cilk++, openmp, pthreads first results The most posts were made to comparison cilk++, openmp, pthreads first results The post with the most views is Very amusing... Escalated as Please welcome our newest member titanius.anglesmith |