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

linux daemon() Ó÷¨

Ãû³Æ
      daemon-ÔËÐÐÓÚºǫ́
¸ÅÒª
      #include <unistd.h>
      int daemon(int nochdir, int noclose);
ÃèÊö
      daemon()º¯Êý£¬Ö÷ÒªÓÃÓÚijЩ³ÌÐòÏ£Íû×Ô¼ºÍÑÀëÖն˵ĿØÖƶøÔËÐÐÓÚºǫ́µÄÇé¿ö¡£
      ³ý·ÇnochdirΪ·ÇÁãÖµ£¬Èç¹ûnochdirΪ0£¬ÄÇôdaemon»á´Óµ±Ç°Ä¿Â¼£¬¸ü¸Äµ½¸ùĿ¼£¨“/”£©ÏÂÔËÐС£
      ³ý·ÇnocloseΪ·ÇÁãÖµ£¬Èç¹ûnocloseΪ0£¬ÄÇôdaemon»á½«±ê×¼ÊäÈ룬±ê×¼Êä³ö£¬±ê×¼´íÎóÊä³öÖØ¶¨Ïòµ½/dev/null¡£
·µ»ØÖµ
      ³É¹¦·µ»Ø0£¬Ê§°Ü·µ»Ø-1¡£
NAME
       daemon - run in the background
SYNOPSIS
       #include <unistd.h>
       int daemon(int nochdir, int noclose);
DESCRIPTION
       The  daemon()  function  is for programs wishing to detach themselves
       from the controlling terminal and run in  the  background  as  system
       daemons.
       Unless the argument nochdir is non-zero, daemon() changes the current
       working directory to the root ("/").
       Unless the argument noclose is non-zero, daemon() will redirect stan-
       dard input, standard output and standard error to /dev/null.
RETURN VALUE
       (This  function  forks,  and  if the fork() succeeds, the parent does
       _exit(0), so that further errors are seen by  the  child  only.)   On
       success  zero will be returned.  If an error occurs, daemon() returns
     &nb


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

LinuxϵĴÅÅÌË鯬ÕûÀí

LinuxϵĴÅÅÌË鯬ÕûÀí
ÍøÉÏÓÐЩÌû×Ó˵XFS²»ÓÃ×öË鯬ÕûÀí£¬ÆäʵÊÇ´íÎóµÄ¡£XFSÓÃÑÓ³ÙдÈëµÈ¼¼Êõȷʵ¿ÉÒÔ¼õÉÙË鯬µÄ³öÏÖ£¬µ«ÊÇÈç¹û·þÎñÆ÷ÓÃÁ˼¸Ä꣬²¢ÇÒÎļþ²Ù×÷±È½ÏƵ·±£¬»¹ÊÇ»á³öÏÖË鯬µÄ£¬Ó¦¸ÃÕûÀí¡£×¢Ò⣺ÔÚDebianÖÐXFSÏà¹ØÃüÁîÔÚxfsprogs°üÖУ¬¶øxfs_fsrÃüÁîÊÇÔÚxfsdump°üÖеġ£ËùÒÔÒªÓÃxfs_fsrÕûÀíË鯬£¬¼ÇµÃ°²×°xfsdu ......

firefox ¼òµ¥ ²å¼þ±àÒë ¡¾linux¡¿

#ifdef XP_UNIX
/*
* Set up the plugin function table that Netscape will use to
* call us. Netscape needs to know about our version and size
* and have a UniversalProcPointer for every function we
* implement.
*/
pluginFuncs->version = (NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR;
......

linuxϳ¬ÐÇÔĶÁÆ÷µÄ°²×°

1.A. extract the install file
    tar zxvf bxviewer.tar.gz
    cd bxviewer
    ./installbxv   
    logout
 1.B. if system can't find bxv after ur installation, you can always set
    it up by hand
......

LinuxʱÖÓ»ù±¾¸ÅÄî

1¡¢ÏµÍ³Ê±ÖÓ(System Clock)ÓëʵʱʱÖÓ(Real Time Clock)
ʵʱʱÖÓÖ¸µÄÊÇÓ²¼þʱÖÓ£¬¶øÏµÍ³Ê±ÖÓÖ¸µÄÊÇÈí¼þʱÖÓ£¬´æÔÚÓÚLinuxϵͳ֮ÖС£µ±ÏµÍ³Æô¶¯Ê±£¬Linux»á´ÓÓ²¼þ¶Áȡʱ¼ä×öΪϵͳʱ¼ä£¬Ö®ºó±ãÒ»Ö±²ÉÓÃϵͳʱ¼ä¡£LinuxÃüÁîdate¿ÉÒÔÓÃÀ´ÉèÖÃϵͳʱÖÓ£¬¶øhwclock»òÕßclockÔòÓÃÀ´ÉèÖÃʵʱʱÖÓ£¬¼´Ó²¼þʱÖÓ¡£
2¡¢Ê±ÖÓÆµÂÊ
µ¥ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