libc

package module
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

libc - Porting libc from C to Go

Build Status Go Report Card GitHub release Coverage Status GoDoc

This is a subproject of the c2go project.

What's our plan?

Documentation

Index

Constants

View Source
const (
	BARE     int32 = 0
	LPRE     int32 = 1
	LLPRE    int32 = 2
	HPRE     int32 = 3
	HHPRE    int32 = 4
	BIGLPRE  int32 = 5
	ZTPRE    int32 = 6
	JPRE     int32 = 7
	STOP     int32 = 8
	PTR      int32 = 9
	INT      int32 = 10
	UINT     int32 = 11
	ULLONG   int32 = 12
	LONG     int32 = 13
	ULONG    int32 = 14
	SHORT    int32 = 15
	USHORT   int32 = 16
	CHAR     int32 = 17
	UCHAR    int32 = 18
	LLONG    int32 = 19
	SIZET    int32 = 20
	IMAX     int32 = 21
	UMAX     int32 = 22
	PDIFF    int32 = 23
	UIPTR    int32 = 24
	DBL      int32 = 25
	LDBL     int32 = 26
	NOARG    int32 = 27
	MAXSTATE int32 = 28
)

Variables

View Source
var Stderr *struct__IO_FILE = &__stderr_FILE
View Source
var Stdin *struct__IO_FILE = &__stdin_FILE
View Source
var Stdout *struct__IO_FILE = &__stdout_FILE

Functions

func Abort added in v0.3.0

func Abort()

func Calloc added in v0.3.1

func Calloc(size, n uint64) unsafe.Pointer

func Fprintf added in v0.2.0

func Fprintf(f *struct__IO_FILE, fmt *int8, __cgo_args ...interface {
}) int32

func Free added in v0.3.1

func Free(p unsafe.Pointer)

func Frexp added in v0.2.0

func Frexp(x float64, e *int32) float64

func Frexpl added in v0.2.0

func Frexpl(x float64, e *int32) float64

func Fwrite added in v0.2.0

func Fwrite(src unsafe.Pointer, size uint64, nmemb uint64, f *struct__IO_FILE) uint64

func Getenv added in v0.2.0

func Getenv(name *int8) *int8

func Isdigit added in v0.2.0

func Isdigit(c int32) int32

func Malloc added in v0.3.1

func Malloc(size uint64) unsafe.Pointer

func Memchr added in v0.2.0

func Memchr(src unsafe.Pointer, c int32, n uint64) unsafe.Pointer

func Memcmp added in v0.3.0

func Memcmp(vl unsafe.Pointer, vr unsafe.Pointer, n uint64) int32

func Memcpy added in v0.2.0

func Memcpy(dest unsafe.Pointer, src unsafe.Pointer, n uint64) unsafe.Pointer

func Memrchr added in v0.3.0

func Memrchr(m unsafe.Pointer, c int32, n uint64) unsafe.Pointer

func Memset added in v0.2.0

func Memset(dest unsafe.Pointer, c int32, n uint64) unsafe.Pointer

func Printf

func Printf(fmt *int8, __cgo_args ...interface {
}) int32

func Qsort added in v0.3.1

func Qsort(base unsafe.Pointer, nel uint64, width uint64, cmp func(unsafe.Pointer, unsafe.Pointer) int32)

func Snprintf added in v0.2.0

func Snprintf(s *int8, n uint64, fmt *int8, __cgo_args ...interface {
}) int32

func Sprintf added in v0.2.0

func Sprintf(s *int8, fmt *int8, __cgo_args ...interface {
}) int32

func Strcat added in v0.3.0

func Strcat(dest *int8, src *int8) *int8

func Strchr added in v0.3.0

func Strchr(s *int8, c int32) *int8

func Strcmp added in v0.2.0

func Strcmp(l *int8, r *int8) int32

func Strcpy added in v0.3.0

func Strcpy(dest *int8, src *int8) *int8

func Strcspn added in v0.3.0

func Strcspn(s *int8, c *int8) uint64

func Strerror added in v0.2.0

func Strerror(e int32) *int8

func Strlcat added in v0.3.0

func Strlcat(d *int8, s *int8, n uint64) uint64

func Strlcpy added in v0.3.0

func Strlcpy(d *int8, s *int8, n uint64) uint64

func Strlen added in v0.2.0

func Strlen(s *int8) uint64

func Strncat added in v0.3.0

func Strncat(d *int8, s *int8, n uint64) *int8

func Strncmp added in v0.2.0

func Strncmp(_l *int8, _r *int8, n uint64) int32

func Strncpy added in v0.3.0

func Strncpy(d *int8, s *int8, n uint64) *int8

func Strnlen added in v0.2.0

func Strnlen(s *int8, n uint64) uint64

func Strpbrk added in v0.3.0

