SPAWNV(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

πŸ’– SPAWNV(3) πŸ’–

okay so this one is from SchilyΒ΄s LIBRARY FUNCTIONS, and it’s giving β€œcall a command with exactly the arguments you picked” energy ✨


🌸 NAME 🌸

spawnv() β€” calls a command with specified arguments, periodt πŸ’…


✨ SYNOPSIS ✨

       int spawnv(Sin,Sout,Serr,ArgC,ArgV)
            FILE *Sin, *Sout, *Serr;
            int ArgC;
            char *ArgV[];

πŸ¦‹ DESCRIPTION πŸ¦‹

okay bestie, so spawnv() causes the command named in ArgV[0] to be called with the given arguments. like, the command is literally ArgV[0] β€” that’s the main character right there πŸ‘‘

Functionally this subroutine is the same as spawnl(), differing only in the form of the argument. same vibe, different argument shape, iykyk πŸ’«


πŸ”₯ RETURNS πŸ”₯

Returns 0 when successful. Otherwise, returns a non-zero value which could be:

  • an error code from fork() or fexecl().
  • the argument to exit() in the Command_name.
  • 1, if stopped by a control C (^C).
  • 2, if killed by another process.
  • 4, if suspended by any fault, raise, control Y ^Y or by another process. (In this case, spawnv() kills the suspended process.)

ngl that 4 case is doing the most 😭 but it’s all right there, no cap.


πŸŽ€ NOTES πŸŽ€

none πŸ’€ β€” yes, really, that’s the entire note, bestie. iconic minimalism fr fr.


bye bestie πŸ’‹ β€” Joerg Schilling Β· 2022/09/09 Β· SPAWNV(3) Β· SchilyΒ΄s LIBRARY FUNCTIONS 🫢

πŸ“¦ where this page comes from