// PARAM:  --enable exp.partition-arrays.enabled
#include <pthread.h>

pthread_t t_ids[10000];

void *t_fun(void *arg) {
  return NULL;
}

int main(void) {
  for (int i = 0; i < 10000; i++)
    pthread_create(&t_ids[i], NULL, t_fun, NULL);
  for (int i = 0; i < 10000; i++)
    pthread_join (t_ids[i], NULL);
  return 0;
}

// PARAM: --set ana.activated[+] thread --enable exp.partition-arrays.enabled
#include <pthread.h>

pthread_t t_ids[10000];

void *t_fun(void *arg) {
  return NULL;
}

int main(void) {
  for (int i = 0; i < 10000; i++)
    pthread_create(&t_ids[i], NULL, t_fun, NULL);
  for (int i = 0; i < 10000; i++)
    pthread_join (t_ids[i], NULL);
  return 0;
}

Fix missing thread analysis in 10/24

Fix missing thread analysis in 10/24


//===-- STLPostfixHeaderMap.h - hardcoded header map for STL ----*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H
#define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H

#include <HeaderMapCollector.h>

namespace clang {
namespace find_all_symbols {

const HeaderMapCollector::HeaderMap* getSTLPostfixHeaderMap();

} // namespace find_all_symbols
} // namespace clang

#endif // LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H

//===-- STLPostfixHeaderMap.h - hardcoded header map for STL ----*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H
#define LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H

#include "HeaderMapCollector.h"

namespace clang {
namespace find_all_symbols {

const HeaderMapCollector::HeaderMap* getSTLPostfixHeaderMap();

} // namespace find_all_symbols
} // namespace clang

#endif // LLVM_CLANG_TOOLS_EXTRA_FIND_ALL_SYMBOLS_TOOL_STL_POSTFIX_HEADER_MAP_H

Include local header with quotes instead of angle brackets.

This works by accident because we pass '-I.'

git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@270701 91177308-0d34-0410-b5e6-96231b3b80d8


#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H

//
// client versioning and copyright year
//

// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR       0
#define CLIENT_VERSION_MINOR       9
#define CLIENT_VERSION_REVISION    0
#define CLIENT_VERSION_BUILD       0

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE  true

// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X

#endif // CLIENTVERSION_H

#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H

//
// client versioning and copyright year
//

// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR       0
#define CLIENT_VERSION_MINOR       9
#define CLIENT_VERSION_REVISION    1
#define CLIENT_VERSION_BUILD       0

// Set to true for release, false for prerelease or test build
#define CLIENT_VERSION_IS_RELEASE  true

// Copyright year (2009-this)
// Todo: update this when changing our copyright comments in the source
#define COPYRIGHT_YEAR 2014

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X

#endif // CLIENTVERSION_H

Bump version for openssl security updates


#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H

//
// client versioning
//

// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR       2
#define CLIENT_VERSION_MINOR       2
#define CLIENT_VERSION_REVISION    0
#define CLIENT_VERSION_BUILD       9

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X

#endif // CLIENTVERSION_H

#ifndef CLIENTVERSION_H
#define CLIENTVERSION_H

//
// client versioning
//

// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR       2
#define CLIENT_VERSION_MINOR       2
#define CLIENT_VERSION_REVISION    0
#define CLIENT_VERSION_BUILD      10

// Converts the parameter X to a string after macro replacement on X has been performed.
// Don't merge these into one macro!
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X

#endif // CLIENTVERSION_H

Bump client version to 2.2.0.10

Bump client version to 2.2.0.10


/*
 * Copyright 2014 MongoDB, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MONGOC_IOVEC_H
#define MONGOC_IOVEC_H

#include <bson.h>

#ifndef _WIN32
# include <sys/uio.h>
#endif

BSON_BEGIN_DECLS

#ifdef _WIN32
typedef struct
{
   u_long  iov_len;
   char   *iov_base;
} mongoc_iovec_t;
#else
typedef struct iovec mongoc_iovec_t;
#endif

BSON_END_DECLS

#endif /* MONGOC_IOVEC_H */

