Merge pull request #1016 from luoliwoshang/ctype
c:some type & stat's pub
This commit is contained in:
11
c/c.go
11
c/c.go
@@ -56,6 +56,7 @@ type integer interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SizeT = uintptr
|
type SizeT = uintptr
|
||||||
|
type SsizeT = Long
|
||||||
|
|
||||||
type IntptrT = uintptr
|
type IntptrT = uintptr
|
||||||
type UintptrT = uintptr
|
type UintptrT = uintptr
|
||||||
@@ -72,6 +73,8 @@ type Uint64T = uint64
|
|||||||
type IntmaxT = LongLong
|
type IntmaxT = LongLong
|
||||||
type UintmaxT = UlongLong
|
type UintmaxT = UlongLong
|
||||||
|
|
||||||
|
type VaList = Pointer
|
||||||
|
|
||||||
//go:linkname Str llgo.cstr
|
//go:linkname Str llgo.cstr
|
||||||
func Str(string) *Char
|
func Str(string) *Char
|
||||||
|
|
||||||
@@ -257,6 +260,14 @@ func Perror(s *Char)
|
|||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
type IconvT = Pointer
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
type LocaleT = Pointer
|
||||||
|
|
||||||
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
//go:linkname Usleep C.usleep
|
//go:linkname Usleep C.usleep
|
||||||
func Usleep(useconds Uint) Int
|
func Usleep(useconds Uint) Int
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
FILE
|
FILE
|
||||||
size_t SizeT
|
size_t SizeT
|
||||||
|
ssize_t SsizeT
|
||||||
intptr_t IntptrT
|
intptr_t IntptrT
|
||||||
uintptr_t UintptrT
|
uintptr_t UintptrT
|
||||||
int8_t Int8T
|
int8_t Int8T
|
||||||
@@ -12,4 +13,7 @@ uint32_t Uint32T
|
|||||||
uint64_t Uint64T
|
uint64_t Uint64T
|
||||||
intmax_t IntmaxT
|
intmax_t IntmaxT
|
||||||
uintmax_t UintmaxT
|
uintmax_t UintmaxT
|
||||||
|
va_list VaList
|
||||||
|
iconv_t IconvT
|
||||||
|
locale_t LocaleT
|
||||||
option Option
|
option Option
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ uid_t UidT
|
|||||||
gid_t GidT
|
gid_t GidT
|
||||||
off_t OffT
|
off_t OffT
|
||||||
dev_t DevT
|
dev_t DevT
|
||||||
Stat_t StatT
|
stat StatT
|
||||||
pid_t PidT
|
pid_t PidT
|
||||||
|
|||||||
Reference in New Issue
Block a user