summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-06Added a new union called `config_val`.mrb0nk500
This is so that I don't have to cast the variable as a `void *`, and make it easier to read. I also added `TYPE_NONE` to the `config_type` enum for denoting that the config option doesn't take a value.
2021-06-05Fixed a bug, and typo in the `strtok_r()` call in themrb0nk500
config parser loop.
2021-06-05Replace `find_line()` with `get_line()`.mrb0nk500
The loop body was also changed accordingly. This was done to make the config parser easier to read.
2021-06-05Move the config option stuff into `config.h`.mrb0nk500
2021-06-05Added the typedefs for the config option types.mrb0nk500
2021-06-05Rename var to func, and change all the variables tomrb0nk500
function addresses. This is to get rid of the need for global variables.
2021-06-05Fixed typo in config option format comment.mrb0nk500
2021-06-05Start adding the config options.mrb0nk500
2021-06-05Fixed a typo in the root fallback code.mrb0nk500
Thanks goes to Nova Forte for pointing it out to me.
2021-06-04Fixed typo in `read_file()` to do with the filesizemrb0nk500
check.
2021-06-04Added missing buffer in `read_file()`.mrb0nk500
I forgot to add it, oof.
2021-06-04Started work on the parser loop.mrb0nk500
2021-06-04Added `find_line()`.mrb0nk500
Which finds the next line in the buffer.
2021-06-04Started work on the config file parser.mrb0nk500
2021-06-04Fixed a typo with the `init_daemon()` call inmrb0nk500
`main()`.
2021-06-04Fixed a typo in `pullreqd.c`.mrb0nk500
2021-06-04Added the main function.mrb0nk500
2021-06-04Added `init_daemon()`.mrb0nk500
Which actually initiallizes, and starts the daemon. If `change_dir` is true, it will change the working directory to `path`, or the root directory if `path` is NULL.
2021-06-04Added `hangup_hander()`.mrb0nk500
Which is the same as `child_handler()`, but for SIGHUP. And just like `child_handler()`, it's also currently a stub.
2021-06-04Added `child_handler()`.mrb0nk500
Which is the handler for SIGCHLD. Currently, it's a stub.
2021-06-04Added `fork_proc()`.mrb0nk500
Which handles forking a process, aswell as exiting the parent process.
2021-06-04Created `pullreqd.c`.mrb0nk500
2021-06-02Added the AGPLv3 license, for the AGPLv3 only+NIGGERmrb0nk500
license.
2021-06-02Added AGPLv3 only+NIGGER license.mrb0nk500
2021-06-02Added .gitignore.mrb0nk500
2021-06-02Added Makefile.mrb0nk500
2021-06-02Initial commit.mrb0nk500
Added the readme.