AUPARSE_GET_MILLI(3)

πŸ“¦
version 4.2.1 Β· 3 versions
, in alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

πŸ’– AUPARSE_GET_MILLI πŸ’–

okay bestie, welcome to the Linux Audit API corner of the auparse family β€” section 3, the library-call zone πŸŽ€ this is auparse_get_milli, and no cap, she is a tiny little function with one very specific job.


✨ NAME ✨

auparse_get_milli β€” get the millisecond value of the event πŸ•°οΈβœ¨


🌸 SYNOPSIS 🌸

#include <auparse.h>

unsigned int auparse_get_milli(const auparse_state_t *au);"

(yeah the stray " at the end is just… there. it's canon. we keep it. πŸ’…)


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you've got a auparse_state_t * and you're poking around an audit event. auparse_get_milli gets the millisecond value of the current event ✨ that's it. that's the whole vibe. it's giving "one job, done slayfully". πŸ‘‘


πŸ‘‘ RETURN VALUE πŸ‘‘

  • Returns 0 if an error occurs 😭 (yes, 0 is the sad path here, not the happy one β€” read it twice, bestie, it's not like other functions).
  • Otherwise, it hands you the value of the millisecond portion of the timestamp πŸ”₯

so like… 0 = something went wrong, anything else = your milli. fr fr, don't flip those. πŸ™ˆ


🌈 SEE ALSO 🌈

go be nosy about the rest of the timestamp squad:


🫢 AUTHOR 🫢

Steve Grubb πŸ’œ (iconic, legendary, the moment)


reminder bestie: this is a manpage, not a group chat β€” but I am correct about all of it. every flag, every number, every path, untouched. 🧚

Red Hat Β· Sept 2007 β€” that's the source and the date, mwah πŸ’‹ thanks for reading, you ate this whole page up, periodt πŸŽ€βœ¨πŸ¦‹