diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-12-14 09:27:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-12-14 09:27:45 +0000 |
commit | e93086282801803ff2abe10ac9b3fc0595b58421 (patch) | |
tree | eddbdb846b23fe316b5a199f8d8f7fa4834596ef /lib/libutil/Symbols.map | |
parent | d9b42e1a0a684ebb4c225234722012e8b9070644 (diff) |
Make a few internal symbols static and add a Symbols.map version script
to control which symbols are exported from the shared library.
ok guenther@, deraadt@, jca@
Diffstat (limited to 'lib/libutil/Symbols.map')
-rw-r--r-- | lib/libutil/Symbols.map | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/lib/libutil/Symbols.map b/lib/libutil/Symbols.map new file mode 100644 index 00000000000..942ea2794fc --- /dev/null +++ b/lib/libutil/Symbols.map @@ -0,0 +1,92 @@ +/* + * In order to guarantee that static and shared archs see the same "public" + * symbols, this file should always include all the non-static symbols that + * are in the application namespace. So, if a symbol starts with a letter, + * don't delete it from here without either making it static or renaming it + * to have a leading underbar. + */ + +{ + global: + bcrypt_pbkdf; + fdforkpty; + fdopenpty; + fmt_scaled; + forkpty; + fparseln; + getmaxpartitions; + getptmfd; + getrawpartition; + ibuf_add; + ibuf_close; + ibuf_dynamic; + ibuf_free; + ibuf_left; + ibuf_open; + ibuf_reserve; + ibuf_seek; + ibuf_size; + ibuf_write; + imsg_add; + imsg_clear; + imsg_close; + imsg_compose; + imsg_composev; + imsg_create; + imsg_fd_overhead; + imsg_flush; + imsg_free; + imsg_get; + imsg_init; + imsg_read; + isduid; + login; + login_check_expire; + login_fbtab; + login_tty; + logout; + logwtmp; + msgbuf_clear; + msgbuf_drain; + msgbuf_init; + msgbuf_write; + ohash_create_entry; + ohash_delete; + ohash_entries; + ohash_find; + ohash_first; + ohash_init; + ohash_insert; + ohash_interval; + ohash_lookup_interval; + ohash_lookup_memory; + ohash_next; + ohash_qlookup; + ohash_qlookupi; + ohash_remove; + opendev; + opendisk; + openpty; + pidfile; + pkcs5_pbkdf2; + pw_abort; + pw_copy; + pw_edit; + pw_error; + pw_file; + pw_init; + pw_lock; + pw_mkdb; + pw_prompt; + pw_scan; + pw_setdir; + readlabelfs; + scan_scaled; + uu_lock; + uu_lock_txfr; + uu_lockerr; + uu_unlock; + + local: + *; +}; |