Need information about data and bss segment address access in cygwin

2006-01-20 Thread Sudhahar
Hi, I'm trying to understand how Cygwin implement fork in windows. When I browse through the fork code I found Cygwin copies the data segment,bss segment etc as rc = fork_copy (pi, "user/cygwin data", user_data->data_start, user_data->data_end, user_data->bss_start, user_data

Re: Need information about data and bss segment address access in cygwin

2006-01-20 Thread Sudhahar
, Dave Korn <[EMAIL PROTECTED]> wrote: > Sudhahar wrote: > > > from parent process to child process. After trying to find where the > > data_start and data_end get the address of running process data and > > bss segment, I ended up with a declaration of > > > &

Re: Need information about data and bss segment address access in cygwin

2006-01-23 Thread Sudhahar
d->p.bss_start, d->p.bss_end, NULL)) goto cleanup; } And also please let me know if there exist any document which gives some idea about this. Thanks Sudha On 1/20/06, Dave Korn &l

Re: Need information about data and bss segment address access in cygwin

2006-01-23 Thread Sudhahar
: cygwin at cygwin dot com * Date: Mon, 23 Jan 2006 22:35:20 -0800 * Subject: Re: Need information about data and bss segment address access in cygwin * References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> * Reply-to: cygwin at cygwin dot com Sudhaha

Cygwin fork implementation

2006-02-06 Thread Sudhahar
Hi, In Cygwin fork code the statement int res = setjmp (grouped.ch.jmp); if (res) res = fork_child (grouped.ch.parent, grouped.first_dll, grouped.load_dlls); else res = fork_parent (grouped.ch.parent, grouped.first_dll, grouped.load_dlls, esp, grouped.ch); avoids the fork being cal