diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-17 22:41:46 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-17 22:44:17 +0900 |
commit | cf13f2d8c1622a46f6499dcb762ea2b9370d99fc (patch) | |
tree | e3a3cefd85fd1bd3d77e76f074990f8452888dc9 /main.c |
最初コミット
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 53 |
1 files changed, 53 insertions, 0 deletions
@@ -0,0 +1,53 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +#include "src/user.h" +#include "src/os.h" +#include "src/host.h" +#if defined(__linux__) +#include "src/distro.h" +#endif + +const char *sofname = "farfetch"; +const char *version = "0.0.1"; + +int main() { + display_user_name(); + printf("@"); + display_user_host(); + puts("------------------"); + + printf("OS: "); + display_os_name(); + printf(" "); + display_os_vers(); + printf(" "); + display_os_arch(); + printf("\n"); + + printf("Host: "); + display_host_model(); + printf("\n"); + +#if defined(__linux__) + printf("Distro: "); + display_distro(); + printf("\n"); +#endif + + // TODO: + // * ロゴ + // * カーネル(LinuxとIllumosのみ) + // * 起動時間 + // * パッケージ + // * libc + // * シェル + // * 解像度 + // * 端末 + // * CPU + // * GPU + // * メモリー + // * ストレージ + return 0; +} |