Table of Contents | Previous

NSAPI Programmer's Guide

Index

A

abbrev, value of sizefmt attribute 232
access
logging 90
ACLFile
magnus.conf directive 214
AddLog directive
obj.conf 89
API functions
cif_find 118
condvar_init 119
condvar_notify 119
condvar_terminate 120
condvar_wait 120
crit_enter 120
crit_exit 121
crit_init 121
crit_terminate 121
daemon_atrestart 122
filebuf_buf2sd 122
filebuf_close 123
filebuf_getc 123
filebuf_open 124
filebuf_open_nostat 124
FREE 125
func_exec 125
func_find 126
log_error 127
magnus_atrestart 128
MALLOC 118, 128
net_ip2host 129
net_read 129
net_write 130
netbuf_buf2sd 130
netbuf_close 130
netbuf_getc 131
netbuf_grab 131
netbuf_open 131
param_create 132
param_free 132
pblock_copy 133
pblock_create 133
pblock_dup 133
pblock_find 134
pblock_findval 134
pblock_free 135
pblock_nninsert 135
pblock_nvinsert 135
pblock_pb2env 136
pblock_pblock2str 136
pblock_pinsert 137
pblock_remove 137
pblock_str2pblock 137
PERM_FREE 139
PERM_MALLOC 138, 139, 140
PERM_STRDUP 140
protocol_dump822 141
protocol_set_finfo 141
protocol_start_response 142
protocol_status 143
protocol_uri2url 144
REALLOC 145
request_header 146
request_stat_path 146
request_translate_uri 147
session_maxdns 148
shexp_casecmp 148
shexp_cmp 149
shexp_match 149
shexp_valid 150
STRDUP 150
system_errmsg 151
system_fclose 151
system_flock 152
system_fopenRO 152
system_fopenRW 152
system_fopenWA 153
system_fread 153
system_fwrite 154
system_fwrite_atomic 154
system_gmtime 155
system_localtime 155
system_lseek 156
system_rename 156
system_ulock 156, 157
system_unix2local 157
systhread_current 158
systhread_getdata 158
systhread_newkey 159
systhread_setdata 159
systhread_sleep 159
systhread_start 160
systhread_timerset 160
util_can_exec 161
util_chdir2path 161, 162
util_cookie_find 162
util_env_find 163
util_env_free 163
util_env_replace 164
util_env_str 164
util_getline 164
util_hostname 165
util_is_mozilla 165
util_is_url 166
util_itoa 166
util_later_than 166
util_sh_escape 167
util_snprintf 167
util_strcasecmp 168
util_strftime 169
util_strncasecmp 169
util_uri_escape 170
util_uri_is_evil 170
util_uri_parse 171
util_uri_unescape 171
util_vsnprintf 171
util_vsprintf 172
util-sprintf 168
append-trailer
Service-class function 78
assign-name
NameTrans-class function 56
AuthTrans
directive, full description 51
auth-type function 53, 54

B

basic-auth
AuthTrans-class function 52
basic-ncsa
AuthTrans-class function 54
bytes, value of sizefmt attribute 232

C

cache
enabling memory allocation pool 51
cache-init
Init-class function 36
cert2user
PathCheck-class function 62
cgi attribute of the exec command 234
check-acl
PathCheck-class function 63
Chroot
directive 214
magnus.conf directive 214
cif_find
API function 118
cindex-ini
Init-class function 38
cinfo_find
API function 118
Ciphers
magnus.conf directive 215
client
getting DNS name for 193
getting IP address for 193
sessions and 192
cmd attribute of the exec command 234
common-log
Service-class function 90
Common Log subsystem, initializing 47
condvar_init
API function 119
condvar_notify
API function 119
condvar_terminate
API function 120
condvar_wait
API function 120
config command 232
constraint, server under 214
crit_enter
API function 120
crit_exit
API function 121
crit_init
API function 121
crit_terminate
API function 121

D

daemon_atrestart
API function 122
data
structure, session variables for 192
deny-existence
PathCheck-class function 64
directives
magnus.conf 201
dns-cache-init 40
DNS names
getting clients 193
document-root 57
documents
file typing 76
dynamic link library, loading 49

E

echo command 233
environment variables
and init-cgi function 46
errmsg attribute of config command 232
Error directive
obj.conf 92
ErrorLog
magnus.conf directive 212
errors
finding most recent system error 151
sending customized messages 93
exec command 234

