Skip to content

Tag: linux

why am i not able to declare sigset_t with std=c99?

If i compile the below program with std=c99, i get an error, but the program compiles fine without the c99 flag. Why? Answer Because sigset_t is not part of <signal.h> in standard C and you requested strict standards compatibility with -std=c99. That is, a strictly standard C program can do: and expect …

Writing to eventfd from kernel module

I have created an eventfd instance in a userspace program using eventfd(). Is there a way in which I can pass some reference (a pointer to its struct or pid+fd pair) to this created instance of eventfd to a kernel module so that it can update the counter value? Here is what I want to do: I am developing a

OCaml Compile Error: /usr/bin/ld: cannot find -lstr

I am trying to compile the source code of MEGAM Ocaml library on an Ubuntu 64 machine. I have OCaml installed (v 3.12.1), using sudo apt-get install ocaml. I am having an issue when running the “make” command in the terminal on the unzipped source code, with OCaml returning the error: The makefile…

GCC 4.7.2 requires ppl?

I’m trying to configure GCC 4.7.2, but it’s failing with configure: error: Unable to find a usable PPL I’ve looked in GCC prerequisites page and PPL isn’t mentioned anywhere. I’m using CLooG 0.17.0, which uses ISL, and as such no longer requires PPL (as far as I can tell) Is ther…

how can i use regex with locate command in linux

I want to use the locate command with regex but i am not able to use it. I want to find pip file which is in /usr folder. i am trying this locate -r “/usr/*pip” Answer To use globbing characters in your query you shouldn’t specify regex (as you do with -r option), so just do: From the man pa…

Tracking php process on framework

I have a php framework is running on linux machine basicly every requests redirect to index.php by .htaccess One of my php started to run %100 CPU i want to track which progress is that but when i check process with ps aux | grep 23791 As normal, request redirect to index.php.But i have to find which request …

Non-greedy repeat in gnu regular expression

I’m writing a network related program in linux. the program is in kernel space and not user space. All I need in this program is a regular expression library that supports all gnu regex library features plus non-greedy repeat. Is there any such library that has those features and also I can compile and …