LINUX/UNIXÖÐÐźż¯µÄÎÊÌâ
¡¡¡¡¹ØÓÚÐźż¯µÄÒ»¸öÎÊÌ⣺¡¡¡¡
typedef struct {¡¡¡¡unsigned long sig[_NSIG_WORDS]£»¡¡¡¡} sigset_t
ÏÂÃæÕâÈý¾ä:
sigset_t base_mask, waiting_mask, old_mask;
sigemptyset(&base_mask);
sigaddset(&base_mask, SIGQUIT);
ÕâÀïµ÷ÓÃsigaddset°ÑSIGQUIT·Åµ½base_maskÐźż¯ÖÐ,ÕâÊÇÔõô´æ´¢µÄ,Èç¹ûÓжà¸öÐźŶ¼´æÈëbase_maskÔÚÄÚ´æÀïÊÇʲôÑùµÄ?
Ó¦¸ÃÊÇ°´Î»´æ´¢£¬ÓÐЩʵÏÖÊÇÕâÑùµÄ
#define sigaddset(set, signo) (*(set) |= 1 < < ((signo) - 1), 0)
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
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 ......
Ó¦ÓÃϵͳÊÇ°²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔصãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔص㣬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«ÔÀ ......
ÔÚlinuxÏÂдµÄһЩС³ÌÐòºÍ½Å²½£¬Ã¿´ÎÒªÔËÐж¼ÓÐÇл»µ½ËüËùÔÚµÄĿ¼£¬
ÔõÑùÈÃËüÔÚÆäËûĿ¼Ҳ¿ÉÒÔÓÃÄØ£¿¾ÍÈçÓÃvi»òlsÕâЩÃüÁîÒ»Ñù
³¢ÊÔ¹ýÌí¼Ó»·¾³±äÁ¿£¬µ«²»³É¹¦£¬²»¶®
ûÓÐÈ˻شð
ÏñviÄÇЩ£¬ËüÃÇËùÔÚµÄĿ¼¶¼Å ......