资源简介
server.rar
代码片段和文件信息
/*
* This file was taken from pth-1.40/aclocal.m4
* The original copyright is below.
*
* GNU Pth - The GNU Portable Threads
* Copyright (c) 1999-2001 Ralf S. Engelschall
*
* This file is part of GNU Pth a non-preemptive thread scheduling
* library which can be found at http://www.gnu.org/software/pth/.
*
* This file is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License or (at your option) any later version.
*
* This file is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this file; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307
* USA or contact Marc Lehmann .
*/
#include
#include
#include
#if defined(TEST_sigstack) || defined(TEST_sigaltstack)
#include
#include
#include
#endif
#if defined(TEST_makecontext)
#include
#endif
union alltypes {
long l;
double d;
void *vp;
void (*fp)(void);
char *cp;
};
static volatile char *handler_addr = (char *)0xDEAD;
#if defined(TEST_sigstack) || defined(TEST_sigaltstack)
static volatile int handler_done = 0;
void handler(int sig)
{
char garbage[1024];
int i;
auto int dummy;
for (i = 0; i < 1024; i++)
garbage[i] = ‘X‘;
handler_addr = (char *)&dummy;
handler_done = 1;
return;
}
#endif
#if defined(TEST_makecontext)
static ucontext_t uc_handler;
static ucontext_t uc_main;
void handler(void)
{
char garbage[1024];
int i;
auto int dummy;
for (i = 0; i < 1024; i++)
garbage[i] = ‘X‘;
handler_addr = (char *)&dummy;
swapcontext(&uc_handler &uc_main);
return;
}
#endif
int main(int argc char *argv[])
{
FILE *f;
char *skaddr;
char *skbuf;
int sksize;
char result[1024];
int i;
sksize = 32768;
skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
if (skbuf == NULL)
exit(1);
for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
skbuf[i] = ‘A‘;
skaddr = skbuf+sizeof(union alltypes);
#if defined(TEST_sigstack) || defined(TEST_sigaltstack)
{
struct sigaction sa;
#if defined(TEST_sigstack)
struct sigstack ss;
#elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
stack_t ss;
#else
struct sigaltstack ss;
#endif
#if defined(TEST_sigstack)
ss.ss_sp = (void *)(skaddr + sksize);
ss.ss_o
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1219 2018-01-05 09:18 server\.vscode\launch.json
文件 96 2018-01-05 09:18 server\.vscode\settings.json
文件 113 2018-01-05 09:18 server\1.account_server.bat
文件 110 2018-01-05 09:18 server\2.hall_server.bat
文件 6801 2018-01-05 09:18 server\account_server\account_server.js
文件 286 2018-01-05 09:18 server\account_server\app.js
文件 1475 2018-01-05 09:18 server\account_server\dealer_api.js
文件 3509 2018-01-14 19:02 server\configs_win.js
文件 3352 2018-01-05 09:18 server\configs_win_bak.js
文件 2259 2018-01-05 09:18 server\DB\managers\accountDBMgr.js
文件 2086 2018-01-05 09:18 server\DB\managers\archiveDBMgr.js
文件 2100 2018-01-05 09:18 server\DB\managers\archiveDBMgr_SSP.js
文件 3010 2018-01-05 09:18 server\DB\managers\gamesDBMgr.js
文件 894 2018-01-05 09:18 server\DB\managers\messageDBMgr.js
文件 4947 2018-01-05 09:18 server\DB\managers\roomDBMgr.js
文件 5018 2018-01-05 09:18 server\DB\managers\sspRoomDBMgr.js
文件 5162 2018-01-14 18:51 server\DB\managers\sssRoomDBMgr.js
文件 8386 2018-01-05 09:18 server\DB\managers\userDBMgr.js
文件 5018 2018-01-05 09:18 server\DB\managers\wskRoomDBMgr.js
文件 807 2018-01-05 09:18 server\DB\sqlClient.js
文件 319 2018-01-05 09:18 server\hall_server\app.js
文件 12558 2018-01-05 09:18 server\hall_server\client_service.js
文件 6932 2018-01-05 09:18 server\hall_server\room_service.js
文件 2955 2018-01-05 09:18 server\lib\ba
文件 2550 2018-01-05 09:18 server\lib\emitter.js
文件 101709 2018-01-05 09:18 server\node_modules\express\History.md
文件 235 2018-01-05 09:18 server\node_modules\express\index.js
文件 14845 2018-01-05 09:18 server\node_modules\express\lib\application.js
文件 2057 2018-01-05 09:18 server\node_modules\express\lib\express.js
文件 788 2018-01-05 09:18 server\node_modules\express\lib\middleware\init.js
............此处省略1503个文件信息
- 上一篇:尚硅谷_前端_面试题
- 下一篇:2018批量获取(mpgflvts)视频信息工具
相关资源
- 核武器CC攻击器V1.0绿色版.rar
- Cplex教程.rar
- wuchengbai_7973277.zip
- 基于ansys180Fluent离心泵流场仿真教程
- password.txt
- 北京理工大学信号与系统课件.7z
- 练习答案.zip
- 高效能人士的七个习惯.pdf
- f2457bae400447c1a8c9741b57feace3.zip
- 4bfb07c95cb74765a4b61c408789b54d.zip
- 最新尚硅谷全套视频打包地址.docx
- 易康9安装包及破解.zip
- 2009.rar
- 《软件测试的艺术》第3版高清影印带
- 无线数据采集系统.zip
- qqmusic.zip
- 离散数学左孝凌答案.pdf
- 可转债交易.rar
- 8cn0m7.rar
- QCA8075HWUserReference.zip
- Ultra-FastFiberLasers.pdf
- PhotocopierPro4.04复印软件.rar
- 上海理工大学848数据结构操作系统2
- 网美-镜像站群V17-多客户优化-智能[广
- 网美-镜像站群V16-蜘蛛池出租版-多客
- S7-200模拟仿真软件2.0含中英版,教程
- zw_weixin_44163573-10873954-zw_xingzhengquhua_
- zw_u011827798-9999625-常用姓名字典.zip
- zw_tangtangzizi-6915835-FactorySoftOPCDARapidT
- zw_qq_30612787-10390434-数字信号处理—课
评论
共有 条评论