Sponsored Content
Top Forums Programming newbie to unix programming in C, needed a few simple prgs on these functions! Post 302207983 by wrapster on Sunday 22nd of June 2008 08:49:13 AM
Old 06-22-2008
newbie to unix programming in C, needed a few simple prgs on these functions!

Hi all,

I am a newbie to unix programming using C..
So i would like to have a few simple C programs to start off with..
I wanted programs on learning ,
abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg

It would be really great if i can have these programs

Last edited by wrapster; 06-22-2008 at 09:59 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

programming question from a newbie, please help

Hi Everyone, I really hope I could get some insight from a few of you, I've been searching the net for various resources, and this board seems to be the friendliest and most helpful by far. I work for a medical research company and we use sun 4 and we have different studies that have their... (1 Reply)
Discussion started by: milenky
1 Replies

2. Shell Programming and Scripting

Alias's & Functions - simple question

Having a memory lapse: If I redefine a command using an alias or a function - How do I access the "real" command without specifying an absoulte path: i.e. function man { /usr/bin/man |more } alias ls='/usr/bin/ls -l' How do I specify the ls or man command above without the... (6 Replies)
Discussion started by: kornshellmaven
6 Replies

3. UNIX for Dummies Questions & Answers

Programming Newbie Chick

OK, so I'm trying to finish my last individual assignment for this course, and it's the first time I've visited a forum (I've actually understood UNIX up to this point). I am having trouble with this one. I have to write a program that prompts the user to type their first name and stores it in a... (3 Replies)
Discussion started by: metalgoddess21
3 Replies

4. Shell Programming and Scripting

Hi Needed help for Unix Newbie

Hi, Can i get some help from any of you guyz on writing Unix script. my requirement is like reading a csv file, finding a specific pattern in the lines and repalce the string with new string and write it to another file. My file is file ABC123.dat Col1,Col2,Col3 102628,AB10 0,21... (2 Replies)
Discussion started by: prashant_jsw
2 Replies

5. Shell Programming and Scripting

perl newbie . &&..programming newbie (question 2)

Hello everyone, I am having to do a lot of perl scripting these days and I am learning a lot. I have this problem I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files.. there is folder1\folder2\*.gz and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies

6. Shell Programming and Scripting

perl newbie . &&..programming newbie

Hi, I am new to programming and also to perl..But i know 'perl' can come to my rescue, But I am stuck at many places and need help..any small help is much appreciated... below is the description of what i intend to acheive with my script. I have a files named in this format... (13 Replies)
Discussion started by: xytiz
13 Replies

7. Fedora

Newbie at Linux Kernel programming!

Hi Friends, This is my first ever post on this forum. I am a new user in the Linux field. Although, I have been working for sometime with CentOS at my work, I would consider myself an amateur only in this field. :D The way file system works in linux and the reason its open-source, has really... (7 Replies)
Discussion started by: rohitrajjain
7 Replies

8. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

9. Shell Programming and Scripting

Programming newbie -help!!

Hi I am trying to learn shell script and i ran into an issue. I am trying to read a file with few directories and tar them up. I used a while loop but i end up overwriting tar file with only the last directory in the file being tared . cat test.txt | ( while read line do tar -czPf... (8 Replies)
Discussion started by: SPR
8 Replies

10. UNIX for Beginners Questions & Answers

How to find C programming functions using shell script?

I want to find c function definition with pattern with shell script by checking condition for each line: data_type functionname(param_list){ .... } I knew cscope or ctag is usable for this task, but if there any ways to do without using them. I am thinking of checking line condition... (3 Replies)
Discussion started by: cmdcmd
3 Replies
pause(3)						     Library Functions Manual							  pause(3)

NAME
pause - Suspends a process until it receives a signal LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <unistd.h> int pause( void ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: pause(): POSIX.1, XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The pause() function suspends the calling process until it receives a signal whose action is either to execute a signal-catching function or terminate the process. The signal must be one that is acknowledged by the calling process. The pause() function does not affect the action taken when a signal is received. The pause() function suspends the calling process by suspending the calling thread. Other threads in the process, if any, are not sus- pended. RETURN VALUES
When the received signal causes the calling process to terminate, the pause() function does not return. When the signal is caught by the calling process and control is returned from the signal-catching function, the calling thread resumes exe- cution from the point of suspension. At that point, the pause() function returns a value of -1 and sets errno to indicate the error. ERRORS
The pause() function sets errno to the specified values for the following conditions: The signal has been caught by the calling process and control has been returned from the signal-catching function. RELATED INFORMATION
Functions: kill(2), sigaction(2), sigvec(2), wait(2) Routines: alarm(3) Standards: standards(5) delim off pause(3)
All times are GMT -4. The time now is 06:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy