typedef struct fs_dir_entry_t {
char name[14]; /* 13-character name */
unsigned short id; /* Index of DCB or FCB */
} dir_entry_t;
typedef struct fs_dcb_t { /* Directory Control Block */
char...
Type: Posts; User: sbho
typedef struct fs_dir_entry_t {
char name[14]; /* 13-character name */
unsigned short id; /* Index of DCB or FCB */
} dir_entry_t;
typedef struct fs_dcb_t { /* Directory Control Block */
char...
Hi all.
I need urgent help. I have a deadline to meet and i am stuck on this stupid problem.
Basically i am implementing my own virtual file system. I need to store data on it, raw data, about...
Alright, thank you.
It seems i was trying without the escaping, and i was also trying just ff.c, thinking it should work since they're in the same forlder.
Hi guys.
Can you please tell me why this code prints garbage and loops forever.
#include <iostream>
#include <fstream>
using namespace std;
It's working now...i have no clue why.
But i have a question: If i pass a pointer as a parameter to a function, can i free that pointer inside the function?
Thanks.
Well i'm having a problem with the code. The 2nd program is not waiting for the first program to send the input.
pipe (p);
pid1 = fork();
if (pid1 == 0)
{
close (p[0]); // close the pipe...
But i can't. I need to use the ones specified in the assignment requirements.
I think i'm gonna leave aside for a while. But back to the original topic, if i want to build: "ls | wc"
Is it just a...
It is 2.3.3. I'm using Fedora core 3.
You have unlink() as a system call.
Here's my handler:
void handle_INT ()
{
printf ("An interrupt has occured...\n");
printf ("\n\n\n\n\n\n\n\n\n");
longjmp (jmp, 1);
}
ok, a couple of things:
- I want to reuse the old...
Crap!
I'm sorry guys, but i'm assigning the returned value of signal to an integer. I had not noticed that.
But i should assign it to a sighandler_t type right?
I do this: sighandler_t sig;
where...
It's simple. My code is similar to that one.
I can't show it since it's huge, but it's the same thing.
My handler is this:
void handle_INT ()
{
printf ("An interrupt has occured...\n");...
gcc 3.4.2
But then i get this:
warning: assignment makes integer from pointer without a cast
My handler returns void and takes an int parameter.
Dunno!
I am using sighandler_t, but i'm getting: undeclared (first use in this function).
Isn't that type supposed to be in signal.h?
WTF is goin' on??
Well i changed it to void, but i still get:
warning: assignment makes integer from pointer without a cast.
I'm confused. iI'm totally new to this signals thing and it's driving me nutts.
This is from the tutorial:
#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
char *prog; /* program name -- always in argv[0] */
char temp_filename[20]; ...
Oh and just one thing.
I am working with signals, so i've defined my own signal handler, but can't type cast it to SignalHandler in the signal method (second parameter). I have included signal.h...
ok, i did a little reasearch and came up with a solution.
- For redirecting the input of a process to a file, such as: ls < text.txt
I do dup (fd[0], 0). And then i run ls in child 1 and fork a new...
Hi all.
This is my first post here, and i need urgent help with a programming assignment.
I am working on an assignment which requires me to build a simple shell. My shell must handle simple...