TODO is no longer part of Amd, and we do not need, nor use clnt_sperrno.c.

This commit is contained in:
David E. O'Brien 2001-09-02 20:15:46 +00:00
parent 6bf7267c1a
commit fce5abd394
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82823
2 changed files with 0 additions and 324 deletions

View File

@ -1,177 +0,0 @@
# -*- text -*-
Make a tasks file that people can pick jobs off of.
take a look at am_compat.h and fix everything there...
fix all $Id bla bla bla $ on every file.
add my own copyright 1997 etc.
NOT NEEDED: convert DEBUG symbol to ENABLE_DEBUG
NOT NEEDED: convert DEBUG_MEM symbol to ENABLE_DEBUG_MEM
Use these two somewhere:
AC_DEFINE(AM_UTILS_NAME_PACKAGE, "am-utils")
AC_DEFINE(AM_UTILS_VERSION, "6.0a1)
check all "dnl XXX: in configure.in
check for: INLINE, Const->const, P_void, VOIDP
rename DEBUG_MTAB to DEBUG_MNTTAB
rename UPDATE_MTAB to MOUNT_TABLE_ON_FILE
rename HAS_NIS_MAPS to HAVE_MAP_NIS
rename HAS_TFS to HAVE_FS_TFS
rename SIG_HNDL_TYP to RETSIGTYPE
remove HOST_EXEC #define from everywhere. add to am_ops.c a static flag
initialized_vops, which if not true, should set the host_ops vector field to
0 or host_umounted. This way let the feature be turned on if -h option to
amd is given.
nuke all code that is ifdef'd SUNOS4_COMPAT
rename NEED_MNTOPT_PARSER to HAVE_HASMNTOPT and cleanup the code. also take
the supplied code in amd/mount_fs.c and include it as the library function
libamd/hasmntopt.c
TLI code needs to be fixed.
a way to include a site-specific configuration file IFF it exists from
directory local/<${target}.h>
replace #include WAIT with nothing (HAVE_SYS_WAIT_H?)
replace SYS5_SIGNALS with HAVE_SYS_WAIT_H (which is on only if it sys/wait.h
exists and is using the newer "int" for type, not "union wait". The macro
AC_HEADER_SYS_WAIT turns on HAVE_SYS_WAIT_H iff wait*() functions are
posix.1 compliant. Make sure you don't remove SYS5_SIGNALS ifdef's that are
not related to wait*() syscalls.
add username, hostname, and date at which time amd was compiled.
No more need for MOUNT_HELPER_SOURCE.
any code which is included by NEED_UMOUNT_FS, should be on iff
MOUNT_TABLE_ON_FILE is on.
replace NFS_FH_FIELD with references fo ".fh" in calls to
NFS_FH_DREF(src, dst) macro
For *EVERY* M4 Macro with case/esac, check that the $host_os case entries
are correct.
I'm not using amd's regexp code. Instead, use generic system code. If the
system has posix style regexp functions, then change amd/map.c to use
correct new prototype.
use HAVE_SVC_GETREQSET instead of RPC_4.
replace all "jsp" in *.[hc] $Id: TODO,v 1.1.1.1 1998/11/05 02:04:19 ezk Exp $ with ezk.
use MNTTAB_FILE_NAME instead of MOUNTED
use MOUNT_TABLE_ON_FILE instead of READ_MTAB_FROM_FILE
no more HAS_EMPTY_AUTOMOUNTS, which was used if a df(1) divide by zero bug
was invoked. Instead, change nfs_statfs() code to always return non-zero
values. Then nuke HAS_EMPTY_AUTOMOUNTS.
REGEXP: use whatever regular expressionlibrary you have on the system,
including regexp.h if available, and using regcomp/regexec. Amd was written
with BSD regexps in mind, not Sys V, so if I use any of those, I have to
watch for correct usage. Otherwise, I can include the older include/re.h
and amd/re.c. Replace HAS_REGEXP with HAVE_REGEXEC.
The regex code in amd/mapc.c has changed a lot. It probably has bugs. Must
test and debug it!!!
# string name of filesystem in /etc/mnttab file
Use MNTTAB_TYPE_FOO instead of MTAB_TYPE_FOO.
# string name of mount option in /etc/mnttab file
Use MNTTAB_OPT_FOO instead of MNTOPT_FOO.
# string (or integer?) name of filesystem type in mount(2) syscall
Use MOUNT_TYPE_FOO instead of MNTTYPE_FOO or MOUNT_FOO.
# hex/number of FS mount option in nfs_args passed to mount(2) syscall
Use MNT2_NFS_OPT_FOO instead NFSMNT_FOO.
# hex/number of generic FS mount option directly passed to mount(2) syscall
Use MNT2_GEN_OPT_FOO instead of MS_FOO or M_FOO.
update AMD_COMPAT to 6.0 in include/am_utils.h
convert all mem* functions b* functions (memset to bzero, etc.) or vice
verse.
put my name/copyright on every src file
change all struct mnttab/mntent to "mntent_t"
cleanup lib/resvport.c (TLI vs. Sockets). TLI code is #defin'ed
HAVE_T_OPEN.
[
setting MTAB_LOCK_FILE (mtab_svr4.c) should be an amd run-time configuration
option.
change all UMOUNT_FS macros to umount_fs() fxn calls.
remove getnetbyaddr() from lib/getnetbyaddr.c and then link w/ -lsocket
take care of various (hlfsd et al) scripts in Makefile.am files.
rename HOSTNAMESZ to MAXHOSTNAMELEN
turn on all the NEW_TOPLVL_READDIR code (for "ls" to work in an amd point)
change all NEW_DEFAULTS to ENABLE_DEFAULT_SELECTOTS (which is now on by
default)
remove refereces to mnt_freq and mnt_passno in mntent_t since it's not in
use any more.
remove all the (lint?) comments /*ARGSUSED */
change HAS_FOOFS to HAVE_AM_FS_FOO (for example HAS_NFSX -> HAVE_AM_FS_FOO),
but change HAS_UNION_FS to HAVE_AM_FS_UNION.
some code uses #ifdef M_NEWTYPE to tell if mount(2)'s type field is "char *"
or int. Use MTYPE_TYPE declaration instead (not ifdef macro!)
change DEBUG_MTAB to DEBUG_MNTTAB
deal with the changes in values of $os, $arch, and $osver!
replace SYS5_SIGNALS with REINSTATE_SIGNAL_HANDLER
figure out how to auto-conf HAS_HESIOD_RELOAD (amd/info_hesiod.c). For now
I've used the macro HAVE_HS_ZONE_TRANSFER.
******************************************************************************
PERL SCRIPT TO FIX OLD AMD MAPS:
- fix '=' to ':='
- fix sos5 -> solaris2, etc.
******************************************************************************
USE AS IS:
- SVC_IN_ARG_TYPE (change from SVC_IN_ARGS_TYPE, with an 'S')
- NFS_FH_TYPE
- MTYPE_TYPE
- MOUNT_TYPE_* NO!!!
******************************************************************************
NEW FEATURES:
- autofs
- cachefs
- dbm/gdbm/db file maps
- add amd option -O (override) to override $os, $osver, $arch, $karch, etc.
******************************************************************************
DONE:
HAS_TFS is gone and all of it's code too.
major code cleanup, removed if 0 code and if notdef

View File

@ -1,147 +0,0 @@
/*
* Copyright (c) 1997-1998 Erez Zadok
* Copyright (c) 1990 Jan-Simon Pendry
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Jan-Simon Pendry at Imperial College, London.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* %W% (Berkeley) %G%
*
* $Id: clnt_sperrno.c,v 5.2.2.1 1992/02/09 15:08:40 jsp beta $
*
*/
/*
* Early RPC seems to be missing these..
* Extracted from the RPC 3.9 sources as indicated
*/
/* @(#)clnt_perror.c 1.1 87/11/04 3.9 RPCSRC */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without charge, but are not authorized
* to license or distribute it to anyone else except as part of a product or
* program developed by the user.
*
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
*
* Sun RPC is provided with no support and without any obligation on the
* part of Sun Microsystems, Inc. to assist in its use, correction,
* modification or enhancement.
*
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
* OR ANY PART THEREOF.
*
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if
* Sun has been advised of the possibility of such damages.
*
* Sun Microsystems, Inc.
* 2550 Garcia Avenue
* Mountain View, California 94043
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif /* HAVE_CONFIG_H */
#include <am_defs.h>
#include <amu.h>
struct rpc_errtab {
enum clnt_stat status;
char *message;
};
static struct rpc_errtab rpc_errlist[] =
{
{RPC_SUCCESS,
"RPC: Success"},
{RPC_CANTENCODEARGS,
"RPC: Can't encode arguments"},
{RPC_CANTDECODERES,
"RPC: Can't decode result"},
{RPC_CANTSEND,
"RPC: Unable to send"},
{RPC_CANTRECV,
"RPC: Unable to receive"},
{RPC_TIMEDOUT,
"RPC: Timed out"},
{RPC_VERSMISMATCH,
"RPC: Incompatible versions of RPC"},
{RPC_AUTHERROR,
"RPC: Authentication error"},
{RPC_PROGUNAVAIL,
"RPC: Program unavailable"},
{RPC_PROGVERSMISMATCH,
"RPC: Program/version mismatch"},
{RPC_PROCUNAVAIL,
"RPC: Procedure unavailable"},
{RPC_CANTDECODEARGS,
"RPC: Server can't decode arguments"},
{RPC_SYSTEMERROR,
"RPC: Remote system error"},
{RPC_UNKNOWNHOST,
"RPC: Unknown host"},
/* { RPC_UNKNOWNPROTO,
* "RPC: Unknown protocol" }, */
{RPC_PMAPFAILURE,
"RPC: Port mapper failure"},
{RPC_PROGNOTREGISTERED,
"RPC: Program not registered"},
{RPC_FAILED,
"RPC: Failed (unspecified error)"}
};
/*
* This interface for use by clntrpc
*/
char *
clnt_sperrno(enum clnt_stat stat)
{
int i;
for (i = 0; i < sizeof(rpc_errlist) / sizeof(struct rpc_errtab); i++) {
if (rpc_errlist[i].status == stat) {
return (rpc_errlist[i].message);
}
}
return ("RPC: (unknown error code)");
}