Skip to content

Commit

Permalink
add copyright boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazeWasHere committed May 1, 2021
1 parent 51e5c2c commit b689af5
Show file tree
Hide file tree
Showing 17 changed files with 85 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dict.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
Expand Down
5 changes: 5 additions & 0 deletions src/file.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include "file.h"

int file_exists(char *path) {
Expand Down
5 changes: 5 additions & 0 deletions src/include/dict.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

/**
* based off: https://stackoverflow.com/a/16129177
*/
Expand Down
5 changes: 5 additions & 0 deletions src/include/file.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

#include <sys/stat.h>
Expand Down
5 changes: 5 additions & 0 deletions src/include/method.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

#include <netinet/in.h>
Expand Down
5 changes: 5 additions & 0 deletions src/include/mime.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

/* taken from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types */
Expand Down
5 changes: 5 additions & 0 deletions src/include/response.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

#include "server.h"
Expand Down
5 changes: 5 additions & 0 deletions src/include/server.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

#include <netinet/in.h>
Expand Down
5 changes: 5 additions & 0 deletions src/include/status.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

typedef enum {
Expand Down
5 changes: 5 additions & 0 deletions src/include/utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#pragma once

typedef struct {
Expand Down
5 changes: 5 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <signal.h>
#include <stdio.h>

Expand Down
5 changes: 5 additions & 0 deletions src/method.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
Expand Down
5 changes: 5 additions & 0 deletions src/mime.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include "mime.h"

const char *mime_string(MIME_TYPE mime) {
Expand Down
5 changes: 5 additions & 0 deletions src/response.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <string.h>
#include <stdlib.h>
#include <stdio.h>
Expand Down
5 changes: 5 additions & 0 deletions src/server.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <liburing.h>
#include <stdlib.h>
#include <string.h>
Expand Down
5 changes: 5 additions & 0 deletions src/status.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <string.h>
#include <stdlib.h>

Expand Down
5 changes: 5 additions & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Copyright Blaze 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Expand Down

0 comments on commit b689af5

Please sign in to comment.