Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linuxϵͳµ÷Óà sigactionº¯ÊýÏê½â(Ò»)

¹¦ÄÜÃèÊö£º 
´¦ÀíÐźš£¼È¿ÉÓÃÓÚÉ趨¶ÔÈÎÒâÐźŵĴ¦Àí·½Ê½£¬Ò²¿ÉÓÃÓÚ¼ìÑé¸ÃÐźŵÄÄ¿Ç°Ô¤Éè´¦Ö÷½Ê½¡£
 
  
Ó÷¨£º 
#include <signal.h>
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact);
       
  
²ÎÊý£º 
signum£º³ýÁËSIGKILLºÍSIGSTOPÖ®ÍâµÄÆäËüÈκÎÐźűàÂë¡£
act£ºÈç¹ûÖµ·ÇNULL£¬½«°²×°Îªsignum¹ØÁªÐźŵÄд¦Àí·½Ê½¡£
oldact£ºÈç¹ûÖµ·ÇNULL£¬´æ´¢ÒÔÇ°¶Ôsignum¹ØÁªÐźŵĴ¦Àí·½Ê½¡£
sigactionµÄ½á¹¹ÐÎ̬ÈçÏ£º
struct sigaction {
    void (*sa_handler)(int);
    void (*sa_sigaction)(int, siginfo_t *, void *);
    sigset_t sa_mask;
    int sa_flags;
    void (*sa_restorer)(void);
}
ÔÚһЩÌåϵÉÏ£¬sa_handlerºÍsa_sigaction¹²ÓÃÒ»¸öÁªºÏÌå(union)£¬ËùÒÔ²»ÒªÍ¬Ê±Ö¸¶¨Á½¸ö×ֶεÄÖµ¡£
sa_restorer×Ö¶ÎÒÑÌÔÌ­£¬²»Ó¦¸ÃÔÙ±»Ê¹Óá£
sa_handler×Ö¶ÎÖ¸¶¨ÓësignumÐźŹØÁªµÄÐÐΪ£¬¿ÉÄÜÊÇSIG_DFLĬÈÏÐÐΪ£¬SIG_IGNºöÂÔ½ÓË͵½µÄÐźţ¬»òÕßÒ»¸öÐźŴ¦Àíº¯ÊýÖ¸Õë¡£Õâ¸öº¯ÊýÒÔÒ»¸öÐźűàÂë×÷ΪËüµÄΨһ²ÎÊý¡£
Èç¹ûsa_flagsÖдæÔÚSA_SIGINFO±êÖ¾£¬ÄÇôsa_sigaction½«×÷ΪsignumÐźŵĴ¦Àíº¯Êý¡£Õâ¸öº¯ÊýµÄµÚÒ»²ÎÊýÊÇÐźűàÂ룬µÚ¶þ²ÎÊýÊÇsiginfo_t½á¹¹µÄÖ¸Õ룬µÚÈý²ÎÊýÊÇucontext_t½á¹¹Ö¸Õë(ÔìÐÍΪvoid *)¡£
sa_maskÖ¸¶¨ÐźŴ¦Àíº¯ÊýÖ´ÐеĹý³ÌÖÐÓ¦±»×èÈûµÄÐźš£ÁíÍ⣬³ýÁËSA_NODEFER±êÖ¾±»Ö¸¶¨Í⣬´¥·¢ÐźŴ¦Àíº¯ÊýÖ´ÐеÄÄǸöÐźÅÒ²»á±»×èÈû¡£
sa_flagsÖ¸¶¨Ò»ÏµÁÐÓÃÓÚÐÞ¸ÄÐźŴ¦Àí¹ý³ÌÐÐΪµÄ±êÖ¾£¬ÓÉÏÂÃæµÄ0¸ö»ò¶à¸ö±ê־ͨ¹ýorÔËËã×éºÏ¶ø³É£º
 SA_NOCLDSTOP //´Ë±ê־Ϊonʱ£¬¼ÙÈçsignumµÄÖµÊÇSIGCHLD£¬ÔòÔÚ×Ó½ø³ÌÍ£Ö¹»ò»Ö¸´Ö´ÐÐʱ²»»á´«ÐźŸøµ÷Óñ¾ÏµÍ³µ÷ÓõĽø³Ì¡£
 SA_NOCLDWAIT //´Ë±ê־Ϊonʱ£¬µ±µ÷ÓôËϵͳµ÷ÓõĽø³ÌÖ®×Ó½ø³ÌÖÕֹʱ£¬ÏµÍ³²»»á½¨Á¢zombie½ø³Ì¡£
 SA_RESETHAND //´Ë±ê־Ϊonʱ£¬ÐźŴ¦Àíº¯Êý½ÓÊÕµ½Ðźź󣬻áÏȽ«¶ÔÐźŴ¦ÀíµÄ·½Ê½ÉèΪԤÉ跽ʽ£¬¶øÇÒµ±º¯Êý´¦Àí¸ÃÐźÅʱ£¬ºóÀ´·¢ÉúµÄÐźŽ«²»»á±»×èÈû¡£
 SA_ONSTACK //Èç¹ûÀûÓÃsigaltstack()½¨Á¢ÐźÅרÓöÑÕ»£¬Ôò´Ë±êÖ¾»á°ÑËùÓÐÐźÅËÍÍù¸Ã¶ÑÕ»¡£
 SA_RESTART //´Ë±ê־Ϊonʱ£¬ºËÐÄ»á×Ô¶¯ÖØÆôÐźÅÖжϵÄϵͳµ÷Ó


