Sponsored Content
Top Forums UNIX for Advanced & Expert Users how to differentiate system call from library call Post 302127699 by muru on Thursday 19th of July 2007 06:21:03 AM
Old 07-19-2007
how to differentiate system call from library call

Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?

Thanks
Muru
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

tcsh user failed to call library in ksh program

Hi folks, I'm trying to organize functions in my ksh program into libraries. If I run my program as any ksh user it will succeed. Only when I run my program as tcsh user (i.e oracle) I failed. Example ======= The ksh code: tornado:/tmp # cat nir.ksh #! /bin/ksh cdromPath=`pwd`... (1 Reply)
Discussion started by: nir_s
1 Replies

2. Programming

c system call

How the c compiler differentiates the system calls and function calls? (1 Reply)
Discussion started by: rangaswamy
1 Replies

3. Shell Programming and Scripting

How to call the c library created by shc

I have written a shell script called square, which prints the square of the input number, eg. > square 4 16 There is a program called shc which compiles the shell scirpt and create a executable file and a c library file, namely square.x and square.x.c repectively. If I would like to... (0 Replies)
Discussion started by: alfredo
0 Replies

4. Programming

How to call the c library created by shc

I have written a shell script called square, which prints the square of the input number, eg. > square 4 16 There is a program called shc which compiles the shell scirpt and create a executable file and a c library file, namely square.x and square.x.c repectively. If I would like to... (1 Reply)
Discussion started by: alfredo
1 Replies

5. Infrastructure Monitoring

diffrence between method call and function call in perl

Hello, I have a problem with package and name space. require "/Mehran/DSGateEngineLib/general.pl"; use strict; sub System_Status_Main_Service_Status_Intrusion_Prevention { my %idpstatus; my @result; &General_ReadHash("/var/dsg/idp/settings",\%idpstatus); #print... (4 Replies)
Discussion started by: Zaxon
4 Replies

6. Shell Programming and Scripting

system call

Hi, How to write a system calls in a script ? > cd $HOME > ls -ltr thanks in advance.. (10 Replies)
Discussion started by: hegdeshashi
10 Replies

7. Programming

C:system call

Hi I'm studing the system call. I've written a small program that return the time spent in doing some operations. Now I'd like to write one that return the time spent in user mode of a process. I'm reading that i should use the tms struct: clock_t times(struct tms *buf); struct tms {... (2 Replies)
Discussion started by: Dedalus
2 Replies

8. Programming

system call

I have a cgi script which is called after certain time interval, which has this: system ("ls -l /tmp/cgic* | grep -v \"cgicsave.env\" | awk '{print $5}'"); During the execution of this script,the output is 0 sometimes. But due to this the system call is not working at all and doesnt o/p... (2 Replies)
Discussion started by: xs2punit
2 Replies

9. Programming

need help with system call

hi everyone i wrote a system call and compiled the kernel succesfully... my system call is in a file in the kernel folder named my_syscall1.c (kernel/my_syscall1.c) the header file for this system call i added it in the folder include like this include/my_syscall1/my_syscall1.h my problem is... (2 Replies)
Discussion started by: demis87
2 Replies

10. Shell Programming and Scripting

system call

Trying to figure out a load issue with a webserver. I have traced a php script and noticed the following connect(4, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr("XX.XX.XX.XX")}, 16) = -1 EINPROGRESS (Operation now in progress) <0.000035> poll(, 1, 2000) = 1 () <0.000120>... (5 Replies)
Discussion started by: rajan007
5 Replies
siginterrupt(3) 					     Library Functions Manual						   siginterrupt(3)

Name
       siginterrupt - allow signals to interrupt system calls

Syntax
       siginterrupt(sig, flag)
       int sig, flag;

Description
       The  system call is used to change the system call restart behavior when a system call is interrupted by the specified signal.  If the flag
       is false (0), then system calls will be restarted if they are interrupted by the specified signal and no data  has  been  transferred  yet.
       System call restart is the default behavior on 4.2 BSD.

       If  the flag is true (1), then restarting of system calls is disabled.  If a system call is interrupted by the specified signal and no data
       has been transferred, the system call will return -1 with errno set to EINTR.  Interrupted system calls that have started transferring data
       will  return the amount of data actually transferred.  System call interrupt is the signal behavior found on 4.1 BSD and AT&T System V sys-
       tems.

       Note that the new signal handling semantics are not altered in any other way.  Most notably, signal handlers always remain installed  until
       explicitly  changed  by a subsequent call, and the signal mask operates as documented in Programs may switch between restartable and inter-
       ruptible system call operation as often as desired in the execution of a program.

       Issuing a call during the execution of a signal handler will cause the new action to take place on the next signal to be caught.

Environment
       This library routine uses an extension of the system call that is not available in ULTRIX 2.0 or earlier versions.  Hence it should not	be
       used if backward compatibility is needed.

Return Values
       A 0 value indicates that the call succeeded.  A -1 value indicates that an invalid signal number has been supplied.

See Also
       sigvec(2), sigblock(2), sigpause(2), sigsetmask(2)

4.3 Berkeley Distribution													   siginterrupt(3)
All times are GMT -4. The time now is 09:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy