Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://old.master.cmc.msu.ru/manual/readme-tpf.html
Дата изменения: Sat Oct 14 13:12:03 2000 Дата индексирования: Mon Oct 1 23:41:16 2012 Кодировка: |
This version of Apache includes changes allowing it to run on
IBM's EBCDIC-based
TPF
(Transaction Processing Facility) operating system.
Unless otherwise noted TPF version 4.1 PUT09 is required.
Refer to htdocs/manual/install-tpf.html
for step-by-step installation instructions.
As this is the first cut at making Apache run on TPF,
performance tuning has not been done.
This port builds upon the EBCDIC changes
previously made to Apache.
The distributed configuration files (httpd.conf-dist and mime.types, both located in the conf subdirectory) work on TPF. Performance considerations may dictate setting KeepAlive to "Off" (the default is "On") or lowering the Timeout value from the default 300 seconds (5 minutes) in order to reduce the number of active ECBs on your system.
The following is a very simple example of a CGI script ("Hello World") and the necessary steps to run it.
Refer to the mod_cgi module for
additional information.
/** QZZ1-- simple "Hello world" program to demonstrate basic CGI output **/
#include <stdio.h>
void main() {
/** Print the CGI response header, required for all HTML output. **/
/** Note the extra \n, to send the blank line. **/
printf("Content-type: text/html\n\n");
/** Print the HTML response page to stdout. **/
printf("<html>\n");
printf("<head><title> CGI Output </title></head>\n");
printf("<body>\n");
printf("<h1> Hello world </h1> \n");
printf("</body>\n");
printf("</html>\n");
}
tpf_process_signals()
function.
Additionally, the default action for an alarm on TPF is to take
an OPR-7777 dump and exit. (On UNIX the default is the equivalent
of exit()
with no dump taken.)
These differences necessitated a few modifications:
ap_block_alarms()
&
ap_unblock_alarms()
tpf_process_signals()
calls
select()
calls to prevent blocking.
Some simple functions & definitions initially needed to be added
on TPF, such as FD_SET()
.
We've put these in src/os/tpf/os.h for now.
TPF-specific conversion tables between US-ASCII and EBCDIC (character set IBM-1047 to be exact) were created and put into ebcdic.c in the src/os/tpf directory.
Various minor changes (such as casting) were made due to differences in how some functions are implemented on TPF.