linux Ï´®¿Ú±à³Ì£¬·¢Ë͵½´®¿Ú½ÓÊÕÆ÷ºó·¢ÏÖÊý¾Ý´íÎó
´ó¼Ò¸øÎÒ¿´¿´ÎҵĴúÂëÓÐûÓдíÎó£¬Èç¹ûÓÐÇëÖ¸³ö£¬Ã»Óп´¿´¿ÉÒÔÓÐʲô·½·¨¿ÉÒÔ½â¾ö£¬ÏÂÃæÊÇÔ´Âë
C/C++ code:
/************************************
version:0.1
date :12/01/2010
author :yangchar
************************************/
#include <stdio.h> /* Standard input/output definitions */
#include <stdlib.h> /* Standard lib */
#include <string.h> /* String function definitions */
#include <unistd.h> /* UNIX standard function definitions */
#include <fcntl.h> /* File control definitions */
#include <errno.h> /* Error number definitions */
#include <termios.h> /* POSIX terminal control definitions */
#define DEBUG 1
int open_port(const char *dev_name)
{
int fd; /* File descriptor for the port */
fd = open(dev_name, O_RDWR | O_NOCTTY | O_NDELAY);
if (-1 == fd)
{
perror("open_port: Unable to open tty " );
}
else
{
if(DEBUG)
printf("The %s is opened \n",dev_name);
}
if( fcntl(fd, F_SETFL, 0)< 0)
perror("fcntl failed");
else
{
if(DEBUG)
printf("The fcntl is %d \n",fcntl(fd, F_SETFL, 0));
}
if ( isatty(fd) == 0 )
perror("This is not a
Ïà¹ØÎÊ´ð£º
×ÉѯQQ£º269562808
bzip2recover
¹¦ÄÜ˵Ã÷£ºÓÃÀ´ÐÞ¸´Ë𻵵Ä.bz2Îļþ¡£
Óï·¨£ºbzip2recover[.bz2ѹËõÎļþ]
²¹³ä˵Ã÷£ºbzip2ÊÇÒÔÇø¿éµÄ·½Ê½À´Ñ¹ËõÎļþ£¬Ã¿¸öÇø¿éÊÓΪ¶ÀÁ¢µÄµ¥Î»¡£Òò´Ë£¬µ±Ä³Ò»Çø
¿éËð»µÊ±£¬±ã¿ÉÀû ......
ÔÚLINUX裏°²裝 CURL 時,³ö現ÈçÏÂ報錯
checking for SSL support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something ......
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
×î½ü·Å¼ÙÏëÑо¿linux£¬ÇëÄÄλ¸ßÊÖ½éÉÜÒ»ÏÂÕâ·½ÃæµÄºÃµÄÊé¼®ºÍÊÓÆµ°¡£¬Èç¹ûÓÐÊÓÆµ½Ì³ÌµÄ»°Äܲ»ÄÜ·¢µ½ÎÒµÄÓÊÏä 937607911@qq.com Íò·Ö¸Ðл
³Ã×Ågoogle»¹Ã»×ߣ¬¸Ï½ôgoogleÒ»ÏÂßÂ
ÒÔǰÓÐûÓиã¸ö
ÄãÊÇÏëÉîÈëÑо¿£¬» ......