version 1.2, 2012/05/09 03:43:12
|
version 1.3, 2013/04/28 07:59:17
|
|
|
#include <unistd.h> | #include <unistd.h> |
|
#ifndef CVSTAG |
|
#define CVSTAG "undefined" |
|
#endif |
| |
long long set_history(DRMS_Link_t *histlink, char *cvsinfo) |
char *cvsinfo_set_history = "cvsinfo: $Header$"; |
|
|
|
long long set_history(DRMS_Link_t *histlink) |
{ | { |
int status=0; | int status=0; |
int len; | int len; |
Line 48 long long set_history(DRMS_Link_t *histl |
|
Line 53 long long set_history(DRMS_Link_t *histl |
|
drms_close_record(histrec, DRMS_FREE_RECORD); | drms_close_record(histrec, DRMS_FREE_RECORD); |
return -1; | return -1; |
} | } |
status = drms_setkey_string(histrec, "HEADER", cvsinfo); |
status = drms_setkey_string(histrec, "CVSTAG", CVSTAG); |
if (status != DRMS_SUCCESS) | if (status != DRMS_SUCCESS) |
{ | { |
fprintf(stderr,"ERROR: problem writing keyword HEADER in history dataseries, status = %d\n", status); |
fprintf(stderr,"ERROR: problem writing keyword CVSTAG in history dataseries, status = %d\n", status); |
drms_close_record(histrec, DRMS_FREE_RECORD); | drms_close_record(histrec, DRMS_FREE_RECORD); |
return -1; | return -1; |
} | } |