

#include <pbs_config.h>   /* the master config generated by configure */

#include <sys/types.h>
#include "libpbs.h"
#include "list_link.h"
#include "server_limits.h"
#include "attribute.h"
#include "credential.h"
#include "batch_request.h"
#include "dis.h"

int encode_DIS_ReturnFiles(
    
  struct tcp_chan *chan,
  struct batch_request *preq)

  {
  int   rc;


  if ((rc = diswst(chan, preq->rq_ind.rq_returnfiles.rq_jobid) != 0)         ||
      (rc = diswsi(chan, preq->rq_ind.rq_returnfiles.rq_return_stdout) != 0) ||
      (rc = diswsi(chan, preq->rq_ind.rq_returnfiles.rq_return_stderr) != 0))
    return rc;

  return 0;
  }
