/*static char *SCCSID = "@(#)getslot.c  6.1 90/11/17";*/
/*static char *SCCSID = "@(#)getslot.c      13.2 90/01/25";*/
/*** GetSlot - returns thread number of current thread
 *
 *          Uses FSH_QSYSINFO to do this.
 *
 */
// @75229 move to _BTXT
#define _BTXT _BTXT

#define INCL_DOSERRORS

#include <os2def.h>
#include <bse.h>
#include <fsh.h>

#include "const.h"
#include "misc.h"
#include "chain.h"
#include "buf.h"
#include "dir.h"
#include "storage.h"
#include "volume.h"
#include "tables.h"
#include "frame.h"
#include "pr_debug.h"

USHORT
GetSlot ()
{
    USHORT usRet;
    USHORT usTID;

    usRet = FSH_QSYSINFO (QSI_THREADNO, (PCHAR) &usTID, sizeof (usTID));

    if (usRet != NO_ERROR) {
// @76193 don't print if logging
#if defined (DEBUG) || defined (LOG_PRINT)
        dprintf ("GetSlot: FSH_QSYSINFO failed\n");
#endif
        _asm int 3;
    }
    return (usTID);
}
