repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
rockenbf/ze_oss
imp_bridge_opencv/include/imp/bridge/opencv/cu_cv_bridge.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_trajectory_analysis/src/match_stamps_node.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_geometry/include/ze/geometry/clam.hpp
<filename>ze_geometry/include/ze/geometry/clam.hpp // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source...
rockenbf/ze_oss
ze_common/test/test_buffer.cpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
imp_cu_core/test/min_max_test.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_vi_simulation/include/ze/vi_simulation/camera_simulator.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_common/test/test_manifold.cpp
<gh_stars>10-100 #include <ze/common/manifold.hpp> #include <ze/common/numerical_derivative.hpp> #include <ze/common/test_entrypoint.hpp> using namespace ze; // ----------------------------------------------------------------------------- // Test manifold concepts. template<typename T> void testManifoldInvariants(con...
rockenbf/ze_oss
imp_bridge_af/src/orb_detector_af.cpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
imp_core/test/test_image.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_vi_simulation/include/ze/vi_simulation/imu_simulator.hpp
<reponame>rockenbf/ze_oss<filename>ze_vi_simulation/include/ze/vi_simulation/imu_simulator.hpp // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions...
rockenbf/ze_oss
ze_data_provider/include/ze/data_provider/data_provider_rostopic.hpp
<gh_stars>10-100 // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyri...
rockenbf/ze_oss
imp_core/include/imp/core/image_raw.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_imu/src/imu_yaml_serialization.cpp
<gh_stars>10-100 // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyri...
rockenbf/ze_oss
imp_cu_core/test/image_gpu_test.cpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
imp_cu_imgproc/include/imp/cu_imgproc/str_tex_decomposer.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_data_provider/test/test_data_provider.cpp
<reponame>rockenbf/ze_oss<filename>ze_data_provider/test/test_data_provider.cpp // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // ...
rockenbf/ze_oss
ze_matplotlib/src/matplotlibcpp.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_trajectory_analysis/include/ze/trajectory_analysis/ts_match.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_common/test/test_random.cpp
<filename>ze_common/test/test_random.cpp<gh_stars>10-100 // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of ...
rockenbf/ze_oss
imp_bridge_af/include/imp/bridge/af/orb_detector_af.hpp
<gh_stars>10-100 // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyri...
rockenbf/ze_oss
ze_geometry/include/ze/geometry/robust_cost.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
imp_cu_correspondence/include/imp/cu_correspondence/variational_epipolar_stereo.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_common/include/ze/common/path_utils.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_imu/include/ze/imu/imu_intrinsic_model.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
imp_cu_correspondence/src/stereo_ctf_warping.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
imp_tools_cmd/natural_edges_test.cpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
imp_cu_imgproc/include/imp/cu_imgproc/image_pyramid.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
imp_bridge_pangolin/include/imp/bridge/pangolin/imread.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_geometry/include/ze/geometry/ransac_relative_pose.hpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
ze_ros/src/rosbag_image_query.cpp
// RPG-BSD License, <NAME> // Heavily modified by ZE // Copyright (C) ETH Zurich, <NAME>, Zurich Eye - All Rights Reserved #include <ze/ros/rosbag_image_query.hpp> #include <glog/logging.h> #include <rosbag/view.h> #include <ze/common/file_utils.hpp> #include <ze/common/time_conversions.hpp> namespace ze { RosbagIm...
rockenbf/ze_oss
ze_data_provider/src/camera_imu_synchronizer_unsync.cpp
<filename>ze_data_provider/src/camera_imu_synchronizer_unsync.cpp<gh_stars>10-100 // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // ...
rockenbf/ze_oss
ze_geometry/test/test_pose_optimizer.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_cameras/include/ze/cameras/camera_impl.hpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
ze_data_provider/include/ze/data_provider/camera_imu_synchronizer_base.hpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_imu/src/imu_model.cpp
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
rockenbf/ze_oss
ze_common/include/ze/common/logging.hpp
<reponame>rockenbf/ze_oss // Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the abo...
rockenbf/ze_oss
ze_common/include/ze/common/test_entrypoint.hpp
// Copyright (c) 2015, Autonomous Systems Lab, ETH Zurich // Copyright (C) 2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of sour...
fixstars/AlgebraicBlockMulticolorOrdering
Abmc/SymGS.hpp
#ifndef SYMGS_HPP_INCLUDED #define SYMGS_HPP_INCLUDED #include <iostream> #include "common.hpp" static void JacobiMain(Vector& x, const Matrix& A, const Vector& b, const Vector& x_old, const std::size_t i) { auto x_i = b(i); const auto offset = A.index1_data()[i]; const auto count = A.index1_data()[i ...
fixstars/AlgebraicBlockMulticolorOrdering
Abmc/main.cpp
#include "Abmc.hpp" #include "SymGS.hpp" int main() { Matrix A(N, N); for(auto i = decltype(n)(0); i < n; i++) { for(auto j = decltype(n)(0); j < n; j++) { const auto p = i*n + j; for(auto ii = ((i == 0) ? 0 : (i - 1)); ii <= ((i == n-1) ? (n - 1) : (i + 1)); ii++) { for(auto jj =...
fixstars/AlgebraicBlockMulticolorOrdering
Abmc/common.hpp
<filename>Abmc/common.hpp<gh_stars>1-10 #ifndef COMMON_HPP_INCLUDED #define COMMON_HPP_INCLUDED #include <boost/numeric/ublas/matrix_sparse.hpp> #include <boost/numeric/ublas/vector.hpp> static constexpr std::size_t n = 8; static constexpr std::size_t N = n*n; using Matrix = boost::numeric::ublas::compresse...
fixstars/AlgebraicBlockMulticolorOrdering
Abmc/Abmc.hpp
#ifndef ABMC_HPP_INCLUDED #define ABMC_HPP_INCLUDED #include <iostream> #include <algorithm> #include <queue> #include <set> #include "boost/format.hpp" #include "common.hpp" #include "SymGS.hpp" static constexpr std::size_t MAX_COLOR_COUNT = 27; static void OutputResult(const std::string name, const M...
StefanKDS/Arduino-Terminal
FileTransfer.cpp
<gh_stars>0 #include "FileTransfer.h" #include "xmodem.h" #include "SD.h" CFileTransfer::CFileTransfer() { } bool CFileTransfer::Start(MCUFRIEND_kbv* thetftptr, TouchScreen* thetsptr, HardwareSerial* theserptr) { if( thetftptr == NULL || thetsptr == NULL || theserptr == NULL ) return false; m_se...
DDGRCF/YOLOX_OBB
demo/OBB/DOTA2_0/src/yolox_obb.cpp
<filename>demo/OBB/DOTA2_0/src/yolox_obb.cpp #include "yolox_obb.h" #include <fstream> #include <iostream> #include <sstream> #include <numeric> #include <chrono> #include <vector> #include <dirent.h> #include <exception> #include <opencv2/opencv.hpp> // #include <xtensor/xarray.hpp> const char * input_blob_name = "in...
DDGRCF/YOLOX_OBB
yolox/ops/onnxruntime/register_onnxruntime/cpu/register_onnxruntime.cpp
#include "register_onnxruntime.h" #include "rotated_nms.h" #include "ort_utils.h" const char *c_MyOpDomain = "yolox"; RotatedNmsOp c_RotatedNmsOp; OrtStatus *ORT_API_CALL RegisterCustomOps(OrtSessionOptions *options, const OrtApiBase *api) { OrtCustomOpDomain *domain = null...
DDGRCF/YOLOX_OBB
yolox/ops/onnxruntime/rotated_nms/cpu/rotated_nms.cpp
<filename>yolox/ops/onnxruntime/rotated_nms/cpu/rotated_nms.cpp<gh_stars>10-100 #include <algorithm> #include <cmath> #include <iostream> #include <iterator> #include <numeric> // std::iota #include <vector> #include "ort_utils.h" #include "rotated_nms.h" #include "rotated_utils.hpp" RotatedNmsKernel::RotatedNmsKern...
ThirteenAG/III.VC.SA.SaveLoader
source/GTASNPTestApp.cpp
<filename>source/GTASNPTestApp.cpp #include "stdafx.h" int main() { std::string save("http://gtasnp.com/download/file/ZAzP7H?slot=1"); auto r = cpr::Get(cpr::Url{ save }); if (r.status_code == 200) { std::cout << r.status_code << std::endl; std::fstream ifs; ifs.open(".\\1.bin", std::fstream::binary | std...
ThirteenAG/III.VC.SA.SaveLoader
source/dllmain.cpp
<gh_stars>10-100 #include "stdafx.h" bool bDelay; auto& gvm = injector::address_manager::singleton(); int32_t nSaveNum; bool bSkipIntro, bSkipOutro, bDisableLoadingScreens; bool bUploadSaves, bDownloadSaves, bCopyUrlToClipboard; char szCustomUserFilesDirectory[MAX_PATH]; char* pUserDirPath; uint32_t bCurrentSaveSlot...
timruffles/io.js
deps/v8/src/snapshot-external.cc
// Copyright 2006-2008 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Used for building with external snapshots. #include "src/snapshot.h" #include "src/serialize.h" #include "src/snapshot-source-sink.h" #include...
timruffles/io.js
deps/v8/src/runtime/runtime.cc
// Copyright 2012 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/v8.h" #include "src/runtime/runtime.h" #include "src/runtime/runtime-utils.h" namespace v8 { namespace internal { // Header of runtime ...
timruffles/io.js
deps/v8/src/compiler/js-intrinsic-builder.cc
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/compiler/access-builder.h" #include "src/compiler/common-operator.h" #include "src/compiler/diamond.h" #include "src/compiler/generic-node...
timruffles/io.js
deps/v8/test/cctest/compiler/test-node-algorithm.cc
<reponame>timruffles/io.js<gh_stars>10-100 // Copyright 2013 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <vector> #include "src/v8.h" #include "graph-tester.h" #include "src/compiler/common-operator.h" #...
timruffles/io.js
deps/v8/test/cctest/compiler/graph-builder-tester.cc
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "test/cctest/compiler/graph-builder-tester.h" #include "src/compiler/linkage.h" #include "src/compiler/pipeline.h" namespace v8 { namespace i...
timruffles/io.js
deps/v8/src/snapshot-empty.cc
// Copyright 2006-2008 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Used for building without snapshots. #include "src/v8.h" #include "src/snapshot.h" namespace v8 { namespace internal { const byte Snapshot::...
timruffles/io.js
deps/v8/src/runtime/runtime-generator.cc
// Copyright 2014 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/v8.h" #include "src/arguments.h" #include "src/frames-inl.h" #include "src/runtime/runtime-utils.h" namespace v8 { namespace internal { ...
timruffles/io.js
deps/v8/src/snapshot-common.cc
<gh_stars>10-100 // Copyright 2006-2008 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // The common functionality when building with or without snapshots. #include "src/v8.h" #include "src/api.h" #include "src/base...
tembleking/falco
userspace/falco/logger.cpp
/* Copyright (C) 2016-2018 Draios Inc dba Sysdig. This file is part of falco. 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 app...
sfalexrog/tensorflow
tensorflow/compiler/xla/service/mlir_gpu/xla_gpu_opt_main.cc
<gh_stars>0 /* Copyright 2020 Google Inc. All Rights Reserved. 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 a...
sfalexrog/tensorflow
tensorflow/lite/tools/benchmark/default_execution_provider.cc
<reponame>sfalexrog/tensorflow /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. 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 ...
gl00my/haiku
src/add-ons/kernel/file_systems/packagefs/package/PackageDirectory.cpp
/* * Copyright 2009, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "PackageDirectory.h" #include "Package.h" PackageDirectory::PackageDirectory(Package* package, mode_t mode) : PackageNode(package, mode) { } PackageDirectory::~PackageDirectory() { while (PackageNode* child =...
gl00my/haiku
src/add-ons/kernel/network/stack/interfaces.cpp
<reponame>gl00my/haiku /* * Copyright 2006-2011, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "interfaces.h" #include <net/if_dl.h> #include <new> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/sockio.h>...
gl00my/haiku
src/apps/pulse/NormalPulseView.cpp
//***************************************************************************** // // File: NormalPulseView.cpp // // Written by: <NAME> // // Copyright 1999, Be Incorporated // //***************************************************************************** #include "NormalPulseView.h" #include "Common.h" #include "...
gl00my/haiku
src/apps/mandelbrot/Mandelbrot.cpp
/* * Copyright 2016, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT license. * * Authors: * <NAME> <waddlesplash> * kerwizzy */ #include <AboutWindow.h> #include <Application.h> #include <Bitmap.h> #include <Catalog.h> #include <MenuBar.h> #include <LayoutBuilder.h> #include <View....
gl00my/haiku
src/kits/interface/MenuItem.cpp
/* * Copyright 2001-2015 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> * <NAME>, <EMAIL> * <NAME>, <EMAIL> * <NAME> * <NAME>, <EMAIL> */ #include <ctype.h> #include <stdlib.h> #include <string.h> #include <Bitmap.h> #include <ControlL...
gl00my/haiku
src/add-ons/kernel/file_systems/ramfs/IndexDirectory.cpp
<filename>src/add-ons/kernel/file_systems/ramfs/IndexDirectory.cpp // IndexDirectory.cpp #include <TypeConstants.h> #include "AttributeIndexImpl.h" #include "DebugSupport.h" #include "IndexDirectory.h" #include "LastModifiedIndex.h" #include "NameIndex.h" #include "SizeIndex.h" // constructor IndexDirectory::IndexDi...
gl00my/haiku
src/add-ons/kernel/file_systems/ramfs/Node.cpp
// Node.cpp #include "AllocationInfo.h" #include "DebugSupport.h" #include "EntryIterator.h" #include "LastModifiedIndex.h" #include "Node.h" #include "Volume.h" // is_user_in_group inline static bool is_user_in_group(gid_t gid) { // Either I miss something, or we don't have getgroups() in the kernel. :-( /* gid_t g...
gl00my/haiku
src/add-ons/kernel/bus_managers/virtio/VirtioQueue.cpp
<filename>src/add-ons/kernel/bus_managers/virtio/VirtioQueue.cpp /* * Copyright 2013, 2018, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "VirtioPrivate.h" static inline uint32 round_to_pagesize(uint32 size) { return (size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1); } area_id all...
gl00my/haiku
src/apps/terminal/TerminalBuffer.cpp
<filename>src/apps/terminal/TerminalBuffer.cpp /* * Copyright 2013, Haiku, Inc. All rights reserved. * Copyright 2008, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> * <NAME>, <EMAIL> */ #include "TerminalBuffer.h" #include <algorithm> #include <Message.h>...
gl00my/haiku
src/add-ons/kernel/drivers/graphics/radeon_hd/device.cpp
/* * Copyright 2006-2009, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "driver.h" #include "device.h" #include "radeon_hd.h" #include "utility.h" #include <OS.h> #include <KernelExport.h> #include <Drivers.h> #include <PCI.h> #in...
gl00my/haiku
src/preferences/media/MediaWindow.cpp
<gh_stars>1-10 /* * Copyright 2003-2015, Haiku, Inc. * Distributed under the terms of the MIT license. * * Authors: * Sikosis, <NAME> * yourpalal, <NAME> */ #include "MediaWindow.h" #include <stdio.h> #include <Application.h> #include <Autolock.h> #include <Button.h> #include <CardLayout.h> #include <Catal...
gl00my/haiku
src/add-ons/kernel/file_systems/ext2/Journal.cpp
/* * Copyright 2010, Haiku Inc. All rights reserved. * Copyright 2001-2010, <NAME>, <EMAIL>. * This file may be used under the terms of the MIT License. * * Authors: * <NAME> */ #include "Journal.h" #include <new> #include <string.h> #include <unistd.h> #include <fs_cache.h> #include "CachedBlock.h" #inclu...
gl00my/haiku
src/add-ons/kernel/bus_managers/fdt/fdt_serial.cpp
<reponame>gl00my/haiku /* * Copyright 2012, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> * <NAME>, <EMAIL> */ #include "fdt_serial.h" #include <KernelExport.h> #include <ByteOrder.h> #include <ctype.h> #include <stdio.h> #include <sys/cdefs.h> #include <a...
gl00my/haiku
src/add-ons/kernel/bus_managers/mmc/mmc_bus.cpp
/* * Copyright 2018 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "mmc_bus.h" MMCBus::MMCBus(device_node* node) : fNode(node), fController(NULL), fCookie(NULL), fStatus(B_OK), fDriverCookie(NULL) { CALLED(); device_node* pa...
gl00my/haiku
src/apps/webpositive/URLInputGroup.cpp
<reponame>gl00my/haiku /* * Copyright 2010 <NAME> <<EMAIL>> * All rights reserved. Distributed under the terms of the MIT License. */ #include "URLInputGroup.h" #include <Bitmap.h> #include <Button.h> #include <Catalog.h> #include <ControlLook.h> #include <Clipboard.h> #include <GroupLayout.h> #include <GroupLayou...
gl00my/haiku
src/add-ons/kernel/busses/usb/ehci.cpp
/* * Copyright 2006-2011, Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <driver_settings.h> #include <module.h> #include <PCI.h> #include <PCI_x86.h> #include <USB3.h> #include <KernelExport.h> #include "ehci....
gl00my/haiku
src/add-ons/kernel/bus_managers/virtio/VirtioBalloonDevice.cpp
<reponame>gl00my/haiku<gh_stars>1-10 /* * Copyright 2018, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "VirtioBalloonPrivate.h" #include <new> #include <stdlib.h> #include <string.h> #include <util/AutoLock.h> #include "virtio_balloon.h" const char* get_feature_name(uint32 fe...
gl00my/haiku
src/libs/compat/freebsd11_network/libkern.cpp
<reponame>gl00my/haiku<gh_stars>0 /* * Copyright 2009, <NAME>, <EMAIL>. All rights reserved. * Copyright 2018, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. */ extern "C" { #include <compat/sys/libkern.h> } #include <util/Random.h> u_int read_random(void* buf, u_int len) { ...
gl00my/haiku
src/system/runtime_loader/elf_load_image.cpp
<reponame>gl00my/haiku /* * Copyright 2008-2009, <NAME>, <EMAIL>. * Copyright 2003-2012, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. * * Copyright 2002, <NAME>. All rights reserved. * Copyright 2001, <NAME>. All rights reserved. * Distributed under the terms of the NewOS License. */ #inc...
gl00my/haiku
src/add-ons/kernel/file_systems/ext2/kernel_interface.cpp
<gh_stars>1-10 /* * Copyright 2010, <NAME>, <EMAIL>. * Copyright 2008, <NAME>, <EMAIL>. * This file may be used under the terms of the MIT License. */ #include <dirent.h> #include <util/kernel_cpp.h> #include <string.h> #include <AutoDeleter.h> #include <fs_cache.h> #include <fs_info.h> #include <io_requests.h> ...
gl00my/haiku
src/system/kernel/vm/vm.cpp
<reponame>gl00my/haiku /* * Copyright 2009-2011, <NAME>, <EMAIL>. * Copyright 2002-2010, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. * * Copyright 2001-2002, <NAME>. All rights reserved. * Distributed under the terms of the NewOS License. */ #include <vm/vm.h> #include <ctype.h> #includ...
gl00my/haiku
src/kits/package/AddRepositoryRequest.cpp
/* * Copyright 2011-2015, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> <<EMAIL>> */ #include <package/AddRepositoryRequest.h> #include <Directory.h> #include <JobQueue.h> #include <Path.h> #include <package/ActivateRepositoryConfigJob.h> #include <p...
gl00my/haiku
src/add-ons/disk_systems/bfs/BFSAddOn.cpp
/* * Copyright 2007, <NAME>, <EMAIL>. * Copyright 2008-2012, <NAME>, <EMAIL>. * * Distributed under the terms of the MIT License. */ #include "BFSAddOn.h" #include "InitializeParameterEditor.h" #include <new> #include <Directory.h> #include <List.h> #include <Path.h> #include <Volume.h> #include <DiskDeviceTy...
gl00my/haiku
src/add-ons/kernel/file_systems/ramfs/Query.cpp
<reponame>gl00my/haiku /* Query - query parsing and evaluation * * The pattern matching is roughly based on code originally written * by <NAME>, and on code written by <NAME>, though * it shares no code. * * Copyright 2001-2006, <NAME>, <EMAIL>. * This file may be used under the terms of the MIT License. */ //...
gl00my/haiku
src/servers/bluetooth/DeskbarReplicant.cpp
/* * Copyright 2009, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "DeskbarReplicant.h" #include <Alert.h> #include <Application.h> #include <Bitmap.h> #include <Deskbar.h> #include <IconUtils.h> #include <MenuItem.h> #include <Me...
gl00my/haiku
src/system/libroot/posix/string/arch/x86_64/arch_string.cpp
<reponame>gl00my/haiku<filename>src/system/libroot/posix/string/arch/x86_64/arch_string.cpp<gh_stars>1-10 /* * Copyright 2014, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <array> #include <cstddef> #include <cstdint> #include <x86intrin.h> namespace { // __m128i resolves to...
gl00my/haiku
src/system/kernel/arch/x86/64/descriptors.cpp
<filename>src/system/kernel/arch/x86/64/descriptors.cpp /* * Copyright 2014, <NAME>, <EMAIL>. * Copyright 2012, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <arch/x86/descriptors.h> #include <boot/kernel_args.h> #include <cpu.h> #include <tls.h> #include <vm/vm.h> #include <vm/v...
gl00my/haiku
src/add-ons/kernel/bus_managers/acpi/EmbeddedController.cpp
/* * Copyright 2013, <NAME>, <EMAIL>. * Copyright (c) 2009 <NAME> * Copyright (c) 2003-2007 <NAME> * Copyright (c) 2000 <NAME> * Copyright (c) 2000 BSDi * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
gl00my/haiku
src/add-ons/kernel/file_systems/ramfs/DataContainer.cpp
// DataContainer.cpp #include "AllocationInfo.h" #include "Attribute.h" // for debugging only #include "Block.h" #include "DataContainer.h" #include "DebugSupport.h" #include "Misc.h" #include "Node.h" // for debugging only #include "Volume.h" // constructor DataContainer::DataContainer(Volume *volume) : fVolume(vo...
gl00my/haiku
src/add-ons/kernel/busses/mmc/sdhci_pci.cpp
/* * Copyright 2018 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include <new> #include <stdio.h> #include <string.h> #include <bus/PCI.h> #include <PCI_x86.h> #include <KernelExport.h> #include "sdhci_pci.h" #define TRACE_SDHCI #ifdef...
gl00my/haiku
src/bin/shutdown.cpp
/* * Copyright 2002-2010, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME> (<EMAIL>) */ /*! Shuts down the system, either halting or rebooting. */ #include <syscalls.h> #include <OS.h> #include <Roster.h> #include <RosterPrivate.h> #include <signal.h> #include <stdio.h> #inclu...
gl00my/haiku
src/apps/haikudepot/server/AbstractSingleFileServerProcess.cpp
/* * Copyright 2017-2018, <NAME> <<EMAIL>>. * All rights reserved. Distributed under the terms of the MIT License. */ #include "AbstractSingleFileServerProcess.h" #include "HaikuDepotConstants.h" #include "Logger.h" #include "ServerSettings.h" #include "StorageUtils.h" AbstractSingleFileServerProcess::AbstractSin...
gl00my/haiku
src/servers/media/DefaultManager.cpp
/* * Copyright 2002, 2003 <NAME>, <NAME>. All rights reserved. * Distributed under the terms of the MIT License. */ #include "DefaultManager.h" #include <Application.h> #include <Directory.h> #include <File.h> #include <FindDirectory.h> #include <MediaNode.h> #include <OS.h> #include <Path.h> #include <TimeSource...
gl00my/haiku
src/add-ons/kernel/busses/virtio/virtio_pci.cpp
<gh_stars>1-10 /* * Copyright 2013, 2018, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <new> #include <stdio.h> #include <string.h> #include <bus/PCI.h> #include <PCI_x86.h> #include <virtio.h> #include "virtio_pci.h" //#define TRACE_VIRTIO #ifdef TRACE_VIRTIO # define TRACE(x...
gl00my/haiku
src/add-ons/kernel/file_systems/btrfs/ExtentAllocator.cpp
<filename>src/add-ons/kernel/file_systems/btrfs/ExtentAllocator.cpp<gh_stars>1-10 /* * Copyright 2017, <NAME> <NAME>, <EMAIL>. * This file may be used under the terms of the MIT License. */ #include "ExtentAllocator.h" #include "Chunk.h" CachedExtent* CachedExtent::Create(uint64 offset, uint64 length, uint64 fla...
gl00my/haiku
src/add-ons/kernel/bus_managers/ps2/ps2_dev.cpp
<reponame>gl00my/haiku /* * Copyright 2005-2014 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors (in chronological order): * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) */ /*! PS/2 bus manager */ #include "ps2_dev.h" #include "ps2_service.h" #include "ps2_alps.h" #incl...
gl00my/haiku
src/add-ons/kernel/drivers/disk/scsi/scsi_disk/scsi_disk.cpp
/* * Copyright 2008-2013, <NAME>, <EMAIL>. * Copyright 2002/03, <NAME>. All rights reserved. * Distributed under the terms of the MIT License. */ /*! Peripheral driver to handle any kind of SCSI disks, i.e. hard disk and floopy disks (ZIP etc.) Much work is done by scsi_periph and block_io. You'll find das_....
gl00my/haiku
src/add-ons/kernel/file_systems/ramfs/NodeTable.cpp
<filename>src/add-ons/kernel/file_systems/ramfs/NodeTable.cpp // NodeTable.cpp #include "DebugSupport.h" #include "NodeTable.h" // constructor NodeTable::NodeTable() : fElementArray(1000), fNodes(1000, &fElementArray) { } // destructor NodeTable::~NodeTable() { } // InitCheck status_t NodeTable::InitCheck() con...
gl00my/haiku
src/system/boot/platform/efi/mmu.cpp
<filename>src/system/boot/platform/efi/mmu.cpp /* * Copyright 2016 Haiku, Inc. All rights reserved. * Copyright 2014, <NAME>, <EMAIL>. * Copyright 2014, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include <algorithm> #include <boot/addr_range.h> #include <boot/platform.h> #include <bo...
gl00my/haiku
src/apps/haikudepot/util/DataIOUtils.cpp
/* * Copyright 2018, <NAME> <<EMAIL>>. * All rights reserved. Distributed under the terms of the MIT License. */ #include "DataIOUtils.h" #define BUFFER_SIZE 1024 status_t DataIOUtils::Copy(BDataIO* target, BDataIO* source, size_t size) { status_t result = B_OK; uint8 buffer[BUFFER_SIZE]; while (size > 0 &...
gl00my/haiku
src/add-ons/kernel/file_systems/ramfs/Directory.cpp
<reponame>gl00my/haiku // Directory.cpp #include "AllocationInfo.h" #include "DebugSupport.h" #include "Directory.h" #include "Entry.h" #include "EntryIterator.h" #include "File.h" #include "SymLink.h" #include "Volume.h" // constructor Directory::Directory(Volume *volume) : Node(volume, NODE_TYPE_DIRECTORY), fEn...
gl00my/haiku
src/servers/app/DrawState.cpp
/* * Copyright 2001-2015, Haiku. * Distributed under the terms of the MIT License. * * Authors: * DarkWyrm <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME>, <EMAIL> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ //! Data classes for working with BView states and draw parameters ...