1146998Sdes/* $Id: bsd-cray.h,v 1.12 2005/02/02 06:10:11 dtucker Exp $ */ 2124208Sdes 3124208Sdes/* 498937Sdes * Copyright (c) 2002, Cray Inc. (Wendy Palm <wendyp@cray.com>) 598937Sdes * Significant portions provided by 698937Sdes * Wayne Schroeder, SDSC <schroeder@sdsc.edu> 798937Sdes * William Jones, UTexas <jones@tacc.utexas.edu> 898937Sdes * 998937Sdes * Redistribution and use in source and binary forms, with or without 1098937Sdes * modification, are permitted provided that the following conditions 1198937Sdes * are met: 1298937Sdes * 1. Redistributions of source code must retain the above copyright 1398937Sdes * notice, this list of conditions and the following disclaimer. 1498937Sdes * 2. Redistributions in binary form must reproduce the above copyright 1598937Sdes * notice, this list of conditions and the following disclaimer in the 1698937Sdes * documentation and/or other materials provided with the distribution. 1798937Sdes * 1898937Sdes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1998937Sdes * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2098937Sdes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2198937Sdes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2298937Sdes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2398937Sdes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2498937Sdes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2598937Sdes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2698937Sdes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2798937Sdes * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2898937Sdes * 2998937Sdes * Created: Apr 22 16.34:00 2002 wp 3098937Sdes * 3198937Sdes * This file contains functions required for proper execution 3298937Sdes * on UNICOS systems. 3398937Sdes * 3498937Sdes */ 35124208Sdes 3698937Sdes#ifndef _BSD_CRAY_H 3798937Sdes#define _BSD_CRAY_H 3898937Sdes 39106121Sdes#ifdef _UNICOS 40124208Sdes 41124208Sdesvoid cray_init_job(struct passwd *); 42124208Sdesvoid cray_job_termination_handler(int); 43124208Sdesvoid cray_login_failure(char *, int ); 44124208Sdesint cray_access_denied(char *); 45124208Sdesextern char cray_tmpdir[]; 46124208Sdes 47146998Sdes#define CUSTOM_FAILED_LOGIN 1 48146998Sdes 49106121Sdes#ifndef IA_SSHD 50124208Sdes# define IA_SSHD IA_LOGIN 5198937Sdes#endif 52106121Sdes#ifndef MAXHOSTNAMELEN 53124208Sdes# define MAXHOSTNAMELEN 64 54106121Sdes#endif 55113908Sdes#ifndef _CRAYT3E 56124208Sdes# define TIOCGPGRP (tIOC|20) 57106121Sdes#endif 5898937Sdes 59124208Sdes#endif /* UNICOS */ 60124208Sdes 6198937Sdes#endif /* _BSD_CRAY_H */ 62