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

« back to all changes in this revision

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