Lines Matching refs:seeks
1029 } seeks[] = { in fmemopen_bad_seeks() local
1047 for (i = 0; i < ARRAY_SIZE(seeks); i++) { in fmemopen_bad_seeks()
1050 r = fseek(f, seeks[i].off, seeks[i].whence); in fmemopen_bad_seeks()
1051 if (r != seeks[i].ret) { in fmemopen_bad_seeks()
1053 "expected %d, found %d", seeks[i].whence, in fmemopen_bad_seeks()
1054 seeks[i].off, seeks[i].ret, r); in fmemopen_bad_seeks()
1058 ret &= memstream_check_seek(f, seeks[i].newpos, SEEK_CUR); in fmemopen_bad_seeks()
1427 } seeks[] = { in memstream_bad_seek() local
1444 for (i = 0; i < ARRAY_SIZE(seeks); i++) { in memstream_bad_seek()
1447 r = fseek(f, seeks[i].off, seeks[i].whence); in memstream_bad_seek()
1448 if (r != seeks[i].ret) { in memstream_bad_seek()
1450 "expected %d, found %d", seeks[i].whence, in memstream_bad_seek()
1451 seeks[i].off, seeks[i].ret, r); in memstream_bad_seek()
1455 ret &= memstream_check_seek(f, seeks[i].newpos, SEEK_CUR); in memstream_bad_seek()
1457 r = fseek(fw, seeks[i].off, seeks[i].whence); in memstream_bad_seek()
1458 if (r != seeks[i].ret) { in memstream_bad_seek()
1460 "expected %d, found %d", seeks[i].whence, in memstream_bad_seek()
1461 seeks[i].off, seeks[i].ret, r); in memstream_bad_seek()
1465 ret &= memstream_check_seek(fw, seeks[i].newpos, SEEK_CUR); in memstream_bad_seek()