Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
582
Issues
582
List
Boards
Labels
Service Desk
Milestones
Merge Requests
110
Merge Requests
110
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
64b92523
Commit
64b92523
authored
Jul 04, 2001
by
Brian Wellington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check for getc_unlocked()
parent
37c961df
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
acconfig.h
acconfig.h
+4
-1
config.h.in
config.h.in
+7
-1
configure.in
configure.in
+4
-2
lib/isc/lex.c
lib/isc/lex.c
+2
-2
No files found.
acconfig.h
View file @
64b92523
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acconfig.h,v 1.3
3 2001/01/18 22:21:22
bwelling Exp $ */
/* $Id: acconfig.h,v 1.3
4 2001/07/04 00:34:40
bwelling Exp $ */
/***
*** This file is not to be included by any public header files, because
...
...
@@ -81,6 +81,9 @@
/* define if flockfile() is available */
#undef HAVE_FLOCKFILE
/* define if getc_unlocked() is available */
#undef HAVE_GETCUNLOCKED
/* define if rlim_t is defined via sys/types.h or sys/resource.h */
#undef HAVE_RLIM_T
...
...
config.h.in
View file @
64b92523
...
...
@@ -16,7 +16,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.h.in,v 1.4
2 2001/02/24 23:05:07
bwelling Exp $ */
/* $Id: config.h.in,v 1.4
3 2001/07/04 00:34:41
bwelling Exp $ */
/***
*** This file is not to be included by any public header files, because
...
...
@@ -92,6 +92,9 @@
/* define if flockfile() is available */
#undef HAVE_FLOCKFILE
/* define if getc_unlocked() is available */
#undef HAVE_GETCUNLOCKED
/* define if rlim_t is defined via sys/types.h or sys/resource.h */
#undef HAVE_RLIM_T
...
...
@@ -132,6 +135,9 @@ int sigwait(const unsigned int *set, int *sig);
/* define if pthread_attr_getstacksize() is available */
#undef HAVE_PTHREAD_ATTR_GETSTACKSIZE
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
...
...
configure.in
View file @
64b92523
...
...
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.26
5
$)
AC_REVISION($Revision: 1.26
6
$)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
...
...
@@ -650,9 +650,11 @@ AC_SUBST(ISC_THREAD_DIR)
#
# flockfile is usually provided by pthreads, but we may want to use it
# even if compiled with --disable-threads.
# even if compiled with --disable-threads. getc_unlocked might also not
# be defined.
#
AC_CHECK_FUNC(flockfile, AC_DEFINE(HAVE_FLOCKFILE),)
AC_CHECK_FUNC(getc_unlocked, AC_DEFINE(HAVE_GETCUNLOCKED),)
#
# Indicate what the final decision was regarding threads.
...
...
lib/isc/lex.c
View file @
64b92523
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: lex.c,v 1.6
3 2001/06/04 19:33:22 tale
Exp $ */
/* $Id: lex.c,v 1.6
4 2001/07/04 00:34:44 bwelling
Exp $ */
#include <config.h>
...
...
@@ -427,7 +427,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
if
(
source
->
is_file
)
{
stream
=
source
->
input
;
#if
def HAVE_FLOCKFILE
#if
defined(HAVE_FLOCKFILE) && defined(HAVE_GETCUNLOCKED)
c
=
getc_unlocked
(
stream
);
#else
c
=
getc
(
stream
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment