---
name: "gd_frameoffset64"
section: "3"
platform: "linux"
package: "libgetdata-doc"
version: "0.11.0-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gd_frameoffset64"
---

# gd\_frameoffset64(3)

report or change the frame offset of fields in a dirfile, with largefile support

## NAME

gd\_frameoffset64, gd\_alter\_frameoffset64 — report or change the frame offset of fields in a dirfile, with largefile support

## SYNOPSIS

**#define GD\_64BIT\_API**\
 **#include \<getdata.h\>**

**gd\_off64\_t gd\_frameoffset(DIRFILE \****dirfile***, int** *fragment\_index***);**

**int gd\_alter\_frameoffset64(DIRFILE \****dirfile***, gd\_off64\_t** *offset***,** **int** *fragment\_index***, int** *move***);**

## DESCRIPTION

These versions of [**gd\_frameoffset**(3)](/gd_frameoffset/3.md) and [**gd\_alter\_frameoffset**(3)](/gd_alter_frameoffset/3.md) use a 64-bit offset type (**gd\_off64\_t**), where one is available, regardless of the size of **off\_t**. They are only available if **GD\_64BIT\_API** has been defined before including getdata.h.

If **off\_t** is a 64-bit type, these functions will the same as [**gd\_framenum\_subset**(3)](/gd_framenum_subset/3.md) and [**gd\_alter\_frameoffset**(3)](/gd_alter_frameoffset/3.md). Otherwise, [**gd\_framenum\_subset**(3)](/gd_framenum_subset/3.md) and [**gd\_alter\_frameoffset**(3)](/gd_alter_frameoffset/3.md) will be versions of these function which use a 32-bit **off\_t**.

## SEE ALSO

[**gd\_alter\_frameoffset**(3)](/gd_alter_frameoffset/3.md), [**gd\_frameoffset**(3)](/gd_frameoffset/3.md), [**feature\_test\_macros**(7)](/feature_test_macros/7.md)
