Skip to content

Commit

Permalink
Merge 00a39ad into 7aaea06
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Apr 16, 2021
2 parents 7aaea06 + 00a39ad commit 70d11b7
Show file tree
Hide file tree
Showing 62 changed files with 2,252 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -495,6 +495,7 @@ AC_CONFIG_FILES( \
src/common/libterminus/Makefile \
src/common/libhostlist/Makefile \
src/common/librlist/Makefile \
src/common/libczmqcontainers/Makefile \
src/bindings/Makefile \
src/bindings/lua/Makefile \
src/bindings/python/Makefile \
Expand Down
1 change: 1 addition & 0 deletions src/broker/content-cache.c
Expand Up @@ -20,6 +20,7 @@
#include "src/common/libutil/blobref.h"
#include "src/common/libutil/iterators.h"
#include "src/common/libutil/log.h"
#include "src/common/libczmqcontainers/czmq_containers.h"

#include "attr.h"
#include "content-cache.h"
Expand Down
1 change: 1 addition & 0 deletions src/broker/runat.c
Expand Up @@ -28,6 +28,7 @@

#include "src/common/libutil/log.h"
#include "src/common/libutil/monotime.h"
#include "src/common/libczmqcontainers/czmq_containers.h"

#include "runat.h"

Expand Down
5 changes: 4 additions & 1 deletion src/cmd/Makefile.am
Expand Up @@ -90,11 +90,13 @@ fluxcmd_PROGRAMS = \

flux_start_LDADD = \
$(fluxcmd_ldadd) \
$(top_builddir)/src/common/libpmi/libpmi_server.la
$(top_builddir)/src/common/libpmi/libpmi_server.la \
$(top_builddir)/src/common/libczmqcontainers/libczmqcontainers.la

flux_job_LDADD = \
$(fluxcmd_ldadd) \
$(top_builddir)/src/shell/libmpir.la \
$(top_builddir)/src/common/libczmqcontainers/libczmqcontainers.la \
$(top_builddir)/src/common/libdebugged/libdebugged.la \
$(top_builddir)/src/common/libterminus/libterminus.la

Expand All @@ -108,6 +110,7 @@ flux_terminus_LDADD = \
flux_R_LDADD = \
$(fluxcmd_ldadd) \
$(top_builddir)/src/common/librlist/librlist.la \
$(top_builddir)/src/common/libczmqcontainers/libczmqcontainers.la \
$(top_builddir)/src/common/libhostlist/libhostlist.la \
$(top_builddir)/src/common/libidset/libidset.la \
$(top_builddir)/src/common/libutil/libutil.la \
Expand Down
1 change: 1 addition & 0 deletions src/cmd/flux-exec.c
Expand Up @@ -24,6 +24,7 @@
#include "src/common/libutil/monotime.h"
#include "src/common/libidset/idset.h"
#include "src/common/libutil/log.h"
#include "src/common/libczmqcontainers/czmq_containers.h"

static struct optparse_option cmdopts[] = {
{ .name = "rank", .key = 'r', .has_arg = 1, .arginfo = "IDSET",
Expand Down
4 changes: 3 additions & 1 deletion src/common/Makefile.am
Expand Up @@ -21,7 +21,8 @@ SUBDIRS = \
libterminus \
libcontent \
libhostlist \
librlist
librlist \
libczmqcontainers

AM_CFLAGS = $(WARNING_CFLAGS) $(CODE_COVERAGE_CFLAGS)
AM_LDFLAGS = $(CODE_COVERAGE_LIBS)
Expand All @@ -42,6 +43,7 @@ libflux_internal_la_LIBADD = \
$(builddir)/libioencode/libioencode.la \
$(builddir)/librouter/librouter.la \
$(builddir)/libhostlist/libhostlist.la \
$(builddir)/libczmqcontainers/libczmqcontainers.la \
$(JANSSON_LIBS) \
$(ZMQ_LIBS) \
$(LIBUUID_LIBS) \
Expand Down
22 changes: 22 additions & 0 deletions src/common/libczmqcontainers/Makefile.am
@@ -0,0 +1,22 @@
AM_CFLAGS = \
$(WARNING_CFLAGS) \
$(CODE_COVERAGE_CFLAGS)

AM_LDFLAGS = \
$(CODE_COVERAGE_LDFLAGS)

AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/src/include \
$(ZMQ_CFLAGS)

noinst_LTLIBRARIES = \
libczmqcontainers.la

libczmqcontainers_la_SOURCES = \
czmq_containers.h \
czmq_internal.h \
fzhashx.h \
fzhashx.c \
fzhash_primes.inc \
zhashx_map.h
24 changes: 24 additions & 0 deletions src/common/libczmqcontainers/czmq_containers.h
@@ -0,0 +1,24 @@
/************************************************************\
* Copyright 2021 Lawrence Livermore National Security, LLC
* (c.f. AUTHORS, NOTICE.LLNS, COPYING)
*
* This file is part of the Flux resource manager framework.
* For details, see https://github.com/flux-framework.
*
* SPDX-License-Identifier: LGPL-3.0
\************************************************************/

#ifndef _CZMQ_CONTAINERS_H
#define _CZMQ_CONTAINERS_H

#ifdef __cplusplus
extern "C" {
#endif

#include "fzhashx.h"

#ifdef __cplusplus
}
#endif

#endif
42 changes: 42 additions & 0 deletions src/common/libczmqcontainers/czmq_internal.h
@@ -0,0 +1,42 @@
/* =========================================================================
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of CZMQ, the high-level C binding for 0MQ:
http://czmq.zeromq.org.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
=========================================================================
*/

/* To avoid copying in an excess amount of code from czmq, the
* following have been manually cut and pasted in
*/

#ifndef __CZMQ_INTERNAL__
#define __CZMQ_INTERNAL__

#if HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdlib.h>

#ifdef NDEBUG
#undef NDEBUG
#include <assert.h>
#define NDEBUG
#else
#include <assert.h>
#endif

#define freen(x) do {free(x); x = NULL;} while(0)

#ifndef CZMQ_EXPORT
#define CZMQ_EXPORT
#endif

typedef struct _zhashx_t fzhashx_t;

#endif

0 comments on commit 70d11b7

Please sign in to comment.