Programming :: How To Edit Kernel Source Code In MS Visual Studio

Apr 27, 2010

I want to edit linux kernel source code in MS Visual Studio. I saw the code and these are c files but there is no project file that i open it and whole project opens up. I can open each individual file but not the whole project.

View 13 Replies


ADVERTISEMENT

Programming :: Where Is The Kernel Source Code ?

Mar 7, 2011

In particular i'd like to know where is the kernel source code in slackware 13.

View 2 Replies View Related

Ubuntu :: Possible To Edit Source Code Of Calculator?

Dec 23, 2010

I want to know if it is possible to edit the source code of the programs in Linux. Like, take the calculator for instance. If I want to add a user-defined function to it, how can I do it - if I can do it at all? In general, where and how can I look at the source code of such programs ?

View 3 Replies View Related

Software :: How To Edit Source Code For RM Command

Feb 18, 2010

I just need to edit the "rm " command such that it should move all the files / dir to a particular folder instead of deleting. How to edit the source code for rm, such that it should preserve all the deleted files / dir.

View 14 Replies View Related

Ubuntu :: Source Code Of The Krnel From The Kernel.org - Source Trees Organization

Apr 11, 2011

i am already a little bit familiar with linux and now i want to know better the linux OS. i have downloaded the source code of the krnel from the kernel.org and i dont understand the linux source trees organization, so can somebody do me a favor and give me a link to some internet page (or at least a book) that explains that?? i have searched in the internet with the tag:::linux source trees organization and i have not found nothing interesting

View 1 Replies View Related

Ubuntu :: Difference Between Kernel 'source Code' And Kernel Itself

Jul 3, 2011

It sounds like he's making a difference between the kernel "source code" and the kernel itself(as in the downloaded file/ files) but the way he talks about both is the same.So then, if one had already "installed" the "kernel sources code," why would he need the "tarball with the newest Linux kernel?" He's already "installed" a kernel, right?

View 3 Replies View Related

Ubuntu :: Where To Find Kernel Code Source

May 19, 2010

I was trying to install VPN client for my Ubuntu 9.10 64-bit. During the installation process the terminal reads:

"Directory containing linux kernel source code [/lib/modules/2.6.31-21-generic/build]"

On that I pressed enter for the default option (in bold). After a few more steps I reached the following error:

Making module
sh: Can't open ./driver_build.sh
Failed to make module "cisco_ipsec.ko".

[/lib/modules/2.6.31-21-generic/build] is the location where the installer expects the kernel source to be (I am guessing). So unless I correct the terminal (by providing the location of the kernel source), I think I will keep on getting the same error message.

So to get the kernel source I visited: [URL]From there I copy pasted the command:

sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)

Everything went fine, but even now I don't know if at all I have a kernel source and where it exists on my machine.

View 2 Replies View Related

Ubuntu :: Modify The Source Code Of The Kernel?

Oct 4, 2010

I want to modify the source code of the kernel so that the new compiled kernel should disable USB ports.

View 4 Replies View Related

Red Hat / Fedora :: Source Code For Latest - Kernel

Apr 8, 2011

I need to download a latest kernel for my fedora ..and reconfigure it with some options.

Where can i download latest fedora kernel source code from ..

View 9 Replies View Related

General :: Where Source Code Of Kernel Located

Feb 6, 2011

Want to know where the source code of Linux is located

View 2 Replies View Related

General :: Finding The Kernel Source Code?

Apr 14, 2011

where can i find linux kernel source code?

View 4 Replies View Related

Ubuntu :: Takes To Edit The Kernel Source And Build It With Modifications?

Nov 22, 2010

This feels like dumb question but here goes...I am wondering what it takes to edit the Linux kernel source and build it with my modifications!

View 5 Replies View Related

Fedora Networking :: VPN Client Asking For Kernel Source Code Directory

Mar 5, 2009

I am a little optimistic now after my problem of wifi was solved by stoat that presisted for about a year, now i am trying to install my vpn client. he asks me to write the path of kernel source code directory : and i answer by:/lib/modules/2.6.26.8-57.fc8/build/

But he answers no such directory or file and i dont know why

The build is covered by a red box when displayed by a terminal so can any body tells me where i can find my kernel source directory or i should install them, how

View 3 Replies View Related

Hardware :: Kernel Contains Source Code To Handle AMD Southbridge Initialization ?

Jan 27, 2010

I need to understand southbridge related code in linux source code.

For that I have downloaded Linux source code version:2.6.28 .

I have seen the code but didn't find code specific to southbridge handling.

Is Linux source code contains southbridge specific code?If so where can I find the code?

View 7 Replies View Related

