Home | History | Annotate | Download | only in wrapsim

Lines Matching refs:flags

528 int openCommon(const char* pathName, int flags, mode_t mode)
535 fd = wsInterceptDeviceOpen(pathName, flags);
543 if ((flags & O_CREAT) != 0) {
544 fd = _ws_open(rewritePath("open", pathBuf, pathName), flags, mode);
545 CALLTRACE("open(%s, 0x%x, 0%o) = %d\n", pathName, flags, mode, fd);
547 fd = _ws_open(rewritePath("open", pathBuf, pathName), flags, 0);
548 CALLTRACE("open(%s, 0x%x) = %d\n", pathName, flags, fd);
559 int open(const char* pathName, int flags, ...)
564 if ((flags & O_CREAT) != 0) {
567 va_start(args, flags);
572 return openCommon(pathName, flags, mode);
574 int __open(const char* pathName, int flags, mode_t mode)
578 return openCommon(pathName, flags, mode);
584 int open64Common(const char* pathName, int flags, mode_t mode)
591 fd = wsInterceptDeviceOpen(pathName, flags);
596 if ((flags & O_CREAT) != 0) {
597 fd = _ws_open64(rewritePath("open64", pathBuf, pathName), flags, mode);
598 CALLTRACE("open64(%s, 0x%x, 0%o) = %d\n", pathName, flags, mode, fd);
600 fd = _ws_open64(rewritePath("open64", pathBuf, pathName), flags, 0);
601 CALLTRACE("open64(%s, 0x%x) = %d\n", pathName, flags, fd);
612 int open64(const char* pathName, int flags, ...)
617 if ((flags & O_CREAT) != 0) {
620 va_start(args, flags);
624 return open64Common(pathName, flags, mode);
626 int __open64(const char* pathName, int flags, mode_t mode)
630 return open64Common(pathName, flags, mode);
679 void* mmap(void* start, size_t length, int prot, int flags, int fd,
686 return dev->mmap(dev, start, length, prot, flags, fd, offset);
689 start, (int) length, prot, flags, fd, (int) offset);
690 return _ws_mmap(start, length, prot, flags, fd, offset);
697 void* mmap64(void* start, size_t length, int prot, int flags, int fd,
704 return dev->mmap(dev, start, length, prot, flags, fd, (__off_t) offset);
707 start, (int) length, prot, flags, fd, (int) offset);
708 return _ws_mmap(start, length, prot, flags, fd, offset);