GFS_STAT(3)
β¨ GFS_STAT(3) β¨
okay bestie, welcome to the GFS_STAT(3) page from the Gfarm manual β this is the one that tells you everything about a file π
πΈ NAME πΈ
gfs_stat β get file status. that's it, that's the vibe. you ask, it answers π
π¦ SYNOPSIS π¦
#include <gfarm/gfarm.h>
gfarm_error_t gfs_stat(const char * gfarm_url,
struct gfs_stat * status);
β¨ DESCRIPTION β¨
so like. gfs_stat() hands you back the info about the file that gfarm_url points to, and it fills in the buffer that status points at π«Ά
β οΈ but listen βstatuscontains a pointer to memory that got allocated dynamically, so you have to free that memory yourself withgfs_stat_free(3). do not ghost it. it will leak. no cap π
π RETURN VALUES π
GFARM_ERR_NO_ERRORβ slay, it worked, the function terminated successfully β¨GFARM_ERR_NO_MEMORYβ not enough memory was available. the struggle πGFARM_ERR_AUTHENTICATIONβ user authentication failed when connecting togfmd(8). like, who are you?? πGFARM_ERR_PERMISSION_DENIEDβgfarm_urlpoints outside your accessible address space. not yours, don't touch π«GFARM_ERR_NO_SUCH_OBJECTβgfarm_urldoes not exist. it's giving nothing because there is literally nothing πGFARM_ERR_NOT_A_DIRECTORYβ a component of the path prefix is not a directory. bestie that's a file pretending to be a hallway π- Others β some other error happened, not one of the ones above. the reason gets shown by
gfarm_error_string(3)π
π SEE ALSO π
and that's the whole page, bestie!! this was the Gfarm manual, 24 Jun 2019, page GFS_STAT(3) β go forth and stat responsibly πβ¨π
π¦ 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