Ubuntu :: Visual Studio Equivalent In 10.4?

Sep 23, 2010

i am looking for an alternative to the Microsoft's Visual Studio 2010 in Ubantu 10.4, is there any similar applications available in Ubuntu 10.4,

View 3 Replies View Related

General :: Visual Studio Like IDE On Windows Platform

Feb 9, 2010

I have been developing real-time server applications in Visual C++ and C#.Net using Visual Studio IDE on Windows platform. Now due to organizational needs, we are planning to migrate to Linux Platform. provide an alternative IDE for Visual Studio in Linux.

View 8 Replies View Related

Programming :: Convert Macro Defined Functions From Kernel In Visual C++?

Jun 27, 2009

I am dealing with some Linux kernel code, which define most its functions with Macros.The trouble I am having is to use those code in user space in Windows.

For example, I have a function defined like this:

#define list_for_each_entry_safe(pos, n, head, member)
for (pos = list_entry((head)->next, typeid(*pos), member),
n = list_entry(pos->member.next, typeid(*pos), member);
&pos->member != (head);
pos = n, n = list_entry(n->member.next, typeid(*n), member))

And in user space code, I call it in this way:

list_for_each_entry_safe( pcre_item, tmp,
&(((pcre_list_head_t *)(hr.value))->head), list)
{
// My code to handle each element in the list
}

This is working like a charm in Linux, but I got errors in Windows:

It reminds me missing ';' after 'list_for_each_entry_safe( pcre_item, tmp,
&(((pcre_list_head_t *)(hr.value))->head), list)'.

Does this kind of linux code not working in Windows at all? (Linux is in GCC C stand and VC is ANSI C) I prefer not to convert them to normal functions but keep it the way if it could be working under windows by some tricks.

View 5 Replies View Related

Programming :: App To Annotate Source Code ?

May 11, 2010

I've tried to use google to find this, and all I find is M$ SAL and some annotation standard for java, neither of which is anything like what I'm looking for.

I am pouring over someone else's source code, and want to be able to take notes on it, saving those notes in a separate text file that I can grep, open in a text editor, etc. I want each annotation line to include a line number (or range of lines) so it's easy to know what part of the code it refers to.

I could do this by hand, but it would be nice if a program existed to read and write such a file format. It could be similar to Kompare, only with editable notes on one side and source on the other, linked together with colored bands.

Does such a thing exist?

Cosme Zamudio and I are discussing a possible file format and an Android app - [url]

View 4 Replies View Related

Programming :: 'Top' Command Source Code

Jan 19, 2010

Where can I find the top command source code... I got it from "http://procps.sourceforge.net/index.html" but it seems for Solaris. where can I get the source code for top commend running on Linux????

View 3 Replies View Related

Software :: Installing Visual Studio 2010 On Ubuntu

Jul 1, 2010

I have just installed ubuntu and need to use visual studio but don't really want to have a dual boot set-up, I know there is something called wine but will it work properly. I was wondering what the best way to go about installing this.

View 2 Replies View Related

Programming :: Source Code On Email Parsing In C++ ?

May 11, 2010

Does anyone have source code on Email parsing in C++

View 1 Replies View Related

Programming :: Debugging Nasm Source Code ?

Dec 5, 2010

I found on the Internet a rough suggestion to debug code which says to add a line:

An example shows this lists the lines of source that do work.

I do not know where these lines are supposed to go and whether the "notdeadyet" should be a call to a subroutine or what. I only found that "%define" is used to link to external files, so I am confused because what I tried did not work.

