[torqueusers] Bug in pbs_rescquery documentation

Prakash Velayutham velayups at email.uc.edu
Fri Aug 26 14:37:31 MDT 2005


The manpage for pbs_rescquery says (torque 1.2.0p5) the syntax to be
       #include <pbs_error.h>
       #include <pbs_ifl.h>

       int pbs_rescquery(int connect, char **resourcelist, int *arraysize,
       int *available, int *allocated, int *reserved, int *down )

But the actual source for pbs_rescquery function is this way in 

int pbs_rescquery(c, resclist, num_resc,
                available, allocated, reserved, down)
        int    c;
        char **resclist;        /* In - list of queries */
        int    num_resc;        /* In - number in list  */
        int   *available;       /* Out - number available per query */
        int   *allocated;       /* Out - number allocated per query */
        int   *reserved;        /* Out - number reserved  per query */
        int   *down;            /* Out - number down/off  per query */

Note the integer pointer format for the arraysize attribute in the 
manpage and the regular integer format in the actual implementation. If 
this is a bug that has been carried over from PBS, could someone fix this.


More information about the torqueusers mailing list