comparison src/vdisk.c @ 150:da020c491fbb

add more fmemopen mess
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 17 Jan 2019 08:17:11 +0900
parents 2f71506f980f
children ef5959682d03
comparison
equal deleted inserted replaced
149:2f71506f980f 150:da020c491fbb
254 if ((m&0x10)) mode|=S_IWOTH ; 254 if ((m&0x10)) mode|=S_IWOTH ;
255 if ((m&0x20)) mode|=S_IXOTH ; 255 if ((m&0x20)) mode|=S_IXOTH ;
256 return mode; 256 return mode;
257 } 257 }
258 258
259 #if defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL < 200809L 259 #ifdef NOFMEMOPEN
260 260
261 FILE *fmemopen(char *buf,long sz, const char *mode) { 261 FILE *fmemopen(char *buf,long sz, const char *mode) {
262 static char fname[] = "/tmp/myfileXXXXXX"; 262 static char fname[] = "/tmp/myfileXXXXXX";
263 int fd; 263 int fd;
264 fd = mkstemp(fname); /* Create and open temp file */ 264 fd = mkstemp(fname); /* Create and open temp file */