This commit is contained in:
Your Name 2024-07-10 18:51:30 +03:00
parent b1ab591e39
commit 1b9dc6d7dc
8 changed files with 14 additions and 4 deletions

View File

@ -3,3 +3,13 @@ Own implementation of *nix utils
License: wtfpl
https://trivial.technology/
Unportable:
proc_parser
ps
dmesg
mount
umount
nproc
pivot_root

1
TODO
View File

@ -49,6 +49,5 @@ BUGS:
xargs (getopt with glibc)
FIX:
ps (proc_parser.h)
echo (escape)
que (unicode)

View File

@ -1,5 +1,4 @@
#include <stdio.h>
#include <sys/stat.h>
#include "mode_to_str.h"
char mode[11];

View File

@ -1,5 +1,6 @@
#ifndef _MODE_TO_STR_H
#define _MODE_TO_STR_H
#include <sys/stat.h>
char *mu_mode_2_str(mode_t file_mode);
#endif

View File

@ -1,5 +1,6 @@
#ifndef _PARSE_MODE_H
#define _PARSE_MODE_H
#include <sys/stat.h>
mode_t mu_parse_mode(const char *s, mode_t cur_mode);
#endif

View File

@ -1,6 +1,7 @@
#ifndef _PARSE_MOUNT_H
#define _PARSE_MOUNT_H
#include <sys/mount.h>
#include <stdlib.h>
typedef struct {
char *opt;

View File

@ -51,4 +51,3 @@ int pw_check(const char *prog_name, const struct passwd *pw, const char *pass) {
return 1;
}

View File

@ -1,5 +1,5 @@
#define _XOPEN_SOURCE
#define __USE_POSIX199309
#define _POSIX_C_SOURCE 1999309L
#include <stdio.h>
#include <string.h>
#include <unistd.h>