diff options
author | monty@hundin.mysql.fi <> | 2001-09-12 23:53:31 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-09-12 23:53:31 +0300 |
commit | 7a1998780596ac62b8fa50a98cc90e1a797da0c9 (patch) | |
tree | 51a09b9e3466647e4386ab24f3c9aa89ff7a93b9 /mysys/my_write.c | |
parent | 46f944f4a43612ec75df32737625a95d01e751e8 (diff) | |
download | mariadb-git-7a1998780596ac62b8fa50a98cc90e1a797da0c9.tar.gz |
OS2 patch
Diffstat (limited to 'mysys/my_write.c')
-rw-r--r-- | mysys/my_write.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/mysys/my_write.c b/mysys/my_write.c index 640043192ef..5d5a48a3dda 100644 --- a/mysys/my_write.c +++ b/mysys/my_write.c @@ -19,45 +19,6 @@ #include "mysys_err.h" #include <errno.h> -#ifdef OS2 - -int _write64( int fd, const void *buffer, unsigned int count) -{ - APIRET rc; - ULONG actual; - - rc = DosWrite( fd, (PVOID) buffer, count, &actual); - - switch (rc) { - case 0: /* NO_ERROR */ - errno = 0; - return( actual); - break; - case ERROR_INVALID_FUNCTION: - errno = EPERM; - break; - case ERROR_ACCESS_DENIED: - errno = EACCESS; - break; - case ERROR_INVALID_HANDLE: - errno = EBADF; - break; - case ERROR_DISK_FULL: - errno = ENOSPC; - break; - default: - errno = EINVAL; - break; - } - // write failed - return(-1); -} - -// redirect call -#define write _write64 - -#endif // OS2 - /* Write a chunk of bytes to a file */ |