The c tag has no wiki summary.
0
votes
0answers
12 views
Advantages of particular “do while” macro in c? [migrated]
I come across macros that are defined as follows:
#define CALL_FUNCS(x)
do {
func1(x);
func2(x);
func3(x);
} while (0);
now, of course this will work but how is this any better than the below ...
1
vote
0answers
13 views
Erroneous IDE errors? (status=0x58 { DriveReady SeekComplete DataRequest })
I keep seeing these appearing on an embedded linux product I work on:
hda: dma_intr: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hda: DMA disabled
ide0: reset: ...
0
votes
1answer
83 views
Is there a rate limiting tool for linux that can limit rates per process or socket?
I found tc, which allows you to filter by ip, port etc. and then limit rates.
But I was wondering if there was anything that could filter by application or
limit rate given another process' socket ..
...
0
votes
0answers
23 views
nginx module - can't get started
I'm trying to run the "hello" module from the following URL:
http://blog.zhuzhaoyuan.com/2009/08/creating-a-hello-world-nginx-module/
I've done a ./configure ...
1
vote
2answers
100 views
How to Start Linux Daemon program at boot up
I am confused on how to start my Daemon C program at boot-up. The program runs as a Daemon OK when I satrt it from command shell, but now I want it to start up every time at boot-up. I have searched ...
0
votes
1answer
161 views
Issues installing packages on FreeBSD 8.2
I'm running into an issue installing some packages on FreeBSD 8.2. I realize some of what the problem is but am not certain on the process for remedying the issue.
For example, I'm trying to install ...
4
votes
2answers
270 views
How can I take advantage of IW10 in kernel 2.6.33?
I've read that 2.6.33+ allows setting custom cwnd.
if the IW is 10 by default (for all distros? only some?)
how does one view what the current IW is on a particular compiled kernel?
references:
...
0
votes
1answer
101 views
how to investigate real problem with TX packet drops in linux?
I have my vps on CentOS running some my own software wich uses very fast algorithm of sending specially constructed RAW TCP packets to numerous systems running my software. I have noticed too many ...
1
vote
1answer
58 views
PCI configuration
I would need an help to solve a problem.
I work on a system based on CompactPCI platform. The system is composed by:
3U CompactPCI CPU Blades (based on Pentium M processor)
3U CompactPCI ...
0
votes
3answers
110 views
How to view linux kernel logs online?
I have a kernel module logging input of some sensor while I work with it. I want to see if there is a command that outputs /var/log/messages (for example) but waits for more logs to come. That is, ...
-1
votes
2answers
41 views
Shell script output and input from c programs [closed]
I am new to Shell scripting.How am I supposed to take the output of a c program that i execute and give it as an input to another c program all using shell.
1
vote
2answers
88 views
Check if IP is static or dynamic programmatically in Ubuntu
I'm trying to determine whether my IP has been statically or dynamically assigned in Ubuntu 11.04 from within C. The closest I've come is examining /var/lib/dhcp/dhclient.leases, but that doesn't ...
1
vote
3answers
132 views
Program to monitor new exe files in Windows (C/C++)
I am currently looking for a program or source in C / C++ that will allow me to monitor any new executable files and output the results to a text file
Any help would be greatly appreciated
0
votes
1answer
92 views
What can you diagnose from the netstat output on what's causing proxy working madly?
My http proxy server is listening at port 8888(IP changed for security reason):
[root@ ~]# netstat -ano|grep 8888
tcp 0 0 212.133.43.195:8888 0.0.0.0:* LISTEN off ...
-1
votes
1answer
94 views
tcpdump related [closed]
Can anyone inform about the commands/codes through which we can perform network monitoring or debugging activity with the help of tcpdump?
0
votes
2answers
57 views
Oracle Installation In HP-UX
I wanna install Oracle 10g in HP UX 11.3(RISC Machine). As per the Oracle installation pre-requisites, it requires HP C/aC++ Compiler to be installed along with the requisite patches for the same. The ...
0
votes
3answers
90 views
unable to properly execute binaries from PHP
I was building an app on a SUSE box, and had a binary called create_group for instance, which had a suid bit and allowed my PHP app to call exec('create_group grpname'); and create a new group (there ...
1
vote
2answers
140 views
Suggestion for open source web servers written in C
Can anyone suggest me some open source lightweight embeddable web servers written in C.
Also provide your opinion / review about the suggestion.
2
votes
3answers
361 views
How to reinject the packet in the Iptables?
I have a packet inside a packet a.k.a tunneling. So essentially it's of the following form: [IP HEADER 1][IP HEADER 2][PAYLOAD] After reading the first header(done by a library) I will get the ...
-1
votes
1answer
55 views
1
vote
3answers
224 views
Implementing IP fragmentation
I'm working on an application that does network traffic generation. The application has eth1 in promiscous mode. So it directly handles all incoming and outgoing traffic.
One of the features I'm ...
1
vote
1answer
104 views
Compiling native c extensions in Ruby when Ruby is installed in home directory
I have no root on the machine I'm working on, so I've had to install ruby in my home directory. Everything works fine, except that I am not able to compile any native ruby extensions because it cannot ...
6
votes
2answers
5k views
What is the maximum number of files a file system can contain?
Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain?
What is the general method of calculating the maximum ...
0
votes
1answer
943 views
Call to undefined function curl_init()
I've enabled curl in PHP.INI en restarted my machine and Apache.
extension=php_curl.dll
Still I get the following error in my php script:
Call to undefined function curl_init()
I'm running XAMP on ...