/* * $Id: ctl.c,v 1.1.1.1 1996/03/08 15:44:28 mclareni Exp $ * * $Log: ctl.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 */ /* */ /* ctl.c Manipulate software CTL$ data */ /* */ /* Release Date Author Description */ /* ------- --------- ------------ --------------------------------- */ /* 1.0 26-Jul-89 F. Hemmer Initial writing */ #define PUBLIC #define PRIVATE static #include #include #include "sysreq/jibdef.h" globalvalue char *CTL$T_USERNAME; globalvalue char *CTL$T_ACCOUNT; globalref char *CTL$GL_PCB; typedef struct { unsigned char count; char reserved[3]; long item; char * buf; long bufl; } ITEM; PRIVATE unsigned long __$getctl (item, buf, bufl) unsigned int item; char *buf; unsigned int bufl; { register char *p; register unsigned int i; p = 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