TT_CLOSE(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ¦‹ tt_close β€” close the current default procid πŸ¦‹

okay bestie, welcome to the library call page for tt_close β€” it’s short, it’s iconic, and it does exactly one job. no cap.


✨ NAME ✨

tt_close β€” close the current default procid. periodt. πŸ’…

🌸 SYNOPSIS 🌸

#include &<Tt/tt_c.h>
Tt_status tt_close(void)

πŸ’– DESCRIPTION πŸ’–

The tt_close function closes the current default procid. that’s the whole main character move: it closes the current default procid. 🫢

πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the tt_close function returns the status of the operation as one of the following Tt_status values:

  • TT_OK β€” The operation completed successfully. slay. ✨
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it. 😭
  • TT_ERR_PROCID β€” The current default process identifier is out of date or invalid. πŸ’€

πŸ¦‹ APPLICATION USAGE πŸ¦‹

When the tt_close function call is successful, the procid will no longer be active. For any subsequent API calls the process must, therefore, first call tt_default_procid_set to specify a procid.

like, after a successful close the old procid is donezo β€” so if you’re gonna make more API calls, call tt_default_procid_set first to specify a procid, bestie. πŸ”₯

🌈 SEE ALSO 🌈


okay bye bestie πŸ’… β€” signing off from the footer, which has that same library call title energy, and there’s no extra version or date shown here, so I’m not inventing one. πŸŽ€βœ¨

πŸ“¦ where this page comes from