+ return os_simple_hash_with_seed(string, len, seed);
+}
+
+uint64_t
+os_simple_hash_string(const char *string)
+{
+ return os_simple_hash_string_with_seed(string, 0);
+}
+
+errno_t
+realpath_np(os_fd_t fd, char buff[static PATH_MAX])
+{
+ errno_t error = -1;
+ int ret = -1;
+
+ ret = fcntl(fd, F_GETPATH, buff);
+ if (ret) {
+ error = errno;
+ } else {
+ error = 0;
+ }
+
+ return error;
+}
+
+errno_t
+memdup_np(void **_new, const void *src, size_t len)
+{
+ void *mynew = NULL;
+
+ mynew = malloc(len);
+ if (!mynew) {
+ return errno;
+ }
+
+ memcpy(mynew, src, len);
+ *_new = mynew;
+ return 0;
+}
+
+void *
+memdup2_np(const void *src, size_t len)
+{
+ void *_new = os_malloc(len);
+ memcpy(_new, src, len);
+ return _new;