Search Results

Search: Posts Made By: S.P.Prasad
Forum: Programming 09-27-2005
4,067
Posted By S.P.Prasad
#include<stdio.h> void change() { ...
#include<stdio.h>

void change()

{
#define printf(a,b) printf(a,b/2)
}



void main()

{

int i=5;

change();

i=10;
Forum: Programming 03-01-2005
3,738
Posted By S.P.Prasad
Porting File from OPenVMS to AIX Unix
We are in requirement to port relative file organization files from OpenVMS V7.1-1H2 to AIX Unix. These file contains multiple binary records each of 512 bytes but it could be possible that a few...
1,550
Posted By S.P.Prasad
string=test99 string=`echo $string | tr -d...
string=test99
string=`echo $string | tr -d '[A-Za-z]'`
echo $string

Using awk:

echo "test99" | awk '{gsub (/[A-Za-z]/,"",$1);print $1}'
35,789
Posted By S.P.Prasad
If the OS is AIX then if the time of last...
If the OS is AIX then if the time of last modification of the file is greater than six months ago, the time field is shown in the format month date year where as files modified within six months the...
Forum: What is on Your Mind? 02-15-2005
2,704
Posted By S.P.Prasad
Please correct me if I am wrong. The protocols...
Please correct me if I am wrong. The protocols that I have mentioned above are of X-series Recommendations. They talk a lot of "Frame Relay" and "Packet Switched" ... but then they again say that...
Forum: Programming 02-15-2005
6,280
Posted By S.P.Prasad
As stated that __func__ is a predefined...
As stated that __func__ is a predefined identifier which stores the name of the function currently being executed. These are defined and implemented by C language as Predefined Macro Names. There is...
Forum: Programming 02-14-2005
6,280
Posted By S.P.Prasad
Standard C defines a predefined identifier...
Standard C defines a predefined identifier __func__ which stores the name of the function as static const char currently being executed.

int function1(char * name )
{
// do something
printf (...
Forum: What is on Your Mind? 02-11-2005
2,704
Posted By S.P.Prasad
Internation Standards Networking Specification
I seem to get lost when it comes in terms of Networking types and its specifications by different International bodies. I am not able to understand things like -

"synchronous operation on public...
Forum: Programming 12-23-2004
3,188
Posted By S.P.Prasad
The expression within the '(' and ')' parenthesis...
The expression within the '(' and ')' parenthesis in an 'if' statement will be evaluated as 'test context'.

In a 'test context' the value of expression causes to flow in one or other way...
Forum: Programming 11-03-2004
2,558
Posted By S.P.Prasad
Though I have never worked at such a core level...
Though I have never worked at such a core level in thread programming but my understanding is that when the kernel realizes that all of a process's LWPs are blocked at the kernel level, it drops a...
Forum: Programming 10-20-2004
6,278
Posted By S.P.Prasad
OpenVMS IPC and TCP/IP Programming
We have a requirement to port applications from Unix to HP Vax OpenVMS Server.

For this I need to self-educate on various IPC and networking APIs available in OpenVMS. I goggled a lot but could...
Forum: Programming 10-19-2004
4,827
Posted By S.P.Prasad
I don't think '?' is treated as a metacharacter...
I don't think '?' is treated as a metacharacter in a regular expression. The match routines would then literally search for a '?' at the desired location. Try using '.' instead of '?'.

Hope this...
5,193
Posted By S.P.Prasad
Ok I would give a try. Send a SIGSTOP signal...
Ok I would give a try.

Send a SIGSTOP signal to the process which you want to pause/stop, copy the log files to target directory and finally issue a SIGCONT signal to the same process.

The...
7,062
Posted By S.P.Prasad
I would like to give a try. The awk utility...
I would like to give a try.

The awk utility searches for string pattern /CLIENT=/ from file name being passed as second parameter to itself having field separator set as '=' and executes an action...
4,813
Posted By S.P.Prasad
Out of multiple ways one way is to invoke the...
Out of multiple ways one way is to invoke the second script by providing the user_id as an command line argument to the script from the first script. Something like

#code of first script to take...
Forum: Programming 09-29-2004
2,775
Posted By S.P.Prasad
Though I am not sure of the exact reason but this...
Though I am not sure of the exact reason but this could be a probable reason:

When we want to delete the contents of an array allocated with new[], we need to use the delete[] operator. Whether...
Forum: Programming 05-11-2004
3,142
Posted By S.P.Prasad
Oh ! After reading your reply I realized that I...
Oh ! After reading your reply I realized that I have confused myself regarding 'word boundary' memory alignment. It happens to me at times.

Thanks Driver for your replies.
Forum: Programming 05-11-2004
3,142
Posted By S.P.Prasad
I agree to the modification of the definition of...
I agree to the modification of the definition of 'Single Word'.

Please provide me arguments as to why you say 'No, divisible by two' with regards to ‘word boundary'. Is it that word boundary...
Forum: Programming 05-11-2004
3,142
Posted By S.P.Prasad
Please visit the link within this post. ...
Please visit the link within this post.

_check_lock and _clear_lock on AIX (http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/basetrf1/_check_lock.htm)


I tested the code...
Forum: Programming 05-05-2004
3,142
Posted By S.P.Prasad
As I am not confident about a topic and it may...
As I am not confident about a topic and it may sound to be silly, so forgive me for my query.

My question is 'is if atomic' i.e. suppose if I have the following lines of code in a 'C' program:
...
Forum: Programming 05-04-2004
3,142
Posted By S.P.Prasad
Thanks for the information, Driver. ...
Thanks for the information, Driver.



The second if takes care such that only one process has the right to execute code:



I hope that I am clear.



Shared libraries (also called...
Forum: Programming 05-04-2004
3,142
Posted By S.P.Prasad
To add I just learnt that the AIX system we have...
To add I just learnt that the AIX system we have runs on dual CPU while that of Tru64 has a single CPU.

Will that make a difference on performance or code behavior?
Forum: Programming 05-04-2004
3,142
Posted By S.P.Prasad
Thanks Perderabo. Currently I am going...
Thanks Perderabo.

Currently I am going through the algorithms as provided by you in a link.

I would like to put forward my observations in this post. As earlier mentioned the code was ported...
Forum: Programming 05-03-2004
3,142
Posted By S.P.Prasad
First of all I would thank Driver for all the...
First of all I would thank Driver for all the technical support and aid that he has provided.

Driver as you have stated that:



We have more than 10 process and in each process it has to LOCK...
Forum: Programming 05-03-2004
3,142
Posted By S.P.Prasad
First of all I would like to state that the...
First of all I would like to state that the pseudo-code I have written in my initial post needs modification. Instead of writing LOCK () and REL() as two separate functions, it would be only one...
Showing results 1 to 25 of 107

 

Featured Tech Videos

All times are GMT -4. The time now is 09:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy