Search:

Type: Posts; User: codevyper

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    39,681

    Thanks Salem, I try to do all the research...

    Thanks Salem,

    I try to do all the research before I post, but that line you quoted is towards the bottom of the page and I somehow missed it. Anyway, I have the code working now. For anyone else...
  2. Replies
    5
    Views
    39,681

    Okay, so as time permits I've been trying to get...

    Okay, so as time permits I've been trying to get this going and I'm still kind of confused. Below is the parent portion of the forking code. The issue I'm having is that no matter what I do, when I...
  3. Replies
    5
    Views
    39,681

    waitpid() non-blocking fork

    I have a process that forks a child process that then runs a few syscalls. There is the possibility that the syscalls the child runs could cause it to block while it processes the calls, but I don't...
  4. Replies
    1
    Views
    2,017

    Aaaargh!! As soon as I posted this I found my...

    Aaaargh!! As soon as I posted this I found my problem. I was using fs_tab -> fs_type when I should have been using fs_tab -> fs_vfstype. It works as expected now. My eyes are crossed from looking at...
  5. Replies
    1
    Views
    2,017

    fstab.h weirdness

    I'm trying to write a block of C code that parses the /etc/fstab file and gives me back the information for each mount. I'm really only interested in three bits of data per mount, the mount point,...
  6. Replies
    4
    Views
    1,271

    Filtering out comments.

    I have a block of code that reads a file line by line looking for a specific character combination contained within the line. It works fine.


    while (fgets(line, sizeof(line), file ) != NULL) {
    ...
  7. Replies
    5
    Views
    1,367

    Thanks guys. That was the trick. No more compile...

    Thanks guys. That was the trick. No more compile error. I may be a noob, but I'm still trying to learn how to write clean code that compiles with no errors. :)
  8. Replies
    5
    Views
    1,367

    Compilation warning question

    Here's yet another noob question because... well.. I'm a noob at C programming.
    I have the following code:


    #include <stdio.h>
    #include <errno.h>
    #include <string.h>
    #include <stdlib.h>
    ...
Results 1 to 8 of 8