From owner-freebsd-questions Thu Jan 13 5:37:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 57FCA1559B for ; Thu, 13 Jan 2000 05:37:09 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat41.x-treme.gr [212.120.197.233]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id PAA23422; Thu, 13 Jan 2000 15:37:03 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id MAA01686; Thu, 13 Jan 2000 12:29:39 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Thu, 13 Jan 2000 12:29:39 +0200 From: Giorgos Keramidas To: Laurence Berland Cc: freebsd-questions@freebsd.org Subject: Re: Giving a sighandler more information Message-ID: <20000113122939.B1605@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <200001122054.VAA52051@dorifer.heim3.tu-clausthal.de> <387D2B6C.4E2E42C1@confusion.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <387D2B6C.4E2E42C1@confusion.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jan 12, 2000 at 08:33:32PM -0500, Laurence Berland wrote: > > Followup question: is a sig_atomic_t appropriate to hold the value of > a FILE * ? You can always check on your machine with sizeof(). But I think that in most machines this is true. I used the following sample program to check on my box and it shows that (FILE *) and sig_atomic_t have exactly the same size. % cat hello.c #include #include int main (void) { printf("%d %d\n", sizeof(FILE *), sizeof(sig_atomic_t)); return 0; } % cc hello.c % ./a.out 4 4 Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message