10 void portals_debug_msg(int subsys, int mask, char *file, const char *fn,
11 const int line, unsigned long stack,
15 int cfs_proc_mknod(const char *path, unsigned short mode, unsigned int dev)
21 void print_last_error(char* Prefix)
26 FORMAT_MESSAGE_ALLOCATE_BUFFER |
27 FORMAT_MESSAGE_FROM_SYSTEM |
28 FORMAT_MESSAGE_IGNORE_INSERTS,
37 printf("%s %s", Prefix, (LPTSTR) lpMsgBuf);
43 // The following declarations are defined in io.h of VC
44 // sys/types.h will conflict with io.h, so we need place
45 // these declartions here.
51 __declspec (naked) __cdecl _chkesp(void)
54 __asm { jz exit_chkesp };
64 unsigned int sleep (unsigned int seconds)
66 Sleep(seconds * 1000);
70 int gethostname(char * name, int namelen)
81 printf("hello, world\n");
85 #endif /* __KERNEL__ */