Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [system-programming]

All questions regarding programming, tweaking and configuring of Unix & Linux core system as a whole or a sub-set of it.

1
vote
1answer
67 views

How to programmatically query the Freedesktop application database?

I know about xdg-mime which can query the mapping from MIME filetype to associated desktop application. But this can return mappings to non-existent applications, e.g. $ xdg-mime default non-...
0
votes
1answer
49 views

Move files shell program

Hello i have got problem, on shell program(.sh), with this code I should copy the file JPG from the directory sorgente to destinazione but the code does not work, can you help me!! #!/bin/bash ...
3
votes
0answers
1k views

modetest.c from libdrm tests lists no framebuffers

I wanted to play with KMS since it seems to be the preferred low-level graphics library on Linux. However, after compiling the appropriate modetest.c version (2.4.32, since that's the version of ...
2
votes
0answers
54 views

How does vlan driver pass vlan info to the h/w ethernet driver

I'm trying to implement vlans on a target programmatically. But first I wanted to set up vlans manually to help get a better understanding of vlan setup. So I setup a vlan manually on my development ...
2
votes
0answers
50 views

calling library functions from different language

As we know libraries are precompiled codes, so we do not need to compile them. Can we call library functions of one language from a different language?
1
vote
0answers
26 views

How do you determine the minimum timer resolution for a timerfd+EPOLL timer solution?

I am using timerfd_create/timerfd_settime/EPOLL to create timers in my application. According to the EPOLL documentation if a timer is set fire at a point lower than the minimum resolution, it will ...
1
vote
0answers
32 views

USB devices not showing

I'm trying to write a C program that goes through all USB devices and extracts some information from them. When I run ls /sys/bus/usb/devices from the terminal, I get this output: 1-0:1.0 1-1.1 ...
1
vote
0answers
772 views

How to get minor and major page fault for individual or group of processes?

I am trying to write a program in C to run under Linux. Basically I am trying to draw a statistic that should show like: pid, number of process, page fault(major/minor) and total number of page ...
1
vote
0answers
165 views

How to catch my bluetooth service events

I have usb bluetooth device which is using btusb 0.6 module (driver). The thing is I am interested to know is: how is the systemctl start bluetooth.service event invoked? I was looking info about ...
0
votes
0answers
15 views

If it's possible to programmatically reset Mac to factory defaults

Wondering if there is a way to programmatically do something close to this process. The main steps are: Backup computer. This can be done with standard stuff I imagine. Deauthorize accounts. This ...