No subject

Unknown Unknown
Mon Jan 15 16:24:08 PST 2007

e> <007301c736ac$5c99da10$1200a8c0 at> <45A838AA.9030008 at> <200701130306.l0D36JX8007342 at> <45A87472.3040108 at> <45A879FF.8060407 at> <200701130649.l0D6nE8j008759 at apollo.> <009301c73746$cdce3470$1200a8c0 at> <200701132000.l0DK0QsA020885 at ap> <00b101c738XXXXX>OXLXS(OFrom: Matthew Dillon <dillon at> <200701152301.l0FN1BR5039049 at>
From: "Simon 'corecode' Schubert" <corecode at>
Subject: Re: Request for swapcontext and getcontext to be ported to our libc
 [ revision 3 ]
Date: Tue, 16 Jan 2007 01:05:32 +0100
List-Post: <mailto:users at>
List-Subscribe: <mailto:users-request at>
List-Unsubscribe: <mailto:users-request at>
List-Help: <mailto:users-request at>
List-Owner: <mailto:owner-users at>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
In-Reply-To: <200701152301.l0FN1BR5039049 at>
Sender: users-errors at
Errors-To: users-errors at
Lines: 31
X-Trace: 1168907209 830
Xref: dragonfly.users:8622

users-errors at wrote:

^^^^ matt, your email seems mangled

>     There is one more issue, and that is an atomicy issue.  We want the
>     new signal mask to be set simultaniously with the restoration of the
>     context (or most of it).  This means that all signals must be masked
>     temporarily while restoring the context.  But don't worry about it,
>     I can handle that part as well.  It does mean an extra system call
>     but that isn't our concern at the moment.

so the sequence is something like

sigprocmask(SIG_BLOCK, ALL, &ocntx->uc_sigmask);
swap registers+stacks
sigprocmask(SIG_SETMASK, &ncntx->us_sigmask, NULL);

for swapcontext.

am i wrong or is setcontext essentially

swapcontext(&tmpcontext, newcntx); ?


Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low ��� NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |      Against  HTML   \
Dude 2c 2 the max   !       Mail + News   / \

More information about the Users mailing list