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º¯ÊýÏê½â
Ïà¹ØÎĵµ£º
1. vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=example.com
GATEWAY=192.168.0.1
NDS1=219.150.32.132 // dns ·þÎñÆ÷µØÖ·
2. vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:15:E9:B1:32:AF
BOOTPROTO=static
IPADDR=192.168.0.188
NETMASK=255. ......
5.3.2 É豸ÀàÐÍ·ÖÀà
×ÝÀÀlinux/driversĿ¼£¬´ó¸Å»¹ÓÐ35¸öÒÔÉϵÄ×ÓĿ¼£¬Ã¿¸ö×ÓĿ¼»ù±¾ÉϾʹú±íÁËÒ»ÖÖÉ豸Çý¶¯£¬ÓÐatm¡¢block¡¢char¡¢misc¡¢input¡¢net¡¢usb¡¢sound¡¢videoµÈ¡£ÕâÀïÖ»ÃèÊöÔÚǶÈëʽϵͳÀïÃæÓõÃ×îΪ¹ã·ºµÄ3ÖÖÉ豸¡£
1£®×Ö·ûÉ豸£¨char device£©
×Ö·ûÉ豸ÊÇLinux×î¼òµ¥µÄÉ豸£¬¿ÉÒÔÏñÎļþÒ»Ñù·ÃÎÊ¡£ ......
£¨ÉùÃ÷£ºÕâÊÇתÔØ×Ôhttp://www.chinaunix.net/jh/21/1079.html)
´ÓSybaseµÄÕ¾µãÉÏÏÂÔØÁ½¸öÈí¼þ°ü£¬±ÊÕßÏÂÔØÁË11.0.3.3°æ±¾£¬SybaseÄ¿Ç°ÒѾÍƳöÁËASE11.9.2£¬ÓÉ
ÓÚ11.9.2Èí¼þ°üºÜ´ó£¬ÓÉ6¸örpmÈí¼þ°ü×é³É£¬¸÷λ¿ÉÒÔÈ¥ÆäÕ¾µãÏÂÔØ¡£¶ÔÓÚSybase¡¡11.0.3£¬sybaseÌṩÁË
Á½¸örpm¸ñʽµÄÈí¼þ°ü¡£
£¨ÕâÁ½¸öÎļþ¿ÉÒÔ¿´ÎÒ²©¿ ......
°²×°Ê±Ó²Å̿ռ䲻×ã
¹ÒÔØÒ»¸öÐÂÓ²ÅÌ
ÏȽ«ÐéÄâ»úPower Off£¬ÔÚVirtual Machine Setting¶Ô»°¿òÀïµã»÷×óϽǵēAdd”£¬Ñ¡Ôñ“Hard Disk”£¬Ö®ºóÑ¡Ôñ“Create a new virtual disk”£¬·ÖÅäÈÝÁ¿£¬ÆäËûĬÈÏÅäÖá£
Æô¶¯ÐéÄâ»úϵͳ£¬Óà ......