Unix and Linux Discussions Tagged with running |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
4,272 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
6,291 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,944 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,900 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,086 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
7,228 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,199 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,577 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
4,866 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,890 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
8,173 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,796 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,333 |
HP-UX |
|
|
|
12 |
5,644 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,058 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
3,708 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
1,567 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,992 |
Shell Programming and Scripting |
|
|
|
3 |
2,072 |
Shell Programming and Scripting |
|
|
|
1 |
2,075 |
Shell Programming and Scripting |
|
|
|
2 |
2,710 |
AIX |
|
|
|
5 |
4,642 |
Shell Programming and Scripting |
|
|
|
1 |
1,380 |
Shell Programming and Scripting |
|
|
|
2 |
1,813 |
Shell Programming and Scripting |
|
|
|
3 |
4,002 |
AIX |
|
|
|
4 |
3,055 |
Shell Programming and Scripting |
|
|
|
2 |
4,128 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
11,723 |
Shell Programming and Scripting |
|
|
|
2 |
8,836 |
Shell Programming and Scripting |
|
|
|
7 |
3,249 |
Shell Programming and Scripting |
|
|
|
0 |
3,840 |
Solaris BigAdmin RSS |
|
|
|
2 |
54,755 |
Shell Programming and Scripting |
|
|
|
0 |
4,780 |
Red Hat |
|
|
|
5 |
7,467 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,531 |
HP-UX |
|
|
|
1 |
5,536 |
Solaris |
|
|
|
2 |
3,962 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
8,372 |
Programming |
|
|
|
6 |
11,159 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,747 |
Red Hat |
volmgt_running(3VOLMGT) Volume Management Library Functions volmgt_running(3VOLMGT)
NAME
volmgt_running - return whether or not Volume Management is running
SYNOPSIS
cc [ flag ... ] file ... -lvolmgt [ library ... ]
#include <volmgt.h>
int volmgt_running(void);
DESCRIPTION
volmgt_running() tells whether or not Volume Management is running.
RETURN VALUES
A non-zero value is returned if Volume Management is running, else 0 is returned.
ERRORS
volmgt_running() will fail, returning 0, if a stat(2) or open(2) of /dev/volctl fails, or if any of the following is true:
ENXIO Volume Management is not running.
EINTR An interrupt signal was detected while checking to see if Volume Management was running.
EXAMPLES
Example 1: Using volmgt_running()
To see if Volume Management is running:
if (volmgt_running() != 0) {
(void) printf("Volume Management is running
");
} else {
(void) printf("Volume Management is NOT running
");
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
cc(1B), vold(1M), open(2), stat(2), volmgt_check(3VOLMGT), volmgt_inuse(3VOLMGT), attributes(5), volfs(7FS)
NOTES
Volume Management must be running for many of the Volume Management library routines to work.
SunOS 5.10 31 Dec 1996 volmgt_running(3VOLMGT)