From 1b9dc6d7dce6f990535ae2663f11018bea10f0db Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Jul 2024 18:51:30 +0300 Subject: [PATCH] fixed --- README.md | 10 ++++++++++ TODO | 1 - libmu/mode_to_str.c | 1 - libmu/mode_to_str.h | 1 + libmu/parse_mode.h | 1 + libmu/parse_mount.h | 1 + libmu/pw_check.c | 1 - src/date.c | 2 +- 8 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 460ce67..1880a9b 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,13 @@ Own implementation of *nix utils License: wtfpl https://trivial.technology/ + + +Unportable: + proc_parser + ps + dmesg + mount + umount + nproc + pivot_root diff --git a/TODO b/TODO index 7c5f761..e7dc62c 100644 --- a/TODO +++ b/TODO @@ -49,6 +49,5 @@ BUGS: xargs (getopt with glibc) FIX: - ps (proc_parser.h) echo (escape) que (unicode) diff --git a/libmu/mode_to_str.c b/libmu/mode_to_str.c index 3bf00fe..fe04137 100644 --- a/libmu/mode_to_str.c +++ b/libmu/mode_to_str.c @@ -1,5 +1,4 @@ #include -#include #include "mode_to_str.h" char mode[11]; diff --git a/libmu/mode_to_str.h b/libmu/mode_to_str.h index 50f0ed7..3047e86 100644 --- a/libmu/mode_to_str.h +++ b/libmu/mode_to_str.h @@ -1,5 +1,6 @@ #ifndef _MODE_TO_STR_H #define _MODE_TO_STR_H +#include char *mu_mode_2_str(mode_t file_mode); #endif diff --git a/libmu/parse_mode.h b/libmu/parse_mode.h index 18e17ff..a3f6a06 100644 --- a/libmu/parse_mode.h +++ b/libmu/parse_mode.h @@ -1,5 +1,6 @@ #ifndef _PARSE_MODE_H #define _PARSE_MODE_H +#include mode_t mu_parse_mode(const char *s, mode_t cur_mode); #endif diff --git a/libmu/parse_mount.h b/libmu/parse_mount.h index e0b7e20..44e99b6 100644 --- a/libmu/parse_mount.h +++ b/libmu/parse_mount.h @@ -1,6 +1,7 @@ #ifndef _PARSE_MOUNT_H #define _PARSE_MOUNT_H #include +#include typedef struct { char *opt; diff --git a/libmu/pw_check.c b/libmu/pw_check.c index 45c31f5..37805f6 100644 --- a/libmu/pw_check.c +++ b/libmu/pw_check.c @@ -51,4 +51,3 @@ int pw_check(const char *prog_name, const struct passwd *pw, const char *pass) { return 1; } - diff --git a/src/date.c b/src/date.c index 1ab8c8d..4b3bff4 100644 --- a/src/date.c +++ b/src/date.c @@ -1,5 +1,5 @@ #define _XOPEN_SOURCE -#define __USE_POSIX199309 +#define _POSIX_C_SOURCE 1999309L #include #include #include