From 46f0819c5086050816c326aa3d5c97a31ad02344 Mon Sep 17 00:00:00 2001 From: kremlin Date: Fri, 9 Jun 2017 22:54:02 -0500 Subject: [PATCH] initial commit --- .gitignore | 14 ++++++++++++++ LICENSE | 13 +++++++++++++ Makefile | 22 ++++++++++++++++++++++ bin/.gitignore | 2 ++ puffcrash.c | 23 +++++++++++++++++++++++ 5 files changed, 74 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 bin/.gitignore create mode 100644 puffcrash.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..543473d --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.core +bin/*.out +bin/systemd-* +bin/obj/*.o +bin/*.bin +src/interfaces/*/*-gen.* +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ +*.sw* +.*.sw* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..159bc18 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (c) 2017 Ian Sutton + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ea72ce --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CFLAGS= -Wall -Wextra -Werror -std=c99 + +DEBUG= 1 +.ifdef DEBUG +CFLAGS+= -O0 -g +.endif + +SANITY= 1 +.ifdef SANITY +CFLAGS+= -Wno-unused-variable -Wno-unused-parameter -Wno-comment +.endif + +OUT= bin/puffcrash +DESTDIR= /usr/local/ + +all: build + +build: + gcc $(CFLAGS) puffcrash.c -o $(OUT) + +install: build + install -c -s -o root -g bin -m 555 $(OUT) $(DESTDIR)$(OUT) diff --git a/bin/.gitignore b/bin/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bin/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/puffcrash.c b/puffcrash.c new file mode 100644 index 0000000..3419f8a --- /dev/null +++ b/puffcrash.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2017 Ian Sutton + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include + +int +main(int argc, char *argv[]) +{ + return 0; +} -- 2.41.0