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

« back to all changes in this revision

Viewing changes to src/sprio/sprio.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
/****************************************************************************\
 
2
 *  sprio.h - definitions used for printing job queue state
 
3
 *****************************************************************************
 
4
 *  Copyright (C) 2009 Lawrence Livermore National Security.
 
5
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
 
6
 *  Written by Don Lipari <lipari1@llnl.gov>
 
7
 *  CODE-OCEC-09-009. All rights reserved.
 
8
 *
 
9
 *  This file is part of SLURM, a resource management program.
 
10
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
11
 *  Please also read the included file: DISCLAIMER.
 
12
 *
 
13
 *  SLURM is free software; you can redistribute it and/or modify it under
 
14
 *  the terms of the GNU General Public License as published by the Free
 
15
 *  Software Foundation; either version 2 of the License, or (at your option)
 
16
 *  any later version.
 
17
 *
 
18
 *  In addition, as a special exception, the copyright holders give permission 
 
19
 *  to link the code of portions of this program with the OpenSSL library under 
 
20
 *  certain conditions as described in each individual source file, and 
 
21
 *  distribute linked combinations including the two. You must obey the GNU 
 
22
 *  General Public License in all respects for all of the code used other than 
 
23
 *  OpenSSL. If you modify file(s) with this exception, you may extend this 
 
24
 *  exception to your version of the file(s), but you are not obligated to do 
 
25
 *  so. If you do not wish to do so, delete this exception statement from your
 
26
 *  version.  If you delete this exception statement from all source files in 
 
27
 *  the program, then also delete it here.
 
28
 *
 
29
 *  SLURM is distributed in the hope that it will be useful, but WITHOUT ANY
 
30
 *  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
31
 *  FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 
32
 *  details.
 
33
 *
 
34
 *  You should have received a copy of the GNU General Public License along
 
35
 *  with SLURM; if not, write to the Free Software Foundation, Inc.,
 
36
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA.
 
37
\*****************************************************************************/
 
38
 
 
39
#ifndef __SPRIO_H__
 
40
#define __SPRIO_H__
 
41
 
 
42
#if HAVE_CONFIG_H
 
43
#  include "config.h"
 
44
#endif
 
45
 
 
46
#include <ctype.h>
 
47
#include <stdio.h>
 
48
 
 
49
#if HAVE_INTTYPES_H
 
50
#  include <inttypes.h>
 
51
#else  /* !HAVE_INTTYPES_H */
 
52
#  if HAVE_STDINT_H
 
53
#    include <stdint.h>
 
54
#  endif
 
55
#endif  /* HAVE_INTTYPES_H */
 
56
 
 
57
#include <stdlib.h>
 
58
#include <string.h>
 
59
#include <time.h>
 
60
#include <unistd.h>
 
61
 
 
62
#include <slurm/slurm.h>
 
63
 
 
64
#include "src/common/hostlist.h"
 
65
#include "src/common/list.h"
 
66
#include "src/common/log.h"
 
67
#include "src/common/slurm_protocol_api.h"
 
68
#include "src/common/xmalloc.h"
 
69
#include "src/sprio/print.h"
 
70
 
 
71
struct sprio_parameters {
 
72
        bool job_flag;
 
73
        bool long_list;
 
74
        bool no_header;
 
75
        bool normalized;
 
76
        bool weights;
 
77
 
 
78
        int  verbose;
 
79
 
 
80
        char* format;
 
81
        char* jobs;
 
82
        char* users;
 
83
 
 
84
        List  format_list;
 
85
        List  job_list;
 
86
        List  user_list;
 
87
};
 
88
 
 
89
extern struct sprio_parameters params;
 
90
 
 
91
extern void parse_command_line( int argc, char* argv[] );
 
92
extern int  parse_format( char* format );
 
93
 
 
94
#endif