~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to src/squeue/print.h

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************\
2
2
 *  print.h - squeue print job definitions
3
3
 *****************************************************************************
4
 
 *  Copyright (C) 2002-2006 The Regents of the University of California.
 
4
 *  Copyright (C) 2002-2007 The Regents of the University of California.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security
5
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
6
7
 *  Written by Joey Ekstrom <ekstrom1@llnl.gov>
7
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
8
9
 *  
9
10
 *  This file is part of SLURM, a resource management program.
10
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
11
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
12
 *  Please also read the included file: DISCLAIMER.
11
13
 *  
12
14
 *  SLURM is free software; you can redistribute it and/or modify it under
13
15
 *  the terms of the GNU General Public License as published by the Free
15
17
 *  any later version.
16
18
 *
17
19
 *  In addition, as a special exception, the copyright holders give permission 
18
 
 *  to link the code of portions of this program with the OpenSSL library under 
 
20
 *  to link the code of portions of this program with the OpenSSL library under
19
21
 *  certain conditions as described in each individual source file, and 
20
22
 *  distribute linked combinations including the two. You must obey the GNU 
21
23
 *  General Public License in all respects for all of the code used other than 
106
108
#define job_format_add_job_state_compact(list,wid,right,suffix) \
107
109
        job_format_add_function(list,wid,right,suffix,  \
108
110
                                _print_job_job_state_compact)
 
111
#define job_format_add_time_left(list,wid,right,suffix) \
 
112
        job_format_add_function(list,wid,right,suffix,  \
 
113
                                _print_job_time_left)
109
114
#define job_format_add_time_limit(list,wid,right,suffix)        \
110
115
        job_format_add_function(list,wid,right,suffix,  \
111
116
                                _print_job_time_limit)
169
174
        job_format_add_function(list,wid,right,suffix,_print_job_select_jobinfo)
170
175
#define job_format_add_comment(list,wid,right,suffix) \
171
176
        job_format_add_function(list,wid,right,suffix,_print_job_comment)
 
177
#define job_format_add_reservation(list,wid,right,suffix) \
 
178
        job_format_add_function(list,wid,right,suffix,_print_job_reservation)
172
179
 
173
180
/*****************************************************************************
174
181
 * Job Line Print Functions
199
206
                        char* suffix);
200
207
int _print_job_job_state_compact(job_info_t * job, int width,
201
208
                        bool right_justify, char* suffix);
 
209
int _print_job_time_left(job_info_t * job, int width, bool right_justify, 
 
210
                        char* suffix);
202
211
int _print_job_time_limit(job_info_t * job, int width, bool right_justify, 
203
212
                        char* suffix);
204
213
int _print_job_time_used(job_info_t * job, int width, bool right_justify, 
263
272
                        char* suffix);
264
273
int _print_job_comment(job_info_t * job, int width, bool right_justify,
265
274
                        char* suffix);
 
275
int _print_job_reservation(job_info_t * job, int width, bool right_justify,
 
276
                        char* suffix);
266
277
 
267
278
/*****************************************************************************
268
279
 * Step Print Format Functions