Search:

Type: Posts; User: aydinh

Search: Search took 0.01 seconds.

  1. Thread: Pthreads help

    by aydinh
    Replies
    5
    Views
    1,315

    OK I got it working now, thanks

    OK I got it working now, thanks
  2. Thread: Pthreads help

    by aydinh
    Replies
    5
    Views
    1,315

    I don't understand what you mean, can you...

    I don't understand what you mean, can you elaborate please?
  3. Thread: Pthreads help

    by aydinh
    Replies
    5
    Views
    1,315

    The malloc is before the accept loop, it is...

    The malloc is before the accept loop, it is there:


    params = (struct funcparams *) malloc(sizeof(struct funcparams));

    The struct is:


    struct funcparams {
    int sd;
  4. Thread: Pthreads help

    by aydinh
    Replies
    5
    Views
    1,315

    Pthreads help

    Hi I have built a simple web server in C, and I now have to make it multi threaded. I also have to produce a multi threaded command line client to test the multi-threaded capability of the server. I...
  5. Replies
    5
    Views
    3,114

    Yeah I think I will do that now. I've just got my...

    Yeah I think I will do that now. I've just got my order messed up. I used stat on the full string before this function is called, but obviously like you said I need to do it for each token
  6. Replies
    5
    Views
    3,114

    Forgot to copy the chdir bit. Erm well if I pass...

    Forgot to copy the chdir bit. Erm well if I pass the function folder/folder1/folder2 It creates those folders just like that, one inside another. Just need a way to test if there is ../ and chdir...
  7. Replies
    5
    Views
    3,114

    Creating Directory structure

    Hi I am using the following code to tokenise a string which contains a relative directory and then create the directory structure. Works fine for stuff like folder/folder1/folder2, but doesn't work...
  8. Replies
    3
    Views
    1,446

    Cheers. Never even thought about that, been...

    Cheers. Never even thought about that, been racking my brain for ages.
  9. Replies
    3
    Views
    1,446

    Force relative paths

    Hi in my program there is an option to enter a directory as a command line argument. Is there any check I can perform to see whether this directory is relative to the current working directory?
    ...
Results 1 to 9 of 9