Apache HTTPD
apr_lib.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef APR_LIB_H
18#define APR_LIB_H
19
28#include "apr.h"
29#include "apr_errno.h"
30
31#if APR_HAVE_CTYPE_H
32#include <ctype.h>
33#endif
34#if APR_HAVE_STDARG_H
35#include <stdarg.h>
36#endif
37
38#ifdef __cplusplus
39extern "C" {
40#endif /* __cplusplus */
41
52#define HUGE_STRING_LEN 8192
53
54/*
55 * Define the structures used by the APR general-purpose library.
56 */
57
60
66 char *curpos;
68 char *endpos;
69};
70
84APR_DECLARE(const char *) apr_filepath_name_get(const char *pathname);
85
92#ifdef WIN32
93#define apr_killpg(x, y)
94#else /* WIN32 */
95#ifdef NO_KILLPG
96#define apr_killpg(x, y) (kill (-(x), (y)))
97#else /* NO_KILLPG */
98#define apr_killpg(x, y) (killpg ((x), (y)))
99#endif /* NO_KILLPG */
100#endif /* WIN32 */
101
177
191
203#define apr_isalnum(c) (isalnum(((unsigned char)(c))))
205#define apr_isalpha(c) (isalpha(((unsigned char)(c))))
207#define apr_iscntrl(c) (iscntrl(((unsigned char)(c))))
209#define apr_isdigit(c) (isdigit(((unsigned char)(c))))
211#define apr_isgraph(c) (isgraph(((unsigned char)(c))))
213#define apr_islower(c) (islower(((unsigned char)(c))))
215#ifdef isascii
216#define apr_isascii(c) (isascii(((unsigned char)(c))))
217#else
218#define apr_isascii(c) (((c) & ~0x7f)==0)
219#endif
221#define apr_isprint(c) (isprint(((unsigned char)(c))))
223#define apr_ispunct(c) (ispunct(((unsigned char)(c))))
225#define apr_isspace(c) (isspace(((unsigned char)(c))))
227#define apr_isupper(c) (isupper(((unsigned char)(c))))
229#define apr_isxdigit(c) (isxdigit(((unsigned char)(c))))
231#define apr_tolower(c) (tolower(((unsigned char)(c))))
233#define apr_toupper(c) (toupper(((unsigned char)(c))))
234
237#ifdef __cplusplus
238}
239#endif
240
241#endif /* ! APR_LIB_H */
APR Error Codes.
const char const char * pathname
Definition apr_dbm.h:201
const void apr_status_t(*) apr_status_t(* APR_DECLARE)(void) apr_pool_pre_cleanup_register(apr_pool_t *p
Definition apr_pools.h:646
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
apr_vformatter_buff_t const char * fmt
Definition apr_lib.h:175
char apr_size_t * bufsize
Definition apr_lib.h:190
apr_vformatter_buff_t * c
Definition apr_lib.h:175
apr_vformatter_buff_t const char va_list ap
Definition apr_lib.h:176
char * pwbuf
Definition apr_lib.h:189
apr_pool_t * b
Definition apr_pools.h:529