This repository was archived by the owner on Nov 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAPI-1.0.0
More file actions
101 lines (91 loc) · 2.08 KB
/
API-1.0.0
File metadata and controls
101 lines (91 loc) · 2.08 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php
/**
* Get the default domain name.
*
* @return string|false the domain or false
*/
function yp_get_default_domain()
{}
/**
* Returns the order number for a map.
*
* @var string $domain YP domain name
* @var string $map YP map name
* @return integer|false the order number or false
*/
function yp_order($domain, $map)
{}
/**
* Returns the hostname for the machine on which the master YP server process
* for a map is running.
*
* @var string $domain YP domain name
* @var string $map YP map name
* @return string the machine name of the master
*/
function yp_master($domain, $map)
{}
/**
* Provides the value associated with the given key.
*
* @var string $domain YP domain name
* @var string $map YP map name
* @var string $key
* @return string|false the matched line or false
*/
function yp_match($domain, $map, $key)
{}
/**
* Provides the first key-value pair from the given map in the named domain.
*
* @var string $domain
* @var string $map
* @return array $var[$key] and the the line as the value
*/
function yp_first($domain, $map)
{}
/**
* Provides the next key-value pair in the given map.
*
* @var string $domain YP domain name
* @var string $map YP map name
* @var string $key
* @return array $var[$key] and the the line as the value
*/
function yp_next($domain, $map, $key)
{}
/**
* Provides a way to transfer an entire map from the server to the client
* process with a single request.
*
* @var string $domain YP domain name
* @var string $map YP map name
* @var callable $callback
* @return bool
*/
function yp_all($domain, $map, $callback)
{}
/**
* Return an array containing the entire map
*
* @var string $domain YP domain name
* @var string $map YP map name
* @return array
*/
function yp_cat($domain, $map)
{}
/**
* Returns the error code from the last call or 0 if no error occured
*
* @return integer the error code
*/
function yp_errno()
{}
/**
* Returns the corresponding error string for the given error code
*
* @var integer $errorcode the error code
* @return string the error string
*/
function yp_err_string($errorcode)
{}