shishi_init(3)
β¨ shishi_init β¨
okay bestie, welcome to shishi_init β section 3 of the shishi manual, and yes it's literally the very first thing you call, the main character of getting set up π
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_init(Shishi ** handle);
π ARGUMENTS π
Shishi ** handleβ a pointer to a Shishi handle, and likeβ¦ this call is the one that makes it. You're handing it a spot, it fills the spot. So iconic of it π«Ά
π DESCRIPTION π
So here's the tea: shishi_init creates a Shishi library handle (it uses shishi() to do it), and then it goes and reads your system configuration file, your user configuration file, and your user tickets from their default locations. Slay. No arguments needed, it just knows where to look π
Where exactly? Okay so:
- the path to the system configuration file is decided at compile time, and it's
$sysconfdir/shishi.conf - the user configuration file lives at
$HOME/.shishi/config - the user ticket file lives at
$HOME/.shishi/ticket
okay this next bit is important, bestie, don't scroll past it π
The handle is allocated regardless of return value. Yep, even if stuff goes sideways. The single exception is SHISHI_HANDLE_ERROR, which means there was a problem allocating the handle itself. Other error conditions could arise while reading files, and that's just how it is, no cap.
β RETURN VALUE β
Returns SHISHI_OK iff successful. That's the vibe check. Anything else, something happened π
π REPORTING BUGS π
Found a bug? Tell the people! Report bugs to <bug-shishi@gnu.org>.
- GNU Shishi home page: http://www.gnu.org/software/shishi/
- General help using GNU software: http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (that's the whole thing, verbatim, we don't mess with legal text π)
π¦ SEE ALSO π¦
The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. go read it, it's giving encyclopedia but make it kerberos β¨
shishi version 1.0.3, page shishi_init(3) β mwah, that's the whole page, ily, go init some handles ππΈπ¦π
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms