LinuxÉãÏñÍ·±à³ÌС½á
ת×Ô£ºhttp://blog.chinaunix.net/u/7547/showart_122619.html
1.open device:
video_dev = open("\dev\video0",O_RDWR));
2.get the information of the video device
struct video_capability video_cap;
memset(&video_cap,0,sizeof(video_cap));
if(ioctl(video_dev,VIDIOCGCAP,&video_cap) == -1)
{
perror("Cann't get the information of the video device");
close(video_dev);
exit(1);
}
3.get the information of the channels
struct video_channel video_chan;
memset(&video_chan,0,sizeof(video_chan));
for(channel = 0;channel < video_cap.channels;channel++)
{
video_chan.channel = channel;
if(ioctl(video_dev,VIDIOCGCHAN,&video_chan) == -1)
{
perror("Cann't get the information of the channels");
close(video_dev);
exit(3);
}
if(video_chan.type == VIDEO_TYPE_TV)
{
#ifdef DEBUG
printf("NO.%d channel is %s,type is tv!\n",channel,video_chan.name);
#endif
}
if(video_chan.type == VIDEO_TYPE_CAMERA)
Ïà¹ØÎĵµ£º
¼ÙÉèÊý¾Ý¿âµÄÓµÓÐÕßΪoracle£¬Êý¾Ý¿âµÄÓû§Îªscott£¬Æä¿ÚÁîΪtrigger£¬
OracleÊý¾Ý¿âµÄ²ÎÊý$ORACLE_HOMEΪ/usr/oracle£¬$ORACLE_SIDΪoracle1£¬ÔòʵÏÖ²½ÖèÈçÏ£º
1¡¢½¨Á¢ÊµÏÖ±¸·ÝµÄshell
ÔÚ/usr/oracleÖÐÓÃviÃüÁÁ¢Îļþbackup.sh£¬ÆäÄÚÈÝΪ:
ORACLE_HOME=/usr/oracle; <br>export ORACLE_HOME;
ORACLE_SID= ......
linuxϵͳRPMÃüÁîÊÖ²á
RPMÊÇRed HatϵÁг£ÓõÄ軟¼þ°ü¸ñʽ£¬靈»îµÄʹÓÃËû將ʹÄúÔÚ RH LinuxÖÐÈç魚µÃË®.現將Æä³£見µÄʹÓ÷½·¨ÊÕ¼¯ÈçÏÂ.................
Ò»¡¢°²×°
ÃüÁî¸ñʽ£º
rpm -i ( or --install) options file1.rpm ... fileN.rpm
²ÎÊý£º
file1.rpm ... fileN.rpm ½ ......
1¡¢°²×°»ù±¾ÏµÍ³
ÕâÀﰲװʹÓõÄÊÇUbuntu 7.04 µÄ Alternate CD¡£Ê¹Óà Alternate CD Òýµ¼Æô¶¯£¬È»ºóÑ¡Ôñ “°²×°ÃüÁîÐÐϵͳ£¨Install Command Line£©” ½øÐÐ×îС»¯°²×°£¬ÔÚÕâÒ»²½£¬Òª×¢Ò⣬һ¶¨²»ÒªÑ¡ÔñÖÐÎÄÓïÑÔ»·¾³£¬·ñÔòÔÚÖÕ¶Ë´°¿Úϵĸ÷ÖÖÌáʾ£¬Óкܶ඼ÊÇÖÐÎĵġ£ÔÚûÓÐ×°ÔØÍê³ÉX Window֮ǰ£¬ÄãÖ»ÄÜ¿´µ½Ò»¶Ñ ......
ÔÚÔĶÁNginxµÄ´úÂë.ÏÈÅöµ½µÄÊÇÏ̲߳¿·ÖµÄ
ÒòΪ´Ómain¿ªÊ¼×îÔçÊÇ×öÏ̲߳¿·ÖµÄ¹¤×÷
ʵϰһÏÂpthread·½ÃæµÄÄÚÈÝ
#include "pthread.h"
#include "stdio.h"
void* thread_test(void* ptr)
{
while(1)
printf("i am child pthread\n");
}
int ma ......