mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
Remove vestigial 3DFS support code (re: f88f302c)
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.
This commit is contained in:
parent
2db9953ae0
commit
fbc6cd4286
32 changed files with 83 additions and 683 deletions
|
|
@ -1,117 +0,0 @@
|
|||
/***********************************************************************
|
||||
* *
|
||||
* 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
|
||||
/*
|
||||
* Glenn Fowler
|
||||
* AT&T Research
|
||||
*
|
||||
* 3d fs interface definitions
|
||||
*/
|
||||
|
||||
#ifndef _FS3D_H
|
||||
#define _FS3D_H
|
||||
|
||||
#include <ast_fs.h>
|
||||
|
||||
#if _int_st_spare1
|
||||
#define iview(p) ((p)->st_spare1)
|
||||
#define IVIEW(p,v) ((p)->st_spare1=(v))
|
||||
#else
|
||||
#if _ary_st_spare4
|
||||
#define iview(p) ((p)->st_spare4[0])
|
||||
#define IVIEW(p,v) ((p)->st_spare4[0]=(v))
|
||||
#else
|
||||
#if _ary_st_extra
|
||||
#define iview(p) ((p)->st_extra[0])
|
||||
#define IVIEW(p,v) ((p)->st_extra[0]=(v))
|
||||
#else
|
||||
#if _ary_st_pad4
|
||||
#define iview(p) ((p)->st_pad4[0])
|
||||
#define IVIEW(p,v) ((p)->st_pad4[0]=(v))
|
||||
#else
|
||||
#if _mem_st_rdev_stat
|
||||
#define iview(p) ((S_ISBLK((p)->st_mode)||S_ISCHR((p)->st_mode))?0:(p)->st_rdev)
|
||||
#define IVIEW(p,v) do{if(!S_ISBLK((p)->st_mode)&&!S_ISCHR((p)->st_mode))(p)->st_rdev=(v);}while(0)
|
||||
#else
|
||||
#define iview(p) 0
|
||||
#define IVIEW(p,v)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* special options
|
||||
*/
|
||||
|
||||
#define FS3D_init "/#option/init"
|
||||
#define FS3D_on "/#option/3d"
|
||||
#define FS3D_off "/#option/2d"
|
||||
|
||||
/*
|
||||
* fs3d(3) ops
|
||||
*/
|
||||
|
||||
#define FS3D_OP(o,a) (((a)<<3)|(o))
|
||||
|
||||
#define FS3D_INIT FS3D_OP_INIT /* re-initialize tables */
|
||||
#define FS3D_OFF FS3D_OP_OFF
|
||||
#define FS3D_ON FS3D_OP_ON
|
||||
#define FS3D_TEST FS3D_OP_TEST
|
||||
#define FS3D_LIMIT(n) FS3D_OP(FS3D_OP_LIMIT,n)
|
||||
|
||||
#define FS3D_op(x) ((x)&07)
|
||||
#define FS3D_arg(x) (((x)>>3)&07777)
|
||||
|
||||
#define FS3D_OP_OFF 0
|
||||
#define FS3D_OP_ON 1
|
||||
#define FS3D_OP_TEST 2
|
||||
#define FS3D_OP_LIMIT 3
|
||||
#define FS3D_OP_INIT 7
|
||||
|
||||
/*
|
||||
* mount(2) ops
|
||||
*/
|
||||
|
||||
#define FS3D_ALL (FS3D_VIEW|FS3D_VERSION)
|
||||
#define FS3D_VIEW 002
|
||||
#define FS3D_VERSION 004
|
||||
#define FS3D_GET 010
|
||||
#define FS3D_SIZE(n) ((n)<<4)
|
||||
#define FS3D_SIZEOF(n) ((n)>>4)
|
||||
|
||||
#if !_BLD_3d
|
||||
#define mount(s,t,f,d) fs3d_mount(s,t,f,d)
|
||||
#endif
|
||||
|
||||
#if _BLD_ast && defined(__EXPORT__)
|
||||
#define extern __EXPORT__
|
||||
#endif
|
||||
|
||||
extern int fs3d(int);
|
||||
extern int fs3d_mount(const char*, char*, int, void*);
|
||||
extern char* pathnext(char*, char*, long*);
|
||||
|
||||
#undef extern
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue