227,513 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Tooling
0
votes
9
replies
98
views
simple/fast way to transfer files from Linux to Windows
I have two computers. One with Arch Linux installation with any modern software. Another with 32bit Windows 7.
My goal is to transfer around 100GB of files from Linux to Windows. I have USB 3.0 to ...
-3
votes
0
answers
47
views
Find and replace character with empty character [closed]
In Notepad++ it's like this: find character and replace with \0円 (escape sequence for no character).
How to do this in Kate?
0
votes
0
answers
35
views
Using GTK in Mojo [closed]
I am trying to figure out if theres a way to use GTK (for GUI development) in the Mojo programming language.
So far, I havent been able to find any documentation, tutorials, or examples showing how ...
0
votes
0
answers
60
views
problem having creating a sub routine for outputing string dynamicly without using stack in x86-64
i had a sub routine for printing a string dynamically, without manually listing the length of the string in x86-64 intel style through following code (with stack) :-
section .data
output1 db "...
3
votes
1
answer
98
views
How to make C shell exit immediately on Ctrl+D (EOF) when the buffer contains text?
I am writing a simple shell in C on Linux. My goal is to handle the Ctrl+D (EOF) signal such that if the user types a command (e.g., ls) and presses Ctrl+D, the shell exits immediately without running ...
0
votes
0
answers
58
views
FLTK/Wayland/X11 custom drawing in a pop-up window
This question relates to a long standing open source application that has an FLTK UI and uses Cairo for custom drawing in various places. With FLTK 1.4, there is now a hybrid Wayland/X11 backend. We ...
0
votes
1
answer
112
views
C program gets stuck while executing [closed]
I have a C program and I'm using Meson+Ninja to build it.
project('NESt', 'c')
source_files=files('src/main.c',
'src/App.h', 'src/App.c',
'src/Emulator.h', 'src/Emulator.c',
'src/Mapper.h'...
0
votes
0
answers
142
views
File IO in C++ (or C) without the overhead of copying between two buffers with Linux Systems [closed]
I'm interested to understand more about performing file IO operations with systems programming languages in a way which does not use both a kernel space buffer and a user space buffer.
Specifically I ...
2
votes
1
answer
62
views
Handshake fails with RST after destination address modification of TCP packets in Netfilter hooks
I am implementing a destination NAT-like behavior by hooking into NF_INET_PRE_ROUTING and NF_INET_LOCAL_OUT to modify the destination IP address and recalculate the checksums.
nf_tracer_handler(void *...
0
votes
0
answers
33
views
No gcc compiling log "CC [M] " showing up when build external modules using linux rpi-5.10.y
environment
OS: Arch Linux x86_64
Host: Windows Subsystem for Linux - archlinux (2.6.2.0)
Kernel: Linux 6.6.87.2-microsoft-standard-WSL2
compiler: aarch64-linux-gnu-gcc 15.1.0 Using built-in specs.
...
Advice
0
votes
2
replies
41
views
can I use dup2() to send output to stdout instead of a Unix Domain Socket?
It's seems easy to find examples of using dup2() to cause output (originally) intended for stdout to instead go to a socket:
char *stdoutMsg = "This message will be sent to stdout\n";
write(...
3
votes
2
answers
127
views
Question about retry logic in usb-skeleton.c skel_read()
I'm a computer science undergraduate student studying Linux kernel USB device drivers.
While analyzing the skel_read() function in usb-skeleton.c, I noticed what seems like inconsistent retry logic. I'...
0
votes
0
answers
78
views
`btvirt` (virtualized BlueTooth) with TrouBLE [closed]
Desired behavior
Have the central make a connection with the peripheral.
The "trouBLE" I run in to
The central code returns directly a BleHost(Timeout) error, even with adjusted settings
I'...
3
votes
1
answer
120
views
Java shell pipeline: `head` command doesn't output lines until it receives the expected number, even with `tail -f`
I'm building a shell in Java and currently implementing pipeline logic. For inter-process communication, I've created this class:
public class PipeConnector implements Runnable {
private final ...
Best practices
0
votes
2
replies
131
views
Can Linux kernel software mechanisms track the sequence of accessed memory pages, or is hardware support required?
I want to generate a memory access trace in Linux where every fixed number of memory accesses (e.g., every 32 accesses) are grouped and recorded as one batch. Is it possible to implement this kind of "...