1233N/A* Copyright (c) 1990, 2011, Oracle and/or its affiliates. All rights reserved. 550N/A* Permission is hereby granted, free of charge, to any person obtaining a 919N/A* copy of this software and associated documentation files (the "Software"), 919N/A* to deal in the Software without restriction, including without limitation 919N/A* the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A* and/or sell copies of the Software, and to permit persons to whom the 919N/A* Software is furnished to do so, subject to the following conditions: 919N/A* The above copyright notice and this permission notice (including the next 919N/A* paragraph) shall be included in all copies or substantial portions of the 919N/A* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 919N/A* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 919N/A* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 919N/A* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 919N/A* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 919N/A* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 919N/A* DEALINGS IN THE SOFTWARE. 550N/A * $XConsortium: auth.c,v 1.17 89/12/14 09:42:18 rws Exp $ 550N/A * Copyright 1988 Massachusetts Institute of Technology 550N/A * Permission to use, copy, modify, and distribute this software and its 550N/A * documentation for any purpose and without fee is hereby granted, provided 550N/A * that the above copyright notice appear in all copies and that both that 550N/A * copyright notice and this permission notice appear in supporting 550N/A * documentation, and that the name of M.I.T. not be used in advertising or 550N/A * publicity pertaining to distribution of the software without specific, 550N/A * written prior permission. M.I.T. makes no representations about the 550N/A * suitability of this software for any purpose. It is provided "as is" 550N/A * without express or implied warranty. 550N/A * Author: Keith Packard, MIT X Consortium 550N/A/* 1191081: SIGSEGV when starting openwin - core dumped by mkcookie. 550N/A * becuase d.userAuthDir is not assigned any valid directory where 550N/A * every one will have access to it. 550N/A { (
int)
18,
"MIT-MAGIC-COOKIE-1",
550N/A { (
int)
9,
"SUN-DES-1",
550N/A/* ioc.ic_len = ((struct ifconf *) arg)->ifc_len; */ 550N/A/* For jup_alpha3, it wants a smaller size in the length field, uncomment above 550N/A line and delete the next line once that is fixed. Should not give EINVAL */ 550N/A#
endif /* SYSV && TCPCONN */ 550N/A#
endif /* SYSV && TCPCONN */ 550N/A * this is ugly but SIOCGIFCONF returns decnet addresses in 550N/A * a different form from other decnet calls 550N/A * If we get back a 0.0.0.0 IP address, ignore this entry. This 550N/A * typically happens when a machine is in a standalone mode. 550N/A /* Why not use gethostname()? Well, at least on my system, I've had to 550N/A * make an ugly kernel patch to get a name longer than 8 characters, and 550N/A * uname() lets me access to the whole string (it smashes release, you 550N/A * see), whereas gethostname() kindly truncates it for me. 550N/A ( (t &
0xff000000) >>
24) ^
550N/A ( (t &
0xff0000) >>
16) ^
550N/A /* Change to real user id, before writing any files */ 550N/A /* 1191081: SIGSEGV when starting openwin - core dumped by mkcookie. 550N/A * becuase d.userAuthDir is not assigned any valid directory where 550N/A * every one will have access to it.