The source-code tag has no usage guidance.
1
vote
2answers
50 views
Remove comments in a C file [duplicate]
I am trying to remove comments from a file which may be in any part of a line and span multiple lines.
struct my_struct{
field1;
field2; /** comment 1
*/ field3;
/* comment 2 */
} ...
3
votes
1answer
71 views
How to download a whole raspbian source code?
I'm new to linux and my teacher asked me to learn about how to build Raspbian from the source code.
From what read in other questions, I need to download the Raspbian source code first. In some ...
0
votes
2answers
41 views
How can I protect my robot code?
I want to build a robot using some mini-computers like Raspberry-Pi, and using Linux OS upon. I think those boards (RPi, NanoPi, etc) have external SD card to boot OS from, and my code will go there (...
0
votes
1answer
73 views
Where is the __sysctl function defined in FreeBSD?
I am reading the source code to understand sysctl in FreeBSD.
It looks like the most important function
int __sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, const void *newp, ...
17
votes
9answers
5k views
Counting lines of code?
if I want to count the lines of code, the trivial thing is
cat *.c *.h | wc -l
But what if I have several subdirectories?
2
votes
4answers
798 views
Execute binary code
I have a binary code and I want to run it.
01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100
How can I create a file "application/x-executable" and ...
0
votes
0answers
30 views
gtksourceview complains about a missing style - but it's right there
I'm using the meld tool to view some source changes, in C++ and CUDA code. At some point I get the error message:
(meld:19240): GtkSourceView-WARNING **: in file /usr/share/gtksourceview-3.0/language-...
0
votes
1answer
5k views
convert executable back to C source code
Unfortunately I lost my source code and I just have the output file that made with gcc in linux and I don’t have any access to my pc now.is there any way to convert output file to source file (in c ...
2
votes
0answers
32 views
Is information security less hard in an open source system? [closed]
In the excellent article Why Information Security is Hard - An Economic Perspective, Ross Anderson poses that:
... you can make the security critical part of the system small enough that the bugs ...
0
votes
1answer
4k views
MediaTek MT7610U (RT2860) driver won't compile
I just bought a USB wi-fi dongle using the MediaTek MT7610U (RT2860) chipset, and the drivers from their website:
http://www.mediatek.com/en/downloads1/downloads/mt7610u-usb/
won't compile, with this ...
0
votes
1answer
630 views
Applying patch for bash failing
The bash shell in my production box is vulnerable to 'bashbug' vulnerability. https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/
The ...
1
vote
0answers
33 views
Downloading distro source
I'm using LDME, a Debian based distro.
Is there someway, preferably automatic, where one could download the source to everything that might be executed and everything needed by those executables? I'd ...