github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/include/plan9/libc.h (about)

     1  // Copyright 2012 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 "/sys/include/libc.h"
     6  #include "/sys/include/ctype.h"
     7  
     8  char*	getgoos(void);
     9  char*	getgoarch(void);
    10  char*	getgoroot(void);
    11  char*	getgoversion(void);
    12  char*	getgoarm(void);
    13  char*	getgo386(void);
    14  char*	getgoextlinkenabled(void);
    15  
    16  void	flagcount(char*, char*, int*);
    17  void	flagint32(char*, char*, int32*);
    18  void	flagint64(char*, char*, int64*);
    19  void	flagstr(char*, char*, char**);
    20  void	flagparse(int*, char***, void (*usage)(void));
    21  void	flagfn0(char*, char*, void(*fn)(void));
    22  void	flagfn1(char*, char*, void(*fn)(char*));
    23  void	flagfn2(char*, char*, void(*fn)(char*, char*));
    24  void	flagprint(int);
    25  
    26  // The libraries use size_t to avoid -Wconversion warnings from GCC
    27  // when calling standard library functions like memcpy.
    28  typedef unsigned long size_t;