07-07-2008
I've changed /etc/system and set semaphore identifiers to 30. Currently I'm waiting on agreement for an outage window for a reboot.
I'll post the results.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Can any one please explain me what is the difference between hard link and soft link in UNIX.
Thanks in advance
Raja Chokalingam. (2 Replies)
Discussion started by: RAJACHOKALINGAM
2 Replies
2. IP Networking
Hi Guys,
i have this lil challenge;
i am to implement an automated script that searches/scans a directory for files then picks and sends this files to a very remote server via an ftp link.
the challenge here is that the ftp link fails due to netwrk issues maybe;
i therefore need to develop... (5 Replies)
Discussion started by: sdcoms
5 Replies
3. UNIX for Advanced & Expert Users
can some one give me some link about process and job control commands (2 Replies)
Discussion started by: alokjyotibal
2 Replies
4. Programming
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)
Discussion started by: localp
2 Replies
5. Solaris
I was asked to look into a problem with a Sun Netra 440 in another department. On the server in question, the relevant 'uname -a' information is, "SunOS host1 5.9 Generic_118558-16 sun4u sparc SUNW,Netra-440". That information aside, while the other admin is logged into the ALOM, these errors are... (0 Replies)
Discussion started by: Borealis
0 Replies
6. Programming
Hi guys, I'm having some problem here, I'm studying pipes, and i want to create a shell in C and at this point a don't want to use semaphores, instead I want to use tricks. Straight to the doubt: I've a parent and a child process, and both of them has some code to execute, and the child process... (5 Replies)
Discussion started by: pharaoh
5 Replies
7. Programming
Hello All,
I've encountered a strange behaviour from g++ that doesn't make sense to me. Maybe you can shed some light on it:
I have a bunch of source files and want to compile them and link them with a static library liba.a located in /usr/local/lib64 into an executable
Approach 1 works... (0 Replies)
Discussion started by: magelord
0 Replies
8. UNIX for Dummies Questions & Answers
Hi everybody,
I read about treads realted to this issue but they did not resovle issue given below.
Please help me resolve issue given below
I have html file under /srv/www/htdocs/actual_folder
ls actual_folder/
test.html
and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies
9. Solaris
Hi All
I am facing an issue with our new solaris machine.
in /var/adm/messages
root@Prod-App1:/var/tmp#
root@Prod-App1:/var/tmp#
root@Prod-App1:/var/tmp# cat /var/adm//messages
Apr 20 03:10:01 Prod-App1 syslogd: line 25: WARNING: loghost could not be resolved
Apr 20 08:24:18 Prod-App1... (0 Replies)
Discussion started by: javeedkaleem
0 Replies
10. Solaris
Hi All
I am facing an issue with our new solaris machine.
in /var/adm/messages
Apr 22 16:43:05 Prod-App1 in.routed: interface net0 to 172.16.101.1 turned off
Apr 22 16:43:33 Prod-App1 mac: NOTICE: nxge0 link up, 1000 Mbps, full duplex
Apr 22 16:43:34 Prod-App1 mac: NOTICE: nxge0 link... (2 Replies)
Discussion started by: javeedkaleem
2 Replies
LEARN ABOUT HPUX
sem_getvalue
sem_getvalue(2) System Calls Manual sem_getvalue(2)
NAME
sem_getvalue - get the value of a POSIX semaphore
SYNOPSIS
DESCRIPTION
is used to read the value of the semaphore. The value of the semaphore specified by sem is read, at some unspecified time during the call,
and then stored into sval. If the semaphore value is <= 0, at that time, the semaphore is considered unavailable. If the semaphore value
is > 0, at that time, the semaphore is considered available.
If sval is positive, it is equal to the number of locks available on the semaphore, at the time the semaphore value was read. If sval is
negative, its absolute value is equal to the number of blocked threads waiting for the semaphore to become available, at the time the sema-
phore value was read.
If the specified semaphore referred to by sem is a named semaphore, then this semaphore must have been opened by the calling process with
and the process must have read permission on this semaphore.
To use this function, link in the realtime library by specifying on the compiler or linker command line.
EXAMPLES
The following call to will read the value of the semaphore sem and store it in sval.
RETURN VALUE
A successful call to will return 0. Otherwise, the call to will return -1 with errno set to the appropriate value of the error condition.
ERRORS
fails and does not perform the requested operation if any of the following conditions are encountered:
[EPERM] The calling process does not have the privileges necessary to read the semaphore.
[EINVAL] The argument sem does not refer to a valid semaphore.
SEE ALSO
sem_open(2), <semaphore.h>.
STANDARDS CONFORMANCE
sem_getvalue(2)