diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-10-27 21:47:36 +0000 |
---|---|---|
committer | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-11-25 23:16:37 +0000 |
commit | d873084581c5c94d2a910aea8561ea1d64eeafbd (patch) | |
tree | 8f8eb05cc5ae6d4bdc2d1325a40af8c82f49fc20 /src/nvim/os_unix.c | |
parent | 5bc6e0dc74828064acef3bdafbf9986435edd0df (diff) | |
download | rneovim-d873084581c5c94d2a910aea8561ea1d64eeafbd.tar.gz rneovim-d873084581c5c94d2a910aea8561ea1d64eeafbd.tar.bz2 rneovim-d873084581c5c94d2a910aea8561ea1d64eeafbd.zip |
Don't use errno constants for os_open() errors
In Windows we can't assume errno will be set by calls to os_* functions,
instead the return value from os_* functions can be used. This commit fixes two
occurences for os_open().
1. EFBIG is replaced with UV_EFBIG and checked against the return from os_open().
2. EOVERFLOW does not have a corresponding libuv constant, and is not defined
by open() in Windows - disabled this case with a UNIX guard, and check the return
value against -EOVERFLOW (libuv errors are negative errno values in Unix).
Diffstat (limited to 'src/nvim/os_unix.c')
0 files changed, 0 insertions, 0 deletions