This is an automated email from the git hooks/post-receive script.
pbokoc pushed a commit to branch master
in repository defensive-coding-guide.
commit 531ddf0721c4320b28d88a06f5b48cdfacd281b6
Author: Petr Bokoc <pbokoc(a)redhat.com>
AuthorDate: Thu Jan 13 20:42:40 2022 +0100
Update structure for partials and examples
---
.../snippets => examples}/C-Arithmetic-add.adoc | 0
.../C-Arithmetic-add_unsigned.adoc | 0
.../snippets => examples}/C-Arithmetic-mult.adoc | 0
.../C-Globals-String_Array.adoc | 0
.../C-Pointers-remaining.adoc | 0
.../C-String-Functions-format.adoc | 0
.../C-String-Functions-snprintf-incremental.adoc | 0
.../C-String-Functions-snprintf.adoc | 0
.../C-String-Functions-strncat-as-strncpy.adoc | 0
.../C-String-Functions-strncat-emulation.adoc | 0
.../C-String-Functions-strncat-merged.adoc | 0
.../C-String-Functions-strncpy.adoc | 0
.../Features-HSM-GNUTLS-PIN.adoc | 0
.../snippets => examples}/Features-HSM-GNUTLS.adoc | 0
.../Features-HSM-NSS-PIN.adoc | 0
.../snippets => examples}/Features-HSM-NSS.adoc | 0
.../Features-HSM-OpenSSL.adoc | 0
.../Features-TLS-Client-GNUTLS-Connect.adoc | 0
.../Features-TLS-Client-GNUTLS-Credentials.adoc | 0
.../Features-TLS-Client-GNUTLS-Verify.adoc | 0
.../Features-TLS-Client-NSS-Close.adoc | 0
.../Features-TLS-Client-NSS-Connect.adoc | 0
.../Features-TLS-Client-OpenJDK-Connect.adoc | 0
.../Features-TLS-Client-OpenJDK-Context.adoc | 0
...atures-TLS-Client-OpenJDK-Context_For_Cert.adoc | 0
.../Features-TLS-Client-OpenJDK-Hostname.adoc | 0
.../Features-TLS-Client-OpenJDK-Import.adoc | 0
...Features-TLS-Client-OpenJDK-MyTrustManager.adoc | 0
.../Features-TLS-Client-OpenJDK-Use.adoc | 0
.../Features-TLS-Client-OpenSSL-CTX.adoc | 0
.../Features-TLS-Client-OpenSSL-Connect.adoc | 0
...Features-TLS-Client-OpenSSL-Connection-Use.adoc | 0
.../Features-TLS-Client-OpenSSL-Init.adoc | 0
.../Features-TLS-Client-Python-Connect.adoc | 0
...Features-TLS-Client-Python-check_host_name.adoc | 0
.../Features-TLS-GNUTLS-Credentials-Close.adoc | 0
.../Features-TLS-GNUTLS-Disconnect.adoc | 0
.../Features-TLS-GNUTLS-Init.adoc | 0
.../Features-TLS-GNUTLS-Use.adoc | 0
.../Features-TLS-NSS-Close.adoc | 0
.../Features-TLS-NSS-Includes.adoc | 0
.../Features-TLS-NSS-Init.adoc | 0
.../Features-TLS-NSS-Use.adoc | 0
.../snippets => examples}/Features-TLS-Nagle.adoc | 0
.../Features-TLS-OpenJDK-Parameters.adoc | 0
.../Features-TLS-OpenSSL-Connection-Close.adoc | 0
.../Features-TLS-OpenSSL-Context-Close.adoc | 0
.../Features-TLS-OpenSSL-Errors.adoc | 0
.../Features-TLS-Python-Close.adoc | 0
.../Features-TLS-Python-Use.adoc | 0
.../Go-Error_Handling-IO.adoc | 0
.../Go-Error_Handling-Regular.adoc | 0
.../snippets => examples}/Java-Finally.adoc | 0
.../snippets => examples}/Java-JNI-Pointers.adoc | 0
.../Java-Language-ReadArray.adoc | 0
.../Java-SecurityManager-Callback.adoc | 0
.../Java-SecurityManager-CurrentDirectory.adoc | 0
.../Java-SecurityManager-Privileged.adoc | 0
.../Java-SecurityManager-Unprivileged.adoc | 0
.../Java-TryWithResource.adoc | 0
.../Shell-Input_Validation.adoc | 0
.../Tasks-Serialization-XML-Expat-Create.adoc | 0
...-Serialization-XML-Expat-EntityDeclHandler.adoc | 0
.../Tasks-Serialization-XML-OpenJDK-Errors.adoc | 0
.../Tasks-Serialization-XML-OpenJDK-Imports.adoc | 0
...Serialization-XML-OpenJDK-NoEntityResolver.adoc | 0
...rialization-XML-OpenJDK-NoResourceResolver.adoc | 0
.../Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc | 0
...ialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc | 0
...ialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc | 0
...Tasks-Serialization-XML-Qt-NoEntityHandler.adoc | 0
.../Tasks-Serialization-XML-Qt-NoEntityReader.adoc | 0
.../Tasks-Serialization-XML-Qt-QDomDocument.adoc | 0
modules/ROOT/pages/features/Features-HSM.adoc | 10 ++--
modules/ROOT/pages/features/Features-TLS.adoc | 66 +++++++++++-----------
modules/ROOT/pages/index.adoc | 6 +-
.../pages/programming-languages/C-Language.adoc | 10 ++--
.../ROOT/pages/programming-languages/C-Libc.adoc | 16 +++---
modules/ROOT/pages/programming-languages/Go.adoc | 4 +-
.../pages/programming-languages/Java-Language.adoc | 6 +-
.../pages/programming-languages/Java-LowLevel.adoc | 2 +-
.../Java-SecurityManager.adoc | 8 +--
.../ROOT/pages/programming-languages/Shell.adoc | 4 +-
modules/ROOT/pages/tasks/Tasks-File_System.adoc | 2 +-
modules/ROOT/pages/tasks/Tasks-Processes.adoc | 2 +-
modules/ROOT/pages/tasks/Tasks-Serialization.adoc | 22 ++++----
.../_partials => partials}/Author_Group.adoc | 0
.../_partials => partials}/Legal_Notice.adoc | 0
.../{pages/_partials => partials}/entities.adoc | 0
89 files changed, 79 insertions(+), 79 deletions(-)
diff --git a/modules/ROOT/pages/_partials/snippets/C-Arithmetic-add.adoc b/modules/ROOT/examples/C-Arithmetic-add.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Arithmetic-add.adoc
rename to modules/ROOT/examples/C-Arithmetic-add.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Arithmetic-add_unsigned.adoc b/modules/ROOT/examples/C-Arithmetic-add_unsigned.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Arithmetic-add_unsigned.adoc
rename to modules/ROOT/examples/C-Arithmetic-add_unsigned.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Arithmetic-mult.adoc b/modules/ROOT/examples/C-Arithmetic-mult.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Arithmetic-mult.adoc
rename to modules/ROOT/examples/C-Arithmetic-mult.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Globals-String_Array.adoc b/modules/ROOT/examples/C-Globals-String_Array.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Globals-String_Array.adoc
rename to modules/ROOT/examples/C-Globals-String_Array.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Pointers-remaining.adoc b/modules/ROOT/examples/C-Pointers-remaining.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Pointers-remaining.adoc
rename to modules/ROOT/examples/C-Pointers-remaining.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-format.adoc b/modules/ROOT/examples/C-String-Functions-format.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-format.adoc
rename to modules/ROOT/examples/C-String-Functions-format.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf-incremental.adoc b/modules/ROOT/examples/C-String-Functions-snprintf-incremental.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf-incremental.adoc
rename to modules/ROOT/examples/C-String-Functions-snprintf-incremental.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf.adoc b/modules/ROOT/examples/C-String-Functions-snprintf.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf.adoc
rename to modules/ROOT/examples/C-String-Functions-snprintf.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-as-strncpy.adoc b/modules/ROOT/examples/C-String-Functions-strncat-as-strncpy.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-as-strncpy.adoc
rename to modules/ROOT/examples/C-String-Functions-strncat-as-strncpy.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-emulation.adoc b/modules/ROOT/examples/C-String-Functions-strncat-emulation.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-emulation.adoc
rename to modules/ROOT/examples/C-String-Functions-strncat-emulation.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-merged.adoc b/modules/ROOT/examples/C-String-Functions-strncat-merged.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-merged.adoc
rename to modules/ROOT/examples/C-String-Functions-strncat-merged.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncpy.adoc b/modules/ROOT/examples/C-String-Functions-strncpy.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncpy.adoc
rename to modules/ROOT/examples/C-String-Functions-strncpy.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS-PIN.adoc b/modules/ROOT/examples/Features-HSM-GNUTLS-PIN.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS-PIN.adoc
rename to modules/ROOT/examples/Features-HSM-GNUTLS-PIN.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS.adoc b/modules/ROOT/examples/Features-HSM-GNUTLS.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS.adoc
rename to modules/ROOT/examples/Features-HSM-GNUTLS.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-NSS-PIN.adoc b/modules/ROOT/examples/Features-HSM-NSS-PIN.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-NSS-PIN.adoc
rename to modules/ROOT/examples/Features-HSM-NSS-PIN.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-NSS.adoc b/modules/ROOT/examples/Features-HSM-NSS.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-NSS.adoc
rename to modules/ROOT/examples/Features-HSM-NSS.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-OpenSSL.adoc b/modules/ROOT/examples/Features-HSM-OpenSSL.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-OpenSSL.adoc
rename to modules/ROOT/examples/Features-HSM-OpenSSL.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-GNUTLS-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-GNUTLS-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Credentials.adoc b/modules/ROOT/examples/Features-TLS-Client-GNUTLS-Credentials.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Credentials.adoc
rename to modules/ROOT/examples/Features-TLS-Client-GNUTLS-Credentials.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Verify.adoc b/modules/ROOT/examples/Features-TLS-Client-GNUTLS-Verify.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Verify.adoc
rename to modules/ROOT/examples/Features-TLS-Client-GNUTLS-Verify.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Close.adoc b/modules/ROOT/examples/Features-TLS-Client-NSS-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Close.adoc
rename to modules/ROOT/examples/Features-TLS-Client-NSS-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-NSS-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-NSS-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Hostname.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Hostname.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Hostname.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Hostname.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Import.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Import.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Import.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Import.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-MyTrustManager.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-MyTrustManager.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-MyTrustManager.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-MyTrustManager.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Use.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Use.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-CTX.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-CTX.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-CTX.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-CTX.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connection-Use.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connection-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connection-Use.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connection-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Init.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-Init.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Init.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-Init.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-Python-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-Python-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-check_host_name.adoc b/modules/ROOT/examples/Features-TLS-Client-Python-check_host_name.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-check_host_name.adoc
rename to modules/ROOT/examples/Features-TLS-Client-Python-check_host_name.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Credentials-Close.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Credentials-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Credentials-Close.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Credentials-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Disconnect.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Disconnect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Disconnect.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Disconnect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Init.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Init.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Init.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Init.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Use.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Use.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Close.adoc b/modules/ROOT/examples/Features-TLS-NSS-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Close.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Includes.adoc b/modules/ROOT/examples/Features-TLS-NSS-Includes.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Includes.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Includes.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Init.adoc b/modules/ROOT/examples/Features-TLS-NSS-Init.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Init.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Init.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Use.adoc b/modules/ROOT/examples/Features-TLS-NSS-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Use.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Nagle.adoc b/modules/ROOT/examples/Features-TLS-Nagle.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Nagle.adoc
rename to modules/ROOT/examples/Features-TLS-Nagle.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenJDK-Parameters.adoc b/modules/ROOT/examples/Features-TLS-OpenJDK-Parameters.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenJDK-Parameters.adoc
rename to modules/ROOT/examples/Features-TLS-OpenJDK-Parameters.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Connection-Close.adoc b/modules/ROOT/examples/Features-TLS-OpenSSL-Connection-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Connection-Close.adoc
rename to modules/ROOT/examples/Features-TLS-OpenSSL-Connection-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Context-Close.adoc b/modules/ROOT/examples/Features-TLS-OpenSSL-Context-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Context-Close.adoc
rename to modules/ROOT/examples/Features-TLS-OpenSSL-Context-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Errors.adoc b/modules/ROOT/examples/Features-TLS-OpenSSL-Errors.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Errors.adoc
rename to modules/ROOT/examples/Features-TLS-OpenSSL-Errors.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Close.adoc b/modules/ROOT/examples/Features-TLS-Python-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Close.adoc
rename to modules/ROOT/examples/Features-TLS-Python-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Use.adoc b/modules/ROOT/examples/Features-TLS-Python-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Use.adoc
rename to modules/ROOT/examples/Features-TLS-Python-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Go-Error_Handling-IO.adoc b/modules/ROOT/examples/Go-Error_Handling-IO.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Go-Error_Handling-IO.adoc
rename to modules/ROOT/examples/Go-Error_Handling-IO.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Go-Error_Handling-Regular.adoc b/modules/ROOT/examples/Go-Error_Handling-Regular.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Go-Error_Handling-Regular.adoc
rename to modules/ROOT/examples/Go-Error_Handling-Regular.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-Finally.adoc b/modules/ROOT/examples/Java-Finally.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-Finally.adoc
rename to modules/ROOT/examples/Java-Finally.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-JNI-Pointers.adoc b/modules/ROOT/examples/Java-JNI-Pointers.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-JNI-Pointers.adoc
rename to modules/ROOT/examples/Java-JNI-Pointers.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-Language-ReadArray.adoc b/modules/ROOT/examples/Java-Language-ReadArray.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-Language-ReadArray.adoc
rename to modules/ROOT/examples/Java-Language-ReadArray.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Callback.adoc b/modules/ROOT/examples/Java-SecurityManager-Callback.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Callback.adoc
rename to modules/ROOT/examples/Java-SecurityManager-Callback.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-CurrentDirectory.adoc b/modules/ROOT/examples/Java-SecurityManager-CurrentDirectory.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-CurrentDirectory.adoc
rename to modules/ROOT/examples/Java-SecurityManager-CurrentDirectory.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Privileged.adoc b/modules/ROOT/examples/Java-SecurityManager-Privileged.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Privileged.adoc
rename to modules/ROOT/examples/Java-SecurityManager-Privileged.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Unprivileged.adoc b/modules/ROOT/examples/Java-SecurityManager-Unprivileged.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Unprivileged.adoc
rename to modules/ROOT/examples/Java-SecurityManager-Unprivileged.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-TryWithResource.adoc b/modules/ROOT/examples/Java-TryWithResource.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-TryWithResource.adoc
rename to modules/ROOT/examples/Java-TryWithResource.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Shell-Input_Validation.adoc b/modules/ROOT/examples/Shell-Input_Validation.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Shell-Input_Validation.adoc
rename to modules/ROOT/examples/Shell-Input_Validation.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-Create.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Expat-Create.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-Create.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Expat-Create.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Errors.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Errors.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Errors.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Errors.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Imports.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Imports.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Imports.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Imports.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityReader.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityReader.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityReader.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityReader.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-QDomDocument.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Qt-QDomDocument.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-QDomDocument.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Qt-QDomDocument.adoc
diff --git a/modules/ROOT/pages/features/Features-HSM.adoc b/modules/ROOT/pages/features/Features-HSM.adoc
index 8b110dc..8b9e34b 100644
--- a/modules/ROOT/pages/features/Features-HSM.adoc
+++ b/modules/ROOT/pages/features/Features-HSM.adoc
@@ -81,7 +81,7 @@ and its usage to sign data.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-OpenSSL.adoc[]
+include::example$Features-HSM-OpenSSL.adoc[]
----
====
@@ -104,7 +104,7 @@ and its usage to sign data.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-GNUTLS.adoc[]
+include::example$Features-HSM-GNUTLS.adoc[]
----
====
@@ -119,7 +119,7 @@ An example PIN callback function is shown below.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-GNUTLS-PIN.adoc[]
+include::example$Features-HSM-GNUTLS-PIN.adoc[]
----
====
@@ -145,7 +145,7 @@ The following example demonstrates a typical NSS application for signing.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-NSS.adoc[]
+include::example$Features-HSM-NSS.adoc[]
----
====
@@ -173,7 +173,7 @@ $ NSS_Sign_Example "${token_name}:${cert_name}"
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-NSS-PIN.adoc[]
+include::example$Features-HSM-NSS-PIN.adoc[]
----
====
diff --git a/modules/ROOT/pages/features/Features-TLS.adoc b/modules/ROOT/pages/features/Features-TLS.adoc
index fffede7..e66f5da 100644
--- a/modules/ROOT/pages/features/Features-TLS.adoc
+++ b/modules/ROOT/pages/features/Features-TLS.adoc
@@ -3,7 +3,7 @@
[[chap-Defensive_Coding-TLS]]
= Transport Layer Security (TLS)
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
Transport Layer Security (TLS, formerly Secure Sockets
Layer/SSL) is the recommended way to to protect integrity and
@@ -62,7 +62,7 @@ duration of the handshake), or use the Linux-specific
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Nagle.adoc[]
+include::example$Features-TLS-Nagle.adoc[]
----
====
@@ -133,7 +133,7 @@ due to a connection teardown by the other end).
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-OpenSSL-Errors.adoc[]
+include::example$Features-TLS-OpenSSL-Errors.adoc[]
----
====
@@ -309,7 +309,7 @@ The OpenSSL library needs explicit initialization (see <<ex-Defensive_Coding-TLS
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-Init.adoc[]
+include::example$Features-TLS-Client-OpenSSL-Init.adoc[]
----
@@ -332,7 +332,7 @@ be cumbersome.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-CTX.adoc[]
+include::example$Features-TLS-Client-OpenSSL-CTX.adoc[]
----
====
@@ -380,7 +380,7 @@ name.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-Connect.adoc[]
+include::example$Features-TLS-Client-OpenSSL-Connect.adoc[]
----
====
@@ -397,7 +397,7 @@ transport, using `BIO_set_ssl`.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-Connection-Use.adoc[]
+include::example$Features-TLS-Client-OpenSSL-Connection-Use.adoc[]
----
====
@@ -418,7 +418,7 @@ socket after the connection object has been freed.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-OpenSSL-Connection-Close.adoc[]
+include::example$Features-TLS-OpenSSL-Connection-Close.adoc[]
----
====
@@ -433,7 +433,7 @@ because no further TLS connections will be established.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-OpenSSL-Context-Close.adoc[]
+include::example$Features-TLS-OpenSSL-Context-Close.adoc[]
----
====
@@ -456,7 +456,7 @@ CAs (<<ex-Defensive_Coding-TLS-Client-GNUTLS-Credentials>>).
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-GNUTLS-Credentials.adoc[]
+include::example$Features-TLS-Client-GNUTLS-Credentials.adoc[]
----
====
@@ -466,7 +466,7 @@ object should be freed:
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-GNUTLS-Credentials-Close.adoc[]
+include::example$Features-TLS-GNUTLS-Credentials-Close.adoc[]
----
During its lifetime, the credentials object can be used to
@@ -486,7 +486,7 @@ This is shown in <<ex-Defensive_Coding-TLS-Client-GNUTLS-Connect>>.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-GNUTLS-Connect.adoc[]
+include::example$Features-TLS-Client-GNUTLS-Connect.adoc[]
----
====
@@ -505,7 +505,7 @@ can be omitted if the functionality is not needed.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-GNUTLS-Verify.adoc[]
+include::example$Features-TLS-Client-GNUTLS-Verify.adoc[]
----
====
@@ -519,7 +519,7 @@ receiving data, as in <<ex-Defensive_Coding-TLS-GNUTLS-Use>>.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-GNUTLS-Use.adoc[]
+include::example$Features-TLS-GNUTLS-Use.adoc[]
----
====
@@ -535,7 +535,7 @@ Finally, the session object can be deallocated using
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-GNUTLS-Disconnect.adoc[]
+include::example$Features-TLS-GNUTLS-Disconnect.adoc[]
----
====
@@ -548,7 +548,7 @@ classes:
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Import.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Import.adoc[]
----
@@ -579,7 +579,7 @@ be supported as a fall-back option. This is shown in <<ex-Defensive_Coding-TLS-C
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Context.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Context.adoc[]
----
====
@@ -595,7 +595,7 @@ connections.
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-OpenJDK-Parameters.adoc[]
+include::example$Features-TLS-OpenJDK-Parameters.adoc[]
----
====
@@ -606,7 +606,7 @@ separately, and this is only supported by OpenJDK 7 and later:
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Hostname.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Hostname.adoc[]
----
All application protocols can use the
@@ -629,7 +629,7 @@ internal API on OpenJDK 6.
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Connect.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Connect.adoc[]
----
====
@@ -650,7 +650,7 @@ The TLS socket can be used as a regular socket, as shown in
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Use.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Use.adoc[]
----
====
@@ -675,7 +675,7 @@ the server certificate is identified by its SHA-256 hash.
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-MyTrustManager.adoc[]
+include::example$Features-TLS-Client-OpenJDK-MyTrustManager.adoc[]
----
====
@@ -690,7 +690,7 @@ This trust manager has to be passed to the
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Context_For_Cert.adoc[]
----
====
@@ -735,7 +735,7 @@ Using NSS needs several header files, as shown in
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Includes.adoc[]
+include::example$Features-TLS-NSS-Includes.adoc[]
----
====
@@ -761,7 +761,7 @@ load trusted CA certificates from a file.)
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Init.adoc[]
+include::example$Features-TLS-NSS-Init.adoc[]
----
@@ -772,7 +772,7 @@ the following function calls:
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Close.adoc[]
+include::example$Features-TLS-NSS-Close.adoc[]
----
After NSS has been initialized, the TLS connection can be
@@ -808,7 +808,7 @@ certificate is verified and matched against the host name.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-NSS-Connect.adoc[]
+include::example$Features-TLS-Client-NSS-Connect.adoc[]
----
====
@@ -822,7 +822,7 @@ the NSPR descriptor to communicate with the server.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Use.adoc[]
+include::example$Features-TLS-NSS-Use.adoc[]
----
====
@@ -836,7 +836,7 @@ shows how to close the connection.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-NSS-Close.adoc[]
+include::example$Features-TLS-Client-NSS-Close.adoc[]
----
@@ -877,7 +877,7 @@ certificate returned by `getpeercert`.
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Client-Python-check_host_name.adoc[]
+include::example$Features-TLS-Client-Python-check_host_name.adoc[]
----
====
@@ -923,7 +923,7 @@ manually against the host name, by calling the
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Client-Python-Connect.adoc[]
+include::example$Features-TLS-Client-Python-Connect.adoc[]
----
====
@@ -933,12 +933,12 @@ be used like a regular socket:
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Python-Use.adoc[]
+include::example$Features-TLS-Python-Use.adoc[]
----
Closing the TLS socket is straightforward as well:
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Python-Close.adoc[]
+include::example$Features-TLS-Python-Close.adoc[]
----
diff --git a/modules/ROOT/pages/index.adoc b/modules/ROOT/pages/index.adoc
index 898c10d..ad123ed 100644
--- a/modules/ROOT/pages/index.adoc
+++ b/modules/ROOT/pages/index.adoc
@@ -1,5 +1,5 @@
:experimental:
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
= Defensive coding guide
@@ -15,6 +15,6 @@ concrete recommendations.
--
image::title_logo.svg[]
-include::{partialsdir}/Legal_Notice.adoc[]
+include::partial$Legal_Notice.adoc[]
-include::{partialsdir}/Author_Group.adoc[]
+include::partial$Author_Group.adoc[]
diff --git a/modules/ROOT/pages/programming-languages/C-Language.adoc b/modules/ROOT/pages/programming-languages/C-Language.adoc
index a0f450a..c3a52a0 100644
--- a/modules/ROOT/pages/programming-languages/C-Language.adoc
+++ b/modules/ROOT/pages/programming-languages/C-Language.adoc
@@ -56,7 +56,7 @@ The cast silences a compiler warning;
[source,c]
----
-include::partial$snippets/C-Pointers-remaining.adoc[]
+include::example$C-Pointers-remaining.adoc[]
----
@@ -86,7 +86,7 @@ see <<ex-Defensive_Coding-C-Arithmetic-bad>>.
[source,c]
----
-include::partial$snippets/C-Arithmetic-add.adoc[]
+include::example$C-Arithmetic-add.adoc[]
----
@@ -113,7 +113,7 @@ additions have to be checked in this way.
[source,c]
----
-include::partial$snippets/C-Arithmetic-add_unsigned.adoc[]
+include::example$C-Arithmetic-add_unsigned.adoc[]
----
====
@@ -129,7 +129,7 @@ see <<ex-Defensive_Coding-C-Arithmetic-mult>>.
[source,c]
----
-include::partial$snippets/C-Arithmetic-mult.adoc[]
+include::example$C-Arithmetic-mult.adoc[]
----
====
@@ -189,7 +189,7 @@ after the `*`, and not before it.
[source,c]
----
-include::partial$snippets/C-Globals-String_Array.adoc[]
+include::example$C-Globals-String_Array.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/C-Libc.adoc b/modules/ROOT/pages/programming-languages/C-Libc.adoc
index 1882ab7..e34bc3b 100644
--- a/modules/ROOT/pages/programming-languages/C-Libc.adoc
+++ b/modules/ROOT/pages/programming-languages/C-Libc.adoc
@@ -1,7 +1,7 @@
:experimental:
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
[[sect-Defensive_Coding-C-Libc]]
== The C Standard Library
@@ -127,7 +127,7 @@ size is allocated on the heap, consider use
[source,c]
----
-include::partial$snippets/C-String-Functions-snprintf.adoc[]
+include::example$C-String-Functions-snprintf.adoc[]
----
@@ -157,7 +157,7 @@ invariant. After the loop, the result string is in the
[source,c]
----
-include::partial$snippets/C-String-Functions-snprintf-incremental.adoc[]
+include::example$C-String-Functions-snprintf-incremental.adoc[]
----
@@ -192,7 +192,7 @@ function (see <<ex-Defensive_Coding-C-String-Functions-format-Attribute>>).
[source,c]
----
-include::partial$snippets/C-String-Functions-format.adoc[]
+include::example$C-String-Functions-format.adoc[]
----
@@ -207,7 +207,7 @@ ensuring NUL termination is:
[source,c]
----
-include::partial$snippets/C-String-Functions-strncpy.adoc[]
+include::example$C-String-Functions-strncpy.adoc[]
----
@@ -216,7 +216,7 @@ function for this purpose:
[source,c]
----
-include::partial$snippets/C-String-Functions-strncat-as-strncpy.adoc[]
+include::example$C-String-Functions-strncat-as-strncpy.adoc[]
----
@@ -239,7 +239,7 @@ approach similar to <<ex-Defensive_Coding-C-String-Functions-snprintf-incrementa
[source,c]
----
-include::partial$snippets/C-String-Functions-strncat-emulation.adoc[]
+include::example$C-String-Functions-strncat-emulation.adoc[]
----
@@ -249,7 +249,7 @@ string:
[source,c]
----
-include::partial$snippets/C-String-Functions-strncat-merged.adoc[]
+include::example$C-String-Functions-strncat-merged.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Go.adoc b/modules/ROOT/pages/programming-languages/Go.adoc
index 368e1ba..93d5218 100644
--- a/modules/ROOT/pages/programming-languages/Go.adoc
+++ b/modules/ROOT/pages/programming-languages/Go.adoc
@@ -53,7 +53,7 @@ details.
[source,go]
----
-include::partial$snippets/Go-Error_Handling-Regular.adoc[]
+include::example$Go-Error_Handling-Regular.adoc[]
----
@@ -73,7 +73,7 @@ returning both data and an error at the same time.
[source,go]
----
-include::partial$snippets/Go-Error_Handling-IO.adoc[]
+include::example$Go-Error_Handling-IO.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Java-Language.adoc b/modules/ROOT/pages/programming-languages/Java-Language.adoc
index 176d4ae..5ac12a8 100644
--- a/modules/ROOT/pages/programming-languages/Java-Language.adoc
+++ b/modules/ROOT/pages/programming-languages/Java-Language.adoc
@@ -31,7 +31,7 @@ data, implementing an exponential growth policy. See the
[source,java]
----
-include::partial$snippets/Java-Language-ReadArray.adoc[]
+include::example$Java-Language-ReadArray.adoc[]
----
@@ -62,7 +62,7 @@ possible and should not throw any exceptions.
[source,java]
----
-include::partial$snippets/Java-Finally.adoc[]
+include::example$Java-Finally.adoc[]
----
@@ -87,7 +87,7 @@ used instead. The Java compiler will automatically insert the
[source,java]
----
-include::partial$snippets/Java-TryWithResource.adoc[]
+include::example$Java-TryWithResource.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc b/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc
index 6697f1c..4c184f8 100644
--- a/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc
+++ b/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc
@@ -75,7 +75,7 @@ beginning of the array.
[source,java]
----
-include::partial$snippets/Java-JNI-Pointers.adoc[]
+include::example$Java-JNI-Pointers.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc b/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc
index 17b7933..c3c7101 100644
--- a/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc
+++ b/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc
@@ -110,7 +110,7 @@ shows how to run a piece code of with reduced privileges.
[source,java]
----
-include::partial$snippets/Java-SecurityManager-Unprivileged.adoc[]
+include::example$Java-SecurityManager-Unprivileged.adoc[]
----
@@ -123,7 +123,7 @@ on all files in the current directory) can be used:
[source,java]
----
-include::partial$snippets/Java-SecurityManager-CurrentDirectory.adoc[]
+include::example$Java-SecurityManager-CurrentDirectory.adoc[]
----
@@ -208,7 +208,7 @@ shows how to request additional privileges.
[source,java]
----
-include::partial$snippets/Java-SecurityManager-Privileged.adoc[]
+include::example$Java-SecurityManager-Privileged.adoc[]
----
@@ -249,7 +249,7 @@ invocation out of the privileged code section, of course.)
[source,java]
----
-include::partial$snippets/Java-SecurityManager-Callback.adoc[]
+include::example$Java-SecurityManager-Callback.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Shell.adoc b/modules/ROOT/pages/programming-languages/Shell.adoc
index 8362485..4ad08f5 100644
--- a/modules/ROOT/pages/programming-languages/Shell.adoc
+++ b/modules/ROOT/pages/programming-languages/Shell.adoc
@@ -3,7 +3,7 @@
[[chap-Defensive_Coding-Shell]]
= Shell Programming and [application]*bash*
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
This chapter contains advice about shell programming, specifically
in [application]*bash*. Most of the advice will apply
@@ -350,7 +350,7 @@ POSIX shells.
[source,bash]
----
-include::partial$snippets/Shell-Input_Validation.adoc[]
+include::example$Shell-Input_Validation.adoc[]
----
diff --git a/modules/ROOT/pages/tasks/Tasks-File_System.adoc b/modules/ROOT/pages/tasks/Tasks-File_System.adoc
index 12e24e8..402661d 100644
--- a/modules/ROOT/pages/tasks/Tasks-File_System.adoc
+++ b/modules/ROOT/pages/tasks/Tasks-File_System.adoc
@@ -1,6 +1,6 @@
:experimental:
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
[[chap-Defensive_Coding-Tasks-File_System]]
= File System Manipulation
diff --git a/modules/ROOT/pages/tasks/Tasks-Processes.adoc b/modules/ROOT/pages/tasks/Tasks-Processes.adoc
index b5bdcd6..97b3c07 100644
--- a/modules/ROOT/pages/tasks/Tasks-Processes.adoc
+++ b/modules/ROOT/pages/tasks/Tasks-Processes.adoc
@@ -3,7 +3,7 @@
[[sect-Defensive_Coding-Tasks-Processes]]
= Processes
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
[[sect-Defensive_Coding-Tasks-Processes-Creation]]
== Creating Safe Processes
diff --git a/modules/ROOT/pages/tasks/Tasks-Serialization.adoc b/modules/ROOT/pages/tasks/Tasks-Serialization.adoc
index 4c52a9d..c6152dc 100644
--- a/modules/ROOT/pages/tasks/Tasks-Serialization.adoc
+++ b/modules/ROOT/pages/tasks/Tasks-Serialization.adoc
@@ -267,7 +267,7 @@ problems related to that.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc[]
+include::example$Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc[]
----
@@ -282,7 +282,7 @@ This handler must be installed when the
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Expat-Create.adoc[]
+include::example$Tasks-Serialization-XML-Expat-Create.adoc[]
----
@@ -315,7 +315,7 @@ parsing to stop when encountering entity declarations.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc[]
+include::example$Tasks-Serialization-XML-Qt-NoEntityHandler.adoc[]
----
@@ -336,7 +336,7 @@ may need adjusting.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Qt-NoEntityReader.adoc[]
+include::example$Tasks-Serialization-XML-Qt-NoEntityReader.adoc[]
----
@@ -358,7 +358,7 @@ return value and report any error.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Qt-QDomDocument.adoc[]
+include::example$Tasks-Serialization-XML-Qt-QDomDocument.adoc[]
----
@@ -389,7 +389,7 @@ external ID resolution.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc[]
----
@@ -401,7 +401,7 @@ include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc[]
----
====
@@ -415,7 +415,7 @@ shows the imports used by the examples.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-Imports.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK-Imports.adoc[]
----
====
@@ -435,7 +435,7 @@ instance in the `inputStream` variable.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc[]
----
====
@@ -467,7 +467,7 @@ using a SAX-based approach. The XML data is read from an
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc[]
----
====
@@ -490,7 +490,7 @@ to perform the schema-based validation on the
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc[]
----
====
diff --git a/modules/ROOT/pages/_partials/Author_Group.adoc b/modules/ROOT/partials/Author_Group.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/Author_Group.adoc
rename to modules/ROOT/partials/Author_Group.adoc
diff --git a/modules/ROOT/pages/_partials/Legal_Notice.adoc b/modules/ROOT/partials/Legal_Notice.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/Legal_Notice.adoc
rename to modules/ROOT/partials/Legal_Notice.adoc
diff --git a/modules/ROOT/pages/_partials/entities.adoc b/modules/ROOT/partials/entities.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/entities.adoc
rename to modules/ROOT/partials/entities.adoc
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.