Description:
Q&A for people programming under Unix.
|
|
|
sem_getvalue() incorrect
|
| |
Im trying to demonstrate a simple semaphore with the following code on fedora core 11: int main() { ... char name[] = "semname"; int initial_count = 0; sem_t *sem = sem_open(name, O_CREAT | O_EXCL, initial_count); if (sem == SEM_FAILED) { perror("sem_open"); _exit(1); }... more »
|
|
@@@@@@ Cheap wholesale Converse shoes at www.fjrjtrade.com <Paypal Payment>
|
| |
@@@@@@ Cheap wholesale Converse shoes at [link] <Paypal Payment> Welcome to visit [link] cheap wholesale brand shoes [link] cheap wholesale shoes [link] cheap wholesale shoes [link] Men size 40,41,42,43,44,45,46. Women size 36,37,38,39,40. High quality wholesale Air Force One shoes, Nike Jordan, Nike,Air Max,... more »
|
|
Outputting to DRAM instead of a file while using gzip/gunzip
|
| |
I am a Linux user. I wish to generate the gzip or gunzip result of a file into the DRAM space instead of a file, because I want it to run even in a directory that I have no write permission, and I don't want to change the file even if I have write permission. Although it's doable to achieve this goal by writing C code while... more »
|
|
Defining variable between function argument list and {}
|
| |
Variables of a C function is usually defined inside the {} of the function. But I also see some variables being defined between the function argument list and {}, such like below. int unzip(in, out) int in, out; /* input and output file descriptors */ { ... ...What's the purpose of defining the variables here? Thanks.... more »
|
|
OF in C function prototype declaration
|
| |
I see some prototype declaration of C functions like below, which has OF in front of the brackets: /* in deflate.c */ void lm_init OF((int pack_level, ush *flags)); ulg deflate OF((void)); What does the OF mean here? Thanks.
|
|
catopen() behavior on solaris-opetron and solaris-sparc
|
| |
Hello, catopen() function behaves in different ways on solaris-sparc and solaris-opteron O/S platforms. If NLSPATH is exported pointing to NLSPATH=/home/expert/msg/%N and test.cat file is in /home/expert/msg/ folder in that case if we call : rc = catopen("test", 0) then on solaris-sparc it returns -1 whereas on solaris-opteron... more »
|
|
|