Çólinux time ÃüÁîµÄʵÏÖ´úÂë
ÈçÌ⣬лл
LinuxÊÇ¿ªÔ´µÄ£¬ÄãËÑË÷LinuxÔ´³ÌÐòĿ¼¾Í¿ÉÒÔÕÒµ½shellÃüÁîtimeµÄʵÏÖ´úÂë¡£
kernel/time.c
ÄãµÄÍ·ÏñºÜ²»´íѽ
ʹÓú¯ÊýtimeΪ½ø³ÌÌṩµ±Ç°µÄʱ¼ä
#include<time.h>
time_t time(time_t *t);
ÀýÈ磺
time_t cur_time;/*´æ´¢µ±Ç°Ê±¼äµÄ±äÁ¿*/
cur_time=time(NULL);/*µÃµ½µ±Ç°Ê±¼ä*/
printf(cur_time);
http://www.pudn.com/downloads84/sourcecode/unix_linux/detail324456.html
pudnÖ±½Ó¾ÍÓеÄÏÂ
time²»½ö½öÊǼÆÊ±£¬Ö÷ÒªÊÇÄÜ´òÓ¡³öÀ´Óû§/ϵͳʱ¼äÖ®ÀàµÄÐÅÏ¢¡£
man getrusage
IDÒ²±©Ç¿
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÎÒÖ®Ç°ÖÆ×÷µÄlinux×Ô¶¯°²×°isoÒѾ³É¹¦ÁË£¬ÏÖÔÚÏë¶ÔÆä½øÐÐһЩ¶¨ÖÆÐ޸쬱ÈÈ磬¸ü¸ÄgrubͼƬµÈ¡£
ÎÒÔÚks.cfgµÄ%post¶ÎÀïÃæÊÇÕâÑùдµÄ£º
%post --nochroot
# Move the contents of the tar into their new locati ......
ÎÒÃÇÁ¥ÊôÖпÆÔº¼ÆËãËùÍøÂçÖØµãʵÑéÊÒ(http://www.ict.ac.cn/survey/channel/detail443.asp)»ù´¡ÉèÊ©¿ÎÌâ×é.
ÏÖÒòÏîÄ¿ºÍÒµÎñÍØÕ¹µÄÐèÒª,ÌØÐèÒªÕÐÆ¸ÓëÏîÄ¿Ïà¹ØµÄÍøÂçÓ¦Óù¤³Ìʦ1-2Ãû¡£
¾ßÌåÒªÇóÈçÏ¡£ÓÐÒâÕß ......
´úÂëÌ«¶à£¬²»ºÃÌù£¬
´óÖÂÉæ¼°µ½ÕâЩ£º
char *arg[MAXSIZE];
char *buffer[MAXSIZE];
.........
arg[k]=(char*)malloc(sizeof(char)*j);
strcpy(arg[k],buffer);
.................[color=#993300][/color]
µ ......