/*
 * Copyright 2014 MongoDB, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef MONGOC_IOVEC_H
#define MONGOC_IOVEC_H

#include <bson.h>

#ifdef _WIN32
# include <stddef.h>
#else
# include <sys/uio.h>
#endif

BSON_BEGIN_DECLS

#ifdef _WIN32
typedef struct
{
   u_long  iov_len;
   char   *iov_base;
} mongoc_iovec_t;

BSON_STATIC_ASSERT(sizeof(mongoc_iovec_t) == sizeof(WSABUF));
BSON_STATIC_ASSERT(offsetof(mongoc_iovec_t, iov_base) == offsetof(WSABUF, buf));
BSON_STATIC_ASSERT(offsetof(mongoc_iovec_t, iov_len) == offsetof(WSABUF, len));

#else
typedef struct iovec mongoc_iovec_t;
#endif

BSON_END_DECLS

#endif /* MONGOC_IOVEC_H */

CDRIVER-756: Make sure our iovec abstraction is compatible with Windows WSABUF

We cast mongoc_iovec_t to LPWSABUF in our sendmsg() wrapper


//
// Created by Scott Stark on 6/12/15.
//

#ifndef NATIVESCANNER_BEACONMAPPER_H
#define NATIVESCANNER_BEACONMAPPER_H

#include <map>
#include <string>

using namespace std;

/**
 * Map a beacon id to the registered user by querying the application registration rest api
 */
class BeaconMapper {
private:
    map<int, string> beaconToUser;

public:
    /**
     * Query the current user registrations to update the beacon minorID to name mappings
     */
    void refresh();

    string lookupUser(int minorID);
};

#endif //NATIVESCANNER_BEACONMAPPER_H

//
// Created by Scott Stark on 6/12/15.
//

#ifndef NATIVESCANNER_BEACONMAPPER_H
#define NATIVESCANNER_BEACONMAPPER_H

#include <map>
#include <string>

using namespace std;

/**
 * Map a beacon id to the registered user by querying the application registration rest api
 *
 * Relies on:
 * git clone https://github.com/open-source-parsers/jsoncpp.git
 * cd jsoncpp/
 * mkdir build
 * cd build/
 * cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON ..
 * make
 * make install
 *
 * git clone https://github.com/mrtazz/restclient-cpp.git
 * apt-get install autoconf
 * apt-get install libtool
 * apt-get install libcurl4-openssl-dev
 * cd restclient-cpp/
 * ./autogen.sh
 * ./configure
 * make
 * make install
 */
class BeaconMapper {
private:
    map<int, string> beaconToUser;

public:
    /**
     * Query the current user registrations to update the beacon minorID to name mappings
     */
    void refresh();

    string lookupUser(int minorID);
};

#endif //NATIVESCANNER_BEACONMAPPER_H

Document full requirements for the beacon mapper


#ifndef VAST_TEST_UNIT_EVENT_FIXTURE_H
#define VAST_TEST_UNIT_EVENT_FIXTURE_H

#include <vector>
#include "vast/event.h"

struct event_fixture
{
  event_fixture();
  std::vector<vast::event> events;
};

#endif

Add missing event fixture file.

Add missing event fixture file.


//
//  RNSketchManager.m
//  RNSketch
//
//  Created by Jeremy Grancher on 28/04/2016.
//  Copyright © 2016 Jeremy Grancher. All rights reserved.
//

#import "RCTViewManager.h"
#import "RNSketch.h"

@interface RNSketchManager : RCTViewManager

@property (strong) RNSketch *sketchView;

@end;

//
//  RNSketchManager.m
//  RNSketch
//
//  Created by Jeremy Grancher on 28/04/2016.
//  Copyright © 2016 Jeremy Grancher. All rights reserved.
//

#if __has_include(<React/RCTViewManager.h>)
// React Native >= 0.40
#import <React/RCTViewManager.h>
#else
// React Native <= 0.39
#import "RCTViewManager.h"
#endif
#import "RNSketch.h"

@interface RNSketchManager : RCTViewManager

@property (strong) RNSketch *sketchView;

@end;

Support RN 0.40 headers while retaining backwards compatibility.

Use #if to conditionally import React headers.