[torqueusers] Bug in pbs_rescquery documentation

Dave Jackson jacksond at clusterresources.com
Fri Aug 26 15:00:25 MDT 2005


Prakash,

  The latest patch 6 snapshot corrects the manpage.  Thanks for the
info.

Thanks,
Dave

On Fri, 2005-08-26 at 16:37 -0400, Prakash Velayutham wrote:
> Hi,
> 
> 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 
> lib/Libifl/pbsD_resc.c
> 
> 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.
> 
> Thanks,
> Prakash
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers



More information about the torqueusers mailing list