comparison src/os_win32.c @ 9387:f094d4085014 v7.4.1975

commit https://github.com/vim/vim/commit/8767f52fbfd4f053ce00a978227c95f1d7d323fe Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 1 17:17:39 2016 +0200 patch 7.4.1975 Problem: On MS-Windows large files (> 2Gbyte) cause problems. Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 01 Jul 2016 17:30:07 +0200
parents c44ab784f5e5
children 4665d491a69e
comparison
equal deleted inserted replaced
9386:80deab13679b 9387:f094d4085014
3056 * Return mode_t or -1 for error. 3056 * Return mode_t or -1 for error.
3057 */ 3057 */
3058 long 3058 long
3059 mch_getperm(char_u *name) 3059 mch_getperm(char_u *name)
3060 { 3060 {
3061 struct stat st; 3061 stat_T st;
3062 int n; 3062 int n;
3063 3063
3064 n = mch_stat((char *)name, &st); 3064 n = mch_stat((char *)name, &st);
3065 return n == 0 ? (long)(unsigned short)st.st_mode : -1L; 3065 return n == 0 ? (long)(unsigned short)st.st_mode : -1L;
3066 } 3066 }