From owner-cvs-sys Tue Jun 27 19:14:27 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA14086 for cvs-sys-outgoing; Tue, 27 Jun 1995 19:14:27 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA14075 ; Tue, 27 Jun 1995 19:14:16 -0700 Date: Tue, 27 Jun 1995 19:14:16 -0700 From: Bruce Evans Message-Id: <199506280214.TAA14075@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/i386/include signal.h Sender: cvs-sys-owner@freebsd.org Precedence: bulk bde 95/06/27 19:14:15 Modified: include signal.h sys/sys signal.h sys/i386/include signal.h Log: Fix standards conformance bugs in : include/signal.h: There was massive namespace pollution from including . POSIX functions were declared even when _ANSI_SOURCE is defined. sys.sys/signal.h: NSIG was declared even if _ANSI_SOURCE or _POSIX_SOURCE is defined. sig_atomic_t wasn't declared if _POSIX_SOURCE is defined. Declare a typedef for signal handling functions and use it to unobfuscate declarations and to avoid half-baked function types that cause unwanted compiler warnings at certain warning levels. Fix confusing comment about SA_RESTART. sys/i386/include/signal.h: This has to be included to get the declaration of sig_atomic_t even when _ANSI_SOURCE is defined, so be more careful about polluting the ANSI namespace. Uniformize idempotency ifdefs.