\subsection{\funcnameXBjobchown{}}

\begin{expara}

int \funcnameXBjobchown{}(const int fd,

\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ const unsigned flags,

\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ const slotno\_t slot,

\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ const char *newowner)

\end{expara}

The function \funcXBjobchown{} is used to change the
ownership of a job

\exampletext{fd} is a file descriptor which was previously
returned by a successful call to \funcXBopen{} or equivalent.

\exampletext{flags} is zero or
\filename{\constprefix{}FLAG\_IGNORESEQ} to ignore recent changes to
the job list.

\exampletext{slot} is the slot number corresponding to the job
as returned by \funcXBjoblist{} or
\funcXBjobfindslot{}.

\exampletext{newowner} is the user name of the prospective new
owner.

\subsubsection{Return values}
The function returns 0 if successful otherwise one of the error codes
listed on page \pageref{errorcodes} onwards.

