Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 46) sorted by relevance

12

/f-stack/freebsd/sys/
H A Dunistd.h108 #ifndef SEEK_SET
109 #define SEEK_SET 0 /* set file offset to offset */ macro
120 #define L_SET SEEK_SET
/f-stack/freebsd/contrib/openzfs/cmd/zed/
H A Dzed_file.c97 lock.l_whence = SEEK_SET; in zed_file_lock()
124 lock.l_whence = SEEK_SET; in zed_file_unlock()
150 lock.l_whence = SEEK_SET; in zed_file_is_locked()
H A Dzed_conf.c650 if (lseek(zcp->state_fd, 0, SEEK_SET) == (off_t)-1) { in zed_conf_read_state()
700 if (lseek(zcp->state_fd, 0, SEEK_SET) == (off_t)-1) { in zed_conf_write_state()
/f-stack/freebsd/contrib/dev/acpica/common/
H A Dacfileio.c438 fseek (File, TableOffset, SEEK_SET); in AcGetOneTableFromFile()
510 fseek (File, FileOffset, SEEK_SET); in AcIsFileBinary()
555 fseek (File, TableOffset, SEEK_SET); in AcValidateTableHeader()
558 fseek (File, OriginalOffset, SEEK_SET); in AcValidateTableHeader()
H A Dcmfsize.c204 Status = fseek (File, CurrentOffset, SEEK_SET); in CmGetFileSize()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/file_trunc/
H A Dfile_trunc.c184 if (lseek64(fd, (offset + roffset), SEEK_SET) < 0) { in do_write()
196 if (lseek64(fd, (offset + roffset), SEEK_SET) < 0) { in do_write()
/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_files.c51 if (lseek(file->fd, offset, SEEK_SET) == -1) { in ngx_read_file()
236 if (lseek(file->fd, offset, SEEK_SET) == -1) { in ngx_write_file()
430 if (lseek(file->fd, offset, SEEK_SET) == -1) { in ngx_writev_file()
765 fl.l_whence = SEEK_SET; in ngx_trylock_fd()
782 fl.l_whence = SEEK_SET; in ngx_lock_fd()
799 fl.l_whence = SEEK_SET; in ngx_unlock_fd()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/mkfile/
H A Dmkfile.c152 } else if (lseek(fd, (off_t)size-1, SEEK_SET) < 0) { in main()
178 if (lseek(fd, (off_t)0, SEEK_SET) < 0) { in main()
/f-stack/app/redis-5.0.5/utils/
H A Dcorrupt_rdb.c40 lseek(fd,offset,SEEK_SET); in main()
/f-stack/freebsd/contrib/dev/acpica/compiler/
H A Daslstartup.c298 fseek (Info->Handle, 0, SEEK_SET); in AslDetectSourceFileType()
322 fseek (Info->Handle, 0, SEEK_SET); in AslDetectSourceFileType()
H A Daslfileio.c429 Error = fseek (AslGbl_Files[FileId].Handle, Offset, SEEK_SET); in FlSeekFile()
/f-stack/tools/libutil/
H A Dquotafile.c289 if (lseek(qf->fd, off, SEEK_SET) == -1) in quota_read32()
317 if (lseek(qf->fd, off, SEEK_SET) == -1) in quota_read64()
377 if (lseek(qf->fd, off, SEEK_SET) == -1) in quota_write32()
400 if (lseek(qf->fd, off, SEEK_SET) == -1) in quota_write64()
H A Duucplock.c140 lseek(fd, (off_t)0, SEEK_SET); in uu_lock_txfr()
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/largest_file/
H A Dlargest_file.c90 llseek_ret = lseek64(fd, offset, SEEK_SET); in main()
/f-stack/dpdk/lib/librte_power/
H A Dpower_pstate_cpufreq.c252 if (fseek(pi->f_cur_min, 0, SEEK_SET) < 0) { in set_freq_internal()
259 if (fseek(pi->f_cur_max, 0, SEEK_SET) < 0) { in set_freq_internal()
365 val = fseek(f, 0, SEEK_SET); in power_set_governor_performance()
416 val = fseek(f, 0, SEEK_SET); in power_set_governor_original()
H A Dpower_acpi_cpufreq.c114 if (fseek(pi->f, 0, SEEK_SET) < 0) { in set_freq_internal()
167 val = fseek(f, 0, SEEK_SET); in power_set_governor_userspace()
403 val = fseek(f, 0, SEEK_SET); in power_set_governor_original()
/f-stack/freebsd/contrib/zlib/
H A Dgzlib.c362 if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
390 if (whence != SEEK_SET && whence != SEEK_CUR)
394 if (whence == SEEK_SET)
H A Dzconf.h503 #if !defined(SEEK_SET) && !defined(Z_SOLO)
504 # define SEEK_SET 0 /* Seek from beginning of file. */ macro
/f-stack/freebsd/contrib/zstd/zlibWrapper/
H A Dgzlib.c362 if (LSEEK(state.state->fd, state.state->start, SEEK_SET) == -1)
390 if (whence != SEEK_SET && whence != SEEK_CUR)
394 if (whence == SEEK_SET)
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/file_write/
H A Dfile_write.c202 noffset = lseek64(bigfd, offset, SEEK_SET); in main()
/f-stack/freebsd/contrib/dev/acpica/include/
H A Dacclib.h342 #define SEEK_SET 0 macro
/f-stack/dpdk/app/test-compress-perf/
H A Dmain.c250 fseek(f, 0, SEEK_SET) != 0) { in comp_perf_dump_input_data()
274 if (fseek(f, 0, SEEK_SET) != 0) { in comp_perf_dump_input_data()
/f-stack/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_cpp_pcie_ops.c657 lock.l_whence = SEEK_SET; in nfp_acquire_process_lock()
707 lock.l_whence = SEEK_SET; in nfp_acquire_secondary_process_lock()
/f-stack/freebsd/kern/
H A Dkern_lockf.c444 case SEEK_SET: in lf_advlockasync()
1586 fl->l_whence = SEEK_SET; in lf_getlock()
1903 ldesc->fl.l_whence = SEEK_SET; in lf_iteratelocks_sysid()
1970 ldesc->fl.l_whence = SEEK_SET; in lf_iteratelocks_vnode()
/f-stack/dpdk/app/test-regex/
H A Dmain.c144 if (fseek(fp, 0L, SEEK_SET) != 0) { in read_file()

12