chore:keep origin c format
This commit is contained in:
@@ -9,6 +9,8 @@ struct fcntl_ret
|
||||
int32_t err; // Error code
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
|
||||
// llgo_fcntl implements the fcntl system call wrapper for Go
|
||||
// fd: file descriptor
|
||||
// cmd: fcntl command
|
||||
@@ -30,4 +32,6 @@ struct fcntl_ret llgo_fcntl2(int32_t fd, int32_t cmd, int32_t arg)
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,11 +2,13 @@
|
||||
|
||||
extern "C" {
|
||||
|
||||
int llgo_maxprocs() {
|
||||
int llgo_maxprocs()
|
||||
{
|
||||
#ifdef _SC_NPROCESSORS_ONLN
|
||||
return (int)sysconf(_SC_NPROCESSORS_ONLN);
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user