/* * $Id: jib.c,v 1.1.1.1 1996/03/08 15:44:28 mclareni Exp $ * * $Log: jib.c,v $ * Revision 1.1.1.1 1996/03/08 15:44:28 mclareni * Cspack * */ #include "cspack/pilot.h" /* Copyright (C) 1988 by Frederic Hemmer CERN-DD/SW/DB */ /* */ /* jib.c Manipulate software job information block info */ /* */ /* Release Date Author Description */ /* ------- --------- ------------ --------------------------------- */ /* 1.0 13-Jul-89 F. Hemmer Initial writing */ #define PUBLIC #define PRIVATE static #include #include #include #include "sysreq/pcbdef.h" #include "sysreq/jibdef.h" globalref char *CTL$GL_PCB; typedef struct { unsigned char count; char reserved[3]; long item; char * buf; long bufl; } ITEM; PRIVATE unsigned long __$getjib (item, buf, bufl) unsigned int item; char *buf; unsigned int bufl; { register char *p; register char *jib; register unsigned int i; jib = CTL$GL_PCB+PCB$L_JIB; p = * (int *)jib + item; for (i=0; i JIB$S_USERNAME) { length = JIB$S_USERNAME; } for (i=0;i JIB$S_ACCOUNT) { length = JIB$S_ACCOUNT; } for (i=0;i