Text file src/runtime/cgo/gcc_clearenv.c

     1  // Copyright 2025 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  //go:build linux
     6  
     7  #include "libcgo.h"
     8  
     9  #include <stdlib.h>
    10  
    11  /* Stub for calling clearenv */
    12  void
    13  x_cgo_clearenv(void **_unused)
    14  {
    15  	_cgo_tsan_acquire();
    16  	clearenv();
    17  	_cgo_tsan_release();
    18  }
    19  

View as plain text