Diffstat (limited to 'mcon/U/sbrktype.U')
1 files changed, 44 insertions, 0 deletions
diff --git a/mcon/U/sbrktype.U b/mcon/U/sbrktype.U
new file mode 100644
@@ -0,0 +1,44 @@
+?RCS: $Id: sbrktype.U,v 3.0 1993/08/18 12:09:43 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS: $Log: sbrktype.U,v $
+?RCS: Revision 3.0 1993/08/18 12:09:43 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?MAKE:sbrktype: Myread Oldconfig Loc contains Findhdr
+?MAKE: -pick add $@ %<
+?S: This variable defines sbrktype to be something like caddr_t, char *,
+?S: or whatever type is used to declare sbrk() in the kernel.
+?C: This symbol holds the type of a core address. It is inteded to be used
+?C: to safely declare the return type of system calls like sbrk(). It might
+?C: be necessary to include <sys/types.h> as well.
+?H:#define Caddr_t $sbrktype /* <core address> type */
+: see what type sbrk is declared as in the kernel
+case "$sbrktype" in
+ if $contains 'caddr_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
+ dflt='char *';
+echo " "
+rp="What is the return type of sbrk() on this system?"