summaryrefslogtreecommitdiff
path: root/www/php3/files/abstractions.c
blob: 7d8048f124944d3b7a3813b9f27deefdfa75430e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*	$NetBSD: abstractions.c,v 1.1 1999/05/03 19:45:44 tv Exp $	*/

/*
 * This provides abstracted definitions for a few functions that are
 * "inlined" in normal statically-compiled PHP modules.  This way, any
 * dynamic module can be used with any PHP server interface (CGI, Apache, ...).
 */

#define PHP_INTERNAL_FUNCS 1
#include "php.h"

void _php3_puts(const char *s) {
	PUTS(s);
}

void _php3_putc(char c) {
	PUTC(c);
}

int _php3_write(const void *a, int n) {
	PHPWRITE(a, n);
}

void _php3_block_interruptions(void) {
	BLOCK_INTERRUPTIONS;
}

void _php3_unblock_interruptions(void) {
	UNBLOCK_INTERRUPTIONS;
}