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 (2 Replies)
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)
Hello i tryed add SunOS system to Spacewalk and see this error:
# cat /etc/release
Solaris 10 10/08 s10s_u6wos_07b SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
... (1 Reply)
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)
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)
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)
Does anyone know about the license of System V Release 4 & SunOS 4.1.4 source codes?
I have found them online in some archives but I am not sure if I am 'supposed' to download them (not sure if it is legal)
Can anyone tell me?
EDIT: A little bit wrong category. Please move it. (1 Reply)
Hi all, I'm trying to use bash to create a basic parser for some text, because basic grep/sed/awk have all my needs covered.
So, I'm creating the chain of grep/sed I need and trying the execute that on the data I gather.
The problem is, it's not working as it does when hardcoded.
e.g.
... (3 Replies)
Discussion started by: beomagi
3 Replies
LEARN ABOUT OPENSOLARIS
sigpause
sigblock(3UCB) SunOS/BSD Compatibility Library Functions sigblock(3UCB)NAME
sigblock, sigmask, sigpause, sigsetmask - block signals
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
#include <signal.h>
int sigblock(mask)
int mask;
int sigmask(signum)
int signum;
int sigpause(mask)
int mask;
int sigsetmask(mask)
int mask;
DESCRIPTION
sigblock() adds the signals specified in mask to the set of signals currently being blocked from delivery. Signals are blocked if the
appropriate bit in mask is a 1; the macro sigmask is provided to construct the mask for a given signum. sigblock() returns the previous
mask. The previous mask may be restored using sigsetmask().
sigpause() assigns mask to the set of masked signals and then waits for a signal to arrive; on return the set of masked signals is
restored. mask is usually 0 to indicate that no signals are now to be blocked. sigpause() always terminates by being interrupted, returning
-1 and setting errno to EINTR.
sigsetmask() sets the current signal mask (those signals that are blocked from delivery). Signals are blocked if the corresponding bit in
mask is a 1; the macro sigmask is provided to construct the mask for a given signum.
In normal usage, a signal is blocked using sigblock(). To begin a critical section, variables modified on the occurrence of the signal are
examined to determine that there is no work to be done, and the process pauses awaiting work by using sigpause() with the mask returned by
sigblock().
It is not possible to block SIGKILL, SIGSTOP, or SIGCONT, this restriction is silently imposed by the system.
RETURN VALUES
sigblock() and sigsetmask() return the previous set of masked signals. sigpause() returns -1 and sets errno to EINTR.
SEE ALSO cc(1B), kill(2), sigaction(2), signal(3UCB), sigvec(3UCB)NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system
libraries or in multi-thread applications is unsupported.
SunOS 5.11 30 Oct 2007 sigblock(3UCB)