long kernel_mktime(struct tm * tm){
long res; int year;
year = tm->tm_year - 70;/* magic offsets (y+1) needed to get leapyears right.*/
res = YEAR*year + DAY*((year+1)/4);
res += month[tm->tm_mon];/* and (y+2) here. If it wasn't a leap-year, we have to adjust */
if (tm->tm_mon>1 && ((year+2)%4))
res -= DAY; res += DAY*(tm->tm_mday-1);
res += HOUR*tm->tm_hour;
res += MINUTE*tm->tm_min;
res += tm->tm_sec;
return res;
}
分享到:
相关推荐
linux0.11 bochs 调试.txt linux0.11 bochs 调试.txt
linux 0.11 源码下载 本代码是目前能够找到的最早的Linux的内核版本,Linux 0.11内核是Linux内核的早期版本,于1991年由Linus Torvalds编写并发布。作为一个基于UNIX的操作系统内核,它的源代码包含了核心代码和一些...
linux 0.11 源码下载
linux 0.11内核下载,linux 内核
linux 0.11 源码下载
linux 0.11源码 Linus曾经说过:RTFSC - Read The Fucking Source Code. 本代码是目前能够找到的最早的Linux的内核版本。(如果你能找到更早版本的Linux源码,请一定要告诉我。;-) ) 本代码中的注释99%都来源于赵炯...
linux0.11的源代码,有对linux内核感兴趣的朋友可以下载看看
Linux 0.11源码,内核编程入门必备的珍贵资料。供相关的内核编程初学者及资深爱好者用以学习、分析及收藏。
linux-0.11.rar linux0.11版内核源代码 下载
Linux0.11内核代码,对于学习内核的人来说,Linux0.11内核代码确实是个不错的选择。。
linux0.11内核源代码 linux0.11内核源代码 linux0.11内核源代码
"Linux 0.11 内核编译及在 Bochs 2.6.9 中的调试运行" 本文主要讲述了在 Ubuntu 18.04 环境下编译 Linux 0.11 内核,并在 Bochs 2.6.9 中进行调试运行的过程。文章涵盖了编译 Linux 0.11 内核源代码、Bochs 2.6.9 ...
《Linux 0.11内核完全注释》
早期版本的linux 0.11源代码!是第一个linux kernel source code!
仓库管理问题,Linux0.11 信号量的实现与应用。
linux0.11源码里面有中文注释。linux内核完全注释根据linux0.11编写的。搭配内核设计的艺术2版,学习linux内核的神组合。学习内核建议从linux0.11看起,初始版本内容比较简单,但包含的都是内核的精髓。先上手,学到...
linux0.11内核源码
linux0.11资料,linux0.11内核源码及完全注释