I am testing the sending and receiving programs with the code as
The main() function is below:
#include "lib.h"
int fd;
int initport(int fd) {
struct termios options;
// Get the current options for the port...
tcgetattr(fd,
// Set the baud rates to 19200...
cfsetispeed(
cfsetospeed(
// Enable the receive...
I am trying to create a Debian package for a Java application.
In my package there is a .jar file which is executable, a script which will run this jar file and a .so file for fmod.
I've read this tutorial.
In the control file there is a 'Depends' field which basically describes the packages that need to be installed in order to insta...
Hi guys,
is there a commend to delete project from svn with all its revisions(total cleanup) ?
cheers
...
Hi All,
I am building some boost based application for various embedded targets. I have developed a script which can build my application with different toolchain for several targets. This script works fine when I run it from command line but if it is invoked from cron it always fails to link the object files. My application has depende...
In a linux application I'm using pipes to pass information between threads.
The idea behind using pipes is that I can wait for multiple pipes at once using poll(2). That works well in practice, and my threads are sleeping most of the time. They only wake up if there is something to do.
In user-space the pipes look just like two file-h...
I have found some code on measuring execution time here
http://www.dreamincode.net/forums/index.php?showtopic=24685
However, it does not seem to work for calls to system(). I imagine this is because the execution jumps out of the current process.
clock_t begin=clock();
system(something);
clock_t end=clock();
cout<<"Execution time: "<...
I know that under Windows, there are API functions like global_alloc() and such, which allocate memory, and return a handle, then this handle can be locked and a pointer returned, then unlocked again. When unlocked, the system can move this piece of memory around when it runs low on space, optimising memory usage.
My question is that is...
Hi everyone,
I've playing around with linux and noticed that for some mysterious reason commands like '/bin/sh ' just will not work. Each time I'm trying to start a process it yields 'cannot execute binary file' error message.
m@sanctuary:~$ sh sed
/bin/sed: /bin/sed: cannot execute binary file
When I first launch sh and try to exec...
Would it be possible to run ssh-keygen without human interaction?
I have a shell script that takes care of server deployment from start to finish, but ssh-keygen is the only remaining piece that still requires my input.
Would it be possible to feed the parameters to it?
Or is there something similar to debconf-set-selections that could...
I have written a single-threaded asynchronous server in C running on Linux: The socket is non-blocking and as for polling, I am using epoll. Benchmarks show that the server performs fine and according to Valgrind, there are no memory leaks or other problems.
The only problem is that when a write() command is interrupted (because the cli...
I am trying to intall SproutCore, but it doesn't work.
I followed the instructions in How to Install SproutCore in Virtual Enviroment but after the installation I cant start sc in the commandline.
So, I hope you understand, because my English is very bad...
greetings,
Leif
...
I have a tab-delimited file that has over 200 million lines. What's the fastest way in linux to convert this to a csv file? This file does have multiple lines of header information which I'll need to strip out down the road, but the number of lines of header is known. I have seen suggestions for sed and gawk, but I wonder if there is ...
I already have experience with setting up virtual machines, running them and other minor tasks. Im a gamer, so I wont get rid of windows (for now at least...) but I do want to be a great programmer and to be involved with the Open-Source community.
Id like to know if its a good idea to do my programming in linux through a virtual machin...
I want to know whether we need to download GTK for making graphical interfaces in C on linux, since i have read somewhere that it is by default installed.
...
I am relatively new to programming, and have built a few working C++ commandline programs with Xcode in Mac OS X (no dependencies on Mac-only libraries or APIs). My question is:
What is the standard way of packaging and distributing the source code (and possibly compiled binaries)? i.e. Almost all Linux programs seemed to be distributed...
Explains both UNIX (BSD flavor) & Linux system call conventions for x86-32:
http://www.int80h.org/bsdasm/#system-calls
http://www.freebsd.org/doc/en/books/developers-handbook/x86-system-calls.html
Can any one please tell me or point me to similar doc for x86-64 on both UNIX & Linux?
...
We are running the uclibc linux on ARM 9. The problem is uclibc doesn't support backtrace. When a core dump happens, I cannot grab the call stack.
Does anyone have a good solution for that?
For example, an existing porting of backtrace for uclibc, or any good method to grab the call stack when a core dump happens (uclibc+ARM+Linux)?
...
What I am trying to do here is: IF the records in table todo as identified in $done have a value in the column recurinterval then THEN reset date_scheduled column ELSE just set status_id column to 6 for those records.
This is the error I get from mysql_error() ...
You have an error in your SQL syntax; check the manual that corresponds ...
Is there a Win32 equivalent to the linux header file? I'm working on a Linux to Windows port (and my first time doing so) and it's failing on this file.
...
Can someone please give me the details about the Eclipse memory usage in Windows XP and Linux?
I heard Eclipse consumes less memory in Linux compared to Windows?
Is it true? What ever the OS is, IDE will look for some amount memory so how will it vary with OS?
Related Question:
Eclipse memory use
...