TTDT_REVERT(3)
πΈ NAME: ttdt_Revert(library call) πΈ
Okay bestie, the header energy is literally ttdt_Revert(library call), and this function is here to request a ToolTalk client to revert a file β like βbestie, please discard the pending changesβ but in ToolTalk π.
π¦ SYNOPSIS π¦
#include &<Tt/tttk.h>
Tt_status ttdt_Revert(
Tt_message context,
const char *pathname,
Tt_scope the_scope,
XtAppContext app2run,
int ms_timeout);
π DESCRIPTION π
So ttdt_Revert sends a Revert request in the the_scope argument and waits for the reply. A Revert request asks the handling ToolTalk client to discard any changes pending on pathname. Thatβs the assignment, no cap.
The context argument describes the environment to use. If context is not zero, messages created by ttdt_Revert inherit from context all contexts whose slotname begins with the characters ENV_.
The the_scope argument identifies the scope of the request. If the_scope is TT_SCOPE_NONE, ttdt_Revert 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. Resilient queen behavior, honestly.
The ttdt_Revert function passes app2run and ms_timeout to tttk_block_while(3), blocking on the reply to the Save request it sends. Yes, the page says Save right there β Iβm keeping the lore exactly as written π.
π RETURN VALUE π
Upon successful completion, the ttdt_Revert function returns the status of the operation as one of the following Tt_status values β periodt:
TT_OKβ the sent request received an affirmative reply withinms_timeoutmilliseconds. Slay.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. Rude, but noted.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 least 2000.)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_Save(3),ttdt_file_join(3),ttdt_file_event(3),tttk_block_while(3).
Okay bestie, thatβs the whole page! The footer vibe is ttdt_Revert(library call) β thatβs the library-call source/version stamp, and thereβs no date in the original footer, so we are not inventing one π«Άπ
β¨
π¦ 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