farfetch/main.c

58 行
947 B
C
Raw 通常表示 履歴

2024-06-17 22:41:46 +09:00
#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
2024-06-18 00:16:45 +09:00
#include "src/memory.h"
2024-06-17 22:41:46 +09:00
const char *sofname = "farfetch";
const char *version = "0.0.1";
int main() {
display_user_name();
printf("@");
display_user_host();
2024-06-18 01:40:09 +09:00
printf("\n------------------\n");
2024-06-17 22:41:46 +09:00
printf("OS: ");
display_os_name();
printf(" ");
display_os_vers();
printf(" ");
display_os_arch();
printf("\n");
#if defined(__linux__)
printf("Distro: ");
display_distro();
printf("\n");
#endif
2024-06-18 00:16:45 +09:00
printf("Host: ");
display_host_model();
printf("\n");
printf("Memory: ");
display_memory();
printf("\n");
2024-06-17 22:41:46 +09:00
// TODO:
// * ロゴ
// * カーネル(LinuxとIllumosのみ)
// * 起動時間
// * パッケージ
// * libc
// * シェル
// * 解像度
// * 端末
// * CPU
// * GPU
// * ストレージ
return 0;
}