GELF_GETMOVE(3)

πŸ“¦
version 0.197 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixpkgs unstable, ubuntu stonking

✨ GELF_GETMOVE(3) ✨

okay bestie, welcome to the Libelf Programmer's Manual πŸŽ€ β€” today's episode is all about gelf_getmove, and honestly? she's giving niche Solaris energy and I'm obsessed πŸ’…


πŸ’– NAME πŸ’–

gelf_getmove β€” get move structure at the given index πŸ¦‹


🌸 SYNOPSIS 🌸

#include <gelf.h>

GElf_Move *gelf_getmove (Elf_Data *data, int ndx, GElf_Move *dst);

✨ DESCRIPTION ✨

So what she does is: she copies a move structure at index ndx out of an SHT_SUNW_move section that's associated with data, and drops it into a class-independent representation stored in *dst. no cap. πŸ’œ

data should be associated with an ELF section with type SHT_SUNW_move section. and data->d_type should be ELF_T_MOVE. 🫢

heads up bestie β€” these types are Sun/Solaris extensions and are not typically used in GNU/Linux ELF files. so if you're on Linux wondering why you never see them... yeah that's why 😭

🧚 PARAMETERS 🧚

  • data β€” pointer to an Elf_Data of an SHT_SUNW_move section. and data->d_type should be ELF_T_MOVE, okay? don't skip that part πŸ’€
  • ndx β€” zero-based index of the move structure in data. zero-based, so first one is 0, main character behavior ⭐
  • dst β€” pointer to a caller-provided structure for storing the requested move entry. dst must not be NULL. literally do not do that πŸ™ˆ

πŸ”₯ RETURN VALUE πŸ”₯

  • on success: she stores the requested move structure in dst and returns dst. slay πŸ’…
  • on failure: NULL gets returned and elf_errno is set.
  • special case bestie: if data is NULL, then NULL is returned without setting elf_errno. noted, iconic, no notes 🌈

🌈 SEE ALSO 🌈

iykyk πŸ‘‘


πŸ‘‘ ATTRIBUTES πŸ‘‘

  • gelf_getmove() β€” thread safety: MT-Safe ✨

(ngl that's the whole vibe check and she passed 🫢)


πŸ“ REPORTING BUGS πŸ“

found a bug? don't be shy, tell the girlies:


okay that's the whole page bestie, you ate that πŸ’–πŸ’…βœ¨

Libelf Β· 2025-12-30 Β· GELF_GETMOVE(3) β€” mwah, love u, go read gelf_update_move(3) next πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from