From 77d0069e522400b63c2182fcc5f852718e4e6f2c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 16 Aug 2020 14:11:32 -0400 Subject: rename files that should never be compiled on their own to .h --- src/stdio/BUFSIZ.c | 12 ------------ src/stdio/BUFSIZ.h | 12 ++++++++++++ src/stdio/EOF.c | 12 ------------ src/stdio/EOF.h | 12 ++++++++++++ src/stdio/FILE.c | 16 ---------------- src/stdio/FILE.h | 16 ++++++++++++++++ src/stdio/FILENAME_MAX.c | 12 ------------ src/stdio/FILENAME_MAX.h | 12 ++++++++++++ src/stdio/FOPEN_MAX.c | 13 ------------- src/stdio/FOPEN_MAX.h | 13 +++++++++++++ src/stdio/L_tmpnam.c | 11 ----------- src/stdio/L_tmpnam.h | 11 +++++++++++ src/stdio/SEEK_CUR.c | 12 ------------ src/stdio/SEEK_CUR.h | 12 ++++++++++++ src/stdio/SEEK_END.c | 12 ------------ src/stdio/SEEK_END.h | 12 ++++++++++++ src/stdio/SEEK_SET.c | 12 ------------ src/stdio/SEEK_SET.h | 12 ++++++++++++ src/stdio/TMP_MAX.c | 12 ------------ src/stdio/TMP_MAX.h | 12 ++++++++++++ src/stdio/_IOFBF.c | 12 ------------ src/stdio/_IOFBF.h | 12 ++++++++++++ src/stdio/_IOLBF.c | 12 ------------ src/stdio/_IOLBF.h | 12 ++++++++++++ src/stdio/_IONBF.c | 12 ------------ src/stdio/_IONBF.h | 12 ++++++++++++ src/stdio/fpos_t.c | 13 ------------- src/stdio/fpos_t.h | 13 +++++++++++++ src/stdio/stderr.c | 11 ----------- src/stdio/stderr.h | 11 +++++++++++ src/stdio/stdin.c | 11 ----------- src/stdio/stdin.h | 11 +++++++++++ src/stdio/stdout.c | 11 ----------- src/stdio/stdout.h | 11 +++++++++++ 34 files changed, 206 insertions(+), 206 deletions(-) delete mode 100644 src/stdio/BUFSIZ.c create mode 100644 src/stdio/BUFSIZ.h delete mode 100644 src/stdio/EOF.c create mode 100644 src/stdio/EOF.h delete mode 100644 src/stdio/FILE.c create mode 100644 src/stdio/FILE.h delete mode 100644 src/stdio/FILENAME_MAX.c create mode 100644 src/stdio/FILENAME_MAX.h delete mode 100644 src/stdio/FOPEN_MAX.c create mode 100644 src/stdio/FOPEN_MAX.h delete mode 100644 src/stdio/L_tmpnam.c create mode 100644 src/stdio/L_tmpnam.h delete mode 100644 src/stdio/SEEK_CUR.c create mode 100644 src/stdio/SEEK_CUR.h delete mode 100644 src/stdio/SEEK_END.c create mode 100644 src/stdio/SEEK_END.h delete mode 100644 src/stdio/SEEK_SET.c create mode 100644 src/stdio/SEEK_SET.h delete mode 100644 src/stdio/TMP_MAX.c create mode 100644 src/stdio/TMP_MAX.h delete mode 100644 src/stdio/_IOFBF.c create mode 100644 src/stdio/_IOFBF.h delete mode 100644 src/stdio/_IOLBF.c create mode 100644 src/stdio/_IOLBF.h delete mode 100644 src/stdio/_IONBF.c create mode 100644 src/stdio/_IONBF.h delete mode 100644 src/stdio/fpos_t.c create mode 100644 src/stdio/fpos_t.h delete mode 100644 src/stdio/stderr.c create mode 100644 src/stdio/stderr.h delete mode 100644 src/stdio/stdin.c create mode 100644 src/stdio/stdin.h delete mode 100644 src/stdio/stdout.c create mode 100644 src/stdio/stdout.h (limited to 'src/stdio') diff --git a/src/stdio/BUFSIZ.c b/src/stdio/BUFSIZ.c deleted file mode 100644 index c59a3851..00000000 --- a/src/stdio/BUFSIZ.c +++ /dev/null @@ -1,12 +0,0 @@ -#define BUFSIZ (4096) - -/** default buffer size **/ - -/*** -is the buffer size used when buffering is adjusted with FUNCTION(setbuf). -***/ - -/* -VALUE_MIN(256) -STDC(1) -*/ diff --git a/src/stdio/BUFSIZ.h b/src/stdio/BUFSIZ.h new file mode 100644 index 00000000..c59a3851 --- /dev/null +++ b/src/stdio/BUFSIZ.h @@ -0,0 +1,12 @@ +#define BUFSIZ (4096) + +/** default buffer size **/ + +/*** +is the buffer size used when buffering is adjusted with FUNCTION(setbuf). +***/ + +/* +VALUE_MIN(256) +STDC(1) +*/ diff --git a/src/stdio/EOF.c b/src/stdio/EOF.c deleted file mode 100644 index 2cf3ce60..00000000 --- a/src/stdio/EOF.c +++ /dev/null @@ -1,12 +0,0 @@ -#define EOF (-1) - -/** end-of-file **/ - -/*** -is a sentinal value used to indicated that a TYPEDEF(FILE) stream has reached -the end of file. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/EOF.h b/src/stdio/EOF.h new file mode 100644 index 00000000..2cf3ce60 --- /dev/null +++ b/src/stdio/EOF.h @@ -0,0 +1,12 @@ +#define EOF (-1) + +/** end-of-file **/ + +/*** +is a sentinal value used to indicated that a TYPEDEF(FILE) stream has reached +the end of file. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/FILE.c b/src/stdio/FILE.c deleted file mode 100644 index d3a29447..00000000 --- a/src/stdio/FILE.c +++ /dev/null @@ -1,16 +0,0 @@ -typedef struct __FILE - FILE; - -/** buffered I/O stream **/ - -/*** -is used to hold information about buffered input and output streams. The -structure holds information including the current file position indicator, -a pointer to its buffer, an error indicator, and an end-of-file indicator. -No standard defines the members of THIS(). User programs should not attempt -to access or modify its members directly. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/FILE.h b/src/stdio/FILE.h new file mode 100644 index 00000000..d3a29447 --- /dev/null +++ b/src/stdio/FILE.h @@ -0,0 +1,16 @@ +typedef struct __FILE + FILE; + +/** buffered I/O stream **/ + +/*** +is used to hold information about buffered input and output streams. The +structure holds information including the current file position indicator, +a pointer to its buffer, an error indicator, and an end-of-file indicator. +No standard defines the members of THIS(). User programs should not attempt +to access or modify its members directly. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/FILENAME_MAX.c b/src/stdio/FILENAME_MAX.c deleted file mode 100644 index 1bb13b85..00000000 --- a/src/stdio/FILENAME_MAX.c +++ /dev/null @@ -1,12 +0,0 @@ -#define FILENAME_MAX (255) - -/** maximum filename length **/ - -/*** -is size of the longest array of TYPE(char) that the implementation guarantees -can be used as a file name. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/FILENAME_MAX.h b/src/stdio/FILENAME_MAX.h new file mode 100644 index 00000000..1bb13b85 --- /dev/null +++ b/src/stdio/FILENAME_MAX.h @@ -0,0 +1,12 @@ +#define FILENAME_MAX (255) + +/** maximum filename length **/ + +/*** +is size of the longest array of TYPE(char) that the implementation guarantees +can be used as a file name. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/FOPEN_MAX.c b/src/stdio/FOPEN_MAX.c deleted file mode 100644 index 548db477..00000000 --- a/src/stdio/FOPEN_MAX.c +++ /dev/null @@ -1,13 +0,0 @@ -#define FOPEN_MAX (8) - -/** maximum open FILE streams **/ - -/*** -is the minimum number of TYPEDEF(FILE) streams that the implementation -guarantees can be opened at the same time. -***/ - -/* -VALUE_MIN(8) -STDC(1) -*/ diff --git a/src/stdio/FOPEN_MAX.h b/src/stdio/FOPEN_MAX.h new file mode 100644 index 00000000..548db477 --- /dev/null +++ b/src/stdio/FOPEN_MAX.h @@ -0,0 +1,13 @@ +#define FOPEN_MAX (8) + +/** maximum open FILE streams **/ + +/*** +is the minimum number of TYPEDEF(FILE) streams that the implementation +guarantees can be opened at the same time. +***/ + +/* +VALUE_MIN(8) +STDC(1) +*/ diff --git a/src/stdio/L_tmpnam.c b/src/stdio/L_tmpnam.c deleted file mode 100644 index 8467199a..00000000 --- a/src/stdio/L_tmpnam.c +++ /dev/null @@ -1,11 +0,0 @@ -#define L_tmpnam (255) - -/** temporary file name length **/ - -/*** -is the maximum length of a temporary filename returned by FUNCTION(tmpnam). -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/L_tmpnam.h b/src/stdio/L_tmpnam.h new file mode 100644 index 00000000..8467199a --- /dev/null +++ b/src/stdio/L_tmpnam.h @@ -0,0 +1,11 @@ +#define L_tmpnam (255) + +/** temporary file name length **/ + +/*** +is the maximum length of a temporary filename returned by FUNCTION(tmpnam). +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/SEEK_CUR.c b/src/stdio/SEEK_CUR.c deleted file mode 100644 index efa117f8..00000000 --- a/src/stdio/SEEK_CUR.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SEEK_CUR (1) - -/** seek forward **/ - -/*** -is used as the ARGUMENT(whence) argument to FUNCTION(fseek) to indicate that -seeking should begin at the current file position and move forward. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/SEEK_CUR.h b/src/stdio/SEEK_CUR.h new file mode 100644 index 00000000..efa117f8 --- /dev/null +++ b/src/stdio/SEEK_CUR.h @@ -0,0 +1,12 @@ +#define SEEK_CUR (1) + +/** seek forward **/ + +/*** +is used as the ARGUMENT(whence) argument to FUNCTION(fseek) to indicate that +seeking should begin at the current file position and move forward. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/SEEK_END.c b/src/stdio/SEEK_END.c deleted file mode 100644 index 15a56439..00000000 --- a/src/stdio/SEEK_END.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SEEK_END (2) - -/** seek from end **/ - -/*** -is used as the ARGUMENT(whence) argument to FUNCTION(fseek) to indicate that -seeking should begin at the end of the file and move backward. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/SEEK_END.h b/src/stdio/SEEK_END.h new file mode 100644 index 00000000..15a56439 --- /dev/null +++ b/src/stdio/SEEK_END.h @@ -0,0 +1,12 @@ +#define SEEK_END (2) + +/** seek from end **/ + +/*** +is used as the ARGUMENT(whence) argument to FUNCTION(fseek) to indicate that +seeking should begin at the end of the file and move backward. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/SEEK_SET.c b/src/stdio/SEEK_SET.c deleted file mode 100644 index d9ce4b88..00000000 --- a/src/stdio/SEEK_SET.c +++ /dev/null @@ -1,12 +0,0 @@ -#define SEEK_SET (3) - -/** seek from beginning **/ - -/*** -is used as the ARGUMENT(whence) argument to FUNCTION(fseek) to indicate that -seeking should begin at the start of the file and move forward. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/SEEK_SET.h b/src/stdio/SEEK_SET.h new file mode 100644 index 00000000..d9ce4b88 --- /dev/null +++ b/src/stdio/SEEK_SET.h @@ -0,0 +1,12 @@ +#define SEEK_SET (3) + +/** seek from beginning **/ + +/*** +is used as the ARGUMENT(whence) argument to FUNCTION(fseek) to indicate that +seeking should begin at the start of the file and move forward. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/TMP_MAX.c b/src/stdio/TMP_MAX.c deleted file mode 100644 index 8cedfc60..00000000 --- a/src/stdio/TMP_MAX.c +++ /dev/null @@ -1,12 +0,0 @@ -#define TMP_MAX (10000) - -/** maximum temporary file names **/ - -/*** -is the minimum number of unique file names FUNCTION(tmpnam) is guaranteed to -be able to generate. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/TMP_MAX.h b/src/stdio/TMP_MAX.h new file mode 100644 index 00000000..8cedfc60 --- /dev/null +++ b/src/stdio/TMP_MAX.h @@ -0,0 +1,12 @@ +#define TMP_MAX (10000) + +/** maximum temporary file names **/ + +/*** +is the minimum number of unique file names FUNCTION(tmpnam) is guaranteed to +be able to generate. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/_IOFBF.c b/src/stdio/_IOFBF.c deleted file mode 100644 index 3f0714ff..00000000 --- a/src/stdio/_IOFBF.c +++ /dev/null @@ -1,12 +0,0 @@ -#define _IOFBF (1) - -/** full buffering **/ - -/*** -is used as the ARGUMENT(mode) in calls to FUNCTION(setvbuf) to indicate that -a stream should be fully buffered. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/_IOFBF.h b/src/stdio/_IOFBF.h new file mode 100644 index 00000000..3f0714ff --- /dev/null +++ b/src/stdio/_IOFBF.h @@ -0,0 +1,12 @@ +#define _IOFBF (1) + +/** full buffering **/ + +/*** +is used as the ARGUMENT(mode) in calls to FUNCTION(setvbuf) to indicate that +a stream should be fully buffered. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/_IOLBF.c b/src/stdio/_IOLBF.c deleted file mode 100644 index e11fe4fc..00000000 --- a/src/stdio/_IOLBF.c +++ /dev/null @@ -1,12 +0,0 @@ -#define _IOLBF (2) - -/** line buffering **/ - -/*** -is used as the ARGUMENT(mode) in calls to FUNCTION(setvbuf) to indicate that -a stream should be line buffered. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/_IOLBF.h b/src/stdio/_IOLBF.h new file mode 100644 index 00000000..e11fe4fc --- /dev/null +++ b/src/stdio/_IOLBF.h @@ -0,0 +1,12 @@ +#define _IOLBF (2) + +/** line buffering **/ + +/*** +is used as the ARGUMENT(mode) in calls to FUNCTION(setvbuf) to indicate that +a stream should be line buffered. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/_IONBF.c b/src/stdio/_IONBF.c deleted file mode 100644 index 215bf26b..00000000 --- a/src/stdio/_IONBF.c +++ /dev/null @@ -1,12 +0,0 @@ -#define _IONBF (3) - -/** no buffering **/ - -/*** -is used as the ARGUMENT(mode) in calls to FUNCTION(setvbuf) to indicate that -a stream should be unbuffered. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/_IONBF.h b/src/stdio/_IONBF.h new file mode 100644 index 00000000..215bf26b --- /dev/null +++ b/src/stdio/_IONBF.h @@ -0,0 +1,12 @@ +#define _IONBF (3) + +/** no buffering **/ + +/*** +is used as the ARGUMENT(mode) in calls to FUNCTION(setvbuf) to indicate that +a stream should be unbuffered. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/fpos_t.c b/src/stdio/fpos_t.c deleted file mode 100644 index fe55a7af..00000000 --- a/src/stdio/fpos_t.c +++ /dev/null @@ -1,13 +0,0 @@ -typedef struct __fpos_t * - fpos_t; - -/** file position **/ - -/*** -is used to record information about individual positions within a TYPEDEF(FILE) -stream. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/fpos_t.h b/src/stdio/fpos_t.h new file mode 100644 index 00000000..fe55a7af --- /dev/null +++ b/src/stdio/fpos_t.h @@ -0,0 +1,13 @@ +typedef struct __fpos_t * + fpos_t; + +/** file position **/ + +/*** +is used to record information about individual positions within a TYPEDEF(FILE) +stream. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/stderr.c b/src/stdio/stderr.c deleted file mode 100644 index 8ec8a9aa..00000000 --- a/src/stdio/stderr.c +++ /dev/null @@ -1,11 +0,0 @@ -#define stderr __stderr - -/** standard error **/ - -/*** -is the standard error stream. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/stderr.h b/src/stdio/stderr.h new file mode 100644 index 00000000..8ec8a9aa --- /dev/null +++ b/src/stdio/stderr.h @@ -0,0 +1,11 @@ +#define stderr __stderr + +/** standard error **/ + +/*** +is the standard error stream. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/stdin.c b/src/stdio/stdin.c deleted file mode 100644 index 5fb14c70..00000000 --- a/src/stdio/stdin.c +++ /dev/null @@ -1,11 +0,0 @@ -#define stdin __stdin - -/** standard input **/ - -/*** -is the standard input stream. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/stdin.h b/src/stdio/stdin.h new file mode 100644 index 00000000..5fb14c70 --- /dev/null +++ b/src/stdio/stdin.h @@ -0,0 +1,11 @@ +#define stdin __stdin + +/** standard input **/ + +/*** +is the standard input stream. +***/ + +/* +STDC(1) +*/ diff --git a/src/stdio/stdout.c b/src/stdio/stdout.c deleted file mode 100644 index 7c62dfa0..00000000 --- a/src/stdio/stdout.c +++ /dev/null @@ -1,11 +0,0 @@ -#define stdout __stdout - -/** standard output **/ - -/*** -is the standard output stream. -***/ - -/* -STDC(1) -*/ diff --git a/src/stdio/stdout.h b/src/stdio/stdout.h new file mode 100644 index 00000000..7c62dfa0 --- /dev/null +++ b/src/stdio/stdout.h @@ -0,0 +1,11 @@ +#define stdout __stdout + +/** standard output **/ + +/*** +is the standard output stream. +***/ + +/* +STDC(1) +*/ -- cgit v1.2.1