diff --git a/chapter_8.unix_interface/8_2.fopen_fields/Makefile b/chapter_8.unix_interface/8_2.fields_cat/Makefile similarity index 57% rename from chapter_8.unix_interface/8_2.fopen_fields/Makefile rename to chapter_8.unix_interface/8_2.fields_cat/Makefile index e407b12..a7a0f91 100644 --- a/chapter_8.unix_interface/8_2.fopen_fields/Makefile +++ b/chapter_8.unix_interface/8_2.fields_cat/Makefile @@ -1,3 +1,3 @@ -BINARY=fopen_fields +BINARY=fields_cat include ../../Exercise.mk diff --git a/chapter_8.unix_interface/8_2.fopen_fields/knr_io.c b/chapter_8.unix_interface/8_2.fields_cat/knr_io.c similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/knr_io.c rename to chapter_8.unix_interface/8_2.fields_cat/knr_io.c diff --git a/chapter_8.unix_interface/8_2.fopen_fields/knr_io.h b/chapter_8.unix_interface/8_2.fields_cat/knr_io.h similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/knr_io.h rename to chapter_8.unix_interface/8_2.fields_cat/knr_io.h diff --git a/chapter_8.unix_interface/8_2.fopen_fields/main.c b/chapter_8.unix_interface/8_2.fields_cat/main.c similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/main.c rename to chapter_8.unix_interface/8_2.fields_cat/main.c diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/0_usage_info.tin b/chapter_8.unix_interface/8_2.fields_cat/tests/0_usage_info.tin similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/0_usage_info.tin rename to chapter_8.unix_interface/8_2.fields_cat/tests/0_usage_info.tin diff --git a/chapter_8.unix_interface/8_2.fields_cat/tests/0_usage_info.tout b/chapter_8.unix_interface/8_2.fields_cat/tests/0_usage_info.tout new file mode 100644 index 0000000..bdba52c --- /dev/null +++ b/chapter_8.unix_interface/8_2.fields_cat/tests/0_usage_info.tout @@ -0,0 +1 @@ +Usage: ./fields_cat <...fileN> diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.targs b/chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.targs similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.targs rename to chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.targs diff --git a/chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.terr b/chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.terr new file mode 100644 index 0000000..f896f31 --- /dev/null +++ b/chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.terr @@ -0,0 +1 @@ +./fields_cat: Can't open file no_such_file.txt. diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.tin b/chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.tin similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.tin rename to chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.tin diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.tout b/chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.tout similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.tout rename to chapter_8.unix_interface/8_2.fields_cat/tests/1_err_file_open.tout diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/2_file.c b/chapter_8.unix_interface/8_2.fields_cat/tests/2_file.c similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/2_file.c rename to chapter_8.unix_interface/8_2.fields_cat/tests/2_file.c diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/2_one.targs b/chapter_8.unix_interface/8_2.fields_cat/tests/2_one.targs similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/2_one.targs rename to chapter_8.unix_interface/8_2.fields_cat/tests/2_one.targs diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/2_one.tin b/chapter_8.unix_interface/8_2.fields_cat/tests/2_one.tin similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/2_one.tin rename to chapter_8.unix_interface/8_2.fields_cat/tests/2_one.tin diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/2_one.tout b/chapter_8.unix_interface/8_2.fields_cat/tests/2_one.tout similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/2_one.tout rename to chapter_8.unix_interface/8_2.fields_cat/tests/2_one.tout diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/3_file0.c b/chapter_8.unix_interface/8_2.fields_cat/tests/3_file0.c similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/3_file0.c rename to chapter_8.unix_interface/8_2.fields_cat/tests/3_file0.c diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/3_file1.c b/chapter_8.unix_interface/8_2.fields_cat/tests/3_file1.c similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/3_file1.c rename to chapter_8.unix_interface/8_2.fields_cat/tests/3_file1.c diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/3_file2.mk b/chapter_8.unix_interface/8_2.fields_cat/tests/3_file2.mk similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/3_file2.mk rename to chapter_8.unix_interface/8_2.fields_cat/tests/3_file2.mk diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/3_many.targs b/chapter_8.unix_interface/8_2.fields_cat/tests/3_many.targs similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/3_many.targs rename to chapter_8.unix_interface/8_2.fields_cat/tests/3_many.targs diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/3_many.tin b/chapter_8.unix_interface/8_2.fields_cat/tests/3_many.tin similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/3_many.tin rename to chapter_8.unix_interface/8_2.fields_cat/tests/3_many.tin diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/3_many.tout b/chapter_8.unix_interface/8_2.fields_cat/tests/3_many.tout similarity index 100% rename from chapter_8.unix_interface/8_2.fopen_fields/tests/3_many.tout rename to chapter_8.unix_interface/8_2.fields_cat/tests/3_many.tout diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/0_usage_info.tout b/chapter_8.unix_interface/8_2.fopen_fields/tests/0_usage_info.tout deleted file mode 100644 index d984692..0000000 --- a/chapter_8.unix_interface/8_2.fopen_fields/tests/0_usage_info.tout +++ /dev/null @@ -1 +0,0 @@ -Usage: ./fopen_fields <...fileN> diff --git a/chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.terr b/chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.terr deleted file mode 100644 index 2bf23e9..0000000 --- a/chapter_8.unix_interface/8_2.fopen_fields/tests/1_err_file_open.terr +++ /dev/null @@ -1 +0,0 @@ -./fopen_fields: Can't open file no_such_file.txt.