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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2009-02-16 17:32:28 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216173228-repbgujfj52115mg
Tags: 2.3.6+dfsg-0ubuntu1
* New upstream release (LP: #235385).
* Torque-server init script fails during installation and 
  removal (LP: #223649) fixed, "set -e" removed from init script.
* Package torque-scheduler 2.1.8+dfsg-0ubuntu1.1 failed to install
  (LP: #244440 LP: #270574) fixed, "set -e" removed from init script.
* /etc/init.d/torque-mom not idempotent, and stop doesn't work
  (LP: #256998) Fixed, "set -e" removed from init script.
* Torque-scheduler prints errors during package configuration
  (LP: #270653). Reason: missing dir sched_config. Fixed,
  package installs FIFO scheduler config file in
  /var/lib/torque/sched_priv/.
* Package torque-mom 2.1.8+dfsg-0ubuntu1 failed to 
  install/upgrade (LP: #276575 LP: #291674). Reason: missing directories.
  Fixed, /var/lib/torque/server_priv/jobs/, 
  /var/lib/torque/server_priv/queues/, 
  /var/lib/torque/server_priv/accounting/ and
  /var/lib/torque/mom_priv/jobs/ are now installed in their respective
  packages.
* Package torque-gui missing most of the files it needs to run!
  (LP: #281360). Reason: missing *.tk etc. files from src/gui
  Fixed: /usr/lib/xpbs now shipped in package
* changed patch system to quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
*         OpenPBS (Portable Batch System) v2.3 Software License
3
 
 
3
*
4
4
* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
5
5
* All rights reserved.
6
 
 
6
*
7
7
* ---------------------------------------------------------------------------
8
8
* For a license to use or redistribute the OpenPBS software under conditions
9
9
* other than those described below, or to purchase support for this software,
10
10
* please contact Veridian Systems, PBS Products Department ("Licensor") at:
11
 
 
11
*
12
12
*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
13
13
*                        877 902-4PBS (US toll-free)
14
14
* ---------------------------------------------------------------------------
15
 
 
15
*
16
16
* This license covers use of the OpenPBS v2.3 software (the "Software") at
17
17
* your site or location, and, for certain users, redistribution of the
18
18
* Software to other sites and locations.  Use and redistribution of
19
19
* OpenPBS v2.3 in source and binary forms, with or without modification,
20
20
* are permitted provided that all of the following conditions are met.
21
21
* After December 31, 2001, only conditions 3-6 must be met:
22
 
 
22
*
23
23
* 1. Commercial and/or non-commercial use of the Software is permitted
24
24
*    provided a current software registration is on file at www.OpenPBS.org.
25
25
*    If use of this software contributes to a publication, product, or
26
26
*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
27
 
 
27
*
28
28
* 2. Redistribution in any form is only permitted for non-commercial,
29
29
*    non-profit purposes.  There can be no charge for the Software or any
30
30
*    software incorporating the Software.  Further, there can be no
31
31
*    expectation of revenue generated as a consequence of redistributing
32
32
*    the Software.
33
 
 
33
*
34
34
* 3. Any Redistribution of source code must retain the above copyright notice
35
35
*    and the acknowledgment contained in paragraph 6, this list of conditions
36
36
*    and the disclaimer contained in paragraph 7.
37
 
 
37
*
38
38
* 4. Any Redistribution in binary form must reproduce the above copyright
39
39
*    notice and the acknowledgment contained in paragraph 6, this list of
40
40
*    conditions and the disclaimer contained in paragraph 7 in the
41
41
*    documentation and/or other materials provided with the distribution.
42
 
 
42
*
43
43
* 5. Redistributions in any form must be accompanied by information on how to
44
44
*    obtain complete source code for the OpenPBS software and any
45
45
*    modifications and/or additions to the OpenPBS software.  The source code
47
47
*    than the cost of distribution plus a nominal fee, and all modifications
48
48
*    and additions to the Software must be freely redistributable by any party
49
49
*    (including Licensor) without restriction.
50
 
 
50
*
51
51
* 6. All advertising materials mentioning features or use of the Software must
52
52
*    display the following acknowledgment:
53
 
 
53
*
54
54
*     "This product includes software developed by NASA Ames Research Center,
55
 
*     Lawrence Livermore National Laboratory, and Veridian Information 
 
55
*     Lawrence Livermore National Laboratory, and Veridian Information
56
56
*     Solutions, Inc.
57
57
*     Visit www.OpenPBS.org for OpenPBS software support,
58
58
*     products, and information."
59
 
 
59
*
60
60
* 7. DISCLAIMER OF WARRANTY
61
 
 
61
*
62
62
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
63
63
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
64
64
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
65
65
* ARE EXPRESSLY DISCLAIMED.
66
 
 
66
*
67
67
* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
68
68
* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
69
69
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
72
72
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
73
73
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
74
74
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
75
 
 
75
*
76
76
* This license will be governed by the laws of the Commonwealth of Virginia,
77
77
* without reference to its choice of law rules.
78
78
*/
79
 
/*      pbs_geterrmsg.c
80
 
 
81
 
        Return the last error message the server returned on
82
 
        this connection.
 
79
 
 
80
/* pbs_geterrmsg.c
 
81
 
 
82
 Return the last error message the server returned on
 
83
 this connection.
83
84
*/
84
85
 
85
86
#include <pbs_config.h>   /* the master config generated by configure */
 
87
#include "server_limits.h"
86
88
 
87
89
#include "libpbs.h"
88
90
 
89
91
char *pbs_geterrmsg(
90
92
 
91
 
  int connect)
 
93
  int connect) /* I - socket descriptor */
92
94
 
93
95
  {
 
96
  if ((connect < 0) || (connect > PBS_NET_MAX_CONNECTIONS))
 
97
    {
 
98
    return(NULL);
 
99
    }
 
100
 
94
101
  return(connection[connect].ch_errtxt);
95
 
  }
 
102
  }  /* END pbs_geterrmsg() */
 
103
 
 
104
 
 
105
/* END pbs_geterrmsg() */
 
106