Re: Encryption/Decryption on 64 bit processor

2008-02-21 Thread Mulyadi Santosa
Hi... On Fri, Feb 22, 2008 at 1:53 PM, ravikumar <[EMAIL PROTECTED]> wrote: > My DES encryption/decryption code is working fine with 32 bit processor. > But in 64 bit processor decryption failed. > Executables are made on the respective machines. > > Is there any reason to fail on x64 processor

Re: [PATCH] x86: use explicit timing delay for pit accesses in kernel and pcspkr driver

2008-02-21 Thread Rene Herman
On 21-02-08 17:24, Peter Teoh wrote: Appreciate very much for your time spent. Just to provide some further background, the questions arises from this patch (gossamer below can show the long chain of discussion - but lkml.org cannot): http://www.gossamer-threads.com/lists/linux/kernel/881863

Encryption/Decryption on 64 bit processor

2008-02-21 Thread ravikumar
My DES encryption/decryption code is working fine with 32 bit processor. But in 64 bit processor decryption failed. Executables are made on the respective machines. Is there any reason to fail on x64 processor. Do i need to care something while writing code this for encryption/decryption algorit

Re: getpwuid returning null

2008-02-21 Thread tomy
Hi, Thanks foe the information. I have created the file /etc/nsswitch.conf and tried to run the same application, then perror is printing success, but the password structure address remains 0. My program and output is given below #include #include #include #include int main() { uid_

Re: getpwuid returning null

2008-02-21 Thread Manish Katiyar
On Thu, Feb 21, 2008 at 7:53 PM, tomy <[EMAIL PROTECTED]> wrote: > hi, > While printing the error it displaying " No such file or directory". > What is the default file for getpwuid?... > The man page says this : NOTE The user password database mostly refers to /etc/passwd. However, wit

Re: [PATCH] x86: use explicit timing delay for pit accesses in kernel and pcspkr driver

2008-02-21 Thread Peter Teoh
Appreciate very much for your time spent. Just to provide some further background, the questions arises from this patch (gossamer below can show the long chain of discussion - but lkml.org cannot): http://www.gossamer-threads.com/lists/linux/kernel/881863 On Thu, Feb 21, 2008 at 8:54 PM, Rene

HELLO,

2008-02-21 Thread Stephine Donaldson
HELLO, MY NAME IS STEPHINE IN SEARCH OF A MAN WHO UNDERSTANDS THE MEANING OF LOVE AS TRUST AND FAITH IN EACH OTHER RATHER THAN ONE WHO SEES LOVE AS THE ONLY WAY OF FUN BUT A MATURED MAN WITH NICE VISSION OF WHAT THE WORLD IS ALL ABOUT SO AFTER SEING YOUR ID IN A SITE I TOOK INTREST PLEASE REPLY

Re: getpwuid returning null

2008-02-21 Thread tomy
hi, While printing the error it displaying " No such file or directory". What is the default file for getpwuid?... Martin Mancuska wrote: Did you try to print errno value ? martin 2008/2/21, tomy <[EMAIL PROTECTED]>: In my application #include #include #include int main() {

Re: getpwuid returning null

2008-02-21 Thread Mark Pearson
>> #include >> #include >> #include Isn't #include missing here? Also check errno like Martin suggests. For this you need #include and make sure you set errno=0 before you call getpwuid. Cheers, Mark. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [

Re: getpwuid returning null

2008-02-21 Thread Martin Mancuska
Did you try to print errno value ? martin 2008/2/21, tomy <[EMAIL PROTECTED]>: > In my application > > #include > #include > #include > int main() > { > uid_t uid; > struct passwd *pw=NULL; > uid=getuid(); > pw=(struct passwd *)getpwuid(uid); > printf("uid is %d\n",uid

Re: [PATCH] x86: use explicit timing delay for pit accesses in kernel and pcspkr driver

2008-02-21 Thread Rene Herman
On 21-02-08 09:45, Peter Teoh wrote: I have many doubts over this email chain: Things like this are best off being CCed to kernelnewbies -- that way, more people who might be interested get to read it, and might expand or follow up, or... a. port 0x80 - it is a debug port from Intel chi

getpwuid returning null

2008-02-21 Thread tomy
In my application #include #include #include int main() { uid_t uid; struct passwd *pw=NULL; uid=getuid(); pw=(struct passwd *)getpwuid(uid); printf("uid is %d\n",uid); printf("Password structure addr is %d",pw); } Output is uid is 0 Password structure addr is 0 Why this is

Re: current status on drivers for webcams

2008-02-21 Thread Robert P. J. Day
On Thu, 21 Feb 2008, Thomas De Schampheleire wrote: > On Thu, Feb 21, 2008 at 10:18 AM, Robert P. J. Day > <[EMAIL PROTECTED]> wrote: > > > > On Thu, 21 Feb 2008, Thomas De Schampheleire wrote: > > > > > On Wed, Feb 20, 2008 at 9:07 PM, Brandon Philips <[EMAIL PROTECTED]> > > wrote: > > > > On

Re: current status on drivers for webcams

2008-02-21 Thread Thomas De Schampheleire
On Thu, Feb 21, 2008 at 10:18 AM, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > On Thu, 21 Feb 2008, Thomas De Schampheleire wrote: > > > On Wed, Feb 20, 2008 at 9:07 PM, Brandon Philips <[EMAIL PROTECTED]> wrote: > > > On 13:17 Wed 20 Feb 2008, Robert P. J. Day wrote: > > > > i just picked

Re: current status on drivers for webcams

2008-02-21 Thread Robert P. J. Day
On Thu, 21 Feb 2008, Thomas De Schampheleire wrote: > On Wed, Feb 20, 2008 at 9:07 PM, Brandon Philips <[EMAIL PROTECTED]> wrote: > > On 13:17 Wed 20 Feb 2008, Robert P. J. Day wrote: > > > i just picked up a logitech quickcam communicate STX webcam for my > > > fedora 8 system, and was pointe

need help to understand 2.6 kernel device drivers

2008-02-21 Thread Darius
Hi All, I have build mini linux distro for my ARM920T embedded system. It includes my own bootloader, 2.6.24 vanilla kernel, jffs2 rootfs and busybox. I use buildroot toolchain. Now I want start to write device drivers for my hardware. I've read O'REILLY book Linux Device Drivers (3th edition

Re: current status on drivers for webcams

2008-02-21 Thread Thomas De Schampheleire
On Wed, Feb 20, 2008 at 9:07 PM, Brandon Philips <[EMAIL PROTECTED]> wrote: > On 13:17 Wed 20 Feb 2008, Robert P. J. Day wrote: > > i just picked up a logitech quickcam communicate STX webcam for my > > fedora 8 system, and was pointed in the direction of: > > > > http://mxhaard.free.fr/dow