I want to write a native application in c to get the value of orientation in Tizen. The compiled c code must be run on the Tizen phone and I need to get the Value of orientation. The callback function i got from Tizen source is How to use this function to get the value of current orientation? Answer Looking
Tag: c++
supervisor for an executable in linux [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question I am currently developing an executable which runs on linux. I want to have a supervisor which monitor this executable
Easiest way to locate a Segmentation Fault
I encountered my first Segmentation Fault today (newbie programmer). After reading up on what a segmentation fault is (Thanks for all of the helpful info on this site, as well as Wikipedia’s lengthy explanation), I’m trying to determine the easiest way to go about finding where my fault is occuring. It’s written in C and the error is occuring on
How to use FANN in C++
Here I have read good references about FANN for Artificial Neural Networks in C/C++. Actually I am using C++ (on Ubuntu with g++ v4.6.1). The library written in C, has a wrapper for C++. But I don’t get it to work. Even the example included xor_sample.cpp works. I have a Makefile with a line like this: Being FANNINCLUDE the path
Using MD5 in kernel space of Linux
I am trying to use the kernel space implementation of the md5 algorithm (md5.h and md5.c). It turns out that md5.h does not declare the functions found in md5.c, so I could not simply include md5.h into my c file. I also wanted to avoid altering md5.h to declare the functions, since that could have unintended consequences. Is there any
How to know if process has truly finished with a dlclose()ed library?
I’m on Linux (Ubuntu 12.04, gcc 4.6.3), trying to bend dlopen/close to my will in order to make a plugin-based application that can reload its plugins as and when necessary (e.g. if they’re recompiled). The basic theory is simple: dlopen the plugin; use it, keeping track of all its symbols that are in use. When the time comes to reload,
Very simple DNS server
I have a linux server has an ad-hoc wireless network for clients to connect to. Once connected I want users to always be redirected to it’s own web server no matter what URL they type in. The large solution would be to set up a full DNS server (with BIND or equivalent) but that seems like overkill. All I need
How to print the address of a function?
I let gcc compile the following example using -Wall -pedantic: I get: Line 5 made my change the code like in line 6. What am I missing to remove the warning when printing a function’s address? Answer This is essentially the only portable way to print a function pointer.
Ask GDB to list all functions in a program
How can you list all functions in a program with GDB? Answer info functions prints the names and data types of all defined functions. See 16 Examining the Symbol Table.
How to completely destroy a socket connection in C
I have made a chat client in linux using socket, and i wish to destroy the connection completely. Following is the relevant portions of the code: but the close(sock) doesnot seem to close the destroy the connection completely, because after going to ‘label’ the code is exiting showing the error message That is the connection is not happening again. What