/external/ltp/testcases/network/nfs/nfslock01/ |
H A D | nfs_flock.h | 10 #define read_lock(fd, offset, whence, len) \ 11 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLK) 12 #define write_lock(fd, offset, whence, len) \ 13 lock_reg(fd, F_WRLCK, offset, whence, len, F_SETLK) 14 #define un_lock(fd, offset, whence, len) \ 15 lock_reg(fd, F_UNLCK, offset, whence, len, F_SETLK) 16 #define readb_lock(fd, offset, whence, len) \ 17 lock_reg(fd, F_RDLCK, offset, whence, len, F_SETLKW) 18 #define writeb_lock(fd, offset, whence, len) \ 19 lock_reg(fd, F_WRLCK, offset, whence, le [all...] |
H A D | nfs_flock_func.c | 6 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/curl/src/ |
H A D | tool_cb_see.c | 47 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...] |
H A D | tool_cb_see.h | 43 int tool_seek_cb(void *userdata, curl_off_t offset, int whence);
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
H A D | lseek02.c | 27 * 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 D | lseek01.c | 21 * 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 D | lseek11.c | 24 * 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/e2fsprogs/lib/blkid/ |
H A D | llseek.c | 95 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 D | llseek.c | 32 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/flac/include/FLAC/ |
H A D | callback.h | 123 * \param offset The new position, relative to \a whence 124 * \param whence \c SEEK_SET, \c SEEK_CUR, or \c SEEK_END 128 typedef int (*FLAC__IOCallback_Seek) (FLAC__IOHandle handle, FLAC__int64 offset, int whence);
|
/external/pdfium/third_party/libopenjpeg20/ |
H A D | opj_includes.h | 79 # define OPJ_FSEEK(stream,offset,whence) _fseeki64(stream,/* __int64 */ offset,whence) 85 # define OPJ_FSEEK(stream,offset,whence) fseek(stream,offset,whence)
|
/external/python/cpython3/Modules/clinic/ |
H A D | fcntlmodule.c.h | 137 "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 D | stream.c | 46 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 D | fcntl06.c | 138 int do_lock(int cmd, short type, short whence, int start, int len) argument 143 fl.l_whence = whence;
|
H A D | fcntl19.c | 142 int do_lock(int cmd, short type, short whence, int start, int len) argument 147 fl.l_whence = whence; 153 void do_test(struct flock *fl, short type, short whence, int start, int len) argument 156 fl->l_whence = whence; 166 compare_lock(struct flock *fl, short type, short whence, int start, int len, argument 175 if (fl->l_whence != whence) { 176 tst_resm(TFAIL, "lock whence is wrong should be %d is %d", 177 whence, fl->l_whence);
|
H A D | fcntl20.c | 141 int do_lock(int cmd, short type, short whence, int start, int len) argument 146 fl.l_whence = whence; 152 void do_test(struct flock *fl, short type, short whence, int start, int len) argument 155 fl->l_whence = whence; 165 compare_lock(struct flock *fl, short type, short whence, int start, int len, argument 174 if (fl->l_whence != whence) { 175 tst_resm(TFAIL, "lock whence is wrong should be %d is %d", 176 whence, fl->l_whence);
|
/external/pdfium/third_party/libtiff/ |
H A D | tiffiop.h | 221 #define TIFFSeekFile(tif, off, whence) \ 222 ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence))) 289 # define fseek(stream,offset,whence) fseeko(stream,offset,whence) 290 # define ftell(stream,offset,whence) ftello(stream,offset,whence) 297 #define _TIFF_lseek_f(fildes,offset,whence) _lseeki64(fildes,/* __int64 */ offset,whence) 299 #define _TIFF_fseek_f(stream,offset,whence) _fseeki64(stream,/* __int64 */ offset,whence) [all...] |
/external/python/cpython3/Lib/ |
H A D | _compression.py | 120 def seek(self, offset, whence=io.SEEK_SET): 122 if whence == io.SEEK_SET: 124 elif whence == io.SEEK_CUR: 126 elif whence == io.SEEK_END: 133 raise ValueError("Invalid value for whence: {}".format(whence))
|
H A D | chunk.py | 98 def seek(self, pos, whence=0): 108 if whence == 1: 110 elif whence == 2:
|
/external/ltp/testcases/kernel/syscalls/llseek/ |
H A D | llseek02.c | 110 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/python/cpython2/Lib/ |
H A D | chunk.py | 98 def seek(self, pos, whence=0): 108 if whence == 1: 110 elif whence == 2:
|
H A D | multifile.py | 58 def seek(self, pos, whence=0): 60 if whence: 61 if whence == 1: 63 elif whence == 2: 67 raise Error, "can't use whence=2 yet"
|
/external/python/cpython3/Modules/_io/clinic/ |
H A D | stringio.c.h | 138 "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/syslinux/gpxe/src/crypto/axtls/ |
H A D | os_port.h | 37 int whence __unused ) {
|
/external/syslinux/gpxe/src/include/gpxe/ |
H A D | xfer.h | 112 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 );
|