Standard UNIX functions


 
Thread Tools Search this Thread
Top Forums Programming Standard UNIX functions
# 1  
Old 02-23-2009
Standard UNIX functions

Hi everybody,
first of all i apologize if my thread's title doesn't make much sense,but i coudn't find a more appropriate name Smilie
Then i apologize about my question,which probably will sound trivial for you Smilie Smilie

I am working on a program which is being tested in Linux but the final target is a VxWorks system.
So far,i am in the test phase,so i'm fighting ( Smilie ) with linux.Since I am a newbie to unix programming,every time i use some new library functions i wonder:will it be supported in VxWorks?
Now i ask you:is there a common set of libraries for the various unices? Obviously my attention i concentrated on the linux-vxworks couple,but any advice is welcome

Thanks in advance!
# 2  
Old 02-23-2009
This has been a problem with UNIX over time - different "parentage" of a unix system may mean using different system calls. There have been a lot of attempts to get past this problem. POSIX (or SUSVn - the Single UNIX Specification Version nn) is one.

I would try this link here on the forums:
https://www.unix.com/unix-ieee-std-10...html#post26442

Note - POSIX does not attempt to deal with any implementation specifics, it just says this function() will do this. If you stick with POSIX as much as possible, porting is much less of a problem. It does not make it go away altogether.

VxWorks is a realtime system - I do not think POSIX will help that much - but I do not know VxWorks.
# 3  
Old 02-23-2009
libc is the standard C library and since most of the vendors follow the POSIX std it should have all the common ones you need though I am not sure I understand you fully. Are there certain functions you are looking for given that VxWorks is an RTOS and it may have some unusual and stringent response time requirements.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Newline in ANSI-C standard functions

Can someone outline the "best practice" (if any!) to handle newline in ANSI-C standard library functions? I had some confusion with these functions recently related to char array and char pointer. puts(), printf(), strcpy(), strncpy(), memset(). I seem to understand their basic use, but got... (6 Replies)
Discussion started by: yifangt
6 Replies

2. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies

3. AIX

Unix 64-bit AIX V6.1 Standard Edition

Unix 64bit AIX v6.1 standard edition what do you mean ? function ? pls, help me... (1 Reply)
Discussion started by: khanhphv
1 Replies

4. UNIX for Dummies Questions & Answers

Redirect Standard output and standard error into spreadsheet

Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway? Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies

5. Shell Programming and Scripting

Recursive functions in Unix

Hi Guys, Is there a way to write a recursive function in unix? Thanks for your help in advance, Regards, Magesh. (1 Reply)
Discussion started by: mac4rfree
1 Replies

6. UNIX for Dummies Questions & Answers

unix functions

Hi All, i have two functions in my script. question() { num=`ps -e | grep ps | awk -F" " '{print $1}'` qno=`expr $num % 10` grade=grade1 cat grade1/$qno answer ${grade} ${qno} } answer() { grade=$1 qno=$2 ansno=`wc -l $grade/ans/$qno | cut -d' ' -f1` j=0 while do (1 Reply)
Discussion started by: Usha Shastri
1 Replies

7. Programming

using c++ and c standard I/O functions

Is it not a healthy practice to mix C and C++ standard I/O functions together e.g. string name; // this is a declared instance of the string class in C++ printf("\nPlease enter your name: "); cin >> name; I did something similar in a program Im designing, and used it several... (1 Reply)
Discussion started by: JamesGoh
1 Replies

8. Programming

Similar functions in unix

Hi, I am windows programer. I have very basic knowledge of Unix OS. I have written an application in Windows which consists of Win32 API namely WideCharToMultiByte(..) and MultiByteToWideChar(..). I am interested to deploy my application in unix platform henceforth I need to know IS... (1 Reply)
Discussion started by: dayakarr
1 Replies

9. Shell Programming and Scripting

Coding Standard For Unix Shell Scripting!!!

Is there any site on Coding Standard for Shell Scripting in UNIX. Please help me know!!!!! Thanks Om (1 Reply)
Discussion started by: Omkumar
1 Replies

10. UNIX for Dummies Questions & Answers

Which DVD standard I can use for UNIX???

Hi there, I just want to know what is the best DVD-writer & software I can use is PC, but I want to be able to read it from Unix. I tried to burn a DVD from my friend DVD-writer, when I try to read it in Unix the name of the file all mixed up. I'm not that familiar with DVD standard and which... (1 Reply)
Discussion started by: geoquest
1 Replies
Login or Register to Ask a Question