22 lines
398 B
SourcePawn
22 lines
398 B
SourcePawn
namespace linux {
|
|
|
|
@sys_read (u32 fd, i8* buf, u64 size) {
|
|
syscall3(0,fd,buf,size);
|
|
}
|
|
|
|
@sys_write (u32 fd, i8* buf, u64 size) {
|
|
syscall3(1,fd,buf,size);
|
|
}
|
|
|
|
@sys_open (i8* name, i32 flags, u16 mode) {
|
|
syscall3(2,name,flags,mode);
|
|
}
|
|
|
|
@sys_close (u32 fd) {
|
|
syscall1(3,fd);
|
|
}
|
|
|
|
@sys_exit (i32 code) {
|
|
syscall1(60,code);
|
|
}
|
|
} |