* errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall,
authorJonathan Pryor <jpryor@novell.com>
Thu, 3 Feb 2005 21:12:02 +0000 (21:12 -0000)
committerJonathan Pryor <jpryor@novell.com>
Thu, 3 Feb 2005 21:12:02 +0000 (21:12 -0000)
    since it's part of ANSI C (and errno will be used from StdioFileStream).
    Add Mono_Posix_Stdlib_SetLastError.  Don't remove the Syscall version, as
    we don't want to break Mono 1.1.4/svn users the day after release. :-)

svn path=/trunk/mono/; revision=40086

support/ChangeLog
support/errno.c

index 39de8ee376e1c7d37380060defba1cdeb937e822..05bda1dcee3f2efafe1db1d69c46600fcc2e3a62 100644 (file)
@@ -1,3 +1,10 @@
+2005-02-03  Jonathan Pryor  <jonpryor@vt.edu>
+
+       * errno.c: Mono_Posix_Syscall_SetLastError should be in Stdlib, not Syscall, 
+         since it's part of ANSI C (and errno will be used from StdioFileStream).  
+         Add Mono_Posix_Stdlib_SetLastError.  Don't remove the Syscall version, as 
+         we don't want to break Mono 1.1.4/svn users the day after release. :-)
+
 2005-01-25  Jonathan Pryor  <jonpryor@vt.edu>
 
        * macros.c: Use gint64, not long, to match C# declaration.  Fixes 71152.
index fbdac433ef53dd6ed29b176c83e01577498f6de2..a5d215513bb856426b62e00a6bf36058d7091dce 100644 (file)
 
 G_BEGIN_DECLS
 
+/* DEPRECATED: Use the Stdlib version instead */
 void
 Mono_Posix_Syscall_SetLastError (int error_number)
 {
        errno = error_number;
 }
 
+void
+Mono_Posix_Stdlib_SetLastError (int error_number)
+{
+       errno = error_number;
+}
+
 #ifdef HAVE_STRERROR_R
 gint32
 Mono_Posix_Syscall_strerror_r (int errnum, char *buf, mph_size_t n)