浏览代码

revert previous change; reading POSIX spec some more says we need to set errno to EINVAL if filename is NULL

Mike Frysinger 18 年之前
父节点
当前提交
b56c113af8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/stdlib.h

+ 1 - 1
include/stdlib.h

@@ -637,7 +637,7 @@ extern char *canonicalize_file_name (__const char *__name)
    name in RESOLVED.  */
 /* we choose to handle __resolved==NULL as crash :) */
 extern char *realpath (__const char *__restrict __name,
-		       char *__restrict __resolved) __THROW __wur __nonnull((1,2));
+		       char *__restrict __resolved) __THROW __wur __nonnull((2));
 #endif