Home
last modified time | relevance | path

Searched refs:posix_fadvise (Results 1 - 25 of 36) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/fcntl/
H A Dposix_fadvise.c49 int ret = posix_fadvise(fd, 0, TEST_LEN, flags[i]); in posix_fadvise_0100()
75 int ret = posix_fadvise(fd, 0, -1, POSIX_FADV_NORMAL); in posix_fadvise_0200()
100 int ret = posix_fadvise(fd, -1, TEST_LEN, POSIX_FADV_NORMAL); in posix_fadvise_0300()
113 int ret = posix_fadvise(-1, 0, TEST_LEN, POSIX_FADV_NORMAL); in posix_fadvise_0400()
136 int ret = posix_fadvise(fd, 0, TEST_LEN, -1); in posix_fadvise_0500()
/third_party/musl/src/fcntl/
H A Dposix_fadvise.c5 int posix_fadvise(int fd, off_t base, off_t len, int advice) in posix_fadvise() function
20 weak_alias(posix_fadvise, posix_fadvise64);
/third_party/musl/porting/liteos_a/user/src/fcntl/
H A Dposix_fadvise.c6 int posix_fadvise(int fd, off_t base, off_t len, int advice) in posix_fadvise() function
21 weak_alias(posix_fadvise, posix_fadvise64);
/third_party/musl/porting/linux/user/include/
H A Dfcntl.h37 int posix_fadvise(int, off_t, off_t, int);
208 #define posix_fadvise64 posix_fadvise
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dfcntl.h36 int posix_fadvise(int, off_t, off_t, int);
207 #define posix_fadvise64 posix_fadvise
/third_party/musl/porting/liteos_m/kernel/include/
H A Dfcntl.h36 int posix_fadvise(int, off_t, off_t, int);
207 #define posix_fadvise64 posix_fadvise
/third_party/musl/porting/uniproton/kernel/include/
H A Dfcntl.h36 int posix_fadvise(int, off_t, off_t, int);
207 #define posix_fadvise64 posix_fadvise
/third_party/musl/porting/liteos_a/kernel/include/
H A Dfcntl.h37 int posix_fadvise(int, off_t, off_t, int);
199 #define posix_fadvise64 posix_fadvise
/third_party/musl/porting/liteos_m/user/include/
H A Dfcntl.h36 int posix_fadvise(int, off_t, off_t, int);
207 #define posix_fadvise64 posix_fadvise
/third_party/musl/include/
H A Dfcntl.h39 int posix_fadvise(int, off_t, off_t, int);
210 #define posix_fadvise64 posix_fadvise
/third_party/rust/crates/nix/src/
H A Dfcntl.rs24 pub use self::posix_fadvise::{posix_fadvise, PosixFadviseAdvice};
826 mod posix_fadvise { modules
848 pub fn posix_fadvise( in posix_fadvise() functions
854 let res = unsafe { libc::posix_fadvise(fd, offset, len, advice as libc::c_int) }; in posix_fadvise()
/third_party/ltp/testcases/kernel/syscalls/fadvise/
H A Dposix_fadvise04.c11 * Check the value that posix_fadvise returns for pipe descriptor.
46 TEST(posix_fadvise in verify_fadvise()
H A Dposix_fadvise01.c11 * Check the value that posix_fadvise returns for wrong ADVISE value.
49 TEST(posix_fadvise(fd, 0, 0, defined_advise[n])); in verify_fadvise()
H A Dposix_fadvise02.c11 * Check the value that posix_fadvise returns for wrong file descriptor.
46 TEST(posix_fadvise in verify_fadvise()
H A Dposix_fadvise03.c11 * Check the value that posix_fadvise returns for wrong ADVISE value.
90 TEST(posix_fadvise(fd, 0, 0, n)); in verify_fadvise()
/third_party/ltp/testcases/kernel/syscalls/mincore/
H A Dmincore04.c51 ret = posix_fadvise(fd, 0, size, POSIX_FADV_DONTNEED); in setup()
/third_party/pulseaudio/src/pulsecore/
H A Dsound-file-stream.c258 /* FIXME: For now we just use posix_fadvise to avoid page faults in pa_play_file()
264 if (posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL) < 0) { in pa_play_file()
270 if (posix_fadvise(fd, 0, 0, POSIX_FADV_WILLNEED) < 0) { in pa_play_file()
H A Dsound-file.c68 if (posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL) < 0) { in pa_sound_file_load()
/third_party/exfatprogs/lib/
H A Dexfat_dir.c72 return posix_fadvise(exfat->blk_dev->dev_fd, in read_ahead_first_blocks()
110 ret = posix_fadvise(exfat->blk_dev->dev_fd, in read_ahead_next_blocks()
122 ret = posix_fadvise(exfat->blk_dev->dev_fd, in read_ahead_next_blocks()
153 return posix_fadvise(exfat->blk_dev->dev_fd, offset, in read_ahead_next_dir_blocks()
/third_party/ltp/testcases/kernel/controllers/io/
H A Dio_control01.c86 TST_EXP_PASS_SILENT(posix_fadvise(fd, pgsz * i, pgsz, POSIX_FADV_DONTNEED)); in run()
/third_party/musl/libc-test/src/api/
H A Dfcntl.c90 {int(*p)(int,off_t,off_t,int) = posix_fadvise;} in f()
/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs495 posix_fadvise(fd, 0, 100, PosixFadviseAdvice::POSIX_FADV_WILLNEED) in test_success()
496 .expect("posix_fadvise failed"); in test_success()
502 let res = posix_fadvise( in test_errno()
/third_party/ltp/testcases/kernel/syscalls/readahead/
H A Dreadahead02.c62 errno = posix_fadvise(fd, offset, len, POSIX_FADV_WILLNEED); in fadvise_willneed()
63 /* posix_fadvise returns error number (not in errno) */ in fadvise_willneed()
/third_party/elfutils/src/
H A Dstrings.c573 (void) posix_fadvise (fd, 0, 0, POSIX_FADV_SEQUENTIAL); in read_block()
/third_party/rust/crates/rustix/src/backend/libc/
H A Doffset.rs197 pub(super) use c::posix_fadvise as libc_posix_fadvise;

Completed in 20 milliseconds

12