-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1. [#189] Changed openlog() so it call routines get_syslog_flags which fetches the appropriate syslog flags depending on whether /dev/log exists or not 2. [#59] YDB_MAX_TIME name changed to YDB_MAX_TIME_NSEC to reflect nano-second unit of measure. 3. [#59] Fix to sapi-return_subscr_nodes.c which would not have properly reflected INSUFFSUBS when appropriate.
- Loading branch information
Showing
13 changed files
with
79 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/**************************************************************** | ||
* * | ||
* Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. * | ||
* All rights reserved. * | ||
* * | ||
* This source code contains the intellectual property * | ||
* of its copyright holder(s), and is made available * | ||
* under a license. If you do not know the terms of * | ||
* the license, please stop and do not read further. * | ||
* * | ||
****************************************************************/ | ||
|
||
#include "mdef.h" | ||
|
||
#include "gtm_stat.h" | ||
#include "gtm_unistd.h" | ||
#include "gtm_syslog.h" | ||
|
||
#include "get_syslog_flags.h" | ||
|
||
#define LOGLOCATION "/dev/log" | ||
#define LOGFLAGSWDEVLOG (LOG_PID | LOG_CONS | LOG_NOWAIT) | ||
#define LOGFLAGSWOUTDEVLOG (LOG_PID | LOG_PERROR | LOG_NOWAIT) | ||
|
||
/* Routine to check for the existence of /dev/log and if it exists, use LOG_CONS, else use LOG_PERROR */ | ||
int get_syslog_flags(void) | ||
{ | ||
struct stat buf; | ||
int rc; | ||
|
||
rc = stat(LOGLOCATION, &buf); | ||
if (0 == rc) | ||
return LOGFLAGSWDEVLOG; | ||
return LOGFLAGSWOUTDEVLOG; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/**************************************************************** | ||
* * | ||
* Copyright (c) 2018 YottaDB LLC. and/or its subsidiaries. * | ||
* All rights reserved. * | ||
* * | ||
* This source code contains the intellectual property * | ||
* of its copyright holder(s), and is made available * | ||
* under a license. If you do not know the terms of * | ||
* the license, please stop and do not read further. * | ||
* * | ||
****************************************************************/ | ||
|
||
#ifndef _GET_SYSLOG_FLAGS_ | ||
#define _GET_SYSLOG_FLAGS_ | ||
|
||
int get_syslog_flags(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters