摘要:
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<fcntl.h>
#include<sys/stat.h>
#include<string.h>
#include<sys/mman.h>
struct stu
{ char name[20]; int age; float score;
};
//1 打开文件,2 映射到虚拟地址,3 写入数据,4 卸载虚拟地址,5关闭文件
main()
{ int fd; struct stu * 阅读全文
摘要:
今天维护了一台某公司的网站服务器,就是访问文件突然不存在了,花了些时间看了一下,原因如下:Global.asax 被改,变成了系统文件,还隐藏了。。文件内容如下:<%@ Language="VB"%><%@ Import Namespace="System.IO"%><script language="VB" runat="server"> Sub Session_Start(Sender As Object, E As EventArgs) Dim MyFile,Path
Se 阅读全文