Squash commits for public release
This commit is contained in:
8
userland/utilities/kill/BUILD.gn
Normal file
8
userland/utilities/kill/BUILD.gn
Normal file
@@ -0,0 +1,8 @@
|
||||
import("//build/userland/TEMPLATE.gni")
|
||||
|
||||
xOS_executable("kill") {
|
||||
install_path = "bin/"
|
||||
sources = [ "main.c" ]
|
||||
configs = [ "//build/userland:userland_flags" ]
|
||||
deplibs = [ "libc" ]
|
||||
}
|
||||
16
userland/utilities/kill/main.c
Normal file
16
userland/utilities/kill/main.c
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc <= 2) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
printf("%d %d", atoi(argv[1]), atoi(argv[2]));
|
||||
kill(atoi(argv[1]), atoi(argv[2]));
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user