summaryrefslogtreecommitdiff
path: root/bin/false
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
commit8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch)
treeae0285dd15042d1e9236a5ce2e60daf65acbdca0 /bin/false
parentfc00c656c96528112d05cf0edf8631bd5eaea446 (diff)
Add bin/true and bin/false implementations
- Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code.
Diffstat (limited to 'bin/false')
-rw-r--r--bin/false/Kbuild3
-rw-r--r--bin/false/arch/Kbuild1
-rw-r--r--bin/false/arch/x86_64/Kbuild1
-rw-r--r--bin/false/arch/x86_64/false.s6
-rwxr-xr-xbin/false/falsebin0 -> 824 bytes
5 files changed, 11 insertions, 0 deletions
diff --git a/bin/false/Kbuild b/bin/false/Kbuild
new file mode 100644
index 00000000..3b6f0687
--- /dev/null
+++ b/bin/false/Kbuild
@@ -0,0 +1,3 @@
+bin-y := false
+
+obj-y += arch/
diff --git a/bin/false/arch/Kbuild b/bin/false/arch/Kbuild
new file mode 100644
index 00000000..ad3a7486
--- /dev/null
+++ b/bin/false/arch/Kbuild
@@ -0,0 +1 @@
+obj-y += $(ARCH)/
diff --git a/bin/false/arch/x86_64/Kbuild b/bin/false/arch/x86_64/Kbuild
new file mode 100644
index 00000000..9958368e
--- /dev/null
+++ b/bin/false/arch/x86_64/Kbuild
@@ -0,0 +1 @@
+obj-y += false.o
diff --git a/bin/false/arch/x86_64/false.s b/bin/false/arch/x86_64/false.s
new file mode 100644
index 00000000..f1f36b6b
--- /dev/null
+++ b/bin/false/arch/x86_64/false.s
@@ -0,0 +1,6 @@
+.globl _start
+
+_start:
+ mov $60, %rax
+ mov $1, %rdi
+ syscall
diff --git a/bin/false/false b/bin/false/false
new file mode 100755
index 00000000..554098bc
--- /dev/null
+++ b/bin/false/false
Binary files differ