Commit Graph

135 Commits

Author SHA1 Message Date
qorg11 571b6c73e0
Is this ok, POSIX? 2020-08-24 02:31:35 +02:00
qorg11 98f9bd9e15
Remove useless headers 2020-08-23 19:23:58 +02:00
qorg11 016c4f6a39
Whatever this does lmao 2020-08-23 18:48:44 +02:00
qorg11 20eb8d53d4
cleaned up chmod.c 2020-08-23 12:10:00 +02:00
qorg11 0a5169b490
generic case for uname 2020-08-23 11:02:04 +02:00
qorg11 8cde471f41
what the hell is -m flag posix is literally the same as -c 2020-08-23 11:01:36 +02:00
qorg11 9713636417
Finally fixed wc :D 2020-08-23 10:58:30 +02:00
qorg11 4d96265f95
Improved uname.c 2020-08-22 11:53:59 +02:00
qorg11 d8c6dd6fe8
Modified the readme because this also has util-linux packes 2020-08-22 09:56:17 +02:00
qorg11 7f38565e50
git you're a bit dumb 2020-08-22 09:51:02 +02:00
qorg11 a8ae0f14c0
moved non coreutils programs to a nonuserland folder since they are
not userland programs
2020-08-22 09:49:46 +02:00
qorg11 b653b7599a
Better style and stuff to uname.c 2020-08-21 14:06:28 +02:00
qorg11 2b3baec776
In GNU's uname(1) if you pass no arguments it prints the kernel name
so mine does that too.

TODO: print operating system name in -a and in the useless flag -v,
posix says it should be like that
2020-08-21 09:38:40 +02:00
qorg11 41fac48fb0
Added uname, works but probably not as it should, initial commit for
this and i'll fix it if needed later (probably i forgot some flags,
programming is hard)
2020-08-21 09:31:06 +02:00
qorg11 7f4a6e2733
added chroot 2020-08-12 23:54:59 +02:00
qorg11 dfa79c963b
im stupid 2020-08-12 20:54:29 +02:00
qorg11 015f021669
added cat the posix -u flag which is useless 2020-08-12 20:53:47 +02:00
qorg11 07c86b10fb
Improved makefile 2020-08-09 03:00:20 +02:00
qorg11 30bc6754a5
added a bunch of programs 2020-08-08 21:45:46 +02:00
qorg11 d832f81d97
added groups 2020-08-08 21:38:00 +02:00
qorg11 f0712c34b2
lmao 2020-08-07 19:56:58 +02:00
qorg11 e5464f8a7c
Added logname.c
differences with whoami.c:
	    * whoami prints who you are
	    * logname prints the username you logged with
meaning that if you run logname with doas(1) or sudo(8) you'll get the
real username instead of root
2020-08-07 00:22:16 +02:00
qorg11 cd73c58a88
tty(1), which prints the name of the teletypewriter you're using. 2020-08-07 00:17:15 +02:00
qorg11 fdd35796cb
improved sleep by using usleep() instead of sleep()
which allows more precise times
2020-08-07 00:13:17 +02:00
qorg11 0d806ef04b
add sync 2020-08-07 00:09:49 +02:00
qorg11 cb32179a1b
added ernno things 2020-08-06 15:28:24 +02:00
qorg11 2d6091417b im a bit dumb you know 2020-08-05 21:44:21 +02:00
qorg11 32e3a82407
lol 2020-08-05 17:34:23 +02:00
qorg11 069bde6d70
i kinda hate posix because -n, but there it is
i just have to add a for loop so it iterates every file passed
by args
2020-08-05 17:26:03 +02:00
qorg11 642d6f396c
added head 2020-08-05 12:28:59 +02:00
qorg11 61a4887fb1
modified kill.c so doesn't use getopt (which in this case
was a complete overkill). Also a warning if nothing given.
2020-08-02 22:05:55 +02:00
qorg11 0d9b8f2551
sleep 2020-08-02 18:23:38 +02:00
qorg11 0f8f9dc363
exec 2020-08-02 18:01:58 +02:00
qorg11 fecba9abf1
Almost done wc
only pick from stdin if no file given. but all flags are working!
2020-07-30 14:07:24 +02:00
qorg11 dcf829ab3e
somebody pls fix flags and stdin 2020-07-30 13:59:34 +02:00
qorg11 3a44055d37
Merge branch 'master' of gitlab.com:call-cc/k9core into master 2020-07-29 23:22:39 +02:00
qorg11 8d1bf0ee4b
added flags to wc 2020-07-29 22:49:00 +02:00
Marie 1a374138eb improve ls (make it look cleaner) 2020-07-28 08:37:08 -04:00
qorg11 371c5f0803
What the fuck is this 2020-07-28 14:26:08 +02:00
qorg11 c0935a1b07
added errno to ln.c 2020-07-28 12:52:08 +02:00
qorg11 0ee58ebd7b
idk whats this git told me isnt' staged so hre's your commit 2020-07-28 12:47:26 +02:00
qorg11 a1f38d5892
Edited some stuff in wc and mv 2020-07-28 12:46:55 +02:00
qorg11 bb78561f7f
Fixed shred 2020-07-25 02:12:39 +02:00
qorg11 7bedf74c03
use stat() instead of a own function to count bytes.
also TODO: overwrite the files content with random data and ad 4096 of
random data
2020-07-25 01:58:16 +02:00
qorg11 ab00cba806
Added shred 2020-07-24 02:35:23 +02:00
qorg11 801cf9d5ae
Added unlink, not really sure of that this do but well here it is 2020-07-23 05:40:58 +02:00
qorg11 3823f6299e
less bad mv 2020-07-21 01:30:12 +02:00
qorg11 9c856f4792
yeah so now the thing closes the file descriptors 2020-07-21 01:28:18 +02:00
qorg11 2996e21179
cp now supports binary data and touch.c uses the saner
creat() instead of open() because using open() there was
simply stupid
2020-07-20 22:51:35 +02:00
qorg11 1d8f3bf01f
fprintf in mount.c 2020-07-13 20:12:23 +02:00