drm/i915: Fix hangs on some broadwell machines
[dragonfly.git] / contrib / amd / TODO
CommitLineData
984263bc
MD
1# -*- text -*-
2
3Make a tasks file that people can pick jobs off of.
4
5take a look at am_compat.h and fix everything there...
6
7fix all $Id bla bla bla $ on every file.
8add my own copyright 1997 etc.
9
10NOT NEEDED: convert DEBUG symbol to ENABLE_DEBUG
11NOT NEEDED: convert DEBUG_MEM symbol to ENABLE_DEBUG_MEM
12
13Use these two somewhere:
14AC_DEFINE(AM_UTILS_NAME_PACKAGE, "am-utils")
15AC_DEFINE(AM_UTILS_VERSION, "6.0a1)
16
17check all "dnl XXX: in configure.in
18
19check for: INLINE, Const->const, P_void, VOIDP
20
21rename DEBUG_MTAB to DEBUG_MNTTAB
22rename UPDATE_MTAB to MOUNT_TABLE_ON_FILE
23rename HAS_NIS_MAPS to HAVE_MAP_NIS
24rename HAS_TFS to HAVE_FS_TFS
25rename SIG_HNDL_TYP to RETSIGTYPE
26
27remove HOST_EXEC #define from everywhere. add to am_ops.c a static flag
28initialized_vops, which if not true, should set the host_ops vector field to
290 or host_umounted. This way let the feature be turned on if -h option to
30amd is given.
31
32nuke all code that is ifdef'd SUNOS4_COMPAT
33
34rename NEED_MNTOPT_PARSER to HAVE_HASMNTOPT and cleanup the code. also take
35the supplied code in amd/mount_fs.c and include it as the library function
36libamd/hasmntopt.c
37
38TLI code needs to be fixed.
39
40a way to include a site-specific configuration file IFF it exists from
41directory local/<${target}.h>
42
43replace #include WAIT with nothing (HAVE_SYS_WAIT_H?)
44
45replace SYS5_SIGNALS with HAVE_SYS_WAIT_H (which is on only if it sys/wait.h
46exists and is using the newer "int" for type, not "union wait". The macro
47AC_HEADER_SYS_WAIT turns on HAVE_SYS_WAIT_H iff wait*() functions are
48posix.1 compliant. Make sure you don't remove SYS5_SIGNALS ifdef's that are
49not related to wait*() syscalls.
50
51add username, hostname, and date at which time amd was compiled.
52
53No more need for MOUNT_HELPER_SOURCE.
54
55any code which is included by NEED_UMOUNT_FS, should be on iff
56MOUNT_TABLE_ON_FILE is on.
57
58replace NFS_FH_FIELD with references fo ".fh" in calls to
59NFS_FH_DREF(src, dst) macro
60
61For *EVERY* M4 Macro with case/esac, check that the $host_os case entries
62are correct.
63
64I'm not using amd's regexp code. Instead, use generic system code. If the
65system has posix style regexp functions, then change amd/map.c to use
66correct new prototype.
67
68use HAVE_SVC_GETREQSET instead of RPC_4.
69
70replace all "jsp" in *.[hc] $Id: TODO,v 1.1.1.1 1998/11/05 02:04:19 ezk Exp $ with ezk.
71
72use MNTTAB_FILE_NAME instead of MOUNTED
73
74use MOUNT_TABLE_ON_FILE instead of READ_MTAB_FROM_FILE
75
76no more HAS_EMPTY_AUTOMOUNTS, which was used if a df(1) divide by zero bug
77was invoked. Instead, change nfs_statfs() code to always return non-zero
78values. Then nuke HAS_EMPTY_AUTOMOUNTS.
79
80REGEXP: use whatever regular expressionlibrary you have on the system,
81including regexp.h if available, and using regcomp/regexec. Amd was written
82with BSD regexps in mind, not Sys V, so if I use any of those, I have to
83watch for correct usage. Otherwise, I can include the older include/re.h
84and amd/re.c. Replace HAS_REGEXP with HAVE_REGEXEC.
85
86The regex code in amd/mapc.c has changed a lot. It probably has bugs. Must
87test and debug it!!!
88
89# string name of filesystem in /etc/mnttab file
90Use MNTTAB_TYPE_FOO instead of MTAB_TYPE_FOO.
91# string name of mount option in /etc/mnttab file
92Use MNTTAB_OPT_FOO instead of MNTOPT_FOO.
93# string (or integer?) name of filesystem type in mount(2) syscall
94Use MOUNT_TYPE_FOO instead of MNTTYPE_FOO or MOUNT_FOO.
95# hex/number of FS mount option in nfs_args passed to mount(2) syscall
96Use MNT2_NFS_OPT_FOO instead NFSMNT_FOO.
97# hex/number of generic FS mount option directly passed to mount(2) syscall
98Use MNT2_GEN_OPT_FOO instead of MS_FOO or M_FOO.
99
100
101update AMD_COMPAT to 6.0 in include/am_utils.h
102
103convert all mem* functions b* functions (memset to bzero, etc.) or vice
104verse.
105
106put my name/copyright on every src file
107
108change all struct mnttab/mntent to "mntent_t"
109
110cleanup lib/resvport.c (TLI vs. Sockets). TLI code is #defin'ed
111HAVE_T_OPEN.
112[
113setting MTAB_LOCK_FILE (mtab_svr4.c) should be an amd run-time configuration
114option.
115
116change all UMOUNT_FS macros to umount_fs() fxn calls.
117
118remove getnetbyaddr() from lib/getnetbyaddr.c and then link w/ -lsocket
119
120take care of various (hlfsd et al) scripts in Makefile.am files.
121
122rename HOSTNAMESZ to MAXHOSTNAMELEN
123
124turn on all the NEW_TOPLVL_READDIR code (for "ls" to work in an amd point)
125
126change all NEW_DEFAULTS to ENABLE_DEFAULT_SELECTOTS (which is now on by
127default)
128
129remove refereces to mnt_freq and mnt_passno in mntent_t since it's not in
130use any more.
131
132remove all the (lint?) comments /*ARGSUSED */
133
134change HAS_FOOFS to HAVE_AM_FS_FOO (for example HAS_NFSX -> HAVE_AM_FS_FOO),
135but change HAS_UNION_FS to HAVE_AM_FS_UNION.
136
137some code uses #ifdef M_NEWTYPE to tell if mount(2)'s type field is "char *"
138or int. Use MTYPE_TYPE declaration instead (not ifdef macro!)
139
140change DEBUG_MTAB to DEBUG_MNTTAB
141
142deal with the changes in values of $os, $arch, and $osver!
143
144replace SYS5_SIGNALS with REINSTATE_SIGNAL_HANDLER
145
146figure out how to auto-conf HAS_HESIOD_RELOAD (amd/info_hesiod.c). For now
147I've used the macro HAVE_HS_ZONE_TRANSFER.
148
149
150
151\f
152******************************************************************************
153PERL SCRIPT TO FIX OLD AMD MAPS:
154- fix '=' to ':='
155- fix sos5 -> solaris2, etc.
156
157******************************************************************************
158USE AS IS:
159
160- SVC_IN_ARG_TYPE (change from SVC_IN_ARGS_TYPE, with an 'S')
161- NFS_FH_TYPE
162- MTYPE_TYPE
163- MOUNT_TYPE_* NO!!!
164
165******************************************************************************
166NEW FEATURES:
167
168- autofs
169- cachefs
170- dbm/gdbm/db file maps
171- add amd option -O (override) to override $os, $osver, $arch, $karch, etc.
172
173******************************************************************************
174DONE:
175
176HAS_TFS is gone and all of it's code too.
177major code cleanup, removed if 0 code and if notdef