Searched defs:whence (Results 1 - 25 of 69) sorted by relevance

123

/external/ltp/testcases/network/nfs/nfslock01/
H A Dnfs_flock_func.c6 int lock_reg(int fd, int type, off_t offset, int whence, off_t len, int cmd) argument
12 lock.l_whence = whence;
18 int lock_test(int fd, int type, off_t offset, int whence, int len) argument
24 lock.l_whence = whence;
/external/compiler-rt/test/msan/Linux/
H A Dfopencookie.cc28 static int cookie_seek(void *cookie, off64_t *offset, int whence) { argument
/external/curl/src/
H A Dtool_cb_see.c47 int tool_seek_cb(void *userdata, curl_off_t offset, int whence) argument
63 if(whence != SEEK_SET)
82 if(LSEEK_ERROR == lseek(in->fd, offset, whence))
95 # define _lseeki64(hnd,ofs,whence) lseek(hnd,ofs,whence)
101 # define _lseeki64(hnd,ofs,whence) _lseek(hnd,ofs,whence)
103 # define _lseeki64(hnd,ofs,whence) _lseek64(hnd,ofs,whence)
110 # define _lseeki64(hnd,ofs,whence) lsee
[all...]
/external/e2fsprogs/lib/blkid/
H A Dllseek.c95 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence) argument
102 return lseek(fd, (off_t) offset, whence);
109 result = my_llseek(fd, offset, whence);
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A Dllseek.c32 static off_t my_lseek(int fd, off_t off, int whence) argument
34 return syscall(__NR_lseek, fd, off, whence);
37 static off_t my_lseek(int fd, off_t off, int whence) argument
/external/ltp/testcases/kernel/syscalls/lseek/
H A Dlseek01.c21 * lseek() succeeds to set the specified offset according to whence
37 int whence; member in struct:tcase
59 TEST(lseek(fd, tc->off, tc->whence));
H A Dlseek02.c27 * 2) lseek(2) fails ans sets errno to EINVAL when whence is invalid.
49 int whence; member in struct:tcase
73 TEST(lseek(*tc->fd, (off_t) 1, tc->whence));
76 *tc->fd, tc->whence);
82 *tc->fd, tc->whence);
85 "unexpectedly, expected %s", *tc->fd, tc->whence,
H A Dlseek11.c24 * whence:
69 * SEEK from "startblock * block_size - offset", "whence" as the directive
70 * whence.
72 * whence: as whence of lseek()
80 int whence; member in struct:tparam
209 offset = SAFE_LSEEK(fd, offset, tp->whence);
221 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE",
226 n, (tp->whence == SEEK_DATA) ? "SEEK_DATA" : "SEEK_HOLE",
/external/python/cpython3/Modules/clinic/
H A Dfcntlmodule.c.h137 "lockf($module, fd, cmd, len=0, start=0, whence=0, /)\n"
156 "EOF. `start` is the byte offset, relative to `whence`, to that the lock\n"
157 "starts. `whence` is as with fileobj.seek(), specifically:\n"
168 PyObject *startobj, int whence);
178 int whence = 0; local
181 conv_descriptor, &fd, &code, &lenobj, &startobj, &whence)) {
184 return_value = fcntl_lockf_impl(module, fd, code, lenobj, startobj, whence);
/external/clang/test/Analysis/
H A Dstream.c46 fseek(p, 1, 3); // expected-warning {{The whence argument to fseek() should be SEEK_SET, SEEK_END, or SEEK_CUR}}
81 // PR 8081 - null pointer crash when 'whence' is not an integer constant
82 void pr8081(FILE *stream, long offset, int whence) { argument
83 fseek(stream, offset, whence);
/external/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl06.c138 int do_lock(int cmd, short type, short whence, int start, int len) argument
143 fl.l_whence = whence;
/external/libbrillo/brillo/streams/
H A Dstream_utils.cc153 Stream::Whence whence,
159 switch (whence) {
177 "Invalid stream position whence");
151 CalculateStreamPosition(const tracked_objects::Location& location, int64_t offset, Stream::Whence whence, uint64_t current_position, uint64_t stream_size, uint64_t* new_position, ErrorPtr* error) argument
H A Dmemory_stream.cc116 Whence whence,
121 !stream_utils::CalculateStreamPosition(FROM_HERE, offset, whence,
115 Seek(int64_t offset, Whence whence, uint64_t* new_position, ErrorPtr* error) argument
/external/ltp/testcases/kernel/syscalls/llseek/
H A Dllseek02.c110 1, SEEK_TOP, "'whence' argument is not valid", EINVAL, setup1}, {
123 int whence; /* position of file handle in the file */ local
138 whence = Test_cases[ind].Whence;
152 TEST(lseek64(fildes, (loff_t) 0, whence));
/external/ltp/testcases/kernel/syscalls/pread/
H A Dpread01.c285 void l_seek(int fdesc, off_t offset, int whence, off_t checkoff) argument
289 if ((offloc = lseek(fdesc, offset, whence)) != checkoff) {
/external/ltp/testcases/kernel/syscalls/pwrite/
H A Dpwrite01.c250 void l_seek(int fdesc, off_t offset, int whence, off_t checkoff) argument
254 if ((offloc = lseek(fdesc, offset, whence)) != checkoff) {
H A Dpwrite04.c241 void l_seek(int fdesc, off_t offset, int whence, off_t checkoff) argument
245 if ((offloc = lseek(fdesc, offset, whence)) != checkoff) {
248 offloc, fdesc, offset, whence, checkoff, errno);
/external/ltp/testcases/kernel/syscalls/readv/
H A Dreadv02.c280 long l_seek(int fdesc, long offset, int whence) argument
282 SAFE_LSEEK(cleanup, fdesc, offset, whence);
/external/ltp/testcases/kernel/syscalls/writev/
H A Dwritev02.c230 void l_seek(int fdesc, off_t offset, int whence) argument
232 if (lseek(fdesc, offset, whence) == -1)
H A Dwritev05.c282 long l_seek(int fdesc, long offset, int whence) argument
284 if (lseek(fdesc, offset, whence) < 0) {
/external/ltp/utils/ffsb-6.0-rc2/
H A Dfh.c189 void fhseek(int fd, uint64_t offset, int whence, ffsb_thread_t * ft, argument
197 if ((whence == SEEK_CUR) && (offset == 0))
203 res = lseek64(fd, offset, whence);
209 if ((whence == SEEK_SET) && (res != offset))
213 if (whence == SEEK_SET)
/external/python/cpython2/Modules/
H A Dfcntlmodule.c312 int fd, code, ret, whence = 0; local
317 &lenobj, &startobj, &whence))
367 l.l_whence = whence;
382 "lockf (fd, operation, length=0, start=0, whence=0)\n\
399 EOF. start is the byte offset, relative to whence, to that the lock\n\
400 starts. whence is as with fileobj.seek(), specifically:\n\
/external/python/cpython3/Modules/_io/clinic/
H A Dstringio.c.h138 "seek($self, pos, whence=0, /)\n"
143 "Seek to character offset pos relative to position indicated by whence:\n"
153 _io_StringIO_seek_impl(stringio *self, Py_ssize_t pos, int whence);
160 int whence = 0; local
163 &pos, &whence)) {
166 return_value = _io_StringIO_seek_impl(self, pos, whence);
/external/python/cpython3/Modules/
H A Dfcntlmodule.c333 whence: int = 0
352 EOF. `start` is the byte offset, relative to `whence`, to that the lock
353 starts. `whence` is as with fileobj.seek(), specifically:
362 PyObject *startobj, int whence)
409 l.l_whence = whence;
361 fcntl_lockf_impl(PyObject *module, int fd, int code, PyObject *lenobj, PyObject *startobj, int whence) argument
/external/syslinux/gpxe/src/include/gpxe/
H A Dxfer.h112 int whence; member in struct:xfer_metadata
124 * @v whence Basis for new position
127 whence_text ( int whence ) {
128 switch ( whence ) {
156 extern int xfer_seek ( struct xfer_interface *xfer, off_t offset, int whence );

Completed in 2812 milliseconds

123