ffio.c#54 blksize(int fd) #58 if (fffcntl(fd, FC_STAT, &sb, &sw) > -1) #77 fgrow(const int fd, const off_t len) #81 if (fffcntl(fd, FC_STAT, &sb, &sw) < 0) #88 const off_t pos = ffseek(fd, 0, SEEK_CUR); #91 if (ffseek(fd, len-sizeof(dumb), SEEK_SET) < 0) #93 if(ffwrite(fd, (void *)&dumb, sizeof(dumb)) < 0) #95 if (ffseek(fd, pos, SEEK_SET) < 0) #109 fgrow2(const int fd, const off_t len) #113 if (fffcntl(fd, FC_STAT, &sb, &sw) < 0) #121 const off_t pos = ffseek(fd, 0, SEEK_CUR); #124 if (ffseek(fd, len-1, SEEK_SET) < 0) #126 if(ffwrite(fd, (void *)&dumb, sizeof(dumb)) < 0) #128 if (ffseek(fd, pos, SEEK_SET) < 0) #148 if(ffseek(nciop->fd, offset, SEEK_SET) != offset) #154 if(ffwrite(nciop->fd, vp, extent) != extent) #179 if(ffseek(nciop->fd, offset, SEEK_SET) != offset) #188 nread = ffread(nciop->fd, vp, extent); #383 if(fffcntl(nciop->fd, FC_STAT, &si, &ffstatus) < 0) #406 if(ffflush(nciop->fd,&stat) < 0) #408 if(ffflush(nciop->fd) < 0) #437 assert(nciop->fd >= 0); #512 *((int *)&nciop->fd) = -1; /* cast away const */ #621 int fd; #657 fd = ffopen(path, oflags, 0666, 0, &stat); #658 if(fd < 0) #663 *((int *)&nciop->fd) = fd; /* cast away const */ #668 *sizehintp = blksize(fd); #681 status = fgrow(fd, (off_t)initialsz); #700 (void) ffclose(fd); #719 int fd; #748 fd = ffopen(path, oflags, 0, 0, &stat); #750 if(fd < 0) #755 *((int *)&nciop->fd) = fd; /* cast away const */ #760 *sizehintp = blksize(fd); #785 (void) ffclose(fd); #806 current = ffseek(nciop->fd, 0, SEEK_CUR); /* save current */ #807 *filesizep = ffseek(nciop->fd, 0, SEEK_END); /* get size */ #808 reset = ffseek(nciop->fd, current, SEEK_SET); /* reset */ #838 status = fgrow2(nciop->fd, length); #861 (void) ffclose(nciop->fd); memio.c#147 *((int*)&nciop->fd) = -1; /* caller will fix */ #216 int fd; #239 fd = open(path, oflags, 0, "ctx=stm"); #241 fd = open(path, oflags, OPENMODE); #243 if(fd < 0) {status = errno; goto unwind_open;} #245 (void)close(fd); /* will reopen at nc_close */ #252 fd = nc__pseudofd(); #253 *((int* )&nciop->fd) = fd; #301 int fd = -1; #329 fd = open(path, oflags, 0, "ctx=stm"); #331 fd = open(path, oflags, OPENMODE); #334 if(fd < 0) { #339 if(fd < 0) {status = errno; goto unwind_open;} #342 filesize = lseek(fd,0,SEEK_END); #345 (void)lseek(fd,0,SEEK_SET); #355 if(fd >= 0) #356 close(fd); #371 ssize_t count = read(fd, pos, red); #377 (void)close(fd); #383 fd = nc__pseudofd(); #384 *((int* )&nciop->fd) = fd; #401 if(fd >= 0) #402 close(fd); #480 int fd = -1; #496 fd = open(nciop->path, oflags, OPENMODE); #497 if(fd >= 0) { #503 ssize_t count = write(fd, pos, written); #519 if(fd >= 0) (void)close(fd); mmapio.c#146 *((int*)&nciop->fd) = -1; /* caller will fix */ #212 int fd; #247 fd = open(path, oflags, 0, "ctx=stm"); #249 fd = open(path, oflags, OPENMODE); #251 if(fd < 0) {status = errno; goto unwind_open;} #252 mmapio->mapfd = fd; #255 lseek(fd,mmapio->alloc-1,SEEK_SET); /* cause file to appear */ #256 write(fd,"",mmapio->alloc); #257 lseek(fd,0,SEEK_SET); /* rewind */ #272 fd = nc__pseudofd(); #273 *((int* )&nciop->fd) = fd; #321 int fd; #342 fd = open(path, oflags, 0, "ctx=stm"); #344 fd = open(path, oflags, OPENMODE); #346 if(fd < 0) {status = errno; goto unwind_open;} #349 filesize = lseek(fd,0,SEEK_END); #352 (void)lseek(fd,0,SEEK_SET); #361 mmapio->mapfd = fd; #373 fd = nc__pseudofd(); #374 *((int* )&nciop->fd) = fd; nc3internal.c#1050 nc->int_ncid = nc3->nciop->fd; #1152 nc->int_ncid = nc3->nciop->fd; #1410 status = fsync(nc3->nciop->fd); #1412 status = _commit(nc3->nciop->fd); ncdump.c#327 int fd = -1; #341 fd = open(path, oflags, 0, "ctx=stm"); #343 fd = open(path, oflags); #345 if(fd < 0) { #350 size = lseek(fd,0,SEEK_END); #353 (void)lseek(fd,0,SEEK_SET); #362 ssize_t count = read(fd, pos, red); #371 if(fd >= 0) #372 (void)close(fd); ncio.h#115 NCIO_CONST int fd; nclog.c#114 int fd; #119 fd = open(nclogfile,O_WRONLY|O_APPEND|O_CREAT,0600); #120 if(fd >= 0) { #121 nclogstream = fdopen(fd,"a"); oclog.c#116 int fd; #121 fd = open(oclogfile,O_WRONLY|O_APPEND|O_CREAT,0600); #122 if(fd >= 0) { #123 oclogstream = fdopen(fd,"a"); ocread.c#214 int fd = -1; #226 fd = open(filename,flags); #227 if(fd < 0) { #232 filesize = lseek(fd,(off_t)0,SEEK_END); #239 (void)lseek(fd,(off_t)0,SEEK_SET); #242 off_t count = (off_t)read(fd,buf,sizeof(buf)); #265 if(fd >= 0) close(fd); ocutil.c#695 int fd; #709 fd = mkstemp(tmpname); #722 fd=open(tmpname,O_RDWR|O_BINARY|O_CREAT, _S_IREAD|_S_IWRITE); #724 fd=open(tmpname,O_RDWR|O_CREAT|O_EXCL, S_IRWXU); #728 if(fd < 0) { #731 close(fd); posixio.c#113 static size_t nc_get_filelen(const int fd) { #119 if ((file_len = _filelengthi64(fd)) < 0) { #127 if((res = fstat(fd,&sb)) <0) #171 blksize(int fd) #175 if (fstat(fd, &sb) > -1) #192 fgrow(const int fd, const off_t len) #195 if (fstat(fd, &sb) < 0) #203 const off_t pos = lseek(fd, 0, SEEK_CUR); #206 if (lseek(fd, len-sizeof(dumb), SEEK_SET) < 0) #208 if(write(fd, &dumb, sizeof(dumb)) < 0) #210 if (lseek(fd, pos, SEEK_SET) < 0) #223 fgrow2(const int fd, const off_t len) #236 size_t file_len = nc_get_filelen(fd); #244 const off_t pos = lseek(fd, 0, SEEK_CUR); #247 if (lseek(fd, len-1, SEEK_SET) < 0) #249 if(write(fd, &dumb, sizeof(dumb)) < 0) #251 if (lseek(fd, pos, SEEK_SET) < 0) #283 assert(*posp == OFF_NONE || *posp == lseek(nciop->fd, 0, SEEK_CUR)); #287 if(lseek(nciop->fd, offset, SEEK_SET) != offset) #300 while((partial = write(nciop->fd, nvp, nextent)) != -1) { #341 if(*posp != OFF_NONE && *posp != lseek(nciop->fd, 0, SEEK_CUR)) { #351 if(lseek(nciop->fd, offset, SEEK_SET) != offset) #375 nread = read(nciop->fd,vp,extent); #1057 assert(nciop->fd >= 0); #1439 assert(nciop->fd >= 0); #1537 *((int *)&nciop->fd) = -1; /* cast away const */ #1594 int fd; #1617 fd = open(path, oflags, NC_DEFAULT_CREAT_MODE, "ctx=stm"); #1620 fd = open(path, oflags, NC_DEFAULT_CREAT_MODE); #1626 if(fd < 0) #1631 *((int *)&nciop->fd) = fd; /* cast away const */ #1636 *sizehintp = blksize(fd); #1658 status = fgrow(fd, (off_t)initialsz); #1677 (void) close(fd); #1738 int fd = -1; #1754 fd = open(path, oflags, 0, "ctx=stm"); #1756 fd = open(path, oflags, 0); #1758 if(fd < 0) #1763 *((int *)&nciop->fd) = fd; /* cast away const */ #1768 *sizehintp = blksize(fd); #1802 (void) close(fd); /* assert fd >= 0 */ #1823 if( (file_len = _filelengthi64(nciop->fd)) < 0) { #1832 if (fstat(nciop->fd, &sb) < 0) #1862 status = fgrow2(nciop->fd, length); #1885 if(nciop->fd > 0) { #1887 (void) close(nciop->fd); #1901 if(nciop->fd > 0) { #1903 (void) close(nciop->fd);
HyperKWIC - Version 7.20DA executed at 11:37 on 27 Oct 2017 | Polyhedron Solutions - INTERNAL USE | COMMERCIAL (Any O/S) SN 4AKIed