os.c revision 842ae4bd224140319ae7feec1872b93dfd491143
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* This file will include OS specific functions which are not inlineable.
* Any inlineable functions should be defined in os-inline.c instead.
*/
#include "httpd.h"
#include "http_core.h"
#include "os.h"
#include "scoreboard.h"
#include "http_log.h"
#ifndef __PIPE_
{
return(-1);
}
#endif
/* fork and exec functions are not defined on
TPF due to the implementation of tpf_fork() */
{
return(-1);
}
{
return(-1);
}
{
return(-1);
}
{
return(-1);
}
{
return(-1);
}
{
struct tpf_fork_input fork_input;
int count;
listen_rec *lr;
"unable to replace stdin with sock device driver");
"unable to replace stdout with sock device driver");
lr = ap_listeners;
count = 0;
do {
count++;
} while(lr != ap_listeners);
return tpf_fork(&fork_input);
}
int os_check_server(char *server) {
#ifndef USE_TPF_DAEMON
int rv;
int *current_acn;
return 1;
else {
return 1;
}
#endif
return 0;
}
const request_rec *r,
const char * const *args,
const char * const *env,
{
}