aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libsbutil/sb_getcwd.c')
-rw-r--r--libsbutil/sb_getcwd.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libsbutil/sb_getcwd.c b/libsbutil/sb_getcwd.c
new file mode 100644
index 0000000..2ba1f39
--- /dev/null
+++ b/libsbutil/sb_getcwd.c
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2025 Gentoo Authors
+ * Distributed under the terms of the GNU General Public License v2
+ */
+
+#include "headers.h"
+#include "sbutil.h"
+
+__attribute__ ((weak))
+char *sb_getcwd(char *buf, size_t size)
+{
+ return getcwd(buf, size);
+}