view mapfile-vers @ 849:1c4d7ff0a682

buffer: add buffer_insert & buffer_insert_c Like appending, but at any offset - not just at the end of existing data. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 16 Sep 2021 22:39:12 -0400
parents 2198701308ed
children 3a53836f2274
line wrap: on
line source

#
# Copyright (c) 2016-2022 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

JEFFPC_0.10 {
	global:
		# array
		array_alloc;
		array_free;
		array_size;
		array_truncate;

		# base64
		base64_decode;
		base64_decode_init;
		base64_decode_step;
		base64_decode_finish;
		base64_encode;
		base64_encode_init;
		base64_encode_step;
		base64_encode_finish;
		base64url_decode;
		base64url_decode_init;
		base64url_decode_step;
		base64url_decode_finish;
		base64url_encode;
		base64url_encode_init;
		base64url_encode_step;
		base64url_encode_finish;

		# bst
		bst_add;
		bst_create;
		bst_destroy;
		bst_insert_here;
		bst_remove;

		# buffer
		buffer_alloc;
		buffer_copy;
		buffer_free;
		buffer_init_heap;
		buffer_init_sink;
		buffer_init_static;
		buffer_insert;
		buffer_pread;
		buffer_pwrite;
		buffer_seek;
		buffer_truncate;

		# cbor
		cbor_pack_array_end;
		cbor_pack_array_start;
		cbor_pack_array_vals;
		cbor_pack_blob;
		cbor_pack_bool;
		cbor_pack_break;
		cbor_pack_cstr_len;
		cbor_pack_int;
		cbor_pack_map_end;
		cbor_pack_map_start;
		cbor_pack_map_val;
		cbor_pack_nint;
		cbor_pack_null;
		cbor_pack_str;
		cbor_pack_uint;
		cbor_pack_val;
		cbor_peek_type;
		cbor_unpack_array_end;
		cbor_unpack_array_start;
		cbor_unpack_blob;
		cbor_unpack_break;
		cbor_unpack_bool;
		cbor_unpack_cstr_len;
		cbor_unpack_int;
		cbor_unpack_map_end;
		cbor_unpack_map_start;
		cbor_unpack_nint;
		cbor_unpack_null;
		cbor_unpack_str;
		cbor_unpack_val;
		cbor_unpack_uint;

		# cstr
		strcpy_safe;

		# error
		cmn_err;
		cmn_verr;
		jeffpc_assfail3;
		jeffpc_assfail;
		jeffpc_log;
		jeffpc_print;
		panic;
		print_stacktrace;
		save_stacktrace;
		xstrerror;

		# file cache
		file_cache_get;
		file_cache_has_newer;
		file_cache_init;
		file_cache_uncache_all;

		# hexdump
		hexdump;
		hexdumpz;

		# init
		jeffpc_init;

		# io
		read_file_common;
		write_file_at;
		xpread;
		xpwrite;
		xread;
		xwrite;

		# json
		json_pack_array_elem_sep;
		json_pack_array_end;
		json_pack_array_start;
		json_pack_array_vals;
		json_pack_bool;
		json_pack_cstr_len;
		json_pack_int;
		json_pack_map_end;
		json_pack_map_name_sep;
		json_pack_map_pair_sep;
		json_pack_map_start;
		json_pack_map_val;
		json_pack_nint;
		json_pack_null;
		json_pack_str;
		json_pack_uint;
		json_pack_val;

		# list
		list_create;
		list_destroy;
		list_move_tail;

		# mem
		mem_cache_create;
		mem_cache_destroy;
		mem_cache_alloc;
		mem_cache_free;
		mem_reallocarray;
		mem_recallocarray;

		# nvlist
		nvl_clear;
		nvl_convert;
		nvl_exists;
		nvl_exists_type;
		nvl_iter_next;
		nvl_iter_start;
		nvl_lookup;
		nvl_lookup_array;
		nvl_lookup_blob;
		nvl_lookup_bool;
		nvl_lookup_int;
		nvl_lookup_null;
		nvl_lookup_nvl;
		nvl_lookup_str;
		nvl_lookup_val;
		nvl_merge;
		nvl_numitems;
		nvl_set;
		nvl_set_array;
		nvl_set_array_copy;
		nvl_set_blob;
		nvl_set_blob_copy;
		nvl_set_bool;
		nvl_set_cstr_dup;
		nvl_set_int;
		nvl_set_null;
		nvl_set_nvl;
		nvl_set_pair;
		nvl_set_str;
		nvl_unpack;
		nvl_unset;
		nvl_unset_type;
		nvpair_value_array;
		nvpair_value_blob;
		nvpair_value_bool;
		nvpair_value_int;
		nvpair_value_null;
		nvpair_value_nvl;
		nvpair_value_str;

		# padding
		check_padding;

		# qstring
		qstring_parse_len;

		# rand
		rand32;
		rand64;
		rand_buf;

		# rbtree
		rb_add;
		rb_create;
		rb_destroy;
		rb_insert_here;
		rb_remove;

		# scgisvc
		scgisvc;

		# sexpr
		sexpr_alist_lookup_bool;
		sexpr_alist_lookup_int;
		sexpr_alist_lookup_list;
		sexpr_alist_lookup_str;
		sexpr_alist_lookup_val;
		sexpr_args_to_list;
		sexpr_array_to_list;
		sexpr_assoc;
		sexpr_car;
		sexpr_cdr;
		sexpr_compact;
		sexpr_dump;
		sexpr_dump_file;
		sexpr_equal;
		sexpr_eval;
		sexpr_length;
		sexpr_list_to_array;
		sexpr_list_to_val_array;
		sexpr_nth;
		sexpr_parse;

		# sock
		connect_ip;
		xgethostname;

		# socksvc
		socksvc;

		# str / sym
		_strsym_alloc;
		_strsym_alloc_static;
		_strsym_cmp;
		_strsym_dup;
		_strsym_dup_len;
		_strsym_len;
		str_cat;
		str_empty_string;
		str_printf;
		str_vprintf;

		# synch
		barrierdestroy;
		barrierinit;
		barrierwait;
		condbcast;
		conddestroy;
		condinit;
		condtimedwait;
		condsig;
		condwait;
		lockdep_no_locks;
		mxdestroy;
		mxinit;
		mxlock;
		mxunlock;
		rwdestroy;
		rwinit;
		rwlock;
		rwunlock;

		# taskq
		taskq_create_fixed;
		taskq_destroy;
		taskq_dispatch;
		taskq_wait;

		# thread
		xthr_create_named;
		xthr_get_name;
		xthr_set_name;

		# tree
		tree_destroy_nodes;
		tree_find;
		tree_first;
		tree_last;
		tree_nearest;
		tree_next;
		tree_prev;
		tree_swap;

		# unicode
		utf8_is_valid_str;
		utf8_to_utf32;
		utf32_to_utf8;

		# uuid
		xdr_xuuid;
		xuuid_clear;
		xuuid_compare;
		xuuid_generate;
		xuuid_null_uuid;
		xuuid_parse;
		xuuid_parse_no_nul;
		xuuid_unparse;

		# val
		__val_typename;
		val_cmp;
		val_dump_file;
		val_free;
		val_alloc_array;
		val_alloc_array_dup;
		val_alloc_array_static;
		val_alloc_blob;
		val_alloc_blob_dup;
		val_alloc_blob_static;
		val_alloc_bool;
		val_alloc_char;
		val_alloc_cons;
		val_alloc_int;
		val_alloc_null;
		val_alloc_nvl;
		val_empty_cons;
		val_pack;
		val_pack_into;
		val_size;
		val_unpack;

		# urldecode
		urldecode;
		urldecode_str;

		# version
		jeffpc_hgrev;
		jeffpc_hgrev_binary;
		jeffpc_version;

	local:
		*;
};