gd_nframes64(3)
π gd_nframes64 β report the size of a Dirfile, with largefile support π
okay bestie, so this one lives in the GETDATA manual, section 3, and it's literally just the big-girl version of gd_nframes(3). let's get into it π¦
β¨ SYNOPSIS β¨
#define GD_64BIT_API
#include <getdata.h>
gd_off64_t gd_nframes64(DIRFILE *dirfile);
no cap, that #define up top is doing a LOT of heavy lifting here. do not skip it. π
πΈ DESCRIPTION πΈ
so the whole point of this function is that it's the same deal as gd_nframes(3), except it uses a 64-bit offset type (gd_off64_t) whenever one is actually available β and it does that regardless of how big off_t happens to be on your system. main character energy fr fr. π
lowkey important: this function is only guaranteed to be available ifGD_64BIT_APIis defined before you includegetdata.h. that's not a vibe, that's a rule. define it first or don't come crying to me. π
and here's the tea on how it relates to the 32-bit one:
- if
off_tis already a 64-bit type, then this function andgd_nframes(3)are the same thing. same function, no drama. β¨ - if
off_tis not 64-bit, then it flips:gd_nframes(3)becomes the version of this function that uses a 32-bitoff_t. iconic behavior honestly. π
so basically they're two sides of the same coin and which one you're holding depends on your off_t. slay. π
π SEE ALSO π
and that's the whole page, bestie! this one's from Version 0.10.0, dated 25 December 2016, out of the GETDATA manual, section 3. go forth and count your frames responsibly. mwah ππ«Άβ¨
π¦ where this page comes from
- debian bookworm: libgetdata-doc 0.11.0-6
- debian trixie: libgetdata-doc 0.11.0-15
- fedora 43: getdata-devel 0.11.0-13.fc43 Β· GPL-2.0-or-later
- fedora 43: getdata-devel 0.11.0-13.fc43 Β· GPL-2.0-or-later
- fedora 44: getdata-devel 0.11.0-14.fc44 Β· GPL-2.0-or-later
- fedora 44: getdata-devel 0.11.0-14.fc44 Β· GPL-2.0-or-later
- nixos 26.05: getdata 0.11.0
- nixpkgs unstable: getdata 0.11.0
- ubuntu jammy: libgetdata-doc 0.11.0-3ubuntu1
- ubuntu noble: libgetdata-doc 0.11.0-13
- ubuntu questing: libgetdata-doc 0.11.0-15
- ubuntu resolute: libgetdata-doc 0.11.0-17build1
- ubuntu stonking: libgetdata-doc 0.11.0-17build2
- Copyright (C) 2016 D. V. Wiebe
- Copyright (C) 2008, 2010, 2012, 2016 D.V. Wiebe
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms