pbs_default(3B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

πŸ’– pbs_default(3B) πŸ’–

okay bestie, welcome to the pbs_default(3B) manual page from PBS Professional β€” yes, the whole manual name is folded up in here, cute and accounted for πŸŽ€


✨ NAME ✨

pbs_default β€” return the name of the default PBS server, and honestly? iconic little function for that πŸ’…


🌸 SYNOPSIS 🌸

#include <pbs_error.h>
#include <pbs_ifl.h>

char *pbs_default()

no cap, that's the whole glow-up πŸ¦‹


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this one returns a pointer to a character string containing the name of the default PBS server ✨

And where does that default server come from? bestie, it's specified in two possible places:

  • the PBS_DEFAULT environment variable
  • or the PBS_SERVER parameter in /etc/pbs.conf

that's it, that's the vibe 🌈


πŸ’œ RETURN VALUE πŸ’œ

On success, it returns a pointer to a character string containing the name of the default PBS server. and the best part? you do not need to free the character string 🫢 so don't be out here doing extra, okay?

Returns null if it cannot determine the name of the default server 😭 fr fr, if it can't figure it out, you get null.


local source/version, dated 15 November 2019 β€” that's the whole sign-off, bestie β­πŸ‘‘πŸ’–

πŸ“¦ where this page comes from