summary refs log tree commit diff
path: root/sysdeps/stub/setenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/setenv.c')
-rw-r--r--sysdeps/stub/setenv.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysdeps/stub/setenv.c b/sysdeps/stub/setenv.c
index f318475718..a5172fab37 100644
--- a/sysdeps/stub/setenv.c
+++ b/sysdeps/stub/setenv.c
@@ -30,3 +30,22 @@ setenv (name, value, replace)
 }
 
 stub_warning (setenv)
+
+void
+unsetenv (name)
+     const char *name;
+{
+  __set_errno (ENOSYS);
+}
+
+stub_warning (unseenv)
+
+
+int
+clearenv (void)
+{
+  __set_errno (ENOSYS);
+  return -1;
+}
+
+stub_warning (clearenv)