revert of mass delete of the posix subsystem. perhaps there is hope for it yet.
[reactos.git] / posix / lib / psxdll / string / strerror.c
diff --git a/posix/lib/psxdll/string/strerror.c b/posix/lib/psxdll/string/strerror.c
new file mode 100644 (file)
index 0000000..4ef4dd7
--- /dev/null
@@ -0,0 +1,27 @@
+/* $Id: strerror.c,v 1.4 2002/10/29 04:45:43 rex Exp $
+ */
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS POSIX+ Subsystem
+ * FILE:        subsys/psx/lib/psxdll/string/strerror.c
+ * PURPOSE:     Get error message string
+ * PROGRAMMER:  KJK::Hyperion <noog@libero.it>
+ * UPDATE HISTORY:
+ *              20/01/2002: Created
+ */
+
+#include <errno.h>
+#include <string.h>
+#include <psx/debug.h>
+
+static char *__errstr = "<strerror() unsupported>";
+char *strerror(int errnum)
+{
+ INFO("errnum %#x", errnum);
+ TODO("getting error string not currently implemented");
+ errno = EINVAL;
+ return (__errstr);
+}
+
+/* EOF */
+