clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -35,24 +35,21 @@
/*
* Example system call: get the time of day.
*/
int
sys___time(userptr_t user_seconds_ptr, userptr_t user_nanoseconds_ptr)
{
struct timespec ts;
int result;
int sys___time(userptr_t user_seconds_ptr, userptr_t user_nanoseconds_ptr) {
struct timespec ts;
int result;
gettime(&ts);
gettime(&ts);
result = copyout(&ts.tv_sec, user_seconds_ptr, sizeof(ts.tv_sec));
if (result) {
return result;
}
result = copyout(&ts.tv_sec, user_seconds_ptr, sizeof(ts.tv_sec));
if (result) {
return result;
}
result = copyout(&ts.tv_nsec, user_nanoseconds_ptr,
sizeof(ts.tv_nsec));
if (result) {
return result;
}
result = copyout(&ts.tv_nsec, user_nanoseconds_ptr, sizeof(ts.tv_nsec));
if (result) {
return result;
}
return 0;
return 0;
}