public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: sigproc: drop __stdcall
Date: Fri, 28 Aug 2020 13:23:54 +0000 (GMT)	[thread overview]
Message-ID: <20200828132354.77CD03861002@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=558fa888e50e21b8bcc86c01f2a1b2e8691807df

commit 558fa888e50e21b8bcc86c01f2a1b2e8691807df
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Aug 27 21:56:43 2020 +0200

    Cygwin: sigproc: drop __stdcall
    
    Nothing to gain here
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/sigproc.cc | 20 ++++++++++----------
 winsup/cygwin/sigproc.h  |  8 ++++----
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 86c0aa11b..7679f76f4 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -63,8 +63,8 @@ HANDLE NO_COPY my_pendingsigs_evt;
 /* Function declarations */
 static int __reg1 checkstate (waitq *);
 static __inline__ bool get_proc_lock (DWORD, DWORD);
-static int __stdcall remove_proc (int);
-static bool __stdcall stopped_or_terminated (waitq *, _pinfo *);
+static int remove_proc (int);
+static bool stopped_or_terminated (waitq *, _pinfo *);
 static void WINAPI wait_sig (VOID *arg);
 
 /* wait_sig bookkeeping */
@@ -87,7 +87,7 @@ public:
 Static pending_signals sigq;
 
 /* Functions */
-void __stdcall
+void
 sigalloc ()
 {
   cygheap->sigs = global_sigs =
@@ -95,7 +95,7 @@ sigalloc ()
   global_sigs[SIGSTOP].sa_flags = SA_RESTART | SA_NODEFER;
 }
 
-void __stdcall
+void
 signal_fixup_after_exec ()
 {
   global_sigs = cygheap->sigs;
@@ -137,7 +137,7 @@ get_proc_lock (DWORD what, DWORD val)
   return false;
 }
 
-static bool __stdcall
+static bool
 proc_can_be_signalled (_pinfo *p)
 {
   if (!(p->exitcode & EXITCODE_SET))
@@ -160,7 +160,7 @@ pid_exists (pid_t pid)
 }
 
 /* Return true if this is one of our children, false otherwise.  */
-static inline bool __stdcall
+static inline bool
 mychild (int pid)
 {
   for (int i = 0; i < nprocs; i++)
@@ -357,7 +357,7 @@ _cygtls::remove_wq (DWORD wait)
    Also called by spawn_guts to disassociate any subprocesses from this
    process.  Subprocesses will then know to clean up after themselves and
    will not become procs.  */
-void __stdcall
+void
 proc_terminate ()
 {
   sigproc_printf ("nprocs %d", nprocs);
@@ -444,7 +444,7 @@ sig_dispatch_pending (bool fast)
 
 /* Signal thread initialization.  Called from dll_crt0_1.
    This routine starts the signal handling thread.  */
-void __stdcall
+void
 sigproc_init ()
 {
   char char_sa_buf[1024];
@@ -1153,7 +1153,7 @@ out:
 
 /* Remove a proc from procs by swapping it with the last child in the list.
    Also releases shared memory of exited processes.  */
-static int __stdcall
+static int
 remove_proc (int ci)
 {
   if (have_execed)
@@ -1188,7 +1188,7 @@ remove_proc (int ci)
    child is the subprocess being considered.
 
    Returns non-zero if waiting thread released.  */
-static bool __stdcall
+static bool
 stopped_or_terminated (waitq *parent_w, _pinfo *child)
 {
   int might_match;
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index f6702f4a3..3d4e766a2 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -68,13 +68,13 @@ int __stdcall handle_sigsuspend (sigset_t);
 int __reg2 proc_subproc (DWORD, uintptr_t);
 
 class _pinfo;
-void __stdcall proc_terminate ();
-void __stdcall sigproc_init ();
+void proc_terminate ();
+void sigproc_init ();
 bool __reg1 pid_exists (pid_t);
 sigset_t __reg3 sig_send (_pinfo *, siginfo_t&, class _cygtls * = NULL);
 sigset_t __reg3 sig_send (_pinfo *, int, class _cygtls * = NULL);
-void __stdcall signal_fixup_after_exec ();
-void __stdcall sigalloc ();
+void signal_fixup_after_exec ();
+void sigalloc ();
 
 int kill_pgrp (pid_t, siginfo_t&);
 void __reg1 exit_thread (DWORD) __attribute__ ((noreturn));


                 reply	other threads:[~2020-08-28 13:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200828132354.77CD03861002@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).