LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2004, 09:27 AM   #1
eltn
LQ Newbie
 
Registered: Oct 2004
Posts: 21

Rep: Reputation: 15
asm/uaccess.h


i have fedora red hat 9 2.4.22-1,2115.nptl

i saw an exampes that have the line

#include <asm/uaccess.h>

but in the directory usr/include/asm

i dont have the file uaccess.h

so i can not run the example

is anyone know the solution?
why i dont have there the file uaccess.h?
 
Old 10-22-2004, 03:59 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It may depends on a distro. In my MDK 9.1 it's in glibc-devel package.
 
Old 10-22-2004, 06:14 PM   #3
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
It's actually part of the kernel. If you have the sources (I'll gather MDK doesn't give them to you by default, it's why you get them in the devel packages) you'll find them under include/asm/. That's if you've configured the kernel, (asm is a symmlink to your architecture), otherwise you're most likely interested in include/asm-i386.
The kernel sources if you have them will be found in /usr/src/linux (linux again being a symmlink to your current (usually unless something went wrong somewhere along the way) kernel). Just ls /usr/src and pick out your kernel if it's different (you should probably link it to /usr/src/linux though, because otherwise kernel-dependant things you build will be compiled against the wrong headers, this may or may not break things).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
asm Question Whiteghost Programming 2 09-03-2005 09:26 AM
Have you seen such asm code? snowing Programming 2 07-07-2005 05:13 AM
Linux 32 ASM introuble Programming 2 05-10-2005 06:56 AM
How to use C functions in asm? LongName Programming 4 08-29-2004 12:25 AM
asm question karlan Programming 6 07-16-2004 11:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration