Also I changed all the corresponding parameters from unsigned char to const char to have consistency and avoid typecasting:
but the problem is still the same. Anyone more clues, please?
hello,
i have a problem with strlen. I have written this:
for(y=13,z=0; cInBuf!=' ';y++)
{
cBuf=cInBuf;
z++;
}
len = strlen(cBuf);
out=len/2;
fprintf(outfile,"F%i",out);
If strlen is e.g. 22, it write F22. I want to write F2F2.
How can i do this?... (5 Replies)
Hello,
Just a little problem with the ksh function : strlen
I want to use this function in this little ksh program :
while read line ; do
TOTO=$line
TOTONB=strlen($TOTO)
echo $TOTONB (3 Replies)
When run it, segment fault.
What is wrong?
#include <stdio.h>
#include <stdlib.h>
const int max =20;
//****************************************************
// Input Matrix
//****************************************************
void inMatrixAA(int *AA, int row, int col)... (9 Replies)
In a declaration, I have:
const char comment_begin = "<!--";
const char comment_end = "-->";
const int comment_begin_len = strlen(comment_begin);
const int comment_end_len = strlen(comment_end);
When I compile, I get the warnings:
emhttpc.c:64: warning: initializer element is not... (10 Replies)
Hi all
In the ltp-posix test,there is a case in open_posix_testsuite\conformance\interfaces\timer_gettime\speculative/6-1.c
I run the above code,it will has a segment fault, if I modify it to below,it works well
Anybody can tell me why? (1 Reply)
My OS (Debian) and gcc use the UTF-8 locale. This code says that the char size is 1 byte but the size of 'a' is really 4 bytes.
int main(void)
{
setlocale(LC_ALL, "en_US.UTF-8");
printf("Char size: %i\nSize of char 'a': %i\nSize of Euro sign '€': %i\nLength of Euro sign: %i\n",... (8 Replies)
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
I always get segment fault, why? can sb help me and modify it, I have spend on much time on
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <string.h>
#define MAX 10
pthread_t thread;
void *thread1()
{
int *a;
int i, n;
... (1 Reply)
Hi
I have struggling a week to fix a program , in the begining i got SIGBUS , but after many attempts still the program gets SIGSEGV segment fault , In bellow i post the seg fault log + source codes. would really appreciate if experts help me to fix this segment fault error. any advice is... (2 Replies)
I am trying to reverse complement DNA sequence (string) with a short c++ code using boost library. Code was compiled without any warning/error, but ran into Segmentation fault.
My guess is the function to return a vector, but not sure.
#include <iostream>
#include <fstream>
#include <string>... (14 Replies)
Discussion started by: yifangt
14 Replies
LEARN ABOUT OPENSOLARIS
sunw.sctelemetry
SUNW.SCTelemetry(5) Sun Cluster Miscellaneous SUNW.SCTelemetry(5)NAME
SUNW.SCTelemetry, SCTelemetry - resource type for collecting data on system resource usage
DESCRIPTION
SUNW.SCTelemetry is the resource type that enables you to collect data on the usage of system resources. SUNW.SCTelemetry stores system
resource usage data in a Java DB database for seven days. The resource of type SUNW.SCTelemetry has a dependency on the resource of type
SUNW.derby. For more information, see the SUNW.derby(5) man page.
The extension properties associated with the SUNW.SCTelemetry resource type are as follows:
Extended_accounting_cleanup(boolean)
Specifies whether the extended accounting log file is cleaned up, that is whether historical data is deleted. Possible values for
Extended_accounting_cleanup are TRUE and FALSE.
Category Optional
Default TRUE
Tunable Anytime
Monitor_retry_count(integer)
Controls fault-monitor restarts. The property indicates the number of times that the process monitor facility restarts the fault moni-
tor. The property corresponds to the -n option passed to the pmfadm(1M) command. The Resource Group Manager (RGM) counts the number of
restarts in a specified time window. See the Monitor_retry_interval property for more information. Note that Monitor_retry_count refers
to the restarts of the fault monitor itself, not to the resource of type SUNW.SCTelemetry.
Category Optional
Default 2
Tunable Anytime
Monitor_retry_interval(integer)
Indicates the time window in minutes during which the RGM counts fault-monitor failures. The property corresponds to the -t option
passed to the pmfadm(1M) command. If the number of times the fault monitor fails exceeds the value of the Monitor_retry_count prop-
erty, the process monitor facility does not restart the fault monitor.
Category Optional
Default 2 minutes
Tunable Anytime
Probe_timeout(integer)
Specifies the timeout value, in seconds, for the probe.
Category Optional
Default 30 seconds
Tunable Anytime
Sampling_interval(integer)
Specifies how often monitoring data is collected. The Telemetry_sampling_interval property must have a value of between 30 and 3600.
Category Mandatory
Default 60
Tunable Anytime
SEE ALSO pmfadm(1M), SUNW.derby(5)Sun Cluster 3.2 12 Jul 2005 SUNW.SCTelemetry(5)