File: prelude.c

package info (click to toggle)
gdb-arm 200000308-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 61,732 kB
  • ctags: 90,617
  • sloc: ansic: 751,546; exp: 42,053; sh: 13,928; makefile: 10,085; asm: 5,015; cpp: 4,673; yacc: 4,120; lisp: 2,214; perl: 1,730; sed: 620; awk: 170; fortran: 5
file content (67 lines) | stat: -rw-r--r-- 1,635 bytes parent folder | download | duplicates (12)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*===========================================================================
=	Novell Standard C Library for NetWare Loadable Modules
=
=	Unpublished Copyright (C) 1993 by Novell, Inc. All rights reserved.
=
=	No part of this file may be duplicated, revised, translated, localized or
=	modified in any manner or compiled, linked or uploaded or downloaded to or
=	from any computer system without the prior written consent of Novell, Inc.
==============================================================================
=	The object produced by compiling this file is for use by the client of this
=	library and is not linked in;  Prelude.Obj is therefore one of the files to
=	be distributed with CLib.NLM and its headers.
==============================================================================
*/

#include <stddef.h>
#if defined(__netware__) && defined(__i386__)
#define TERMINATE_BY_UNLOAD	5
#else
#include <nwpre.h>
#endif
/*#include "libhooks.h"*/

extern int main (int, char **);

static int	NLMID;


void _Stop( void )
{
	_TerminateNLM(NLMID, NULL, TERMINATE_BY_UNLOAD);
}

int _cstart_( void )
{
   return _SetupArgv(main);
}

int _Prelude
(
	int	NLMHandle,
	int	initErrorScreenID,
	char	*commandLine,
	char	*loadDirectoryPath,
	int	uninitializedDataLength,
	int	NLMFileHandle,
	int	(*readRoutineP)(),
	int	customDataOffset,
	int	customDataSize
)
{
	int	rc;

   rc = _StartNLM(NLMHandle,
					initErrorScreenID,
					commandLine,
					loadDirectoryPath,
					uninitializedDataLength,
					NLMFileHandle,
					readRoutineP,
					customDataOffset,
					customDataSize,
               &NLMID,
					_cstart_);

	return rc;
}