F

fancy indexing 38
file attribute of include command 233
filebuf_buf2sd
API function 122
filebuf_close
API function 123
filebuf_getc
API function 123
filebuf_open
API function 124
filebuf_open_nostat
API function 124
file descriptor
closing 151
locking 152
opening read-only 152
opening read-write 152
opening write-append 153
reading into a buffer 153
unlocking 156, 157
writing from a buffer 154
writing without interruption 154
file name extension
mapping to MIME types 49
files
forcing type of 74
mapping types of 219
typing 76
typing by wildcard pattern 75
file types 74
find-index
PathCheck-class function 65
find-links
PathCheck-class function 65
find-pathinfo
PathCheck-class function 66
flastmod command 233
affected by timefmt attribute 232
flexible logging 40
flex-init
Init-class function 40
flex-log
AddLog-class function 90
force-type
ObjectType-class function 74
FREE
API function 125
fsize command 233
func_exec
API function 125
func_find
API function 126
funcs parameter 49
function
responses for 100
return values and 100

G

GET
method 77
get-client-cert
PathCheck-class function 66
GMT time
getting thread-safe value 155

H

hard links, finding 65
HEAD
method 77
home-page 58
HTTP 235
compliance with 1.1 235
requests 236
responses 237
httpd.lib 102
HUP signal
Chroot and 214
PidLog and 213

I

imagemap
Service-class function 79
include command 233
index-common
Service-class function 80
indexing
fancy 38
index-simple
Service-class function 81
Init
obj.conf directive 36
init-cgi 46
Init-class function 40, 46
init-clf
Init-class function 47
initializing for CGI 46
init-uhome
Init-class function 48
IP address
getting clients 193
iponly function 90, 91

K

key-toosmall
Service-class function 82

L

LAST_MODIFIED variable 234
LateInit parameter to Init directive 36
list-dir
Service-class function 82
load-config
PathCheck-class function 68
load-modules
Init-class function 49
load-types
Init-class function 49
localtime
getting thread-safe value 155
local-types parameter 50
log_error
API function 127
log analyzer 90, 91
log file 90
analyzer for 90, 91
logging, flexible 40

M

magnus.conf
directives in 201
magnus_atrestart
API function 128
make-dir
Service-class function 83
MALLOC
API function 118, 128
memory allocation, pool-init Init-class function 51
method
server and 77
mime.types file 219
sample of 222
MIME types
mapping from file name extensions 49
typing files 76
MIME-types parameter 50
mmap (memory-mapped) files 37
mozilla-redirect 58

N

NameTrans-class function 57, 58
NameTrans directive
obj.conf 55
NativeThread parameter to Init directive 49
net_ip2host
API function 129
net_read
API function 129
net_write
API function 130
netbuf_buf2sd
API function 130
netbuf_close
API function 130
netbuf_getc
API function 131
netbuf_grab
API function 131
netbuf_open
API function 131
ntcgicheck
PathCheck-class function 71
nt-uri-clean
PathCheck-class function 70

O

object
default,
specifying 206
ObjectType directive
obj.conf 73

P

param_create
API function 132
param_free
API function 132
parse-html
Service-class function 84
path
absolute with Chroot directive 215
PathCheck
directive in obj.conf 61
path name
converting Unix-style to local 157
pblock_copy
API function 133
pblock_create
API function 133
pblock_dup
API function 133
pblock_find
API function 134
pblock_findval
API function 134
pblock_free
API function 135
pblock_nninsert
API function 135
pblock_nvinsert
API function 135
pblock_pb2env
API function 136
pblock_pblock2str
API function 136
pblock_pinsert
API function 137
pblock_remove
API function 137
pblock_str2pblock
API function 137
PERM_FREE
API function 139
PERM_MALLOC
API function 138, 139, 140
PERM_STRDUP
API function 140
pfx2dir 59
NameTrans-class function 59
PidLog
magnus.conf directive 213
pool-init Init-class function 51
port
magnus.conf directive 203
specifying 203
POST
method 77
protocol_dump822
API function 141
protocol_set_finfo
API function 141
protocol_start_response
API function 142
protocol_status
API function 143
protocol_uri2url
API function 144

Q

QUERY_STRING_UNESCAPED variable 234
query-handler
Service-class function 84

R

