Skip to content

Commit

Permalink
Merge pull request #1216 from Dennisbonke/fastfetch
Browse files Browse the repository at this point in the history
Additions for fastfetch
  • Loading branch information
Dennisbonke authored Jan 8, 2025
2 parents c556f8c + 9b630de commit f147924
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions options/linux/generic/sys-sysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ int sysinfo(struct sysinfo *info) {
}
return 0;
}

int get_nprocs(void) {
__ensure(!"Not implemented");
__builtin_unreachable();
}

int get_nprocs_conf(void) {
__ensure(!"Not implemented");
__builtin_unreachable();
}
3 changes: 3 additions & 0 deletions options/linux/include/sys/sysinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ struct sysinfo {

int sysinfo(struct sysinfo *__info);

int get_nprocs(void);
int get_nprocs_conf(void);

#endif /* !__MLIBC_ABI_ONLY */

#ifdef __cplusplus
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/managarm/generic/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,11 @@ int sys_setsockopt(int fd, int layer, int number, const void *buffer, socklen_t
) << "\e[31mmlibc: setsockopt() call with SOL_SOCKET and SO_PRIORITY is unimplemented\e[39m"
<< frg::endlog;
return 0;
} else if (layer == SOL_SOCKET && number == SO_RCVTIMEO) {
mlibc::infoLogger(
) << "\e[31mmlibc: setsockopt() call with SOL_SOCKET and SO_RCVTIMEO is unimplemented\e[39m"
<< frg::endlog;
return 0;
} else {
mlibc::panicLogger() << "\e[31mmlibc: Unexpected setsockopt() call, layer: " << layer
<< " number: " << number << "\e[39m" << frg::endlog;
Expand Down

0 comments on commit f147924

Please sign in to comment.