Ïà¹ØÎĵµ£º

Qt for symbian»·¾³´î½¨£¨Linux£©

Programming your application or library based on Qt has always had the promise that you can deploy your application on many different platforms. Development of those applications can, likewise, happen on many different platforms. QtCreator runs on Windows, Mac & Linux among others.
QtºÜ¼òµ¥£¬Ò× ......

OMAP DSP ѧϰ±Ê¼Ç£¨LINUXƽ̨£©£¨¶þ£©DMAI

DMAI(DaVinci Multimedia Application Interface)ÊÇDSPÌṩ¸øARM¶ËÓ¦ÓóÌÐòµÄµ÷Óýӿڣ¬DSPÒ²ÊÇÒÀÀµÓÚDSPLINKµÄ¡£ DMAIÖÐÒ²ÌṩÁËÐí¶àVISA (video, imaging, speech and audio)±à½âÂëµÄʵÀý¡£DMAIÌṩµÄÊÇÒ»ÖÖ¹¦ÄܵijéÏ󣬶øÔÚ¾ßÌåʵÏÖÉÏ£¬²»Í¬Ó²¼þƽ̨£¬²»Í¬ÏµÍ³ÊDz»Ò»¸öÑùµÄ¡£ÁíÍ⣬ÓÉÓÚDMAIÊÇÒÔÔ´´úÂëµÄÐÎʽÌṩµÄ£¬ËùÒÔ ......

ÓÃVNCʵÏÖÔ¶³Ì×ÀÃæ¹²Ïí(Ö§³ÖWindows, Linux, ¡­)

VNC£¬È«³ÆΪVirtual Network Computing£¬ËüÊÇÒ»¸ö×ÀÃæ¹²Ïíϵͳ¡£ËüµÄ¹¦ÄÜ£¬ÀàËÆÓÚwindowsÖеÄÔ¶³Ì×ÀÃ湦ÄÜ¡£VNCʹÓÃÁËRFB(Remote FrameBuffer£¬Ô¶³ÌÖ¡»º³å£©Ð­ÒéÀ´ÊµÏÖÔ¶³Ì¿ØÖÆÁíÍâһ̨¼ÆËã»ú¡£Ëü°Ñ¼üÅÌ¡¢Êó±ê¶¯×÷·¢Ë͵½Ô¶³Ì¼ÆËã»ú£¬²¢°ÑÔ¶³Ì¼ÆËã»úµÄÆÁÄ»·¢»Øµ½±¾µØ¡£
VNC¼¼ÊõÓëƽ̨Î޹أ¬VNC Viewer¿ÉÒÔºÍVNC ServerÔÚ²»Í ......

linux shell½Å±¾Ö®ifÅжÏ

ÎÞÂÛʲô±à³ÌÓïÑÔ¶¼Àë²»¿ªÌõ¼þÅжϡ£SHELLÒ²²»ÀýÍâ¡£
 if list then
          do something here
      elif list then
          do another thing here
      ......

linux Æô¶¯Ð­Òé·ÖÎö ÓÉboot.txt·­Òë¶øÀ´

ÔÚx86ƽ̨ÉÏ£¬linuxÄÚºËÓÃÁËÒ»¸ö±È½Ï¸´ÔÓµÄÆô¶¯Ð­Òé¹æ·¶£¬Ö÷ÒªÓÉÓÚÀúÊ·Ô­Òò£¬ÔçÆÚÏë°ÑÄÚºË×ö³É¿ÉÆô¶¯Ó³Ïñ£¬¸´ÔӵļÆËã»úÄÚ´æÄ£ÐͺÍÓÉÓÚʵģʽDOS³ÉΪÖ÷Á÷²Ù×÷ϵͳ¶øÓ°ÏìµÄ.
 
  ÏÖÔÚÓÐÏÂÁÐÆô¶¯Ð­Òé´æÔÚ£º
¾É°æÄںˣºÖ»Ö§³ÖzImageºÍImage.
2.00£ºÔö¼ÓbzImageºÍinitrdÖ§³Ö£¬Ò²ÓµÓÐÁËÒ»ÖÖÕý¹æ»¯µÄ·½·¨À´ÊµÏÖÆô¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