This commit updates the code imported from heimdal to
dc87425f93bdd3d9c88be1a380ed5372980235bf (
git2svn-syncpoint-master-290-gdc87425)
Upstream changes are:
Ben Kaduk (1):
Always provide a usable PATH_MAX
Jeffrey Hutzelman (1):
hcrypto/rand-unix.c: Ignore write(2) result harder
Nicolas Williams (1):
Winsock connect returns WSAEWOULDBLOCK...
Change-Id: I10a001a3a606c799f7b9ab7db42ecef4ad5a5c21
Reviewed-on: http://gerrit.openafs.org/9992
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
-66f4c441e9e0de68fbcf81763642779ac5c33631
+dc87425f93bdd3d9c88be1a380ed5372980235bf
if (fd < 0)
return;
- write(fd, indata, size);
+ if (write(fd, indata, size) != size)
+ ; /* don't care */
close(fd);
}
#endif /* !_WIN32 */
#ifndef PATH_MAX
+#ifdef MAX_PATH
#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 4096
+#endif
#endif
#ifndef RETSIGTYPE
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT 102
#endif
+#ifndef EINPROGRESS
+#define EINPROGRESS 112
+#endif
#ifndef ENOTSOCK
#define ENOTSOCK 128
#endif