티스토리 툴바


cse/linux/unix2011/10/01 16:25
# cat xorg.conf

Section "Monitor"
Identifier "Monitor0"
ModelName "LCD Panel 1920x1080"
ModeLine "1920x1080" 148.5 1920 2008 2052 2200 1080 1089 1095 1125
ModeLine "1680x1050" 146.2 1680 1784 1960 2240 1050 1053 1059 1089
ModeLine "1280x1024" 136.6 1280 1368 1504 1728 1024 1025 1028 1068

EndSection

Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 14
Modes "1920x1080"
EndSubSection
EndSection

크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by navs
TAG xorg.conf
cse/linux/unix2011/09/30 14:36
( Fedora Core 15 x64 )
Virtual Box 를 실행하니 궁시렁 거리면서 드라이버셋업을 실행하라 그런다.

$ WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.40.4-5.fc15.x86_64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup


그런데 vboxdrv setup 을 실행하니... 다음과 같은 ㅇ에러가 발생한다.

(중략)
Trying to register the VirtualBox kernel modules using DKMS[실패]
  (Failed, trying without DKMS)


구글신에 검색한 결과...

https://forums.virtualbox.org/viewtopic.php?f=7&t=35248 

dkms 를 yum 으로 설치하고 다시 시작하자.

# yum install dkms

크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by navs
cse/programming2011/09/29 02:41

       stat() stats the file pointed to by path and fills in buf.

       lstat() is identical to stat(), except that if path is a symbolic link,
       then the link itself is stat-ed, not the file that it refers to.


manual 페이지를 자세히 읽어 볼 껄!  

st_mode 값을 각각 비교해보면, 다음과 같이 나온다. (8 진수임)

stat()  st_mode : 100775
lstat() st_mode : 120777

S_IFLNK 는 120000 이고 bit 연산자로 체크한다. ( S_ISLNK(buffer.st_mode) 매크로를 쓰면 된다. ) 
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by navs