File: nbdkit.syms

package info (click to toggle)
nbdkit 1.42.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,700 kB
  • sloc: ansic: 59,169; sh: 16,858; makefile: 6,452; python: 1,837; cpp: 1,116; perl: 502; ml: 498; tcl: 62
file content (111 lines) | stat: -rw-r--r-- 3,617 bytes parent folder | download | duplicates (2)
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
102
103
104
105
106
107
108
109
110
111
# nbdkit
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# * Neither the name of Red Hat nor the names of its contributors may be
# used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.

# This linker script controls the visibility of symbols in the final
# nbdkit binary.  We want to export some symbols to plugins, but at
# the same time we don't want plugins to be able to call arbitrary
# functions from nbdkit, so this script lists only the symbols we want
# to export.

{
  # The functions we want plugins and filters to call.
  global:
    nbdkit_absolute_path;
    nbdkit_add_export;
    nbdkit_add_extent;
    nbdkit_context_get_backend;
    nbdkit_context_set_next;
    nbdkit_debug;
    nbdkit_disconnect;
    nbdkit_error;
    nbdkit_export_name;
    nbdkit_exports_count;
    nbdkit_exports_free;
    nbdkit_exports_new;
    nbdkit_extents_aligned;
    nbdkit_extents_count;
    nbdkit_extents_free;
    nbdkit_extents_full;
    nbdkit_extents_new;
    nbdkit_get_export;
    nbdkit_get_extent;
    nbdkit_is_tls;
    nbdkit_nanosleep;
    nbdkit_next_context_close;
    nbdkit_next_context_open;
    nbdkit_parse_bool;
    nbdkit_parse_delay;
    nbdkit_parse_int16_t;
    nbdkit_parse_int32_t;
    nbdkit_parse_int64_t;
    nbdkit_parse_int8_t;
    nbdkit_parse_int;
    nbdkit_parse_probability;
    nbdkit_parse_size;
    nbdkit_parse_uint16_t;
    nbdkit_parse_uint32_t;
    nbdkit_parse_uint64_t;
    nbdkit_parse_uint8_t;
    nbdkit_parse_unsigned;
    nbdkit_peer_gid;
    nbdkit_peer_name;
    nbdkit_peer_pid;
    nbdkit_peer_security_context;
    nbdkit_peer_tls_dn;
    nbdkit_peer_tls_issuer_dn;
    nbdkit_peer_uid;
    nbdkit_printf_intern;
    nbdkit_read_password;
    nbdkit_realpath;
    nbdkit_set_error;
    nbdkit_shutdown;
    nbdkit_stdio_safe;
    nbdkit_strdup_intern;
    nbdkit_strndup_intern;
    nbdkit_use_default_export;
    nbdkit_vdebug;
    nbdkit_verror;
    nbdkit_vprintf_intern;

    nbdkit_debug_*;

    # For AFL++ to work:
    __afl_*;

    # The _IO_stdin_used symbol is used by the GNU libc determine which
    # version of the I/O functions should be used. Not exporting it
    # means that the "old" version is used, leading to crashes or other
    # issues on architectures that were supported by glibc 2.0.
    _IO_stdin_used;

  # Everything else is hidden.
  local: *;
};