From c849e60a2f065550b40f37193d55f34933c7961a Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sat, 14 Nov 2020 17:57:50 +0000 Subject: Add the library function getlocalbase and its manual page. This helps to unify the retrieval of the various ways that the local software base directory, typically "/usr/local", is expressed in the system. Reviewed by: se Differential Revision: https://reviews.freebsd.org/D27022 --- libutil/libutil.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libutil/libutil.h b/libutil/libutil.h index 2ac5e97..8f093b5 100644 --- a/libutil/libutil.h +++ b/libutil/libutil.h @@ -98,6 +98,7 @@ int flopen(const char *_path, int _flags, ...); int flopenat(int _dirfd, const char *_path, int _flags, ...); int forkpty(int *_amaster, char *_name, struct termios *_termp, struct winsize *_winp); +ssize_t getlocalbase(char *path, size_t pathlen); void hexdump(const void *_ptr, int _length, const char *_hdr, int _flags); int humanize_number(char *_buf, size_t _len, int64_t _number, const char *_suffix, int _scale, int _flags); -- cgit v1.2.3-56-ge451