11-18-2010
If you want portability, you should not be using FreeBSD specific APIs. Stick to the set of APIs defined by the POSIX.1 standard.
This User Gave Thanks to fpmurphy For This Post:
10 More Discussions You Might Find Interesting
1. Programming
Hi all,
I am working on a c program (in a unix environment) making system calls. My program makes references to POSIX, _POSIX_SOURCE 1. When trying to compile the c program, I received a message "Language optional software package not installed."
I am not sure if this message refers to... (3 Replies)
Discussion started by: rachael
3 Replies
2. Programming
hey there
i have to execute commands that are written on the command line in unix. i have already separated the commands into tokens but now im stuck with the problem of how to actually execute those commands.
eg: lets say the user entered " ls -l" to list all the files in a directory
... (1 Reply)
Discussion started by: mile1982
1 Replies
3. Programming
please tell me the best book for Unix's System programming.....
so that i become expert in System programming.I have completed shell programming and i know C programming in Unix.
please tell me which book i should prefer...
-ajit (1 Reply)
Discussion started by: ajit_gupta
1 Replies
4. Programming
Hi there,
Am very very interested in system level programming in C????
Please give me a good site or a sample program to start with..
will be of a great help to me..
Thanks,
Nisha (7 Replies)
Discussion started by: Nisha
7 Replies
5. Programming
Dear Sir,
How to write Code using JAVA technology for system programming ? I want to develop a new compiler for my own language.
thanks in advance
roy (1 Reply)
Discussion started by: swapan
1 Replies
6. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies
7. Programming
Hi friends,
Hope u r doing well. I really find the phrase, "Unix System Programming" very very cool, I don't know the reason, but it since I love UNIX, I want to do system programming in unix. Could you please tell me what is really the meaning of unix system programming. I have a couple of books... (5 Replies)
Discussion started by: gabam
5 Replies
8. Programming
newPerm = oldPerm & ~0100;
where oldPerm holds the value of st_mode from the system call stat().
When I try and compile every line where ive attempted to do these operations gives the warning "parameter names without declaration types in function declaration". what could be the problem? the... (2 Replies)
Discussion started by: bjhum33
2 Replies
9. Shell Programming and Scripting
Hi All
I want to learn System programming with the help of Unix.
System Programming mean to say
1) Playing with the memory of computer
2) Designing some graphical units
Hope you understand... (2 Replies)
Discussion started by: parthmittal2007
2 Replies
10. UNIX for Dummies Questions & Answers
Hello.
I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations:
1. Linux and iOS are UNIX-like systems, POSIX compliant.
2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies
LEARN ABOUT HPUX
swapcontext
makecontext(2) System Calls Manual makecontext(2)
NAME
makecontext(), swapcontext() - manipulate user contexts
SYNOPSIS
Deprecated
Deprecated
DESCRIPTION
The function modifies the context specified by ucp, which has been initialized using When this context is resumed using or program execu-
tion continues by calling passing it the arguments that follow argc in the call.
Before a call is made to the context being modified should have a stack allocated for it. The value of argc must match the number of inte-
ger arguments passed to otherwise the behavior is undefined.
The uc_link member is used to determine the context that will be resumed when the context being modified by returns. The uc_link member
should be initialized prior to the call to
The function saves the current context in the context structure pointed to by oucp and sets the context to the context structure pointed to
by ucp.
RETURN VALUE
On successful completion, returns 0. Otherwise, -1 is returned and is set to indicate the error.
WARNINGS
and are deprecated and should be used only by legacy applications.
Context APIs are not recommended due to possible compatibility problems from release to release, because context APIs are very architec-
ture-specific. The context APIs "expose" the architecture to the application, such that the application may not be compatible with all
releases.
If you must use context APIs, be aware of the following:
o Do not copy the context yourself. It is not contiguous. The context may have pointers that may point back to the original context
rather than in the copied context; hence, it will be broken.
o The size of the context will vary in length from release to release.
ERRORS
The and functions will fail if:
[ENOMEM] The ucp argument does not have enough stack left to complete the operation.
SEE ALSO
exit(2), getcontext(2), sigaction(2), sigprocmask(2), <ucontext.h>.
Deprecated makecontext(2)