Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-01-11 23:07:11 +0400
committerChristopher Faylor <me@cgf.cx>2012-01-11 23:07:11 +0400
commit0e1f0840d2def205a7e2089872038930643d48f7 (patch)
tree64df2c610ceccf24f646408496023aeed8ab15fa /winsup/cygwin/sigproc.h
parent5ecc040cff80eb26ef4977ce6dfe7f429778b584 (diff)
Update copyright on all files checked in so far this year.
* fhandler.h: Use #pragma once rather than ifdef guards. (fhandler_console::tc_getpgid): Return our pgid if we have never opened a console. * fork.cc: Rearrange includes to accommodate fhandler.h use of pinfo.h. * sigproc.cc: Ditto. * spawn.cc: Ditto. (child_info_spawn::worker): Query myself->pgid rather than calling expensive function. * thread.h: Use #pragma once rather than ifdef guards. * pinfo.h: Use #pragma once rather than ifdef guards. (pinfo::remember): Don't define if sigproc.h has not been included. (pinfo::reattach): Ditto. * sigproc.h: Use #pragma once rather than ifdef guards. Use different test to see if pinfo.h has been included.
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r--winsup/cygwin/sigproc.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index a9678376e..2900da4cc 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -1,7 +1,7 @@
/* sigproc.h
Copyright 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2011 Red Hat, Inc.
+ 2011, 2012 Red Hat, Inc.
This file is part of Cygwin.
@@ -9,8 +9,7 @@ This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
-#ifndef _SIGPROC_H
-#define _SIGPROC_H
+#pragma once
#include <signal.h>
#ifdef NSIG
@@ -62,7 +61,7 @@ extern HANDLE signal_arrived;
extern HANDLE sigCONT;
void __stdcall sig_dispatch_pending (bool fast = false);
-#ifdef _PINFO_H
+#ifdef EXITCODE_SET
extern "C" void __stdcall set_signal_mask (sigset_t newmask, sigset_t&);
#endif
int __stdcall handle_sigprocmask (int sig, const sigset_t *set,
@@ -123,4 +122,3 @@ extern char myself_nowait_dummy[];
extern struct sigaction *global_sigs;
#define myself_nowait ((_pinfo *) myself_nowait_dummy)
-#endif /*_SIGPROC_H*/