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

Linuxϵͳµ÷ÓÃ


¹¦ÄÜÃèÊö£º
»ñȡһЩÎļþÏà¹ØµÄÐÅÏ¢¡£
Ó÷¨£º
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int stat(const char *path, struct stat *buf);
int fstat(int filedes, struct stat *buf);
int lstat(const char *path, struct stat *buf);
²ÎÊý£º
path£ºÎļþ·¾¶Ãû¡£
filedes£ºÎļþÃèÊö´Ê¡£
buf£ºÊÇÒÔϽṹÌåµÄÖ¸Õë
struct stat {
   dev_t     st_dev;     /* ÎļþËùÔÚÉ豸µÄ±êʶ */
    ino_t     st_ino;     /* Îļþ½áµãºÅ */
   mode_t    st_mode;    /* Îļþ±£»¤Ä£Ê½ */
   nlink_t   st_nlink;   /* Ó²Á¬½ÓÊý */
   uid_t     st_uid;     /* ÎļþÓû§±êʶ */
   gid_t     st_gid;     /* ÎļþÓû§×é±êʶ */
   dev_t     st_rdev;    /* ÎļþËù±íʾµÄÌØÊâÉ豸ÎļþµÄÉ豸±êʶ */
   off_t     st_size;    /* ×Ü´óС£¬×Ö½ÚΪµ¥Î» */
   blksize_t st_blksize; /* ÎļþϵͳµÄ¿é´óС */
   blkcnt_t st_blocks; /* ·ÖÅä¸øÎļþµÄ¿éµÄÊýÁ¿£¬512×Ö½ÚΪµ¥Ôª */
   time_t    st_atime;   /* ×îºó·ÃÎÊʱ¼ä */
   time_t    st_mtime;   /* ×îºóÐÞ¸Äʱ¼ä */
   time_t    st_ctime;   /* ×îºó״̬¸Ä±äʱ¼ä */
};
·µ»Ø˵Ã÷£º
³É¹¦Ö´ÐÐʱ£¬·µ»Ø0¡£Ê§°Ü·µ»Ø-1£¬errno±»ÉèΪÒÔϵÄij¸öÖµ
EBADF£º ÎļþÃèÊö´ÊÎÞЧ
EFAULT£º µØÖ·¿Õ¼ä²»¿É·ÃÎÊ
ELOOP£º ±éÀú·¾¶Ê±Óöµ½Ì«¶àµÄ·ûºÅÁ¬½Ó
ENAMETOOLONG£ºÎļþ·¾¶ÃûÌ«³¤
ENOENT£ºÂ·¾¶ÃûµÄ²¿·Ö×é¼þ²»´æÔÚ£¬»ò·¾¶ÃûÊÇ¿Õ×Ö´®
ENOMEM£ºÄÚ´æ²»×ã
ENOTDIR£ºÂ·¾¶ÃûµÄ²¿·Ö×é¼þ²»ÊÇĿ¼
Linuxϵͳµ÷ÓÃ--fstat/stat/lstatº¯ÊýÏê½â


Ïà¹ØÎĵµ£º

linux ÏÂÓÃCʵÏÖ¡®CAT¡¯µÄ¹¦ÄÜ

linux
ÏÂÓÃCʵÏÖ‘CAT’µÄ¹¦ÄÜ
#include<stdio.h>
int main(int argc,char *argv[]){
FILE *file;
char buf[1024],name[20];
int n;
if(argc != 2){
printf("wrong argument\n");
return 1;
}
file=fopen(argv[1],"r");
if(file==NULL){
printf("Cant't open!\n&quo ......

linux ping ÃüÁîÏê½â





¹¦ÄÜ˵Ã÷£º¼ì²âÖ÷»ú¡£
Óï¡¡¡¡·¨£ºping
[-dfnqrRv][-c<Íê³É´ÎÊý>][-i<¼ä¸ôÃëÊý>][-I<ÍøÂç½çÃæ>][-l<Ç°ÖÃÔØ
Èë>][-p<·¶±¾Ñùʽ>][-s<Êý¾Ý°ü´óС>][-t<´æ»îÊýÖµ>][Ö÷»úÃû³Æ»òIPµØÖ·]
²¹³ä˵Ã÷£ºÖ´ÐÐpingÖ¸Áî»áʹÓÃICMP´«ÊäЭÒ飬·¢³öÒªÇó»ØÓ¦µÄ ......

¡¾×ª¡¿windowsÉϵÄdb2Á¬½ÓlinuxÉÏdb2µÄͨÐÅÎÊÌâ

[IBM][CLI Driver] SQL30081N ¼ì²âµ½Í¨ÐÅ´íÎó¡£ÕýÔÚʹÓõÄͨÐÅЭÒ飺"TCP/IP"¡£ÕýÔÚʹÓõÄͨÐÅAPI£º"SOCKETS"¡£¼ì²âµ½´íÎóµÄλÖãº"202.106.195.29"¡£¼ì²âµ½´íÎóµÄͨÐź¯Êý£º"connect"¡£Ð­ÒéÌض¨µÄ´íÎó´úÂ룺"10060"¡¢"*"¡¢"*"¡£ SQLSTATE=08001
½â¾ö°ì·¨£º
µ½C:\WINDOWS\system32\drivers\etc\Ï£¬´ò¿ªhostsÎļþ£¬ÔÚÎļ ......

Linux RPM ÃüÁî²ÎÊýʹÓÃÏê½â£Û½éÉܺÍÓ¦ÓãÝ


RPMÊÇRedHat Package Manager£¨RedHatÈí¼þ°ü¹ÜÀí¹¤¾ß£©ÀàËÆWindowsÀïÃæµÄ¡°Ìí¼Ó/ɾ³ý³ÌÐò¡±
 
rpm Ö´Ðа²×°°ü
¶þ½øÖÆ°ü£¨Binary£©ÒÔ¼°Ô´´úÂë°ü£¨Source£©Á½ÖÖ¡£¶þ½øÖÆ°ü¿ÉÒÔÖ±½Ó°²×°ÔÚ¼ÆËã»úÖУ¬¶øÔ´´úÂë°ü½«»áÓÉRPM×Ô¶¯±àÒë¡¢°²×°¡£Ô´´úÂë°ü¾­³£ÒÔsrc.rpm×÷Ϊºó׺Ãû¡£
 
³£ÓÃÃüÁî×éºÏ£º
 
£­ivh£º ......

linuxÏÂdnw(6410)

ÍøÉÏÓÐƪÌû×Ó°üº¬ÀïlinuxϵÄdnw£¬ÎÒÔÚÓÃidea6410£¬±àÒëdnwºÍsecbulkºó²¢²»ÄÜÕý³£Ê¹ÓÃ
LINUXϵÄDNW³ÌÐòÏÂÔØ
http://linux.chinaunix.net/bbs/viewthread.php?tid=1055992
secbulkÉ豸佨Á¢£¬ÊÖ¶¯½¨Á¢/dev/secbulk0²¢²»Æð×÷Óã¬Ô­ÒòÊÇsecbulk probe»áÆ¥Åäid_table£¬Õâ¸öÊÇΪQQ2440×¼±¸µÄ£¬ËùÒÔÐèÒª¸Äid_table
static s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