1N/A/***********************************************************************
1N/A* *
1N/A* This software is part of the ast package *
1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property *
1N/A* and is licensed under the *
1N/A* Common Public License, Version 1.0 *
1N/A* by AT&T Intellectual Property *
1N/A* *
1N/A* A copy of the License is available at *
1N/A* http://www.opensource.org/licenses/cpl1.0.txt *
1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
1N/A* *
1N/A* Information and Software Systems Research *
1N/A* AT&T Research *
1N/A* Florham Park NJ *
1N/A* *
1N/A* Glenn Fowler <gsf@research.att.com> *
1N/A* David Korn <dgk@research.att.com> *
1N/A* Phong Vo <kpv@research.att.com> *
1N/A* *
1N/A***********************************************************************/
1N/A#pragma prototyped
1N/A/*
1N/A * Glenn Fowler
1N/A * AT&T Research
1N/A *
1N/A * universe support
1N/A *
1N/A * symbolic link external representation has trailing '\0' and $(...) style
1N/A * conditionals where $(...) corresponds to a kernel object (i.e., probably
1N/A * not environ)
1N/A *
1N/A * universe symlink conditionals use $(UNIVERSE)
1N/A */
1N/A
1N/A#ifndef _UNIVLIB_H
1N/A#define _UNIVLIB_H
1N/A
1N/A#if defined(__STDPP__directive) && defined(__STDPP__hide)
1N/A__STDPP__directive pragma pp:hide getuniverse readlink setuniverse symlink universe
1N/A#else
1N/A#define getuniverse ______getuniverse
1N/A#define readlink ______readlink
1N/A#define setuniverse ______setuniverse
1N/A#define symlink ______symlink
1N/A#define universe ______universe
1N/A#endif
1N/A
1N/A#include <ast.h>
1N/A#include <ls.h>
1N/A#include <errno.h>
1N/A
1N/A#define UNIV_SIZE 9
1N/A
1N/A#if _cmd_universe && _sys_universe
1N/A#include <sys/universe.h>
1N/A#endif
1N/A
1N/A#if defined(__STDPP__directive) && defined(__STDPP__hide)
1N/A__STDPP__directive pragma pp:nohide getuniverse readlink setuniverse symlink universe
1N/A#else
1N/A#undef getuniverse
1N/A#undef readlink
1N/A#undef setuniverse
1N/A#undef symlink
1N/A#undef universe
1N/A#endif
1N/A
1N/A#if _cmd_universe
1N/A#ifdef NUMUNIV
1N/A#define UNIV_MAX NUMUNIV
1N/A#else
1N/A#define UNIV_MAX univ_max
1N/Aextern char* univ_name[];
1N/Aextern int univ_max;
1N/A#endif
1N/A
1N/Aextern char univ_cond[];
1N/Aextern int univ_size;
1N/A
1N/A#else
1N/A
1N/Aextern char univ_env[];
1N/A
1N/A#endif
1N/A
1N/Aextern int getuniverse(char*);
1N/Aextern int readlink(const char*, char*, int);
1N/Aextern int setuniverse(int);
1N/Aextern int symlink(const char*, const char*);
1N/Aextern int universe(int);
1N/A
1N/A#endif