(I am unable to use (and learn) any debugging tool for another few weeks and I'd like to progress on this If I can.)

View 2 Replies View Related

Programming :: How To Get Source Code Of Command Line?

Jan 23, 2009

I just want to see how the command line such as : "cat", "split", "ls"...ect source code ? Are they written in C or other language ? I don't know where to search those?

View 6 Replies View Related

Programming :: Analyzing USB Driver Source Code?

Nov 29, 2010

For one of my class projects, we have to analyze a usb keyboard driver source code and be able to understand it and present it to the class. Me and a few other people are working together by breaking up the code into sections so each person can analyze a section of code.Now I've ran into a section of this code that I am a little confused about. It seems fairly simple but I just wanted to double check since I wasn't able to find a solid answer.

Code:
static const unsigned char usb_kbd_keycode[256] = {
0, 0, 0, 0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38,

[code]....

View 10 Replies View Related

Programming :: Source Code For Cd - Change Directory

Feb 9, 2010

I want to modify the source of cd (the 'change directory' command) to do a little extra for me, but I can't seem to find the source code anywhere.. maybe I didn't look for it well enough, and googling "source code cd" and variants of that doesn't exactly help... I was wondering if anyone knew where I could find the src?

View 14 Replies View Related

Programming :: Where To Get Source Code Of Quick Thread?

Mar 25, 2011

Where can I get the source code of quick thread?

View 1 Replies View Related

Ubuntu Installation :: Porting A Game Engine From Visual Studio To GCC?

Sep 29, 2010

I am a software developer, presently porting a game engine from Visual Studio to GCC. I'm working on LTS 10.04. The project uses C++ lambdas, and I really would like to keep it this way. Therefore, I need GCC >= 4.5 to compile it.

I wouldn't like to reinstall entire OS, or to have to manually update this single program every time. Is there an option to update it from 10.10 repositories, pointing out, that I need only this package (and it's dependencies)? Or is there any PPA that does the trick for me?

Generally, the entire packaging system of Ubuntu rocks, as long as I can find up-to-date PPAs of all packages I need to have in recent versions (like mono).

View 3 Replies View Related

Software :: Build Ekiga Project In Visual Studio 2008

Apr 15, 2010

I just download source code of ekiga at address [URL]. I want to develop it, I compiled it in ubuntu successful, now I want to develop it in window platform by visual studio 2008 but I don't, can I can make environment for window and import it to visual studio 2008 to debug.

View 8 Replies View Related

Programming :: Interact With The File System By Own C Source-code?

Jun 1, 2010

I'm investigating how to copy a file located in my file system into another device. I googled to find a solution for my case but I didn't find anything. My original problem was to find a way to permit my code to move a file into a USB device. I wonder If is there a way to implement the cp command or some mechanism that permits my code to interact with between the file system on my computer and the second one on USB external driver (FAT32) ?

View 3 Replies View Related

Programming :: Psuedo Terminal - Cannot Add Fflush To Source Code

Feb 22, 2010

I have a problem in programing pseudo terminal. In the book APUE (advanced programing in the unix environment) in chapter 15.4: coprocess gives an example of using pipe to operate another program, that provide its input and read its output: Figure 15.18. Figure 15.19 is filter to add two numbers using standard IO. The author said that you must flush the IO buffer in the program which are operated through pipe by another program, however, we cannot add fflush to the source code and re-compile the whole program if we need to use it in another process. It said that pseudo terminal can solve this problem, but I have tried in fedora12 with forkpty call and fail. Source code as follows:

The main process:
Code:
#include "common.h"
#define LINESIZE 256
int main()
{
int fd[2];
pid_t pid;
if( socketpair(AF_UNIX, SOCK_STREAM, 0, fd)<0 ) {
perror("create socket error");
exit(1);
}
int master;
struct termios tm;
if( tcgetattr(STDIN_FILENO, &tm)<0 ) {
perror("tcgetattr error");
exit(3);
}
struct winsize size;
if( ioctl(STDIN_FILENO, TIOCGWINSZ, (char*)&size)<0 ) {
perror("ioctl error");
exit(4);
}
setbuf(stdout, NULL);
pid=forkpty(&master, NULL, &tm, &size);
if( pid<0 ) {
perror("create process error");
exit(2);
}
else if(pid>0) {//parent
close(fd[1]);
char line[LINESIZE];
memset(line, 0, LINESIZE);
while( fgets(line, LINESIZE, stdin)!=NULL ) {
write(fd[0], line, strlen(line));
memset(line, 0, LINESIZE);
int n=read(fd[0], line, LINESIZE);
if(n>=0) line[n]=0;
printf("%s", line);
memset(line, 0, LINESIZE);
}
} else {//child
close(fd[0]);
if( fd[1]!=STDIN_FILENO ) {
if(dup2(fd[1], STDIN_FILENO)!=STDIN_FILENO) {
perror("dup2 error");
exit(1);
}
}
if( fd[1]!=STDOUT_FILENO) {
if(dup2(fd[1], STDOUT_FILENO)!=STDOUT_FILENO) {
perror("dup2 error");
exit(2);
}
}
close(fd[1]);
if(execl("./add", "add", (char*)0)<0) {
perror("exec error");
exit(3);
}
exit(0);
}
//parent
wait(NULL);
return 0;
}
The add program reads a line and get two numbers and return the sum of them.

Code:
#include "common.h"
int main() { int n1, n2;
char line[256];
memset(line, 0, 256);
while( fgets(line, 256, stdin)!=NULL) {
sscanf(line, "%d%d", &n1, &n2);
printf("%d", n1+n2);
fflush(NULL); /*the program does not work without this sentence why?*/
memset(line, 0, 256); } return 0; }

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved