Dear all,
If I login to a Unix system (general user account), will the unix system generate a history file?
If positve, will it stored the IP adress also?
Thanks and Regards
Penny Li
;) (2 Replies)
Hello all,
I'm ufs file system, how can u use the same disk in another machine with the data in tact? to make it clear, I've an ufs FS in a mount point /file1 ( 8GB). now they decide to reintall the OS. After the reinstall, how can i get the same data as it is? will mounting the disk as /file1... (3 Replies)
Hello all !
Could someone throw some light on whether there's a limit to the number of characters contained in the command string that is passed to the system() call in C.
Is it OS dependent? If yes, what are the limits for each?
Thanks. (4 Replies)
Hello,
I have few questions about file system in Unix and Linux.
1. What's the difference between Unix and Linux in their file system? Are they the same?
2. Is in Unix directory for administrator "/root" - like in Linux - Ubuntu or not?
3.Where is the users directory in Unix? Is it... (2 Replies)
in man system it talks about SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
Does this signal stuff also happen in popen command?
(even though man popen says nothing about signals)
also if I am not using wait(&status) and I am using waitpid(pid, NULL, 0)
how would... (1 Reply)
Hi
I have created a perl script & running it using Linux machine. I want my script to die when system command is unsuccessful but script is dying even when system command gets executed successfully. :wall:
I am using the command below :-
system($cmd) || die "FAILED $!";
print "Hello";
... (2 Replies)
I'm currently studying for my exam, and is practicing with sample exam questions.
However there is a question asking "Name THREE UNIX Directory system calls" and the answer given is "opendir, closedir and readdir", however the next question ask "Why is a write directory system call not included... (1 Reply)
Hi,
The file system unix use a multilevel indexes access to disk, 12 direct blocks, 1 single indirect block, 1 double indirect block, 1 triple indirect block:
Assuming a:
block = 512 bytes,
pointer = 4 byte,
and there is a file of 200 blocks,
how many disk access is needed to read the block... (1 Reply)
Hi,
I am on Solaris 10 server which is running Veritas. It's E420 server with two drives. I don't know much about Veritas. The other guy who works on this, on vacation this week. :-) Any way, looks like I have hard drive issue on the server.
When I do iostat -E. I see this.
sd0... (4 Replies)
Discussion started by: samnyc
4 Replies
LEARN ABOUT NETBSD
sigblock
SIGBLOCK(3) BSD Library Functions Manual SIGBLOCK(3)NAME
sigblock -- block signals
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigblock(int mask);
int
sigmask(signum);
DESCRIPTION
This interface is made obsolete by: sigprocmask(2).
sigblock() adds the signals specified in mask to the set of signals currently being blocked from delivery. Signals are blocked if the corre-
sponding bit in mask is a 1; the macro sigmask() is provided to construct the mask for a given signum.
It is not possible to block SIGKILL or SIGSTOP; this restriction is silently imposed by the system.
RETURN VALUES
The previous set of masked signals is returned.
EXAMPLES
The following example using sigblock():
int omask;
omask = sigblock(sigmask(SIGINT) | sigmask(SIGHUP));
Becomes:
sigset_t set, oset;
sigemptyset(&set);
sigaddset(&set, SIGINT);
sigaddset(&set, SIGHUP);
sigprocmask(SIG_BLOCK, &set, &oset);
Another use of sigblock() is to get the current set of masked signals without changing what is actually blocked. Instead of:
int set;
set = sigblock(0);
Use the following:
sigset_t set;
sigprocmask(SIG_BLOCK, NULL, &set);
SEE ALSO kill(2), sigaction(2), sigprocmask(2), sigsetmask(3), sigsetops(3)HISTORY
The sigblock() function call appeared in 4.2BSD and has been deprecated.
BSD August 10, 2002 BSD