github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/signal.c (about)

     1  // Copyright 2014 The Go Authors.  All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  #include "runtime.h"
     6  
     7  void
     8  runtime·sigenable_m(void)
     9  {
    10  	uint32 s;
    11  	
    12  	s = g->m->scalararg[0];
    13  	g->m->scalararg[0] = 0;
    14  	runtime·sigenable(s);
    15  }
    16  
    17  void
    18  runtime·sigdisable_m(void)
    19  {
    20  	uint32 s;
    21  	
    22  	s = g->m->scalararg[0];
    23  	g->m->scalararg[0] = 0;
    24  	runtime·sigdisable(s);
    25  }