Linux is a popular, open source operating system kernel. Linus Torvalds started development of the kernel in 1991.

learn more… | top users | synonyms

9
votes
2answers
4k views

Embedded Linux vs Windows Embedded Standard 7 [on hold]

Ok looking for some really subjective answers. My company has traditionally been a Linux shop, we manufacture and sell purpose built boxes for video security. We recently decided to build an ...
124
votes
10answers
34k views

Is Ken Thompson's compiler hack still a threat?

Ken Thompson Hack (1984) Ken Thompson outlined a method for corrupting a compiler binary (and other compiled software, like a login script on a *nix system) in 1984. I was curious to know if modern ...
0
votes
2answers
46 views

Standard for implementing GUIs for command line utilities

I wrote a command-line utility and I want to develop a GUI for it. I saw that almost every tool on linux comes command-line, and it eventually has a GUI which interacts with the command line utility ...
-3
votes
0answers
24 views

Does DropBear support ssh key revocation?

I m using Dropbear as a server of ssh in my embedded system. I want to know if DropBear support ssh key revocation? if yes how How I can do it? https://en.wikipedia.org/wiki/Revocation_list
2
votes
1answer
187 views

Cross compiling Linux containers for embedded devices

I have recently been exposed to Docker and found it to be an excellent tool for making production deployments very less risky that what I was used to (coming from an embedded world, embedded as "Linux ...
0
votes
0answers
23 views

Creating a CLI access to service (similar to Asterisk) [closed]

I've been developing a relatively complex Asterisk solution professionally for a few months now. In using it, I really like the way it has a dedicated CLI that you can connect and disconnect to/from ...
0
votes
1answer
69 views

How to go about a remote shutdown program?

i've been wrapping my head around this and I want some ideas. How would I go about making a remote shutdown program for one computer to shutdown another? Would I use http or another protocol? I was ...
5
votes
1answer
166 views

Evaluating concurrent application design approaches on Linux

Working on relatively low-speed hardware, I need to grab a snapshot of a rapidly changing datastream and then post-process the snapshot data and save it to disk. I need help with designing the ...
0
votes
1answer
57 views

Best way to update driver data from userspace

I have a userspace application which interacts with a kernel-space driver in a Linux environment. The driver, in this case, is an LED driver. In typical *nix fashion, the driver exposes a file in /sys/...
-1
votes
2answers
107 views

How to write code for different versions of linux

So, I've written some fairly big code for cent OS 7.1. The code essentially makes use of different command line tools by parsing the text output and shoving it in a database... pretty straight forward....
1
vote
1answer
64 views

call a non GPL-Program from a GPL program via fork

I downloaded a GPL program, I want to modify this GPL program in order to make it calling a non gpl program (commercial license) via fork+exec. Concerning the input/output data of the non-gpl program:...
5
votes
1answer
176 views

Driving Linux input events from serial device

I'd like to build a RaspberryPi-based device that can communicate with my Linux laptop over USB (don't think it matters, but I'll be using a custom made USB dongle that has an FTDI chip on it, and my ...
1
vote
3answers
333 views

Do I have to fork a server program as an “C” child process in order for correct interprocess communication to take place?

I would like to implement interprocess communication between an Ubuntu Linux 15.10 mono 4.1.2 C# recorder client and Ubuntu Linux 15.10 mono 4.1.2 C# video server using a C++ mutex class and C++ ...
0
votes
0answers
27 views

using pthread_cond_broadcast with no mutex or waiting thread?

Assuming some pthread_cond_t condvar; properly initialized with pthread_cond_init am I allowed to pthread_cond_broadcast it without any mutex locked and thread blocked with pthread_cond_timedwait on ...
18
votes
10answers
14k views

Should we choose Java over C# for a new project? [duplicate]

We have a team of .NET developers (C#) with a range of experience from 2 to 6 years. Over the last few years we have been developing Silverlight, ASP.NET MVC, and WPF applications. However, there is a ...
7
votes
3answers
3k views

Low level Linux graphics

For educational purposes, I'd like to write an application on a Linux environment that can process keyboard events and draw graphics without huge dependencies like X or SDL. I presume that this must ...
2
votes
2answers
89 views

Multiple windows

A while back I got into a discussion with a classmate about whether our application should use multiple JFrames, or windows. I'm a linux-user, and said yes. He's a windows-user, and said no. When ...
3
votes
1answer
99 views

How do you manage your OpenCL source?

I am having a hard time deciding how I should manage my OpenCL source code so that my program can compile it at runtime. There seem to be two many strategies. You can create them in you C source as ...
7
votes
3answers
257 views

What paradigm to use when determining shell script vs a “proper” programming language?

For a while now, I have been automating tasks by writing shell scripts in bash. These have gradually become more and more complicated, and I am now finding that bash scripts are a little too simple ...
1
vote
1answer
91 views

How to uncouple and reuse persistence logic, user interface logic and business logic amongs embedded software projects

I have been working in embedded devices business more than 5 years as a software engineer. Most of the times our hardware manufacturers provide a Software Development Kit for their reference boards. ...
19
votes
3answers
668 views

What are the reasons for why a Java/Linux stack fails to be “real time”?

I have often heard developers mention that Java can't "do Real Time", meaning a Java app running on Linux cannot meet the requirements of a deterministic real-time system, such as something running on ...
41
votes
2answers
50k views

How to become a Kernel/Systems/Device driver programmer? [closed]

I currently work in a professional capacity as a software engineer working with the Android OS. We work at integrating our platform as a native daemon among other facets of the project. I primarily ...
6
votes
4answers
2k views

Is there much difference between X86 Assembly language on Windows and Linux?

I'm a complete beginner at Assembly, and my aim is to learn as much as I can to do with Assembly to one day I can reach expert level (I know I'm way off right now, but you never know). My only problem ...
4
votes
4answers
426 views

Is it true that calling _exit() instead of exit() won't prevent static destructors from being called?

On comp.lang.c++.moderated@googlegroups.com, Greg Herlihy posted the following extern "C" function: extern "C" { int func() { wchar_t memoryName[256]; wchar_t mutexName[256]; ...
0
votes
1answer
571 views

Reading a character from a file stream in c++ (AKA: Why no C++ standard equivalent of old conio.h)?

This is a question of about design decisions. I find that there are so many different things I work on where reading a _kbhit() is amazingly useful but I can't find (read: there isn't) any ...
3
votes
3answers
261 views

Read data from a device through usb port at high frequency

I need to know if I can get acceleration data from an IMU at 500Hz via USB. I've been going through the code that the manufacturer provides and trying to improve it. Right now I cannot go faster ...
1
vote
2answers
194 views

What does “Linux Ready” mean in the context of a project written in Swift?

There are few GitHub repositories written in Swift that are presented to be "Linux Ready". The Zewo organization has several repositories identified as "Linux Ready". What, exactly, does this mean?
1
vote
2answers
481 views

Strategy for creating a websocket relay? [closed]

I own a Raspberry Pi and would like to use it as some sort of websocket relay, so that all people who visit a specific webpage would be able to communicate with each other. The key thing about this is ...
11
votes
7answers
10k views

How to get started in opensource projects and programs [duplicate]

I am interested in starting to learn how to contribute to open source projects and Linux in general. I am a first year B.Sc. Computer Science student this year and we use c++ as our main programming ...
0
votes
1answer
52 views

Overwriting a C system after exec? [closed]

So I used wrap to override the malloc call in my program, I didn't think that if I exec'd another it would work, and it didn't. I figure this is because it wasn't linked with my program. How could I ...
0
votes
0answers
26 views

Monitoring interfaces and subscribing to multicast on them

How can a program enumerate the available IP interfaces, and monitor changes in them, to subscribe to and send IP multicasts on all of them? I ask because I am troubleshooting a problem with the ...
2
votes
2answers
587 views

Difference between mutex in windows and linux

Is that correct that a mutex object in Linux cannot be used for cross process synchronization as opposed to its Windows counterpart? If that is true - what was the idea to limit mutex synchronisation ...
-3
votes
1answer
75 views

dma allocation in kernel 4g patch theory [closed]

I was reading about that that old patch. The summary of that link is to create a 4Gb kernel space, instead of 1Gb by default. Since many dma capable devices can only access 32 bit addresses or 4Gb, ...
2
votes
1answer
188 views

Best practices for a daemon that forks and becomes user [closed]

I want to write a small daemon in python under Linux that accepts connections and authenticates the user (details for this don't matter) and then forks a child for the connection and becomes the user. ...
0
votes
1answer
717 views

develop crossplatform GUI based DESKTOP application with HTML5/CSS [closed]

I'm experienced wed developer doing stuff for web for a several years. But now my customer need to build crossplatform ETL tool which he want to ship to his clients. And will be much easier if it will ...
0
votes
0answers
597 views

Best way to signal all child processes to terminate using C

I have been assigned the task of designing a simple web server using C in my UNIX & C class. The webserver listens and forks when a successful connection is made so that multiple clients may be ...
2
votes
2answers
163 views

Need Advice on PHP Search Functionality

I'm coding a Linux/PHP site for an organization. The site has two views, activated by a login $_SESSION variable indicating whether one is logged in as a member or not. I need to provide search ...
-3
votes
2answers
443 views

Best x86 processor(computer) to learn computer architecture and assembly [closed]

I'm planning to build a computer as a hobby from scratch, with the least basic hardware possible in functionality so I can learn the basics of computer architecture and assembly language. I already ...
13
votes
7answers
2k views

Emacs and “self-reinforcing performance”

In short, my question for you hardcore Emacs users is this: have you achieved this "self-reinforcing performance" Steve Yegge talks about? Emacs is self-hosting: writing things in it makes the ...
0
votes
0answers
72 views

A callback for when data is received?

So, my understanding is that the Kernel could receive TCP at any time, and that generally a C program asks the Kernel synchronously/asynchronously if it has data available. Would it be possible for a ...
1
vote
1answer
266 views

What does using pointer in Linux kernel imply?

So far I was under the perspective that while working in the kernel code, working with memory implies working with long integers and not pointers because dereferencing pointers shouldn't be done in ...
3
votes
1answer
321 views

What is the motivation for casting a pointer into a integer?

I'm doing some changes in the Linux kernel code and have noticed a pointer being cast into integer. Check out buf below (full code): snd_pcm_sframes_t snd_pcm_lib_read(struct snd_pcm_substream *...
26
votes
5answers
4k views

Why don't Windows/Linux use relational Databases (RDBMS)?

Why don't Windows/Linux use relational databases (RDBMS)? I know they use file systems to store all data but don't you think it is more efficient to use databases like we use in web sites/web apps? ...
1
vote
2answers
260 views

Is Red Star OS released under the GPL? [closed]

According to Wikipedia, Red Star OS is is a North Korean Linux-based operating system Does that mean it's covered by the GPL, or are there exceptions?
1
vote
3answers
208 views

Reading file during write on linux

As I understand, when a file is being written, the process writing to the file obtains an exclusive lock. So other processes cannot access this file for read. With the above knowledge, I'm unable ...
3
votes
2answers
456 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
2
votes
1answer
182 views

Should one use many small configuration files for script or a single large configuration file?

I have a script which starts from cron with regular interval and sources in around 10 variables. Should I keep those 10 variables in one configuration file in file system or is it a better practice to ...
7
votes
1answer
1k views

“Read” a file without using a file pointer

I was asked this question in an interview. I'm somehow supposed to "read" a file into my C program as input without using a file pointer (including "f" functions, e.g. fgets, fscanf etc.). I'm also ...
-3
votes
3answers
454 views

Why should PHP developer use/learn VI editor? [closed]

Why should PHP developer use/learn VI editor ? I mean there are 10 most amazing editors like PHPStorm, Netbeans which increases developers productivity. Lets just consider PHPStorm. I never got ...
1
vote
1answer
141 views

How come the NSA could release SELinux as GPL when all US Gov work must be Public Domain?

I'm not sure if this is a good question for this site, but it does deal with the things to do with working as programmer. SELinux is a security enhanced version of Linux, and was initially developed ...