GFS_PIO_SEEK(3)
π GFS_PIO_SEEK(3) β the Gfarm manual, bestie edition
okay so you opened the manual for gfs_pio_seek and honestly? you're about to eat. this is the one that repositions a stream β¨ like literally moves the little cursor in your file to wherever your heart desires. Gfarm girlies stay winning.
πΈ NAME πΈ
gfs_pio_seek β reposition a stream π«
π SYNOPSIS π
#include <gfarm/gfarm.h>
gfarm_error_t gfs_pio_seek(GFS_File gf, gfarm_off_t offset, int whence,
gfarm_off_t * result);
β¨ DESCRIPTION β¨
so gfs_pio_seek() sets the file position indicator for the file gf. main character behavior honestly π
the new position is measured in bytes, and you get it by adding offset bytes to the position that whence told you about. it's giving math but make it cute.
now the whence menu, bestie, pick your fighter:
GFARM_SEEK_SETβ youroffsetis relative to the start of the file πGFARM_SEEK_CURβ youroffsetis relative to the current position indicator πGFARM_SEEK_ENDβ youroffsetis relative to end-of-file π
and when result is not NULL, the new position gets returned to the address that result points at π«Ά so you get the receipts.
π RETURN VALUES π
GFARM_ERR_NO_ERRORβ slay, it worked, the function terminated successfully β¨GFARM_ERR_NO_MEMORYβ bestie there was not enough memory available πGFARM_ERR_INVALID_ARGUMENTβ thewhenceoroffsetyou specified is invalid π check ur args fr fr- Other β an error happened that isn't any of the above. the reason is shown by
gfarm_error_string(3)π
π¦ SEE ALSO π¦
gfs_pio_create(3), gfs_pio_open(3) β go read those too, iykyk π
ngl if you're passing a badwhenceyou're gonna getGFARM_ERR_INVALID_ARGUMENTand no amount of manifesting will fix it. vibe check ur arguments first π
and that's the whole page, periodt π
this iconic lil manual comes from the Gfarm crew π β version/date stamp: Gfarm, 20 Jun 2019. take care of her, she's vintage π
π¦ where this page comes from
- debian bookworm: libgfarm-dev 2.7.20+dfsg-1+b2 Β· BSD-like
- debian trixie: libgfarm-dev 2.7.20+dfsg-1.2+b1 Β· BSD-like
- ubuntu jammy: libgfarm-dev 2.7.17+dfsg-1build2 Β· BSD-like
- ubuntu noble: libgfarm-dev 2.7.20+dfsg-1.1ubuntu1 Β· BSD-like
- ubuntu questing: libgfarm-dev 2.7.20+dfsg-1.2
- ubuntu resolute: libgfarm-dev 2.7.20+dfsg-1.3 Β· BSD-like
- ubuntu stonking: libgfarm-dev 2.7.20+dfsg-1.3build1 Β· BSD-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms