unix IPC
i would like to know the method of usage of semaphores on shared memory segments the topic seems very difficult to understand mainly when difrent proceses communicate instantly and how do i avaoid deadlock situation (2 Replies)
Hi,
I am opening a file......then i am wrting some data into it......and i am reopening the file again but ......i get a error cannot open file.......
$::file= "\adder\testfile.txt"
open(TEST1,$::file);
some write operation
close(TEST1)
open(TEST1,$::file) 'I GET A ERROR CAN OPEN... (2 Replies)
hi
i m writin a program in which i keep track of all the child processes the program has generated and if a child process has an abnormal termination i need to do certain task related to that child process.
for handlin child process i used waitpid:
temp_cpid=waitpid(-1,&stat,WUNTRACED);
... (4 Replies)
Hi,
I am thinking about writing a log daemon for a multi-processed ksh application (yes - I know that high-level language would be a better option).
My question is as follows:
If many processes (many scripts) will try writing to a single log file:
print "message" > common.log
Will it work or... (2 Replies)
For a program I am designing, which involves handling the keyboard input Ctrl^c (SIGINT), it is taking ages for the program to actually recognise and perform the corresponding action whenever I run it and hit Ctrl^C at the CL. I have to do at least 3 Ctrl^Cs before the program will actually... (3 Replies)
i want to write a C chat program that communicates over IPC(inter process communication), that could be run using 2 seperate terminal windows within the same computer. so that wat u type in one terminal window , should appear on the other and vice versa...
could some one please help me with the... (2 Replies)
i wrote handler for sigsegv such that i can allocate memory for a variable to which
sigsegv generated for illlegal acces of memory.
my code is
#include <signal.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
char *j;
void segv_handler(int dummy)
{
j=(char *)malloc(10);
... (4 Replies)
I need help!Many Thanks!
Now,I try to manage the shared memory inter-process .
Inevitably,I have to deal with the synchronous.
I know the pthread_rwlock in posix,and I compile ,then run successfully in Red Hat Enterprise 4.
I have a doubt about whether the Posix supports the system such as... (1 Reply)
In solaris, orphan process is put to sleep mode and does not consume any CPU resources. In Linux, orphan process is kept in running state consuming all CPU and Ram resources. Is it the case? Is there a difference on how these operating systems will handle orphan processes?
The route cause of... (10 Replies)
Discussion started by: Belure Pooja B
10 Replies
LEARN ABOUT FREEBSD
snmp_hostres
SNMP_HOSTRES(3) BSD Library Functions Manual SNMP_HOSTRES(3)NAME
snmp_hostres -- host resources module for bsnmpd(8)LIBRARY
(begemotSnmpdModulePath."hostres" = /usr/lib/snmp_hostres.so)
DESCRIPTION
The snmp_hostres module implements the HOST-RESOURCES-MIB as standardized in RFC 2790.
RESTRICTIONS
Not all information in the MIB is meaningful in FreeBSD or is available. The following variables are not implemented or carry no informa-
tion:
hrFSType
There are several types of file systems for which no appropriate OID exists yet which are supported by FreeBSD. For smbfs, procfs
and devfs , hrFSOther is returned. In all other cases, hrFSUnknown.
hrFSBootable
It is questionable what bootable means here. Does it mean that the BIOS is available to start a boot on that file system or does it
mean that there is something bootable? In either case this information is not available so this variable returns True for the root
file system (which is not necessarily correct) and False for all others.
hrFSLastFullBackupDate, hrFSLastPartialBackupDate
This is not available and always returns an empty string. Theoretically, this could be retrieved from /etc/dumpdates, which would
hardly be correct given the different ways of doing backups.
hrDiskStorageTable
Floppy devices are currently not reported. Also the names of the disks are hard-coded in the module.
FILES
/usr/share/snmp/defs/hostres_tree.def
The description of the MIB tree implemented by snmp_hostres.
/usr/share/snmp/mibs/HOST-RESOURCES-TYPES.txt
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
/usr/share/snmp/mibs/BEGEMOT-HOSTRES-MIB.txt
This is the MIB that is implemented by this module.
SEE ALSO gensnmptree(1), snmpmod(3)AUTHORS
Victor Cruceru <soc-victor@FreeBSD.org>
BSD January 3, 2006 BSD