Search Results

Search: Posts Made By: joey
Forum: Programming 12-21-2008
3,564
Posted By joey
segmentation fault
If I do this.
Assume


struct life
{
char *nolife;
}

struct life **life;
// malloc initialization & everything

if(life->nolife[index] == 0)

Would I get error at...
Forum: Programming 12-20-2008
10,401
Posted By joey
what if i use semget semop and not use...
what if i use semget semop and not use pthread_mutex_lock..
shall it work?
Forum: Programming 12-20-2008
2,720
Posted By joey
locking mutexes, threads & semahores
What is the difference between mutex_lock and pthread_mutex_lock ? Should I use both when using binary semaphores.

Also, what is the difference between using a binary semaphore and a counting...
Forum: Programming 12-16-2008
10,401
Posted By joey
producer-consumer problem
The intention of the program. Create N threads with 2 shared memories.
One shared memory to write, one shared memory to recieve.
Consumer creates 2 shared memory to share with producer.
I need H...
Forum: Programming 12-12-2008
2,196
Posted By joey
Error with Pthread
problem solved


edited, sorry
Forum: Programming 11-18-2008
2,588
Posted By joey
k thx
k thx
Forum: Programming 11-18-2008
2,588
Posted By joey
C: FILE Structure !, FILE structure in C...
C: FILE Structure !, FILE structure in C (http://en.allexperts.com/q/C-1587/2008/5/FILE-Structure.htm)


typedef struct {
int level; /* fill/empty level of buffer */
...
Forum: Programming 11-18-2008
2,588
Posted By joey
little program error.
I am trying to work this little program, its not working..

int main()

{
FILE *fp;
char *args[40];
pid_t child, exited_pid;
int...
Forum: Programming 11-18-2008
5
2,788
Posted By joey
I sent you my whole program as a message, I...
I sent you my whole program as a message, I prefer not to post here my complete program.

Afraid some people from my class find my code..
Forum: Programming 11-18-2008
5
2,788
Posted By joey
I have tried dup by itself in a little program...
I have tried dup by itself in a little program its working. But when am using it in my original program its hanging...

// included everything needed. sys/types.h fcntl.h ...
int in, out, out1;
...
Forum: Programming 11-17-2008
5
2,788
Posted By joey
dup()
when i want to replace standard output with output file

int out;

out = open("out", O_WRONLY)p;
dup2(out,1);


What Shall I do in case of appending??? I am using here O_WRONLY TO WRITE.BUT...
Forum: Programming 11-17-2008
4,584
Posted By joey
thanks alot man..appreciated. I forgo...
thanks alot man..appreciated.



I forgo to put the second question..

ctrl c is for SIGINT
Anyone knows whats ctrl d ??
Forum: Programming 11-17-2008
4,584
Posted By joey
.........
.........
Forum: Programming 11-17-2008
4,584
Posted By joey
The code is being wrriten in c.
The code is being wrriten in c.
Forum: Programming 11-17-2008
4,584
Posted By joey
two questions
hey all, I have question when am writing simple shell...


in the child am calling execvp, i want the parent to know when execvp returns - 1. how can i let the parent know the result of execvp
...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy