Re: Locate Vs Find

2004-11-22 Thread Jagadeesh Bhaskar P
On Mon, 2004-11-22 at 22:22, Ankit Jain wrote: > Which is more efficient? /if both perform the same > work and are not different then why shoudl we have 2 ? As far as I know, locate is based on a database storing locations of file. It doesnot search physically throughout the directory hierarchy. S

Locate Vs Find

2004-11-22 Thread Ankit Jain
Which is more efficient? /if both perform the same work and are not different then why shoudl we have 2 ? thanks ankit jain Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http

Re: Query regarding Copy-on-write

2004-11-22 Thread Manish Regmi
On Mon, 22 Nov 2004 06:48:00 -0500, Simon Valiquette <[EMAIL PROTECTED]> wrote: > Jagadeesh Bhaskar P a écrit : > > > >>and also made a minimalist OS for a MC68000 microcontroler > >>(only basic process support without even support for a filesystem). > > > > > > > > I too want to learn something li

Re: Query regarding Copy-on-write

2004-11-22 Thread Simon Valiquette
Jagadeesh Bhaskar P a écrit : and also made a minimalist OS for a MC68000 microcontroler (only basic process support without even support for a filesystem). I too want to learn something like a minimalist OS. Where to start digging? I'm not too sure. In my case, I started mixing assembly lan

Re: Query on SIGFPE handling

2004-11-22 Thread joy merwin monteiro
The basic mistake is that the variable values have not changed. 1/0 will generate a FPE no matter what you do. use variables like a=0;b=1; and if b/a generates an FPE, change its value.(bit hazy how to implement this... google around) the reason for giving you a signal handler is obviously to help

Re: translating web pages

2004-11-22 Thread Robin Doer
Ray Olszewski ([EMAIL PROTECTED]) schrieb: > Relative to your comments, James, I fear I can only echo your lack of > success. I recently was investigating, specifically, English-Spanish > translation. While I did find a couple of Linux apps that function at the > dictionary level ... translating wo

Re: Query on SIGFPE handling

2004-11-22 Thread Jagadeesh Bhaskar P
On Mon, 2004-11-22 at 14:49, Manish Regmi wrote: > see man kill, raise Thank you. I got that!! -- With regards, Jagadeesh Bhaskar P - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel

Re: Query on SIGFPE handling

2004-11-22 Thread Manish Regmi
On Mon, 22 Nov 2004 14:35:24 +0530, Jagadeesh Bhaskar P <[EMAIL PROTECTED]> wrote: > On Mon, 2004-11-22 at 14:27, Yogesh Bute wrote: > > hi, > > u need to inform the shell that the signal is handled - so u need to > > SIG_IGN the singal ie. signal (signum, SIG_IGN) once u have done with > > han

Re: Query on SIGFPE handling

2004-11-22 Thread Manish Regmi
> How can I generate and send a signal from a function of mine? Is it > possible from a userlevel C program, using some functions like > signal()?? > > Please do help > -- > With regards, > > Jagadeesh Bhaskar P > yes, see man kill, raise regards manish -- Manish Regmi - To unsubscribe from

Re: Forking in kernel

2004-11-22 Thread Manish Regmi
On Mon, 22 Nov 2004 14:30:46 +0530, Jagadeesh Bhaskar P <[EMAIL PROTECTED]> wrote: > > BTW: > > Linux Kernel is better discussed in kernelnewbies site. > > www.kernelnewbies.org > > I had seen this site. But didnt get which address to subscribe for and > which to post the queries. Can u help me o

Re: Query on SIGFPE handling

2004-11-22 Thread Jagadeesh Bhaskar P
On Mon, 2004-11-22 at 14:27, Yogesh Bute wrote: > hi, > u need to inform the shell that the signal is handled - so u need to > SIG_IGN the singal ie. signal (signum, SIG_IGN) once u have done with > handling the signal > or u could send SIG_DFL, so that default singal handler will handle th

Re: further query signal handling!

2004-11-22 Thread Manish Regmi
On Mon, 22 Nov 2004 14:27:40 +0530, Jagadeesh Bhaskar P <[EMAIL PROTECTED]> wrote: > > You are generating a divide by zero exception (on i386) which is a > > fault (it means the instruction is restartable). So what happens is > > you catch an exception and print and return. The same code is > > res

Re: Forking in kernel

2004-11-22 Thread Jagadeesh Bhaskar P
I read that the init process is the first actual process to run, and it spawns all other processes even including the shell. So I wanted to explore the same aspect, and study what happens in such a case, like, zombie process and all!! So is that possible to be done On Mon, 2004-11-22 at 13:48, Man

Re: Query on SIGFPE handling

2004-11-22 Thread Jagadeesh Bhaskar P
Hi Manish, As suggested, I rewrote the C program using sigaction, as follows: /** start of code **/ #include #include void fe(int x){ printf("floating pt exception:\n"); } int main(void){ struct sigaction p; p.sa_handler = fe; sigaction(SIGFPE, &