~ubuntu-branches/ubuntu/precise/torque/precise-updates

« back to all changes in this revision

Viewing changes to src/lib/Libifl/dec_ReturnFile.c

  • Committer: Bazaar Package Importer
  • Author(s): Dominique Belhachemi
  • Date: 2010-05-17 20:56:46 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100517205646-yjsoqs5r1s9xpnu9
Tags: upstream-2.4.8+dfsg
ImportĀ upstreamĀ versionĀ 2.4.8+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <pbs_config.h>   /* the master config generated by configure */
 
3
 
 
4
#include <sys/types.h>
 
5
#include <stdlib.h>
 
6
#include "libpbs.h"
 
7
#include "list_link.h"
 
8
#include "server_limits.h"
 
9
#include "attribute.h"
 
10
#include "credential.h"
 
11
#include "batch_request.h"
 
12
#include "dis.h"
 
13
 
 
14
int
 
15
decode_DIS_ReturnFiles(int sock, struct batch_request *preq)
 
16
  {
 
17
 
 
18
  struct rq_returnfiles *prfs;
 
19
  int   rc;
 
20
 
 
21
  prfs = &preq->rq_ind.rq_returnfiles;
 
22
 
 
23
  if ((rc = disrfst(sock, PBS_MAXSVRJOBID, prfs->rq_jobid)) != 0)
 
24
    return rc;
 
25
 
 
26
  prfs->rq_return_stdout = disrsi(sock, &rc);
 
27
 
 
28
  if (rc != 0)
 
29
    return rc;
 
30
 
 
31
  prfs->rq_return_stderr = disrsi(sock, &rc);
 
32
 
 
33
  if (rc != 0)
 
34
    return rc;
 
35
 
 
36
  return 0;
 
37
  }
 
38
 
 
39