Changeset 519f11c
- Timestamp:
- Jul 16, 2020, 2:59:50 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 463cb33
- Parents:
- 79306383
- Location:
- libcfa/src/concurrency
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/iocall.cfa
r79306383 r519f11c 345 345 } 346 346 347 int cfa_statx(int dirfd, const char *pathname, int flags, unsigned int mask, struct statx *statxbuf) { 348 #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_STATX) 349 return syscall( __NR_statx, dirfd, pathname, flags, mask, statxbuf ); 350 #else 351 __submit_prelude 352 353 (*sqe){ IORING_OP_STATX, dirfd, pathname, mask, (uint64_t)statxbuf }; 354 sqe->flags = flags; 355 356 __submit_wait 357 #endif 358 } 359 347 360 ssize_t cfa_read(int fd, void *buf, size_t count) { 348 361 #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_READ) … … 396 409 __submit_wait 397 410 #endif 398 }399 400 ssize_t cfa_sendfile(int out_fd, int in_fd, off_t *offset, size_t count) {401 return cfa_splice(in_fd, offset, out_fd, 0p, count, 0);402 411 } 403 412 -
libcfa/src/concurrency/iofwd.hfa
r79306383 r519f11c 16 16 #pragma once 17 17 18 #include <unistd.h> 18 19 extern "C" { 19 20 #include <sys/types.h> 20 21 } 22 #include "bits/defs.hfa" 23 24 struct iovec; 25 struct msghdr; 26 struct sockaddr; 27 struct statx; 21 28 22 29 extern ssize_t cfa_preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); … … 40 47 extern ssize_t cfa_splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t len, unsigned int flags); 41 48 extern ssize_t cfa_tee(int fd_in, int fd_out, size_t len, unsigned int flags); 42 extern ssize_t cfa_sendfile(int out_fd, int in_fd, off_t *offset, size_t count);43 49 44 50 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/mutex.cfa
r79306383 r519f11c 30 30 this.lock{}; 31 31 this.blocked_threads{}; 32 this.is_locked = false; 32 33 } 33 34
Note: See TracChangeset
for help on using the changeset viewer.