diff options
author | наб <[email protected]> | 2021-04-12 18:32:43 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-12 09:32:43 -0700 |
commit | 722b7f9a4c8f1051e624c88160d9ff7e2fbdf6bb (patch) | |
tree | 9cd23a33b35b71a55dca737a11013b9bc311905b /include/libuutil.h | |
parent | e086db16568e2cb8f484325481430aafd414d913 (diff) |
libuutil: purge unused functions
Remove vestigial uu_open_tmp(). The problems with this implementation
are many, but the primary one is the TMPPATHFMT macro, which is
unused, and always has been.
Searching around for any users leads only to earlier imports of the
same, identical file, i.a. into an apple repository (which does patch
gethrtime() into it and gives us a copyright date of 2007),
and a MidnightBSD one from 2008.
Searching illumos-gate, uu_open_tmp appears, in current HEAD, three
times: in the header, libuutil's mapfile ABI, and the implementation.
This slowly grows up to eight occurrences as one moves back to the root
"OpenSolaris Launch" commit: the header, implementation, twice in
libuutil's spec ABI, twice (with multilib and non-multilib paths) in
libuutil.so's i386 and SPARC binary db ABIs.
That's 2005, and this file was abandonware even then, it's dead code.
The situation is similar for the uu_dprintf() family of functions and
uu_dump(). Nothing in accessibly recorded history has ever used them.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #11873
Diffstat (limited to 'include/libuutil.h')
-rw-r--r-- | include/libuutil.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/libuutil.h b/include/libuutil.h index d0248901b..1d179945c 100644 --- a/include/libuutil.h +++ b/include/libuutil.h @@ -99,28 +99,6 @@ extern int *uu_exit_fatal(void); extern int *uu_exit_usage(void); /* - * Debug print facility functions. - */ -typedef struct uu_dprintf uu_dprintf_t; - -typedef enum { - UU_DPRINTF_SILENT, - UU_DPRINTF_FATAL, - UU_DPRINTF_WARNING, - UU_DPRINTF_NOTICE, - UU_DPRINTF_INFO, - UU_DPRINTF_DEBUG -} uu_dprintf_severity_t; - -extern uu_dprintf_t *uu_dprintf_create(const char *, uu_dprintf_severity_t, - uint_t); -/*PRINTFLIKE3*/ -extern void uu_dprintf(uu_dprintf_t *, uu_dprintf_severity_t, - const char *, ...); -extern void uu_dprintf_destroy(uu_dprintf_t *); -extern const char *uu_dprintf_getname(uu_dprintf_t *); - -/* * Identifier test flags and function. */ #define UU_NAME_DOMAIN 0x1 /* allow SUNW, or com.sun, prefix */ @@ -129,11 +107,6 @@ extern const char *uu_dprintf_getname(uu_dprintf_t *); int uu_check_name(const char *, uint_t); /* - * File creation functions. - */ -extern int uu_open_tmp(const char *dir, uint_t uflags); - -/* * Convenience functions. */ #define UU_NELEM(a) (sizeof (a) / sizeof ((a)[0])) @@ -149,7 +122,6 @@ extern boolean_t uu_streq(const char *a, const char *b); extern char *uu_strndup(const char *s, size_t n); extern boolean_t uu_strbw(const char *a, const char *b); extern void *uu_memdup(const void *buf, size_t sz); -extern void uu_dump(FILE *out, const char *prefix, const void *buf, size_t len); /* * Comparison function type definition. |