func Strpbrk(s *int8, b *int8) *int8

func Strrchr added in v0.3.0

func Strrchr(s *int8, c int32) *int8

func Strspn added in v0.3.0

func Strspn(s *int8, c *int8) uint64

func Strtok added in v0.3.0

func Strtok(s *int8, sep *int8) *int8

func Vfprintf

func Vfprintf(f *struct__IO_FILE, fmt *int8, ap []interface {
}) int32

func Vsnprintf added in v0.2.0

func Vsnprintf(s *int8, n uint64, fmt *int8, ap []interface {
}) int32

func Vsprintf added in v0.2.0

func Vsprintf(s *int8, fmt *int8, ap []interface {
}) int32

func Write added in v0.3.0

func Write(fd int32, buf unsafe.Pointer, count uint64) int64

Types

type Blkcnt_t added in v0.3.0

type Blkcnt_t = int64

type Blksize_t added in v0.3.0

type Blksize_t = int64

type Clock_t added in v0.3.0

type Clock_t = int64

type Clockid_t added in v0.3.0

type Clockid_t = int32

type Dev_t added in v0.3.0

type Dev_t = uint64

type Double_t added in v0.3.0

type Double_t = float64

type FILE

type FILE = struct__IO_FILE

type Float_t added in v0.3.0

type Float_t = float32

type Gid_t added in v0.3.0

type Gid_t = uint32

type Ino_t added in v0.3.0

type Ino_t = uint64

type Int16_t added in v0.3.0

type Int16_t = int16

type Int32_t added in v0.3.0

type Int32_t = int32

type Int64_t added in v0.3.0

type Int64_t = int64

type Int8_t added in v0.3.0

type Int8_t = int8

type Intmax_t added in v0.3.0

type Intmax_t = int64

type Intptr_t added in v0.3.0

type Intptr_t = int64

type Locale_t added in v0.3.0

type Locale_t = *struct___locale_struct

type Max_align_t added in v0.3.0

type Max_align_t = _cgoa_32

type Mbstate_t added in v0.3.0

type Mbstate_t = struct___mbstate_t

type Mode_t added in v0.3.0

type Mode_t = uint32
type Nlink_t = uint32

type Off_t added in v0.3.0

type Off_t = int64

type Pid_t added in v0.3.0

type Pid_t = int32

type Pthread_attr_t added in v0.3.0

type Pthread_attr_t = _cgoa_5

type Pthread_barrier_t added in v0.3.0

type Pthread_barrier_t = _cgoa_13

type Pthread_barrierattr_t added in v0.3.0

type Pthread_barrierattr_t = _cgoa_3

type Pthread_cond_t added in v0.3.0

type Pthread_cond_t = _cgoa_9

type Pthread_condattr_t added in v0.3.0

type Pthread_condattr_t = _cgoa_2

type Pthread_key_t added in v0.3.0

type Pthread_key_t = uint32

type Pthread_mutex_t added in v0.3.0

type Pthread_mutex_t = _cgoa_7

type Pthread_mutexattr_t added in v0.3.0

type Pthread_mutexattr_t = _cgoa_1

type Pthread_once_t added in v0.3.0

type Pthread_once_t = int32

type Pthread_rwlock_t added in v0.3.0

type Pthread_rwlock_t = _cgoa_11

type Pthread_rwlockattr_t added in v0.3.0

type Pthread_rwlockattr_t = _cgoa_4

type Pthread_spinlock_t added in v0.3.0

type Pthread_spinlock_t = int32

type Pthread_t added in v0.3.0

type Pthread_t = *struct___pthread

type Ptrdiff_t added in v0.3.0

type Ptrdiff_t = int64

type Sigset_t added in v0.3.0

type Sigset_t = struct___sigset_t

type Size_t added in v0.3.0

type Size_t = uint64

type Ssize_t added in v0.3.0

type Ssize_t = int64

type Time_t added in v0.3.0

type Time_t = int64

type Timer_t added in v0.3.0

type Timer_t = unsafe.Pointer

type Uid_t added in v0.3.0

type Uid_t = uint32

type Uint16_t added in v0.3.0

type Uint16_t = uint16

type Uint32_t added in v0.3.0

type Uint32_t = uint32

type Uint64_t added in v0.3.0

type Uint64_t = uint64

type Uint8_t added in v0.3.0

type Uint8_t = uint8

type Uintmax_t added in v0.3.0

type Uintmax_t = uint64

type Uintptr_t added in v0.3.0

type Uintptr_t = uint64

type Useconds_t added in v0.3.0

type Useconds_t = uint32

type Va_list added in v0.3.0

type Va_list = []interface {
}

type Wchar_t added in v0.3.0

type Wchar_t = uint32

type Wctype_t added in v0.3.0

type Wctype_t = uint64

type Wint_t added in v0.3.0

type Wint_t = uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL