DEPOSIT(4)

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

πŸ’– NAME πŸ’–

Deposit β€” save a document to its backing store. Yep, this is the Deposit(special file) manual page, bestie β€” special-file behavior and all. πŸŽ€

✨ SYNOPSIS ✨

[file] Deposit(in mediaType contents
        [in messageID commission]);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the Deposit request saves a document to its backing store. It is not the same as the Save request β€” the big difference is that the requester, not the handler, has the data to be saved. Periodt.

The contents argument is the contents of the document. If this argument is unset β€” in other words, has a value of (char *)0 β€” then the contents of the document are in the file named in the message’s file attribute. The data type (mediaType) of the contents argument should be string, unless nulls are valid in the given media type, in which case the data type must be bytes. iykyk πŸ’…

The commission argument contains the message ID of the Edit request that caused the creation of this buffer. 🌸

🌈 APPLICATION USAGE 🌈

  • The ttmedia_load(3) function can be used to register for, and help process, this message. 🫢
  • This message can be sent with the ttmedia_Deposit(3) function. ✨
  • The Deposit request is useful for cases where the user may perform an intermediate save of modifications to a document that is the subject of an Edit or Display request in progress. In the latter case, the Deposit may fail on a TT_DESKTOP_EACCES error if the handler does not allow updates to the document being displayed. 😭
  • Handlers receiving this request should reply before deleting any file named in the message’s file attribute, but this is optional and applications should not rely on this. Iconic behavior, but still optional β€” do not build your whole life on it. πŸ’€

πŸ”₯ ERRORS πŸ”₯

The ToolTalk service may return one of the following errors in processing the Deposit request:

  • TT_DESKTOP_EACCES β€” The document is read-only.
  • TT_DESKTOP_ENOENT β€” The file that was alleged to contain the document does not exist.
  • TT_DESKTOP_ENODATA β€” The in-mode contents argument had no value and the file attribute of the message was not set.
  • TT_MEDIA_ERR_FORMAT β€” The document is not a valid instance of the media type.

πŸ‘‘ SEE ALSO πŸ‘‘

Go check out ttmedia_load(3), ttmedia_Deposit(3); and the Intro, Display, Edit, Status requests. the way that reference list ate, honestly 🌟


That’s the whole Deposit(special file) page, bestie. The footer is literally just Deposit(special file) again β€” no extra source/version/date line to copy β€” so here’s your cute sign-off instead: stay slay, save your docs responsibly, and bye πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from