%Definitions for GNUBatch
%
%   Copyright 2013 Free Software Foundation, Inc.
%
%  This program is free software: you can redistribute it and/or modify
%  it under the terms of the GNU General Public License as published by
%  the Free Software Foundation, either version 3 of the License, or
%  (at your option) any later version.
%
%  This program is distributed in the hope that it will be useful,
%  but WITHOUT ANY WARRANTY; without even the implied warranty of
%  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%  GNU General Public License for more details.
%
%   You should have received a copy of the GNU General Public License
%  along with this program.  If not, see <http://www.gnu.org/licenses/>.
%

\newcommand\IfXi[1]{}
\newcommand\IfGNU[1]{#1}

\newcommand\ProductName{\strongemphasis{\manualProduct}}
\newcommand\OtherProductName{\strongemphasis{GNUSpool}}
\newcommand\configurationfile{\filename{.gnubatch}}
\newcommand\homeconfigfile{\filename{gnubatch1}}
\newcommand\homeconfigpath{\filename{.gbch/gnubatch1}}
\newcommand\configpathvarname{GB\_CONFIGPATH}
\newcommand\configpathvar{\filename{\configpathvarname}}
\newcommand\helppathvarname{GB\_HELPPATH}
\newcommand\helppathvar{\filename{\helppathvarname}}
\newcommand\masterconfigname{/usr/local/etc/gnubatch.conf}
\newcommand\masterconfig{\filename{\masterconfigname}}
\newcommand\hostsfilename{/usr/local/etc/gnubatch.hosts}
\newcommand\hostsfile{\filename{\hostsfilename}}
\newcommand\usermapname{/usr/local/etc/gbuser.map}
\newcommand\usermap{\filename{\usermapname}}
\newcommand\batchenvname{/usr/local/etc/gnubatch.env}
\newcommand\batchenv{\filename{\batchenvname}}
\newcommand\spooldirname{/usr/local/var/gnubatch}
\newcommand\spooldir{\filename{\spooldirname}}
\newcommand\progsdirname{/usr/local/libexec/gnubatch}
\newcommand\progsdir{\filename{\progsdirname}}
\newcommand\helpdirname{/usr/local/share/gnubatch/help}
\newcommand\helpdir{\filename{\progsdirname}}
\newcommand\etcname{/usr/local/etc}

\newcommand\batchusername{gnubatch}
\newcommand\spoolusername{gnuspool}
\newcommand\batchuser{\filename{\batchusername}}
\newcommand\spooluser{\filename{\spoolusername}}

\newcommand\batchjobsuffix{\filename{.gbj1}}

%Names of programs so we can easily switch doc to and from GNUbatch

\newcommand\BtchargeName{gbch-charge}
\newcommand\BtcichangeName{gbch-cichange}
\newcommand\BtcichangeVarname{GBCH\_CICHANGE}
\newcommand\BtcilistName{gbch-cilist}
\newcommand\BtcilistVarname{GBCH\_CILIST}
\newcommand\BtconnName{gbch-conn}
\newcommand\BtdisconnName{gbch-disconn}
\newcommand\BtdstName{gbch-dst}
\newcommand\BtfilemonName{gbch-filemon}
\newcommand\BtfilemonVarname{GBCH\_FILEMON}
\newcommand\BtholsName{gbch-hols}
\newcommand\BtholsVarname{GBCH\_HOLS}
\newcommand\BtjchangeName{gbch-jchange}
\newcommand\BtjchangeVarname{GBCH\_JCHANGE}
\newcommand\BtjdelName{gbch-jdel}
\newcommand\BtjdelVarname{GBCH\_JDEL}
\newcommand\BtjgoName{gbch-jgo}
\newcommand\BtjgoadvName{gbch-jgoadv}
\newcommand\BtjadvName{gbch-jadv}
\newcommand\BtjlistName{gbch-jlist}
\newcommand\BtjlistVarname{GBCH\_JLIST}
\newcommand\BtjstatName{gbch-jstat}
\newcommand\BtjstatVarname{GBCH\_JSTAT}
\newcommand\BtqName{gbch-q}
\newcommand\BtqVarname{GBCH\_Q}
\newcommand\BtquitName{gbch-quit}
\newcommand\BtrName{gbch-r}
\newcommand\BtrVarname{GBCH\_R}
\newcommand\BtsName{gbch-s}
\newcommand\BtsVarname{GBCH\_S}
\newcommand\RbtrName{gbch-rr}
\newcommand\RbtrVarname{GBCH\_RR}
\newcommand\BtstartName{gbch-start}
\newcommand\BtstartVarname{GBCH\_START}
\newcommand\BtuchangeName{gbch-uchange}
\newcommand\BtuchangeVarname{GBCH\_UCHANGE}
\newcommand\BtulistName{gbch-ulist}
\newcommand\BtulistVarname{GBCH\_ULIST}
\newcommand\BtuserName{gbch-user}
\newcommand\BtuserVarname{GBCH\_USER}
\newcommand\BtvarName{gbch-var}
\newcommand\BtvarVarname{GBCH\_VAR}
\newcommand\BtvlistName{gbch-vlist}
\newcommand\BtvlistVarname{GBCH\_VLIST}
\newcommand\HosteditName{gbch-hostedit}
\newcommand\XhosteditName{gbch-xhostedit}
\newcommand\WhatvnName{THIS SHOULDNT BE HERE}
\newcommand\XbBtuconvName{gbch-btuconv}
\newcommand\XbChecklicName{HIS SHOULDNT BE HERE}
\newcommand\XbCiconvName{gbch-ciconv}
\newcommand\XbCjlistName{gbch-cjlist}
\newcommand\XbCjlistxName{gbch-cjlistx}
\newcommand\XbCvlistName{gbch-cvlist}
\newcommand\XbEmerglicName{THIS SHOULDNT BE HERE}
\newcommand\XbRipcName{gbch-ripc}
\newcommand\XbTriallicName{HIS SHOULDNT BE HERE}
\newcommand\XbVwriteName{HIS SHOULDNT BE HERE}
\newcommand\XipasswdName{gbch-passwd}
\newcommand\XbtqName{gbch-xq}
\newcommand\XmbtqName{gbch-xmq}
\newcommand\XbtrName{gbch-xr}
\newcommand\XmbtrName{gbch-xmr}
\newcommand\XbtuserName{gbch-xuser}
\newcommand\XmbtuserName{gbch-xmuser}
\newcommand\XfilemonName{gbch-xfilemon}
\newcommand\XmfilemonName{gbch-xmfilemon}
\newcommand\ZinstallName{THIS SHOULDNT BE HERE}
\newcommand\WshName{gbch-wsh}

%Progname-ified versions

\newcommand\PrBtcharge{\progname{\BtchargeName}}
\newcommand\PrBtcichange{\progname{\BtcichangeName}}
\newcommand\PrBtcilist{\progname{\BtcilistName}}
\newcommand\PrBtconn{\progname{\BtconnName}}
\newcommand\PrBtdisconn{\progname{\BtdisconnName}}
\newcommand\PrBtdst{\progname{\BtdstName}}
\newcommand\PrBtfilemon{\progname{\BtfilemonName}}
\newcommand\PrBthols{\progname{\BtholsName}}
\newcommand\PrBtjchange{\progname{\BtjchangeName}}
\newcommand\PrBtjdel{\progname{\BtjdelName}}
\newcommand\PrBtjgo{\progname{\BtjgoName}}
\newcommand\PrBtjgoadv{\progname{\BtjgoadvName}}
\newcommand\PrBtjadv{\progname{\BtjadvName}}
\newcommand\PrBtjlist{\progname{\BtjlistName}}
\newcommand\PrBtjstat{\progname{\BtjstatName}}
\newcommand\PrBtq{\progname{\BtqName}}
\newcommand\PrBtquit{\progname{\BtquitName}}
\newcommand\PrBtr{\progname{\BtrName}}
\newcommand\PrBts{\progname{\BtsName}}
\newcommand\PrRbtr{\progname{\RbtrName}}
\newcommand\PrBtstart{\progname{\BtstartName}}
\newcommand\PrBtuchange{\progname{\BtuchangeName}}
\newcommand\PrBtulist{\progname{\BtulistName}}
\newcommand\PrBtuser{\progname{\BtuserName}}
\newcommand\PrBtvar{\progname{\BtvarName}}
\newcommand\PrBtvlist{\progname{\BtvlistName}}
\newcommand\PrHostedit{\progname{\HosteditName}}
\newcommand\PrXhostedit{\progname{\XhosteditName}}
\newcommand\PrWhatvn{\progname{\WhatvnName}}
\newcommand\PrXbBtuconv{\progname{\XbBtuconvName}}
\newcommand\PrXbChecklic{\progname{\XbChecklicName}}
\newcommand\PrXbCiconv{\progname{\XbCiconvName}}
\newcommand\PrXbCjlist{\progname{\XbCjlistName}}
\newcommand\PrXbCjlistx{\progname{\XbCjlistxName}}
\newcommand\PrXbCvlist{\progname{\XbCvlistName}}
\newcommand\PrXbEmerglic{\progname{\XbEmerglicName}}
\newcommand\PrXbRipc{\progname{\XbRipcName}}
\newcommand\PrXbTriallic{\progname{\XbTriallicName}}
\newcommand\PrXbVwrite{\progname{\XbVwriteName}}
\newcommand\PrXipasswd{\progname{\XipasswdName}}
\newcommand\PrXbtq{\progname{\XbtqName}}
\newcommand\PrXmbtq{\progname{\XmbtqName}}
\newcommand\PrXbtr{\progname{\XbtrName}}
\newcommand\PrXmbtr{\progname{\XmbtrName}}
\newcommand\PrXbtuser{\progname{\XbtuserName}}
\newcommand\PrXmbtuser{\progname{\XmbtuserName}}
\newcommand\PrXfilemon{\progname{\XfilemonName}}
\newcommand\PrXmfilemon{\progname{\XmfilemonName}}
\newcommand\PrZinstall{\progname{\ZinstallName}}
\newcommand\PrWsh{\progname{\WshName}}

%Same sort of thing for API functions

\newcommand\includeloc{/usr/local/include}
\newcommand\includefile{gbatch.h}
\newcommand\libname{-lgnubatch}
\newcommand\includedirective{\#include {\textless}\includefile{\textgreater}}
\newcommand\constprefix{GBATCH\_}
\newcommand\errorloc{gbatch\_dataerror}
\newcommand\funcnameXBciadd{gbatch\_ciadd}
\newcommand\funcnameXBcidel{gbatch\_cidel}
\newcommand\funcnameXBciread{gbatch\_ciread}
\newcommand\funcnameXBciupd{gbatch\_ciupd}
\newcommand\funcnameXBclose{gbatch\_close}
\newcommand\funcnameXBdelarg{gbatch\_delarg}
\newcommand\funcnameXBdelenv{gbatch\_delenv}
\newcommand\funcnameXBdelredir{gbatch\_delredir}
\newcommand\funcnameXBgetarg{gbatch\_getarg}
\newcommand\funcnameXBgetbtd{gbatch\_getbtd}
\newcommand\funcnameXBgetbtu{gbatch\_getbtu}
\newcommand\funcnameXBgetdirect{gbatch\_getdirect}
\newcommand\funcnameXBgetenv{gbatch\_getenv}
\newcommand\funcnameXBgetenvlist{gbatch\_getenvlist}
\newcommand\funcnameXBgethenv{gbatch\_gethenv}
\newcommand\funcnameXBgetredir{gbatch\_getredir}
\newcommand\funcnameXBgettitle{gbatch\_gettitle}
\newcommand\funcnameXBholread{gbatch\_holread}
\newcommand\funcnameXBholupd{gbatch\_holupd}
\newcommand\funcnameXBjobadd{gbatch\_jobadd}
\newcommand\funcnameXBjobchgrp{gbatch\_jobchgrp}
\newcommand\funcnameXBjobchmod{gbatch\_jobchmod}
\newcommand\funcnameXBjobchown{gbatch\_jobchown}
\newcommand\funcnameXBjobdata{gbatch\_jobdata}
\newcommand\funcnameXBjobdel{gbatch\_jobdel}
\newcommand\funcnameXBjobfind{gbatch\_jobfind}
\newcommand\funcnameXBjobfindslot{gbatch\_jobfindslot}
\newcommand\funcnameXBjoblist{gbatch\_joblist}
\newcommand\funcnameXBjobmon{gbatch\_jobmon}
\newcommand\funcnameXBjobop{gbatch\_jobop}
\newcommand\funcnameXBjobread{gbatch\_jobread}
\newcommand\funcnameXBjobres{gbatch\_jobres}
\newcommand\funcnameXBjobupd{gbatch\_jobupd}
\newcommand\funcnameXBlogin{gbatch\_login}
\newcommand\funcnameXBwlogin{gbatch\_wlogin}
\newcommand\funcnameXBlocallogin{gbatch\_locallogin}
\newcommand\funcnameXBlocalloginbyid{gbatch\_locallogin\_byid}
\newcommand\funcnameXBnewgrp{gbatch\_newgrp}
\newcommand\funcnameXBopen{gbatch\_open}
\newcommand\funcnameXBprocmon{gbatch\_procmon}
\newcommand\funcnameXBputarg{gbatch\_putarg}
\newcommand\funcnameXBputargglist{gbatch\_putargglist}
\newcommand\funcnameXBputarglist{gbatch\_putarglist}
\newcommand\funcnameXBputbtd{gbatch\_putbtd}
\newcommand\funcnameXBputbtu{gbatch\_putbtu}
\newcommand\funcnameXBputdirec{gbatch\_putdirec}
\newcommand\funcnameXBputdirect{gbatch\_putdirect}
\newcommand\funcnameXBputenv{gbatch\_putenv}
\newcommand\funcnameXBputenvlist{gbatch\_putenvlist}
\newcommand\funcnameXBputredir{gbatch\_putredir}
\newcommand\funcnameXBputredirlist{gbatch\_putredirlist}
\newcommand\funcnameXBputtitle{gbatch\_puttitle}
\newcommand\funcnameXBsetmon{gbatch\_setmon}
\newcommand\funcnameXBsetqueue{gbatch\_setqueue}
\newcommand\funcnameXBunsetmon{gbatch\_unsetmon}
\newcommand\funcnameXBvaradd{gbatch\_varadd}
\newcommand\funcnameXBvarchcomm{gbatch\_varchcomm}
\newcommand\funcnameXBvarchgrp{gbatch\_varchgrp}
\newcommand\funcnameXBvarchmod{gbatch\_varchmod}
\newcommand\funcnameXBvarchown{gbatch\_varchown}
\newcommand\funcnameXBvardel{gbatch\_vardel}
\newcommand\funcnameXBvarfind{gbatch\_varfind}
\newcommand\funcnameXBvarfindslot{gbatch\_varfindslot}
\newcommand\funcnameXBvarlist{gbatch\_varlist}
\newcommand\funcnameXBvarmon{gbatch\_varmon}
\newcommand\funcnameXBvarread{gbatch\_varread}
\newcommand\funcnameXBvarrename{gbatch\_varrename}
\newcommand\funcnameXBvarupd{gbatch\_varupd}

%And versions with \progname{} round them

\newcommand\funcXBciadd{\progname{\funcnameXBciadd}}
\newcommand\funcXBcidel{\progname{\funcnameXBcidel}}
\newcommand\funcXBciread{\progname{\funcnameXBciread}}
\newcommand\funcXBciupd{\progname{\funcnameXBciupd}}
\newcommand\funcXBclose{\progname{\funcnameXBclose}}
\newcommand\funcXBdelarg{\progname{\funcnameXBdelarg}}
\newcommand\funcXBdelenv{\progname{\funcnameXBdelenv}}
\newcommand\funcXBdelredir{\progname{\funcnameXBdelredir}}
\newcommand\funcXBgetarg{\progname{\funcnameXBgetarg}}
\newcommand\funcXBgetbtd{\progname{\funcnameXBgetbtd}}
\newcommand\funcXBgetbtu{\progname{\funcnameXBgetbtu}}
\newcommand\funcXBgetdirect{\progname{\funcnameXBgetdirect}}
\newcommand\funcXBgetenv{\progname{\funcnameXBgetenv}}
\newcommand\funcXBgetenvlist{\progname{\funcnameXBgetenvlist}}
\newcommand\funcXBgethenv{\progname{\funcnameXBgethenv}}
\newcommand\funcXBgetredir{\progname{\funcnameXBgetredir}}
\newcommand\funcXBgettitle{\progname{\funcnameXBgettitle}}
\newcommand\funcXBholread{\progname{\funcnameXBholread}}
\newcommand\funcXBholupd{\progname{\funcnameXBholupd}}
\newcommand\funcXBjobadd{\progname{\funcnameXBjobadd}}
\newcommand\funcXBjobchgrp{\progname{\funcnameXBjobchgrp}}
\newcommand\funcXBjobchmod{\progname{\funcnameXBjobchmod}}
\newcommand\funcXBjobchown{\progname{\funcnameXBjobchown}}
\newcommand\funcXBjobdata{\progname{\funcnameXBjobdata}}
\newcommand\funcXBjobdel{\progname{\funcnameXBjobdel}}
\newcommand\funcXBjobfind{\progname{\funcnameXBjobfind}}
\newcommand\funcXBjobfindslot{\progname{\funcnameXBjobfindslot}}
\newcommand\funcXBjoblist{\progname{\funcnameXBjoblist}}
\newcommand\funcXBjobmon{\progname{\funcnameXBjobmon}}
\newcommand\funcXBjobop{\progname{\funcnameXBjobop}}
\newcommand\funcXBjobread{\progname{\funcnameXBjobread}}
\newcommand\funcXBjobres{\progname{\funcnameXBjobres}}
\newcommand\funcXBjobupd{\progname{\funcnameXBjobupd}}
\newcommand\funcXBlogin{\progname{\funcnameXBlogin}}
\newcommand\funcXBwlogin{\progname{\funcnameXBwlogin}}
\newcommand\funcXBlocallogin{\progname{\funcnameXBlocallogin}}
\newcommand\funcXBlocalloginbyid{\progname{\funcnameXBlocalloginbyid}}
\newcommand\funcXBnewgrp{\progname{\funcnameXBnewgrp}}
\newcommand\funcXBopen{\progname{\funcnameXBopen}}
\newcommand\funcXBprocmon{\progname{\funcnameXBprocmon}}
\newcommand\funcXBputarg{\progname{\funcnameXBputarg}}
\newcommand\funcXBputargglist{\progname{\funcnameXBputargglist}}
\newcommand\funcXBputarglist{\progname{\funcnameXBputarglist}}
\newcommand\funcXBputbtd{\progname{\funcnameXBputbtd}}
\newcommand\funcXBputbtu{\progname{\funcnameXBputbtu}}
\newcommand\funcXBputdirec{\progname{\funcnameXBputdirec}}
\newcommand\funcXBputdirect{\progname{\funcnameXBputdirect}}
\newcommand\funcXBputenv{\progname{\funcnameXBputenv}}
\newcommand\funcXBputenvlist{\progname{\funcnameXBputenvlist}}
\newcommand\funcXBputredir{\progname{\funcnameXBputredir}}
\newcommand\funcXBputredirlist{\progname{\funcnameXBputredirlist}}
\newcommand\funcXBputtitle{\progname{\funcnameXBputtitle}}
\newcommand\funcXBsetmon{\progname{\funcnameXBsetmon}}
\newcommand\funcXBsetqueue{\progname{\funcnameXBsetqueue}}
\newcommand\funcXBunsetmon{\progname{\funcnameXBunsetmon}}
\newcommand\funcXBvaradd{\progname{\funcnameXBvaradd}}
\newcommand\funcXBvarchcomm{\progname{\funcnameXBvarchcomm}}
\newcommand\funcXBvarchgrp{\progname{\funcnameXBvarchgrp}}
\newcommand\funcXBvarchmod{\progname{\funcnameXBvarchmod}}
\newcommand\funcXBvarchown{\progname{\funcnameXBvarchown}}
\newcommand\funcXBvardel{\progname{\funcnameXBvardel}}
\newcommand\funcXBvarfind{\progname{\funcnameXBvarfind}}
\newcommand\funcXBvarfindslot{\progname{\funcnameXBvarfindslot}}
\newcommand\funcXBvarlist{\progname{\funcnameXBvarlist}}
\newcommand\funcXBvarmon{\progname{\funcnameXBvarmon}}
\newcommand\funcXBvarread{\progname{\funcnameXBvarread}}
\newcommand\funcXBvarrename{\progname{\funcnameXBvarrename}}
\newcommand\funcXBvarupd{\progname{\funcnameXBvarupd}}

\newcommand\manualLicense{%
This manual is for \manualProduct{} (\manualTitle{}).

Copyright 2009-2012 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or any
later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the \manualProduct{} reference manual
in the section entitled ``GNU Free Documentation License''.%
}
