Shared Memory using thread in C on AIX

I am looking for C program source code. Could you please help me in finding the source code required mentioned below.

program to create multiple threads (one master thread and rest worker threads) and using the threads write into and read from shared memory


Only one thread should be able to read at any instant of time into shared memory region. more>>

Java Runtime Environment (JRE) - JDK 1.5.0_15 unable to determine DST changes


We are having a strange problem with one of a dev-env boxes that runs on following version of Linux and JRE. The problem is JRE is unable to determine the DST changes as per the set rules, but the system time does changes the moment DST comes into effect and reset when DST ends. We tried to upgrade the DST rules using tzupdater but that too didnt work. more>>

I2C device driver to simutaneously support 2 devices

I am trying to modify the I2C linux device driver code by Gregg Koah-Hartman ( )to enable the driver to simultaneously support 2 devices. The second device will be on a different I2C address from the first device. more>>

shell scripts

newbie here. i'm currently taking a linux class and have an assignment and am having problems. the assignment is to create a shell script. the instructions are to log in and create a directory called "scripts" in my home directory. then i am to open the text editor and create a script that displays the date, who is logged on and the current directory. more>>

User Space Device Driver Development

Hi all, does anybody has a good code or document for developing a Device Driver in User Space for a USB device....please send me the same

Regards Ameya

IT Alignment

Hi guys! Yesterday I experienced to talk with Mr. Daniel Primus about IT related solution for my company. He realy knows what he says and he is an expert in his field. I got a very good IT alignment solution for my IT department. If you want a solution too, I will recomend that you guys contact with Mr. Denniel Primus he is a real expert in solving IT related problems. more>>

Developer required: Embedded apps

We are a company with an existing product and Linux embedded software but require help in development of customer spcific apps and possible on site training (small reqirement) UK resident people only please: reply to

php script --> MSSQL error. Why? See details below

[Tue Mar 04 14:10:00 2008] [error] [client] PHP Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC][FreeTDS][SQL Server]Invalid object name 'DeviceView'., SQL state S0002 in SQLExecDirect in /srv/www/htdocs/hu/Proj1/ttb.php on line 7 more>>

What is the error in php?

In this php program:

<?php // connect to DSN MSSQL with a user and password $connect = odbc_connect("DSNNAME", "miki", "84139") or die ("couldn't connect"); ini_set('odbc.defaultrl','65536'); odbc_exec($connect, "use SwitchCenterDB"); $result = odbc_exec($connect, 'show tables'); while(odbc_fetch_row($result)){ ... } odbc_free_result($result); odbc_close($connect); more>>

What is the error in getting an info from MSSQL? Enclosed herewith: an error message and source of the program

[Fri Feb 22 12:54:15 2008] [error] [client] PHP Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC][FreeTDS][SQL Server]Could not find stored procedure 'SHOW'., SQL state 37000 in SQLExecDirect in /srv/www/htdocs/hu/Proj1/test.php on line 9 more>>

configure: error: Cannot find ldap libraries in /usr/lib

Configuring PHP 5.25 with ./configure --with-mysql=/opt --without-sqlite --with-_lib=lib64 --libdir=/usr/lib64 --with-apxs2=/usr/sbin/apxs --with-zlib --with-ldap=/usr --with-gd --with-jpeg-dir=../jpeg-6b --with-png-dir=/opt --with-iconv-dir --enable-mbstring is chugs away until...

checking for ANSI C header files... (cached) yes checking for LDAP support... yes more>>

SOCKET Programming Trouble

Hi all!

I'm doing some simple server/client based socket progs in C. My problem is that the sending routine uses the protocol family PF_PACKET -> with SOCK_DGRAM, IPPROTO_UDP so i made some own cooked frames and send them with sendto(). I' have monitored them with tcpdump, the packet arrives, the ip sum is ok the udp socket too. more>>

After school programming class. What to teach?

I may be teaching some high school & middle school kids programming as part of an after school program. Any advice on a language, especially if there are resources available (ie, less work for me!)

Their experience would be zero, and mine is limited to BASH scripts used to do menial work on my Linux servers.

Thanks! -Shawn

Syndicate content