TTDT_SAVE(3)
πΈ NAME πΈ
ttdt_Save β from the (library call) manual, bestie β this one is all about requesting a ToolTalk client to save a file. πΎβ¨
β¨ SYNOPSIS β¨
#include &<Tt/tttk.h>
Tt_status ttdt_Save(
Tt_message context,
const char *pathname,
Tt_scope the_scope,
XtAppContext app2run,
int ms_timeout);
π DESCRIPTION π
okay so ttdt_Save sends a Save request inside the the_scope argument and then waits for the reply. A Save request asks the handling ToolTalk client to save any changes pending on pathname. Thatβs the whole assignment, and it ate. π«Ά
The context argument describes the environment to use. If context is not zero, messages created by ttdt_Save inherit from context all contexts whose slotname begins with the characters ENV_. slay, inherited context. π§
The the_scope argument identifies the scope of the request. If the_scope is TT_SCOPE_NONE, ttdt_Save tries TT_BOTH, and falls back to TT_FILE_IN_SESSION if, for example, the ToolTalk database server is not installed on the file server that owns pathname. not the database server catching strays π but okay, thatβs literally the fallback.
The ttdt_Save function passes app2run and ms_timeout to tttk_block_while(3), blocking on the reply to the Save request it sends. so yes bestie, itβs giving βsend it, then wait for the replyβ energy. β³π
π RETURN VALUE π
Upon successful completion, the ttdt_Save function returns the status of the operation as one of the following Tt_status values:
TT_OKβ The sent request received an affirmative reply withinms_timeoutmilliseconds. πTT_DESKTOP_ETIMEDOUTβ No reply was received withinms_timeoutmilliseconds. β°πTT_DESKTOP_EPROTOβ The request was failed, but the handler set thett_message_statusof the failure reply toTT_OK, instead of a specific error status. πTT_ERR_DBAVAILβ The ToolTalk service could not access the ToolTalk database needed for this operation. πTT_ERR_DBEXISTβ The ToolTalk service could not access the specified ToolTalk database in the expected place. π«TT_ERR_NOMEMβ There is insufficient memory available to perform the function. π§ π₯TT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it. πTT_ERR_OVERFLOWβ The ToolTalk service has more active messages than it can handle. (The maximum number of active messages is implementation specific, but is at least2000.) π₯TT_ERR_POINTERβ Thepathnameargument wasNULLor was a ToolTalk error pointer. π«£TT_ERR_PROCIDβ The specified process identifier is out of date or invalid. πͺͺβ¨
π SEE ALSO π
Tt/tttk.h - Tttttk(5), ttdt_Revert(3), ttdt_file_join(3), ttdt_file_event(3), tttk_block_while(3).
π cute footer sign-off, bestie: the footer/source-version-and-date slot shows ttdt_Save(library call) β thatβs the exact footer energy, no extra invented date text, periodt. Byeee, go save something iconic! π«Άβ¨π
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms