Skip Navigation Links
C C++
C#
Data Structures
Unix
Java
Puzzles
H1b 2009
Contact us
Advertise
Unix Questions & Answers
Add new question
Q.1 What is a difference between softlink versus hardlink?
Modify answer       Delete (after enough votes question will be removed)

Although it may seem like symbolic links are not particularly useful, hard links have their drawbacks. The most significant drawback is that hard links cannot be created to link a file from one file system to another file on another file system. A Unix file structure hierarchy can consist of several different file systems (possibly on several physical disks). Each file system maintains its own information regarding the internal structure of the system and the individual files on the system. Hard links only know this system-specific information, which make hard links unable to span file systems. Soft links, on the other hand, know the name of the file, which is more general, and are able to span file systems.


Q.2 Write htonl function
Modify answer       Delete (after enough votes question will be removed)

int Htonl(int val) { return (val&0xFF)<<24| ((val>>8)&0xFF)<<16| ((val>>16)&0xFF)<<8| ((val>>24)&0xFF) }

Alternate Answer       Approve answer(After enough votes answer will be approved)
int Htonl(int val) { return (val&0xFF)<<24| ((val>>8)&0xFF)<<16| ((val>>16)&0xFF)<<8| ((val>>24)&0xFF) }




 
  
Copyright 2009 GetMeValue