init.cc
来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· CC 代码 · 共 39 行
CC
39 行
/* init.cc Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.This file is part of Cygwin.This software is a copyrighted work licensed under the terms of theCygwin license. Please consult the file "CYGWIN_LICENSE" fordetails. */#include "winsup.h"#include <stdlib.h>#include "thread.h"#include "perprocess.h"int NO_COPY dynamically_loaded;extern "C" intWINAPI dll_entry (HANDLE h, DWORD reason, void *static_load){ switch (reason) { case DLL_PROCESS_ATTACH: cygwin_hmodule = (HMODULE) h; dynamically_loaded = (static_load == NULL); break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: if (MT_INTERFACE->reent_key.set (&MT_INTERFACE->reents)) api_fatal ("thread initialization failed"); break; case DLL_THREAD_DETACH: /* not invoked */; break; } return 1;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?