linuxÏÂÃ涨ʱ
alarm
Èç¹û²»ÒªÇóºÜ¾«È·µÄ»°£¬Óà alarm() ºÍ signal() ¾Í¹»ÁË
unsigned int alarm(unsigned int seconds)
ʾÀý£º
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
void sigalrm_fn(int sig)
{
/* Do something */
printf("alarm!\n");
alarm(2);
return;
}
int main(void)
{
signal(SIGALRM, sigalrm_fn);
alarm(2);
/* Do someting */
while(1) pause();
}
2. setitimer
int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue));
3ÖÖÀàÐ͵Ķ¨Ê±Æ÷£º
ITIMER_REAL : ÒÔϵͳÕæʵµÄʱ¼äÀ´¼ÆË㣬ËüËͳöSIGALRMÐźš£
ITIMER_VIRTUAL : ÒÔ¸ÃÐгÌÕæÕýÓÐÖ´ÐеÄʱ¼äÀ´¼ÆËã£
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
[ת]Õâ¸öÌâÄ¿ºÜ´ó£¬¸øÈËÒ»ÖָоõÎÒºÃÏñºÜ³É¹¦£¬Æäʵ²»È»¡£Êµ¼ÊÉÏ×Ô¼ºË®Æ½²»¸ß£¬ÉõÖÁºÜµÍ£¬µ«ÊÇ×ö¹ýÁËһЩÇúÕÛµÄѧϰµÀ·£¬Í¬Ê±°Ñ×Ô¼ºÕæʵµÄѧϰÀú³Ì±í´ï³öÀ´£¬Ï£Íû¶ÔºóÀ´ÕßÓнè¼øµÄÒâÒ壬ÉõÐÒ£¡
¹¤×÷ÈýÄê¡¢¼¸³É·ÏÈË£¡
ÎÒ2000Äê±ÏÒµÓÚ»ªÖеØÇøµÄÒ»¸öÀí¹¤¿Æ´óѧ£¬×¨ÒµÊÇ»úеµç×Ó£¬ÎÒµ±Ê±ÒѾǩÁËÒ»¼ÒÄÚ½ij¸öÊ¡¼¶»ú¹Ø¹¤× ......
ϵͳ£ºRHEL 5.1 & 5.3
gsoapÊǸöºÃ¶«¶«£¬Ëü¿ÉÄܺܺÃ×°£¬¿ÉÄÜÒ²ºÜÄÑ×°£¬È¡¾öÓÚÄãµÄϵͳÒѾ°²×°ÁËʲô¿ª·¢°ü¡£
ÎÒÔÚ¶ą̀RHELÐéÄâ»ú£¨32bit & 64bit£©ÉϾù°²×°ÁËgsoap£¬ÆäÖÐÓÐһ̨ÊÇconfigureÖ®ºóÖ±½Ómake¾Í¸ã¶¨ÁË£¬ÁíÍâÁ½Ì¨¶¼ÊÇ»¹ÒªÕÛÌںܶàÆäËû¶«Î÷µÄ¡£
ÆäÖÐÓм¸¸öÐèҪ˵Ã÷µÄµØ·½ÊÇ£º
£¨1£©°²×°gsoap£¬ÄãÐèÒªÏÈ ......
Óð²×°¹âÅÌÒýµ¼ÏµÍ³
--> ¼üÈëlinux rescue½øÈë¾ÈԮģʽ
--> skipýÌå¼ì²é,Ñ¡ÔñÓïÑÔ,¼üÅÌ,Ñ¡continue½øÈëconsole(ÃüÁîÐÐ)ģʽ
--> chroot /mnt/sysimage --> grub-install /dev/hda(Èç¹ûÓÃlilo,ÓÃÃüÁîlilo)
--> restart
ɾ³ýlinux·ÖÇøÈçºÎ»Ö¸´windows·ÖÇø
ÓÃwindowsÆô¶¯ÅÌÆô ......
¹¦ÄÜ˵Ã÷£º±È½ÏÎļþµÄ²îÒì¡£
Óï¡¡¡¡·¨£ºdiff [-abBcdefHilnNpPqrstTuvwy][-<ÐÐÊý>][-C <ÐÐÊý>][-D <¾Þ¼¯Ãû³Æ>][-I <×Ö·û»ò×Ö·û´®>][-S <Îļþ>][-W <¿í¶È>][-x <Îļþ»òĿ¼>][-X <Îļþ>][--help][--left-column][--suppress-common-line][Îļþ»òĿ¼1][Îļþ»òĿ¼2]
²¹³ä ......