From 6111bc3f3850c712e32aa45fa2bfc2b3a757ca96 Mon Sep 17 00:00:00 2001 From: Nishi Date: Mon, 7 Oct 2024 15:03:00 +0000 Subject: [PATCH] add some wip docs git-svn-id: file:///raid/svn-personal/tewi/trunk@272 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Document/input/config/index.md | 4 ++++ Document/input/directives/showport.md | 12 ++++++++++++ Document/input/release/index.md | 13 ++++++++++--- Server/server.c | 2 +- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 Document/input/config/index.md create mode 100644 Document/input/directives/showport.md diff --git a/Document/input/config/index.md b/Document/input/config/index.md new file mode 100644 index 0000000..e318d73 --- /dev/null +++ b/Document/input/config/index.md @@ -0,0 +1,4 @@ +\language ^en$ +# Configuration {User guide} +\language ^jp$ +# コンフィグ {ユーザーガイド} diff --git a/Document/input/directives/showport.md b/Document/input/directives/showport.md new file mode 100644 index 0000000..e53a0cc --- /dev/null +++ b/Document/input/directives/showport.md @@ -0,0 +1,12 @@ +\language ^en$ +# ShowPort/HidePort directive {Directives} +Shows/Hides the port in the default error page, and directory listing.\ +\ +Syntax: `ShowPort` \ +Syntax: `HidePort` \ +\language ^jp$ +# ShowPort/HidePort命令 {命令} +ポートをデフォルトのエラーページとファイルリストで出したり消したりします。\ +\ +構文: `ShowPort` \ +構文: `HidePort` \ diff --git a/Document/input/release/index.md b/Document/input/release/index.md index 5689abd..47d5be6 100644 --- a/Document/input/release/index.md +++ b/Document/input/release/index.md @@ -1,4 +1,11 @@ -\language en +\language ^en$ # New features in version $TCL:VERSION {Release notes} -\language jp -# Tewi HTTPd $TCL:VERSION の新機能 +## New directives +### MIMEFile +Supports the `mime.types` from the Apache HTTPd using `MIMEFile` directive. + +\language ^jp$ +# Tewi HTTPd $TCL:VERSION の新機能 {リリース情報} +## 新しい命令 +### MIMEFile +`MIMEFile`命令を使用してApache HTTPdの`mime.types`が使えるようになりました。 diff --git a/Server/server.c b/Server/server.c index 4f19070..f07d4da 100644 --- a/Server/server.c +++ b/Server/server.c @@ -77,7 +77,7 @@ typedef int socklen_t; #endif #ifndef S_ISDIR -#define S_ISDIR(x) ((x)&_S_IFDIR) +#define S_ISDIR(x) ((x) & _S_IFDIR) #endif extern struct tw_config config; -- 2.45.2