Commits

Vincenzo Ampolo committed d4fa6fa

fixed a std.string.d bug following this guidelines: http://www.digitalmars.com/d/archives/D/gnu/strerror_r_3403.html

  • Participants
  • Parent commits 134eaa6

Comments (0)

Files changed (2)

File d/phobos2/std/c/string.d

 void* memchr(in void* s, int c, size_t n);		///
 char* strtok(char*  s1, in char*  s2);		///
 const(char)* strerror(int errnum);			///
+const(char)* strerror_r(int errnum, char* buf, size_t buflen);	///
 
 version (Windows)
 {

File d/phobos2/std/contracts.d

 /*********************
  * Thrown if errors that set $(D errno) happen.
  */
-/*class ErrnoException : Exception
+class ErrnoException : Exception
 {
     uint errno;			// operating system error code
 
     {
 	throw new ErrnoException(getErrno());
     }
-}*/
+}