mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Support for the long-dead 3DFS userland versioning file system was already removed from ksh93 (although I'd overlooked some minor things), but libast still supported it. This removes that too. src/lib/libast/include/fs3d.h, src/lib/libast/man/fs3d.3, src/lib/libast/misc/fs3d.c: - Removed. bin/package, src/cmd/INIT/package.sh: - Remove attempted use of removed vpath builtin. src/cmd/ksh93/*: - Remove minor 3dfs vestiges. src/lib/lib{ast,cmd,coshell}/*: - Remove code supporting 3dfs.
168 lines
4 KiB
C
168 lines
4 KiB
C
/***********************************************************************
|
|
* *
|
|
* This software is part of the ast package *
|
|
* Copyright (c) 1985-2011 AT&T Intellectual Property *
|
|
* and is licensed under the *
|
|
* Eclipse Public License, Version 1.0 *
|
|
* by AT&T Intellectual Property *
|
|
* *
|
|
* A copy of the License is available at *
|
|
* http://www.eclipse.org/org/documents/epl-v10.html *
|
|
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
|
|
* *
|
|
* Information and Software Systems Research *
|
|
* AT&T Research *
|
|
* Florham Park NJ *
|
|
* *
|
|
* Glenn Fowler <gsf@research.att.com> *
|
|
* David Korn <dgk@research.att.com> *
|
|
* Phong Vo <kpv@research.att.com> *
|
|
* *
|
|
***********************************************************************/
|
|
#pragma prototyped
|
|
/*
|
|
* AT&T Research
|
|
*
|
|
* directory stream access library private definitions
|
|
* library routines should include this file rather than <dirent.h>
|
|
*/
|
|
|
|
#ifndef _DIRLIB_H
|
|
#define _DIRLIB_H
|
|
|
|
#if defined(__STDPP__directive) && defined(__STDPP__hide)
|
|
__STDPP__directive pragma pp:hide getdents getdirentries
|
|
#else
|
|
#undef getdents
|
|
#define getdents ______getdents
|
|
#undef getdirentries
|
|
#define getdirentries ______getdirentries
|
|
#endif
|
|
|
|
#include <ast.h>
|
|
#include <errno.h>
|
|
|
|
#if _lib_opendir && ( _hdr_dirent || _hdr_ndir || _sys_dir )
|
|
|
|
#define _dir_ok 1
|
|
|
|
#include <ls.h>
|
|
|
|
#ifndef _DIRENT_H
|
|
#if _hdr_dirent
|
|
#if _typ_off64_t
|
|
#undef off_t
|
|
#endif
|
|
#include <dirent.h>
|
|
#if _typ_off64_t
|
|
#define off_t off64_t
|
|
#endif
|
|
#else
|
|
#if _hdr_ndir
|
|
#include <ndir.h>
|
|
#else
|
|
#include <sys/dir.h>
|
|
#endif
|
|
#ifndef dirent
|
|
#define dirent direct
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#define DIRdirent dirent
|
|
|
|
#else
|
|
|
|
#define dirent DIRdirent
|
|
|
|
#if defined(__STDPP__directive) && defined(__STDPP__hide)
|
|
__STDPP__directive pragma pp:hide DIR closedir opendir readdir seekdir telldir
|
|
#else
|
|
#undef DIR
|
|
#define DIR ______DIR
|
|
#undef closedir
|
|
#define closedir ______closedir
|
|
#undef opendir
|
|
#define opendir ______opendir
|
|
#undef readdir
|
|
#define readdir ______readdir
|
|
#undef seekdir
|
|
#define seekdir ______seekdir
|
|
#undef telldir
|
|
#define telldir ______telldir
|
|
#endif
|
|
|
|
#include <ast_param.h>
|
|
|
|
#include <ls.h>
|
|
#include <limits.h>
|
|
|
|
#ifndef _DIRENT_H
|
|
#if _hdr_dirent
|
|
#if _typ_off64_t
|
|
#undef off_t
|
|
#endif
|
|
#include <dirent.h>
|
|
#if _typ_off64_t
|
|
#define off_t off64_t
|
|
#endif
|
|
#else
|
|
#if _hdr_direntry
|
|
#include <direntry.h>
|
|
#else
|
|
#include <sys/dir.h>
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#undef dirent
|
|
#if defined(__STDPP__directive) && defined(__STDPP__hide)
|
|
__STDPP__directive pragma pp:nohide DIR closedir opendir readdir seekdir telldir
|
|
#else
|
|
#undef DIR
|
|
#undef closedir
|
|
#undef opendir
|
|
#undef readdir
|
|
#undef seekdir
|
|
#undef telldir
|
|
#endif
|
|
|
|
#define _DIR_PRIVATE_ \
|
|
int dd_loc; /* offset in block */ \
|
|
int dd_size; /* valid data in block */ \
|
|
char* dd_buf; /* directory block */
|
|
|
|
#undef _DIRENT_H
|
|
#include "dirstd.h"
|
|
#ifndef _DIRENT_H
|
|
#define _DIRENT_H 1
|
|
#endif
|
|
|
|
#ifndef DIRBLKSIZ
|
|
#ifdef DIRBLK
|
|
#define DIRBLKSIZ DIRBLK
|
|
#else
|
|
#ifdef DIRBUF
|
|
#define DIRBLKSIZ DIRBUF
|
|
#else
|
|
#define DIRBLKSIZ 8192
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#if defined(__STDPP__directive) && defined(__STDPP__hide)
|
|
__STDPP__directive pragma pp:nohide getdents getdirentries
|
|
#else
|
|
#undef getdents
|
|
#undef getdirentries
|
|
#endif
|
|
|
|
#ifndef errno
|
|
extern int errno;
|
|
#endif
|
|
|
|
extern ssize_t getdents(int, void*, size_t);
|
|
|
|
#endif
|