File: sysinit.c

package info (click to toggle)
ng 1.5~beta1-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,144 kB
  • sloc: ansic: 43,437; asm: 3,150; sh: 2,539; cpp: 1,234; makefile: 577
file content (25 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* $Id: sysinit.c,v 1.1.1.1 2000/06/27 01:47:57 amura Exp $ */
/*
 *		Human68k systems initialization
 */

/*
 * $Log: sysinit.c,v $
 * Revision 1.1.1.1  2000/06/27 01:47:57  amura
 * import to CVS
 *
 */
/* 90.11.09	Created for Ng 1.2.1 Human68k by Sawayanagi Yosirou */

#include    <stdlib.h>

sysinit()
{
#ifndef FLEX_MALLOC	/* 91.01.20  by K.Maeda */
	size_t    max_size;

	if ((max_size = chkml ()) == 0)
		return (-1);
	return (sbrk (max_size / 2) == (char *)-1);
#endif
}