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...
Type: Posts; User: codevyper
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...
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...
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...
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...
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,...
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) {
...
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. :)
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>
...