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

linuxÄں˺¯Êý±Ê¼Ç(¶þ)

ÐźÅÖ¸¶¨´¦Àíº¯Êý
void (*signal (int signum,void (*handle)(int)))(int);ÉèÖÃij¸öÐźŵĴ¦Àí·½·¨
int sigaction(int signum,const struct sigaction *act,struct sigaction *oldact);ÓÃÓÚ¼ì²é»ò¸Ä±ä½ø³ÌÔÚ½Óµ½ÐźÅʱµÄ¶¯×÷
Ðźż¯²Ù×÷º¯Êý
static inline void sigaddset(sigset_t *set,int _sig);
static inline void sigdelset(sigset_t *set,int _sig);
static inline void sigismember(sigset_t *set,int _sig);
static inline void sigfindinword(unsigned long word);
static inline void sigemptyset(sigset_t *set);
static inline void sigfillset(sigset_t *set);
ÐźÅ×èÈû
int sigprocmask(int how,const sigset_t *set,sigset_t *oldset);
int sigpending(sigset_t *set);
int siguspend(const sigset_t *mask);
ÏûÏ¢¹ÜÀíº¯Êý
int msgget(key_t,int flag);
int msgrcv(int msqid,struct msgbuf *msgp,int msgsz,long mtype,int msgflg);
int msgsnd(int msqid,struct msgbuf *msgp,int msgz,int msgflg);
int msgctl(int msgqid,int cmd,struct msqid_ds *buf);
Ï̲߳Ù×÷º¯Êý
Ï̵߳Ĵ´½¨
int pthread_create(pthread_t *thread,pthread_attr_t *attr,void *(*start_routine)(void *),void *arg);
Ïß³ÌÈ¡Ïû
void pthread_testcancel(void);
void pthread_cancel(pthread_t thread);
int pthread_setcanceltype(int type,int *oldtype);
Ïß³Ì˽ÓÐÊý¾Ý
int pthread_key_create(pthread_key_t *_key,void (*_destr_function)(void *_THROW);
int pthreadd_key_delete(pthread_key_t _key) _THROW;
int pthread_setspecific(pthread_key_t _key, _const void *_pointer) _THROW;
void *pthread_getspecific(pthread_key_t _key) THROW;
»¥³âËø
int pthread_mutex_init (pthread_mutex_t *_testrict _mutex,_const pthread_mutexattr *_restrict _mutex_attr) _THROW;
int pthread_mutex_destroy(pthread_mutex_t *_mutex) _THROW;
int pthread_mutex_trylock(pthread_mutex_t *_mutex) _THROW;
int pthread_mutex_lock(pthread_mutex_t *mutex) _THROW;
int pthread_mutex_unlock(pthread_mutex_t *_mutex) _THROW;
Ìõ¼þ±äÁ¿
int thread_cond_init(pthread_cond_t *_restrict _cond,_const pthread_condattr_t *_restrict _cond_attr) _THROW;
int pthread_cond_destroy(pthread_cond_t *_cond)


Ïà¹ØÎĵµ£º

°²×°LinuxºóµÄÊÂÇé

Ê®ÔÂÄ©ubuntu9.10·¢²¼£¬Á¢¿Ì»»ÉÏÁËеģ¬ÎÒÏë×Ô¼º²¢²»ÊÇÔÚ¿ÌÒâ×·Çóеİ汾¡£Ö»ÊÇÒÔǰÔÚµçÄÔÉÏÓÃwubi×°µÄÄǸöylmfµÄÊÇÔÚ²»ºÃ
Óã¬firfoxÖ»ÄÜÊÇ3.0°æ±¾µÄ£¬×ÔÐбàÒëÈí¼þ»¹²»»á£¬ÓÃwine×°Ò»¸öie¾ÓÈ»Óõ½µçÄÔËÀ»ú£¬ÊÇÔڸоõ²»µ½linuxÓÐʲôºÃµÄ£¬¸üÈÃÈËÄÑÊܵÄÊÇ×Ö
ÌåÏÔʾЧ¹û²î£¬firfox
operaʹÓÃÒ»»ÎÒ»»ÎµÄ£¬ËÙ¶ÈÌ«Âý£¬Õû¸ ......

linuxÏÂcÓïÑԹػú³ÌÐò

/* Offtimer.c.For auto halt. */
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#define DELAY 60/* Time of sleeping */
int main()
{
  time_t now;
  struct tm *p;
  
  while(1)
  {
  now = time(NULL);
&n ......

Linux×öÒ»¸ö¹¦ÄÜÍ걸µÄ·ÓÉÆ÷

±¾ÎÄÖ÷Òª½éÉÜÈçºÎÓÃLinux×öÒ»¸ö¹¦ÄÜÍ걸µÄ·ÓÉÆ÷£¬ÕâÀォÖ÷Òª½éÉܾ²Ì¬Â·ÓÉÆ÷ºÍ¶¯Ì¬Â·ÓÉÆ÷µÄÅäÖ㬵«²»°üÀ¨IPαװ»òÕß˵¹«ÓÃÒ»¸öIPµØÖ··ÃÎÊÍâÃæÍøÂçµÈÎÊÌâ¡£ÆäÒѾ­²»ÊôÓÚ±¾Ö÷ÌâÌÖÂ۵ķ¶Î§£¬Çë²Î¿¼ÆäËûÈç·À»ðǽµÄÅäÖõȵÄÄÚÈÝ¡£
LRP(Linux Router Project)ÒѾ­³ÉÁ¢ÁËÓкü¸ÄêµÄʱ¼äÁË¡£Õâ¸ö¼Æ»®µÄÄ¿µÄÊÇÀûÓÃLinux²Ù×÷ϵͳ½«À ......

linux 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼ÇÖ®ÖжÏÓëÒì³£6

ÿ¸öÖжÏÏòÁ¿¶¼ÓÐ×Ô¼ºµÄirq_desc_tÃèÊö·û£¬ËùÓеÄÕâЩÃèÊö·û×éÖ¯ÔÚÒ»ÆðÐγÉirq_descÊý×é¡£
typedef struct irq_desc {
        hw_irq_controller *handler;Ö¸Ïòpic¶ÔÏó£¨hw_irq_controllerÃèÊö·û£©£¬·þÎñÓÚirqÏß
        void *handler_data;Ö¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