示例#1
0
文件: os_solaris.c 项目: go-lang/go
void
runtime·exit(int32 r)
{
	runtime·sysvicall6(libc·exit, 1, (uintptr)r);
}
示例#2
0
int32
runtime·fcntl(int32 fd, int32 cmd, uintptr arg)
{
	return runtime·sysvicall6(libc·fcntl, 3,
	    (uintptr)fd, (uintptr)cmd, (uintptr)arg);
}
示例#3
0
int32
runtime·port_associate(int32 port, int32 source, uintptr object, int32 events, uintptr user)
{
	return runtime·sysvicall6(libc·port_associate,
	    5, (uintptr)port, (uintptr)source, object, (uintptr)events, user);
}
示例#4
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·write(int32 fd, void* buf, int32 nbyte)
{
	return runtime·sysvicall6(libc·write, 3, (uintptr)fd, (uintptr)buf, (uintptr)nbyte);
}
示例#5
0
int32
runtime·port_dissociate(int32 port, int32 source, uintptr object)
{
	return runtime·sysvicall6(libc·port_dissociate,
	    3, (uintptr)port, (uintptr)source, object);
}
示例#6
0
文件: os_solaris.c 项目: go-lang/go
/* int32 */ void
runtime·sigaltstack(Sigaltstack* ss, Sigaltstack* oss)
{
	runtime·sysvicall6(libc·sigaltstack, 2, (uintptr)ss, (uintptr)oss);
}
示例#7
0
文件: os_solaris.c 项目: go-lang/go
int64
runtime·sysconf(int32 name)
{
	return runtime·sysvicall6(libc·sysconf, 1, (uintptr)name);
}
示例#8
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·pthread_attr_destroy(PthreadAttr* attr)
{
	return runtime·sysvicall6(libc·pthread_attr_destroy, 1, (uintptr)attr);
}
示例#9
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·pthread_attr_init(PthreadAttr* attr)
{
	return runtime·sysvicall6(libc·pthread_attr_init, 1, (uintptr)attr);
}
示例#10
0
文件: os_solaris.c 项目: go-lang/go
int64
runtime·nanotime(void)
{
	return runtime·sysvicall6((uintptr)runtime·nanotime1, 0);
}
示例#11
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·open(int8* path, int32 oflag, int32 mode)
{
	return runtime·sysvicall6(libc·open, 3, (uintptr)path, (uintptr)oflag, (uintptr)mode);
}
示例#12
0
文件: os_solaris.c 项目: go-lang/go
void
runtime·munmap(byte* addr, uintptr len)
{
	runtime·sysvicall6(libc·munmap, 2, (uintptr)addr, (uintptr)len);
}
示例#13
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·getrlimit(int32 res, Rlimit* rlp)
{
	return runtime·sysvicall6(libc·getrlimit, 2, (uintptr)res, (uintptr)rlp);
}
示例#14
0
文件: os_solaris.c 项目: go-lang/go
/* int32 */ void
runtime·getcontext(Ucontext* context)
{
	runtime·sysvicall6(libc·getcontext, 1, (uintptr)context);
}
示例#15
0
文件: os_solaris.c 项目: go-lang/go
/* int32 */ void
runtime·setitimer(int32 which, Itimerval* value, Itimerval* ovalue)
{
	runtime·sysvicall6(libc·setitimer, 3, (uintptr)which, (uintptr)value, (uintptr)ovalue);
}
示例#16
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·pthread_attr_setdetachstate(PthreadAttr* attr, int32 state)
{
	return runtime·sysvicall6(libc·pthread_attr_setdetachstate, 2, (uintptr)attr, (uintptr)state);
}
示例#17
0
文件: os_solaris.c 项目: go-lang/go
/* int32 */ void
runtime·sigaction(int32 sig, struct Sigaction* act, struct Sigaction* oact)
{
	runtime·sysvicall6(libc·sigaction, 3, (uintptr)sig, (uintptr)act, (uintptr)oact);
}
示例#18
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·pthread_attr_setstack(PthreadAttr* attr, void* addr, uint64 size)
{
	return runtime·sysvicall6(libc·pthread_attr_setstack, 3, (uintptr)attr, (uintptr)addr, (uintptr)size);
}
示例#19
0
文件: os_solaris.c 项目: go-lang/go
/* int32 */ void
runtime·sigprocmask(int32 how, Sigset* set, Sigset* oset)
{
	runtime·sysvicall6(libc·sigprocmask, 3, (uintptr)how, (uintptr)set, (uintptr)oset);
}
示例#20
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·pthread_create(Pthread* thread, PthreadAttr* attr, void(*fn)(void), void *arg)
{
	return runtime·sysvicall6(libc·pthread_create, 4, (uintptr)thread, (uintptr)attr, (uintptr)fn, (uintptr)arg);
}
示例#21
0
文件: os_solaris.c 项目: go-lang/go
void
runtime·usleep(uint32 us)
{
	runtime·sysvicall6(libc·usleep, 1, (uintptr)us);
}
示例#22
0
文件: os_solaris.c 项目: go-lang/go
/* int32 */ void
runtime·raise(int32 sig)
{
	runtime·sysvicall6(libc·raise, 1, (uintptr)sig);
}
示例#23
0
文件: os_solaris.c 项目: go-lang/go
void
runtime·osyield(void)
{
	runtime·sysvicall6(libc·sched_yield, 0);
}
示例#24
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·sem_init(SemT* sem, int32 pshared, uint32 value)
{
	return runtime·sysvicall6(libc·sem_init, 3, (uintptr)sem, (uintptr)pshared, (uintptr)value);
}
示例#25
0
int32
runtime·port_getn(int32 port, PortEvent *evs, uint32 max, uint32 *nget, Timespec *timeout)
{
	return runtime·sysvicall6(libc·port_getn, 5, (uintptr)port,
	    (uintptr)evs, (uintptr)max, (uintptr)nget, (uintptr)timeout);
}
示例#26
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·sem_reltimedwait_np(SemT* sem, Timespec* timeout)
{
	return runtime·sysvicall6(libc·sem_reltimedwait_np, 2, (uintptr)sem, (uintptr)timeout);
}
示例#27
0
int32
runtime·port_create(void)
{
	return runtime·sysvicall6(libc·port_create, 0);
}
示例#28
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·sem_wait(SemT* sem)
{
	return runtime·sysvicall6(libc·sem_wait, 1, (uintptr)sem);
}
示例#29
0
文件: os_solaris.c 项目: 8l/golang
runtime·mmap(byte* addr, uintptr len, int32 prot, int32 flags, int32 fildes, uint32 off)
{
	return (uint8*)runtime·sysvicall6(libc·mmap, (uintptr)addr, (uintptr)len, (uintptr)prot, (uintptr)flags, (uintptr)fildes, (uintptr)off);
}
示例#30
0
文件: os_solaris.c 项目: go-lang/go
int32
runtime·close(int32 fd)
{
	return runtime·sysvicall6(libc·close, 1, (uintptr)fd);
}