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

Linux²Ù×÷ϵͳϵĶàÏ̱߳à³ÌÏêϸ½âÎö£¨2£©


2¡¢Ï̵߳ÄÖÕÖ¹
    Èç¹û½ø³ÌÖÐÈκÎÒ»¸öÏß³ÌÖе÷ÓÃexit£¬_Exit,»òÕßÊÇ_exit£¬ÄÇôÕû¸ö½ø³Ì¾Í»áÖÕÖ¹£¬
    Óë´ËÀàËÆ£¬Èç¹ûÐźŵÄĬÈϵ͝×÷ÊÇÖÕÖ¹½ø³Ì£¬ÄÇô£¬°Ñ¸ÃÐźŷ¢Ë͵½Ï̻߳áÖÕÖ¹½ø³Ì¡£
    Ï̵߳ÄÕý³£Í˳öµÄ·½Ê½£º
       (1) Ïß³ÌÖ»ÊÇ´ÓÆô¶¯Àý³ÌÖзµ»Ø£¬·µ»ØÖµÊÇÏß³ÌÖеÄÍ˳öÂë
       (2) Ï߳̿ÉÒÔ±»ÁíÒ»¸ö½ø³Ì½øÐÐÖÕÖ¹
       (3) Ïß³Ì×Ô¼ºµ÷ÓÃpthread_exitº¯Êý
    Á½¸öÖØÒªµÄº¯ÊýÔ­ÐÍ£º
#include <pthread.h>
void pthread_exit(void *rval_ptr);
/*rval_ptr Ïß³ÌÍ˳ö·µ»ØµÄÖ¸Õë*/
int pthread_join(pthread_t thread,void **rval_ptr);
   /*³É¹¦½áÊø½ø³ÌΪ0,·ñÔòΪ´íÎó±àÂë*/
    Àý³Ì6
    ³ÌÐòÄ¿µÄ£ºÏß³ÌÕý³£Í˳ö£¬½ÓÊÜÏß³ÌÍ˳öµÄ·µ»ØÂë
    ³ÌÐòÃû³Æ£ºpthread_exit.c
/********************************************************************************************
**    Name:pthread_exit.c
**    Used to study the multithread programming in Linux OS
**    A example showing a thread to exit and with a return code.
**    Author:zeickey
**    Date:2006/9/16        
**    Copyright (c) 2006,All Rights Reserved!
*********************************************************************************************/
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
void *create(void *arg)
{
    printf("new thread is created ... \n");
    return (void *)8;
}
int main(int argc,char *argv[])
{
    pthread_t tid;
    int error;
    void *temp;
    error = pthread_create(&tid, NULL, create, NULL);
    if( error )
    {
        printf("thread is not created ... \n");
    &n


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

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

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

LinuxĿ¼ÉèÖÃʱµÄ½¨Òé

 /home
×÷ΪÎļþ·þÎñÆ÷µÈ¶àÓû§ÏµÍ³Ê¹ÓÃʱ£¬½¨ÒéÉèÖÃÓÚµ¥¶À·ÖÇøÖС£ÕâÑùµ±·¢²¼µÄϵͳÐèÒªÉý¼¶Ê±£¬»òÕßÖØ×°ÏµÍ³Ê±ÏÔµÃÓÈÆä±ãÀû¡£
/var
´ËĿ¼Öдæ·ÅlogµÈʱ³£¸üеÄÎļþ£¬ÏñsyslogÕâÑùµÄÎļþÈÝÁ¿ºÜ´ó£¬Óг¬³öÎļþϵͳÈÝÁ¿µÄ¿ÉÄÜ¡£½¨ÒéÉèÖÃÓÚµ¥¶ÀµÄ·ÖÇøÖС£
/usr
½öÔÚÌí¼ÓгÌÐòʱ»á¸Ä±äÆäÖеÄÄÚÈÝ£¬½¨ÒéÉèÖÃΪֻ¶Á ......

Linuxϵͳdameon³ÌÐòµÄcore dumpÉèÖÃ

To enable dumps for every daemon:

ulimit -c unlimited >/dev/null 2>&1 (-c maximum size of core files)
ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0} >/dev/null 2>&1

Dump for system
:
DAEMON_COREFILE_LIMIT='unlimited'

The same for every daemon (in /etc/sysconfig/_daemon_ ......

How to: Linux flush or remove all iptables rules

 
Here is small script that does this. Debian or Ubuntu GNU/Linux does
not comes with any SYS V init script (located in /etc/init.d directory)
.
You create a script as follows and use it to stop or flush the iptables rules.
Please don't type rules at command prompt. Use the script to sp ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