- Timestamp:
- Oct 14, 1999, 3:16:50 AM (26 years ago)
- Location:
- trunk/src/win32k/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/include/dev32.h
r847 r1269 1 /* 1 /* $Id: dev32.h,v 1.2 1999-10-14 01:16:49 bird Exp $ 2 * 2 3 * dev32 - header file for 32-bit part of the driver. 3 4 * -
trunk/src/win32k/include/ldr.h
r847 r1269 1 /* $Id: ldr.h,v 1. 1 1999-09-06 02:19:58bird Exp $1 /* $Id: ldr.h,v 1.2 1999-10-14 01:16:49 bird Exp $ 2 2 * 3 3 * ldr - loader header file. … … 19 19 #define MAX_FILE_HANDLES 0x10000 20 20 21 extern unsigned char a hStates[MAX_FILE_HANDLES/4];21 extern unsigned char achHandleStates[MAX_FILE_HANDLES/8]; 22 22 23 #define HSTATE_UNUSED 0x00 /* nowhere */ 24 #define HSTATE_CHECK 0x01 /* look in uncertain files */ 25 #define HSTATE_NOT_PE 0x02 /* nowhere */ 26 #define HSTATE_PE 0x03 /* look in PE handles */ 27 #define HSTATE_MASK 0xFC 28 #define HSTATE_UMASK 0x03 23 #define HSTATE_UNUSED 0x00 /* Handle not used (or OS/2). */ 24 #define HSTATE_OS2 0x00 /* OS/2 module filehandle. */ 25 #define HSTATE_OUR 0x01 /* Our module filehandle. */ 26 #define HSTATE_MASK 0xFE 27 #define HSTATE_UMASK 0x01 29 28 30 #define GetState(a) (HSTATE_UMASK & (ahStates[a/4] >> (a%4)*2)) 31 #define SetState(a,b) (ahStates[a/4] = (ahStates[a/4] & (HSTATE_MASK << (a%4)*2 | HSTATE_MASK >> 8-(a%4)*2) | b << (a%4)*2)) 32 33 34 35 /*********************/ 36 /* uncertain file(s) */ 37 /*********************/ 38 #define MAX_UNCERTAIN_FILES 0x10 /* probably never more that one uncertain file at the time */ 39 40 typedef struct _uncertain 41 { 42 SFN hFile; 43 ULONG offsetNEHdr; 44 PSZ pszName; 45 unsigned int fMZ:1; 46 unsigned int fPE:1; 47 } UNCERTAIN, *PUNCERTAIN; 48 49 extern UNCERTAIN ahUncertain[MAX_UNCERTAIN_FILES]; 50 51 ULONG getFreeUncertainEntry(void); 52 ULONG freeUncertainEntry(SFN hFile); 53 ULONG findUncertainEntry(SFN hFile); 29 #define GetState(a) (HSTATE_UMASK & (achHandleStates[(a)/8] >> ((a)%8))) 30 #define SetState(a,b) (achHandleStates[(a)/8] = (achHandleStates[(a)/8] & (HSTATE_MASK << ((a)%8) | HSTATE_MASK >> 8-((a)%8)) | ((b) & 0x1) << ((a)%8))) 54 31 55 32 … … 69 46 PMTE pMTE; /* pointer to MTE if we got one - may be NULL */ 70 47 71 /* LXFileobject */72 LXFile lxfile;48 /* Pe2Lx object */ 49 Pe2Lx *pPe2Lx; 73 50 } PENODE, *PPENODE; 74 51 … … 76 53 77 54 ULONG insertNode(PPENODE pNode); 78 ULONG deleteNode(SFN key); 55 ULONG deleteNode(SFN key); /* removes from tree and freeNode */ 79 56 PPENODE getNodePtr(SFN key); 80 57 PPENODE findNodePtr(const char *pszFilename); 81 58 ULONG depthPE(void); 82 59 PPENODE allocateNode(void); 60 ULONG freeNode(PPENODE pNode); /* don't remove from tree! */ 83 61 84 62 /* if sequential insertion - this will give a lower tree. */ -
trunk/src/win32k/include/log.h
r847 r1269 1 /* $Id: log.h,v 1.1 1999-09-06 02:19:58 bird Exp $ 1 /* $Id: log.h,v 1.2 1999-10-14 01:16:50 bird Exp $ 2 * 2 3 * log - C-style logging - kprintf. 4 * Dual mode, RING0 and RING3. 3 5 * 4 6 * Copyright (c) 1998-1999 knut st. osmundsen … … 16 18 #define OUTPUT_COM2 0x2f8 17 19 18 #ifndef RELEASE 19 #ifndef RING0_DEBUG_IN_RING3 20 void _kprintf(const char *, ...); 21 #define kprintf(a) _kprintf a 22 #define kernel_printf(a) kprintf a; _kprintf("\n") 23 #else 24 #include <stdio.h> 25 #define kprintf(a) printf a; flushall() 26 #define kernel_printf(a) printf a; printf("\n"); flushall() 27 #endif 20 /* 21 * output macros 22 */ 23 #define dprintf kprintf 24 #ifdef DEBUG 25 #include <stdarg.h> 26 #include "vprintf.h" 27 #define kprintf(a) printf a 28 #define kernel_printf(a) printf a, printf("\n") /* obsolete */ 28 29 #else 29 #ifndef RING0_DEBUG_IN_RING3 30 #define kprintf(a) Yield() 31 #define kernel_printf(a) Yield() 32 #else 33 #include <stdio.h> 34 #define kprintf(a) (void)0 35 #define kernel_printf(a) (void)0 36 #endif 30 #define kprintf(a) (void)0 31 #define kernel_printf(a) (void)0 37 32 #endif 38 33 -
trunk/src/win32k/include/malloc.h
r847 r1269 1 /* $Id: malloc.h,v 1. 1 1999-09-06 02:19:58bird Exp $1 /* $Id: malloc.h,v 1.2 1999-10-14 01:16:50 bird Exp $ 2 2 * 3 3 * Heap. … … 13 13 #ifndef _MALLOC_H_ 14 14 #define _MALLOC_H_ 15 #ifdef __MALLOC_H 16 #error("A different version of malloc.h has allready been loaded!") 17 #endif 18 #define __malloc_h 15 19 16 20 #ifdef __cplusplus … … 44 48 #define HEAP_SIZE 0x00600000U /* 10MB of heap */ 45 49 46 /* HeapPointer assert */50 /* HeapPointer assert - old ones... */ 47 51 #define ltasserthp(a) if (!_validptr((void*)(a))){ _ltasserthp((void*)(a), #a,__FILE__,__LINE__); return FALSE;} 48 52 #define ltasserthp2(a,b) if (!_validptr((void*)(a))){ _ltasserthp((void*)(a), #a,__FILE__,__LINE__); b; return FALSE;} -
trunk/src/win32k/include/new.h
r847 r1269 1 /* $Id: new.h,v 1. 1 1999-09-06 02:19:59bird Exp $1 /* $Id: new.h,v 1.2 1999-10-14 01:16:50 bird Exp $ 2 2 * 3 3 * new - new and delete operators. … … 7 7 */ 8 8 9 #ifdef __new_h10 #error("wrong version of new allready loaded!")11 #endif12 13 #ifdef __DEBUG_ALLOC__14 #error("__DEBUG_ALLOC__ is not supported!")15 #endif16 17 18 9 #ifndef _new_h_ 19 10 #define _new_h_ 11 12 /* check for IBMCPP new.h */ 13 #ifdef __new_h 14 #error("A different version of new.h has allready been loaded!") 15 #endif 16 #define __new_h /* Defined to prevent IBMCPP new.h from being loaded. */ 20 17 21 18 /* size_t */ … … 25 22 #endif 26 23 24 #ifndef __DEBUG_ALLOC__ 27 25 /* The standard favourites */ 28 26 void *operator new(size_t size); … … 34 32 void operator delete(void *location); 35 33 void operator delete[](void *location); /* stub */ 34 #endif 35 36 #ifdef __DEBUG_ALLOC__ 37 void *operator new(size_t size, const char *filename, size_t lineno); 38 void *operator new(size_t size, const char *filename, size_t lineno, void *location); 39 40 void *operator new[](size_t size, const char *filename, size_t lineno); 41 void *operator new[](size_t size, const char *filename, size_t lineno, void *location); 42 43 void operator delete(void *location, const char *filename, size_t lineno); 44 void operator delete[](void *location, const char *filename, size_t lineno); 45 #endif 36 46 37 47 #endif
Note:
See TracChangeset
for help on using the changeset viewer.