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

« back to all changes in this revision

Viewing changes to src/resmom/hpux11/mom_start.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:
93
93
#include "server_limits.h"
94
94
#include "attribute.h"
95
95
#include "resource.h"
96
 
#include "job.h"
 
96
#include "pbs_job.h"
97
97
#include "mom_func.h"
98
98
 
99
 
static char ident[] = "@(#) $RCSfile$ $Revision: 2394 $";
 
99
static char ident[] = "@(#) $RCSfile$ $Revision: 2367 $";
100
100
 
101
101
/* Global Variables */
102
102
 
117
117
 *  -2 - if other, message in log_buffer
118
118
 */
119
119
 
120
 
int set_job(pjob, sjr)
121
 
job *pjob;
122
 
 
123
 
struct startjob_rtn *sjr;
 
120
int
 
121
set_job(job *pjob, struct startjob_rtn *sjr)
124
122
  {
125
123
  return (sjr->sj_session = setsid());
126
124
  }
129
127
** set_globid - set the global id for a machine type.
130
128
*/
131
129
void
132
 
set_globid(pjob, sjr)
133
 
job *pjob;
134
 
 
135
 
struct startjob_rtn *sjr;
 
130
set_globid(job *pjob, struct startjob_rtn *sjr)
136
131
  {
137
132
  extern char noglobid[];
138
133
 
145
140
 */
146
141
 
147
142
int
148
 
set_mach_vars(pjob, vtab)
149
 
job      *pjob;    /* pointer to the job */
150
 
 
151
 
struct var_table *vtab;    /* pointer to variable table */
 
143
set_mach_vars(
 
144
  job *pjob,    /* pointer to the job */
 
145
  struct var_table *vtab    /* pointer to variable table */
 
146
)
152
147
  {
153
148
  return 0;
154
149
  }
155
150
 
156
 
char *set_shell(pjob, pwdp)
157
 
job       *pjob;
158
 
 
159
 
struct passwd *pwdp;
 
151
char *
 
152
set_shell(job *pjob, struct passwd *pwdp)
160
153
  {
161
154
  char *cp;
162
155
  int   i;