REALLOC
API function 145
record-useragent
Service-class function 91
redirect
NameTrans-class function 60
remove-dir
Service-class function 85
remove-file
Service-class function 85
rename-file
Service-class function 86
REQ_ABORTED
response code 100
REQ_EXIT
response code 100
REQ_NOACTION
response code 100
REQ_PROCEED
response code 100
request_stat_path
API function 146
request_translate_uri
API function 147
request-header
API function 146
requests
HTTP 236
require-auth
PathCheck-class function 71
responses, HTTP 237
RootObject
magnus.conf directive 206

S

Security
magnus.conf directive 215
security
constraining the server 214
send-cgi
Service-class function 86
send-error
Error-class function 92
send-file
Service-class function 87
send-range
Service-class function 87
send-shellcgi
Service-class function 88
send-wincgi
Service-class function 88
server
constraining 214
constraining of 214
initializing 36
ServerCert
magnus.conf directive 215
ServerKey
magnus.conf directive 216
Server Manager
CGI and ??-231
ServerName
magnus.conf directive 203
servers
HUP signal 213
killing process of 213
TERM signal 213
Service directive
obj.conf 77
session
defined 192
resolving the IP address of 148
session_maxdns
API function 148
shared library, loading 49
shell expression
comparing (case-blind) to a string 148
comparing (case-sensitive) to a string 149
validating 150
shexp_casecmp
API function 148
shexp_cmp
API function 149
shexp_match
API function 149
shexp_valid
API function 150
shlib parameter 49
shtml-hacktype
ObjectType-class function 75
sizefmt attribute of config command 232
socket
closing 130
reading from 129
sending a buffer to 130
sending file buffer to 122
writing to 130
sprintf, see util_sprintf 168
SSL2
magnus.conf directive 217
SSL3Ciphers
magnus.conf directive 217
SSL3SessionTimeout
magnus.conf directive 217
SSLClientAuth
magnus.conf directive 216
SSLSessionTimeout
magnus.conf directive 216
STRDUP
API function 150
string
creating a copy of 150
symbolic links
finding 65
system 157
system_errmsg
API function 151
system_fclose
API function 151
system_flock
API function 152
system_fopenRO
API function 152
system_fopenRW
API function 152
system_fopenWA
API function 153
system_fread
API function 153
system_fwrite
API function 154
system_fwrite_atomic
API function 154
system_gmtime
API function 155
system_localtime
API function 155
system_lseek
API function 156
system_rename
API function 156
system_ulock
API function 156, 157
system_unix2local
API function 157
systhread_current
API function 158
systhread_getdata
API function 158
systhread_newkey
API function 159
systhread_setdata
API function 159
systhread_sleep
API function 159
systhread_start
API function 160
systhread_timerset
API function 160

T

TERM signal 213
thread
allocating a key for 159
creating 160
getting a pointer to 158
getting data belonging to 158
putting to sleep 159
setting data belonging to 159
setting interrupt timer 160
timefmt tag 232
type-by-exp
ObjectType-class function 75
type-by-extension
ObjectType-class function 76

U

Unix
constraining the server 214
unix-home
NameTrans-class function 61
unix-uri-clean
PathCheck-class function 72
Unix user account
specifying 204
upload-file
Service-class function 89
URL
mapping to other servers 59
translated to file path 17
User
magnus.conf directive 204
user account
specifying 204
user home directories
symlinks and 66
util_can_exec
API function 161
util_chdir2path
API function 161, 162
util_cookie_find
API function 162
util_env_find
API function 163
util_env_free
API function 163
util_env_replace
API function 164
util_env_str
API function 164
util_getline
API function 164
util_hostname
API function 165
util_is_mozilla
API function 165
util_is_url
API function 166
util_itoa
API function 166
util_later_than
API function 166
util_sh_escape
API function 167
util_snprintf
API function 167
util_sprintf
API function 168
util_strcasecmp
API function 168
util_strftime
API function 169
util_strncasecmp
API function 169
util_uri_escape
API function 170
util_uri_is_evil
API function 170
util_uri_parse
API function 171
util_uri_unescape
API function 171
util_vsnprintf
API function 171
util_vsprintf
API function 172

V

virtual attribute of the include command 233
vsnprintf, see util_vsnprintf 171
vsprintf, see util_vsprintf 172

W

wildcard patterns
file typing and 75

Table of Contents | Previous

Last Updated: 07/13/99 18:09:21