code stringlengths 1.03k 250k | repo_name stringlengths 7 70 | path stringlengths 4 177 | language stringclasses 1
value | license stringclasses 15
values | size int64 1.03k 250k |
|---|---|---|---|---|---|
/**
******************************************************************************
* @file TIM/TIM_6Steps/main.c
* @author MCD Application Team
* @version V1.4.0
* @date 04-August-2014
* @brief Main program body
*****************************************************************************... | MikeStitt/lowLevelProgrammingByExample | presentations/20170726-meetup-embedded-gr/hal.stm.stm32PeripheralLib/Project/STM32F4xx_StdPeriph_Examples/TIM/TIM_6Steps/main.c | C | apache-2.0 | 9,345 |
/* Copyright (c) Citrix Systems Inc.
* 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 notice, this list of ... | rneilturner/xeniface | src/xeniface/wmi.c | C | bsd-2-clause | 98,488 |
#include "typeparam.h"
#include "assemble.h"
#include "cap.h"
#include "subtype.h"
#include "matchtype.h"
#include "../ast/token.h"
#include "../../libponyrt/mem/pool.h"
#include "ponyassert.h"
#include <string.h>
static token_id cap_union_constraint(token_id a, token_id b)
{
// Decide a capability for a type parame... | ponylang/ponyc | src/libponyc/type/typeparam.c | C | bsd-2-clause | 11,775 |
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
* Copyright (c) 1992, 1993, 1994, 1995, 1996
* Keith Bostic. All rights reserved.
* Copyright (c) 1995
* George V. Neville-Neil. All rights reserved.
*
* See the LICENSE file for redistribution information... | dplbsd/zcaplib | head/contrib/nvi/common/api.c | C | bsd-2-clause | 9,253 |
/*
* linux/kernel/irq/manage.c
*
* Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
* Copyright (C) 2005-2006 Thomas Gleixner
*
* This file contains driver APIs to the irq subsystem.
*/
#define pr_fmt(fmt) "genirq: " fmt
#include <linux/irq.h>
#include <linux/kthread.h>
#include <linux/module.h>
#incl... | andrewjylee/omniplay | linux-lts-quantal-3.5.0/kernel/irq/manage.c | C | bsd-2-clause | 43,526 |
/****************************************************************************
* net/socket/net_timeo.c
*
* Copyright (C) 2007-2009, 2011-2012, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification... | IUTInfoAix/terrarium_2015 | nuttx/net/socket/net_timeo.c | C | bsd-2-clause | 3,182 |
/*******************************************************************************
Copyright (C), 2011-2016, Andrew Min Chang
File name: AMCDictionary.c
Author: Andrew Chang (Zhang Min)
Description:
This file implements mutable associative array support.
History:
2017-02-04: File created as AMCDicti... | Andrew-M-C/Linux-Linux_Programming_Template | history/170204_ARP/AMCDictionary.c | C | bsd-2-clause | 30,843 |
/* Copyright 2022 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#define DT_DRV_COMPAT cros_ec_kb_raw_emul
#include <logging/log.h>
LOG_MODULE_REGISTER(emul_kb_raw);
#include <device.h>
#include <drivers/emul.h... | coreboot/chrome-ec | zephyr/emul/emul_kb_raw.c | C | bsd-3-clause | 3,471 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_environment_w32_vsnprintf_07.c
Label Definition File: CWE134_Uncontrolled_Format_String.vasinks.label.xml
Template File: sources-vasinks-07.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: envi... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s02/CWE134_Uncontrolled_Format_String__char_environment_w32_vsnprintf_07.c | C | bsd-3-clause | 7,295 |
/* $Header: /p/tcsh/cvsroot/tcsh/tc.who.c,v 3.59 2012/11/15 02:55:08 christos Exp $ */
/*
* tc.who.c: Watch logins and logouts...
*/
/*-
* Copyright (c) 1980, 1991 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... | Distrotech/tcsh | tc.who.c | C | bsd-3-clause | 18,711 |
/*
* linux/arch/arm/kernel/armksyms.c
*
* Copyright (C) 2000 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#include <linux/strin... | ut-osa/syncchar | linux-2.6.16-unmod/arch/arm/kernel/armksyms.c | C | bsd-3-clause | 5,036 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE843_Type_Confusion__char_53d.c
Label Definition File: CWE843_Type_Confusion.label.xml
Template File: sources-sink-53d.tmpl.c
*/
/*
* @description
* CWE: 843 Type Confusion
* BadSource: char Point data to a char data type
* GoodSource: Point data to an int da... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE843_Type_Confusion/CWE843_Type_Confusion__char_53d.c | C | bsd-3-clause | 1,156 |
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef lint
static char sccsid[] = "@(#)init_field.c 5.1 (Berkeley) 5/30/85";
#endif not lint
# include "robots.h"
/*
* in... | igor-m/retrobsd-with-double-precison | src/games/robots/init_field.c | C | bsd-3-clause | 1,575 |
#include <sys/queue.h>
#include <sys/ioctl.h>
#include <limits.h>
#include <unistd.h>
#include <assert.h>
#include "mtcp.h"
#include "mtcp_api.h"
#include "tcp_in.h"
#include "tcp_stream.h"
#include "tcp_out.h"
#include "ip_out.h"
#include "eventpoll.h"
#include "pipe.h"
#include "fhash.h"
#include "addr_pool.h"
#incl... | chyyuu/mtcp | mtcp/src/api.c | C | bsd-3-clause | 35,215 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_01.c
Label Definition File: CWE253_Incorrect_Check_of_Function_Return_Value.label.xml
Template File: point-flaw-01.tmpl.c
*/
/*
* @description
* CWE: 253 Incorrect Check of Return Value
* Sinks: scanf... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE253_Incorrect_Check_of_Function_Return_Value/CWE253_Incorrect_Check_of_Function_Return_Value__wchar_t_scanf_01.c | C | bsd-3-clause | 2,629 |
/* crypto/bn/bn_nist.c */
/*
* Written by Nils Larsch for the OpenSSL project
*/
/* ====================================================================
* Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... | GaloisInc/hacrypto | src/C/openssl/openssl-0.9.8zh/crypto/bn/bn_nist.c | C | bsd-3-clause | 30,117 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b.c
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-54b.tmpl.c
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: fscanf Read data from the console... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE194_Unexpected_Sign_Extension/s01/CWE194_Unexpected_Sign_Extension__fscanf_malloc_54b.c | C | bsd-3-clause | 1,454 |
/* pnmtosir.c - read a portable anymap and produce a Solitaire Image Recorder
** file (MGI TYPE 11 or MGI TYPE 17)
**
** Copyright (C) 1991 by Marvin Landis
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that t... | ownclo/jpeg-on-steroids | vendor/C/netpbm/converter/other/pnmtosir.c | C | bsd-3-clause | 3,868 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE134_Uncontrolled_Format_String__char_listen_socket_printf_22a.c
Label Definition File: CWE134_Uncontrolled_Format_String.label.xml
Template File: sources-sinks-22a.tmpl.c
*/
/*
* @description
* CWE: 134 Uncontrolled Format String
* BadSource: listen_socket Rea... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE134_Uncontrolled_Format_String/s03/CWE134_Uncontrolled_Format_String__char_listen_socket_printf_22a.c | C | bsd-3-clause | 12,079 |
/* This module is used to test the server keyspace events API.
*
* -----------------------------------------------------------------------------
*
* Copyright (c) 2020, Meir Shpilraien <meir at redislabs dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... | PKRoma/redis | tests/modules/keyspace_events.c | C | bsd-3-clause | 10,906 |
/*****************************************************************************
Copyright (c) 2014, Intel Corp.
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 cod... | xianyi/OpenBLAS | lapack-netlib/LAPACKE/src/lapacke_dlaset_work.c | C | bsd-3-clause | 3,580 |
#ifdef HAVE_CONFIG_H
#include "../../ext_config.h"
#endif
#include <php.h>
#include "../../php_ext.h"
#include "../../ext.h"
#include <Zend/zend_exceptions.h>
#include "kernel/main.h"
/**
* Phalcon\Mvc\ViewInterface
*
* Interface for Phalcon\Mvc\View and Phalcon\Mvc\View\Simple
*/
ZEPHIR_INIT_CLASS(Phalcon_Mv... | Zaszczyk/cphalcon | ext/phalcon/mvc/viewbaseinterface.zep.c | C | bsd-3-clause | 1,683 |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_connect_socket_sub_07.c
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-07.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: connect_socket Read data using a connect soc... | JianpingZeng/xcc | xcc/test/juliet/testcases/CWE191_Integer_Underflow/s02/CWE191_Integer_Underflow__int_connect_socket_sub_07.c | C | bsd-3-clause | 11,445 |
#include <errno.h>
#include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
VALUE kernel_spec_call_proc(VALUE arg_array) {
VALUE arg = rb_ary_pop(arg_array);
VALUE proc = rb_ary_pop(arg_array);
return rb_funcall(proc, rb_intern("call"), 1, arg);
}
#ifdef HAVE_RB_BLOCK_GIVEN_P
static VALU... | yob/debian-rubinius | spec/ruby/optional/capi/ext/kernel_spec.c | C | bsd-3-clause | 9,113 |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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... | pelya/android-shmem | cutils/ashmem-dev.c | C | bsd-3-clause | 2,239 |
/*
* Copyright (c) 2019, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... | turon/openthread | examples/platforms/nrf52840/spi-slave.c | C | bsd-3-clause | 6,914 |
/*
* Copyright (C) STMicroelectronics 2009
* Copyright (C) ST-Ericsson SA 2010
*
* License Terms: GNU General Public License v2
* Based on ARM realview platform
*
* Author: Sundar Iyer <sundar.iyer@stericsson.com>
*
*/
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/smp.h>
#include <asm/cac... | JijonHyuni/HyperKernel-JB | virt/arch/arm/mach-ux500/hotplug.c | C | gpl-2.0 | 1,120 |
/* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... | lab11/nrf5x-base | sdk/nrf5_sdk_12.2.0/components/libraries/block_dev/qspi/nrf_block_dev_qspi.c | C | mit | 24,095 |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Paul Sokolovsky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the ... | supergis/micropython | esp8266/modesp.c | C | mit | 21,905 |
/*-
* Copyright (c) 2003, 2004, 2005 Lev Walkin <vlm@lionet.info>.
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <constr_SET_OF.h>
#include <asn_SET_OF.h>
/*
* Number of bytes left for this structure.
* (ctx->left) indicates ... | mojmir-svoboda/DbgToolkit | trace_proto/generated/constr_SET_OF.c | C | mit | 24,374 |
/* serial_io_win32.c - serial i/o routines
*
* Copyright (c) 2009 by David Michael Betz. All rights reserved.
*
*/
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include <conio.h>
#include <fcntl.h>
#include "osint.h"
static HANDLE hSerial;
static COMMTIMEOUTS original_timeouts;
stat... | dbetz/xbasic | src/common/osint_win32.c | C | mit | 5,469 |
/**
******************************************************************************
* @file usbd_customhid.c
* @author MCD Application Team
* @version V2.4.1
* @date 19-June-2015
* @brief This file provides the CUSTOM_HID core functions.
*
* @verbatim
*
* =====================... | oroca/oroca_bldc | oroca_bldc/app/LIB_USB/STM32_USB_Device_Library/Class/CustomHID/Src/usbd_customhid.c | C | mit | 15,681 |
/*
* Copyright © 2010-2012 Intel Corporation
* Copyright © 2011-2012 Collabora, Ltd.
* Copyright © 2013 Raspberry Pi Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software withou... | krezovic/weston | ivi-shell/input-panel-ivi.c | C | mit | 11,785 |
/*
* This file is part of the Nautilus AeroKernel developed
* by the Hobbes and V3VEE Projects with funding from the
* United States National Science Foundation and the Department of Energy.
*
* The V3VEE Project is a joint project between Northwestern University
* and the University of New Mexico. The Hobb... | yhx189/nautilus | src/arch/x64/main.c | C | mit | 1,163 |
/*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... | AndreLei/ArkInC | cJSON-master/tests/compare_tests.c | C | mit | 8,432 |
/*
* "condition" match extension for iptables
* Stephane Ouellette <ouellettes [at] videotron ca>, 2002-10-22
* Massimiliano Hofer <max [at] nucleus it>, 2006-05-15
* Jan Engelhardt <jengelh [at] medozas de>, 2008
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of th... | jfenderico/xtables-addons | extensions/libxt_condition.c | C | gpl-2.0 | 2,668 |
/*
// ===========================================================================
mcp23017:
Driver for the MCP23017 port expander.
Copyright 2015 Darren Faulke <darren@alidaf.co.uk>
Based on the following guides and codes:
MCP23017 data sheet.
- see http://ww1.microchip.com/download... | alidaf/raspberryPi | meterPi/mcp23017.c | C | gpl-2.0 | 14,347 |
/*
* WUSB Wire Adapter
* Data transfer and URB enqueing
*
* Copyright (C) 2005-2006 Intel Corporation
* Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published ... | renaudallard/gnexus_kernel | drivers/usb/wusbcore/wa-xfer.c | C | gpl-2.0 | 47,214 |
/*
* Unix SMB/CIFS implementation.
* RPC Pipe client / server routines
* Copyright (C) Andrew Tridgell 1992-1997,
* Copyright (C) Luke Kenneth Casson Leighton 1996-1997,
* Copyright (C) Paul Ashton 1997.
* Copyright (C) Jeremy Allison 1998-2001.
* Copyrigh... | ipwndev/DSLinux-Mirror | user/samba/source/rpc_server/srv_netlog_nt.c | C | gpl-2.0 | 26,795 |
/*
* Unix SMB/CIFS implementation.
* Kerberos error mapping functions
* Copyright (C) Guenther Deschner 2005
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of... | paul-chambers/netgear-r7800 | git_home/samba.git/source/libads/krb5_errs.c | C | gpl-2.0 | 3,847 |
/* $Id: RTLogWriteStdOut-stub-generic.cpp $ */
/** @file
* IPRT - Log To StdOut, Generic Dummy.
*/
/*
* Copyright (C) 2006-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it a... | nightscape/yoga-900-kernel | ubuntu/vbox/vboxguest/generic/RTLogWriteStdOut-stub-generic.c | C | gpl-2.0 | 1,536 |
/* lge/com_device/input/touch_synaptics_fw_upgrade.c
*
* Copyright (C) 2011 LGE, Inc.
*
* Author: hyesung.shin@lge.com
*
* Notice: This is synaptic general touch FW upgrade driver for using RMI4.
* It not depends on specific regitser map and device spec.
* If you want use this driver, you should completly un... | forumi0721/android_kernel_lge_batman_lgu_kr | lge/com_device/input/touch_synaptics_ijb_fw_upgrade.c | C | gpl-2.0 | 35,342 |
/*
* Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED... | phra/802_21 | myODTONE/app/dhcp_usr/libs/bind/bind-9.8.4-P1/bin/pkcs11/pkcs11-list.c | C | gpl-2.0 | 7,246 |
/* $Id: resample_resample.c 369517 2012-07-01 17:28:57Z file $ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licen... | fluentstream/asterisk-p2p | res/pjproject/pjmedia/src/pjmedia/resample_resample.c | C | gpl-2.0 | 11,306 |
/*
* OMAP4 PRM instance functions
*
* Copyright (C) 2009 Nokia Corporation
* Copyright (C) 2011 Texas Instruments, Inc.
* Paul Walmsley
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software F... | justindriggers/android_kernel_glass_glass-1 | arch/arm/mach-omap2/prminst44xx.c | C | gpl-2.0 | 6,547 |
/*
* PXA168 MSPM IDLE
*
* Copyright (c) 2003 Intel Corporation.
*
* This software program is licensed subject to the GNU General Public License
* (GPL).Version 2,June 1991, available at http://www.fsf.org/copyleft/gpl.html
*
* (C) Copyright 2008 Marvell International Ltd.
* All Rights Reserved
*/
#undef DEBU... | c0ffee/linux-2.6.34-ts471x | arch/arm/mach-mmp/pxa168_mspm_idle.c | C | gpl-2.0 | 6,746 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2008 Collabora Ltd.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
... | smcgrath/empathy-smcgrath | libempathy/empathy-log-store.c | C | gpl-2.0 | 5,474 |
/*
** Copyright 2010, Adam Shanks (@ChainsDD)
** Copyright 2008, Zinx Verituse (@zinxv)
**
** 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.... | keulraesik/su | su.c | C | gpl-2.0 | 13,920 |
/*
* Marvell Armada-3700 SPI controller driver
*
* Author: Wilson Ding <dingwei@marvell.com>
* Copyright (C) 2007-2008 Marvell Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Founda... | moonman/linux-stable | drivers/spi/spi-armada-3700.c | C | gpl-2.0 | 28,816 |
/*
* USB
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/usb/musb.h>
#include <linux/usb/otg.h>
#include <mach/common.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#if defined(CONFIG_USB_MUSB_HDR... | melgurth/i780-kernel | arch/arm/mach-davinci/usb.c | C | gpl-2.0 | 1,991 |
/* packet-elmi.c
* Routines for Ethernet Local Management Interface (E-LMI) dissection
* Copyright 2014, Martin Kaiser <martin@kaiser.cx>
*
* based on a dissector written in lua
* Copyright 2013, Werner Fischer (fischer-interactive.de)
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark... | ryandoyle/wireshark | epan/dissectors/packet-elmi.c | C | gpl-2.0 | 7,707 |
/*
* ProFTPD - mod_sftp SCP
* Copyright (c) 2008-2010 TJ Saunders
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later versio... | paul-chambers/netgear-r7800 | git_home/proftpd.git/contrib/mod_sftp/scp.c | C | gpl-2.0 | 58,956 |
/* Copyright (c) 2009-2015, Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hop... | rostifaner/android_kernel_xiaomi_msm8956 | drivers/usb/phy/phy-msm-usb.c | C | gpl-2.0 | 182,236 |
/*
* soc-dapm.c -- ALSA SoC Dynamic Audio Power Management
*
* Copyright 2005 Wolfson Microelectronics PLC.
* Author: Liam Girdwood <lrg@slimlogic.co.uk>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* ... | blindcozy/kernel-zenfone-4 | sound/soc/soc-dapm.c | C | gpl-2.0 | 84,607 |
/*
* IPv6 Address [auto]configuration
* Linux INET6 implementation
*
* Authors:
* Pedro Roque <roque@di.fc.ul.pt>
* Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published ... | ProjectLense/kernel_omap4_spyder | net/ipv6/addrconf.c | C | gpl-2.0 | 118,841 |
/* file: wfdbcat.c G. Moody 3 March 2000
Last revised: 22 May 2000
-------------------------------------------------------------------------------
wfdbcat: Find and concatenate WFDB files on the standard output
Copyright (C) 2000 George B. Moody
This program is free software; you can redistribute it and/or modify i... | tnilanon/csci-686-final | wfdb-10.5.24/app/wfdbcat.c | C | gpl-2.0 | 3,008 |
/*
* (Tentative) USB Audio Driver for ALSA
*
* Mixer control part
*
* Copyright (c) 2002 by Takashi Iwai <tiwai@suse.de>
*
* Many codes borrowed from audio.c by
* Alan Cox (alan@lxorguk.ukuu.org.uk)
* Thomas Sailer (sailer@ife.ee.ethz.ch)
*
*
* This program is free software; you can redist... | thicklizard/komodo_ville | sound/usb/mixer.c | C | gpl-2.0 | 63,915 |
/*
* File : board.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009 RT-Thread Develop Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author ... | blueskycoco/rt-thread | bsp/stm32/stm32l496-st-nucleo/board/board.c | C | gpl-2.0 | 2,947 |
/*
* Compressed RAM block device
*
* Copyright (C) 2008, 2009, 2010 Nitin Gupta
*
* This code is released using a dual license strategy: BSD/GPL
* You can choose the licence that better fits your requirements.
*
* Released under the terms of 3-clause BSD License
* Released under the terms of GNU General Publi... | baselsayeh/kyleopen-kernel | drivers/staging/zram/zram_drv.c | C | gpl-2.0 | 22,549 |
/***************************************************************************
* Copyright (C) 2005 by Dominic Rath *
* Dominic.Rath@gmx.de *
* *
* Copyrig... | ensc/openocd | src/jtag/adapter.c | C | gpl-2.0 | 14,848 |
/*
* Copyright (c) 2013, 2016 Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ... | chrisk44/android_kernel_lge_hammerhead | sound/soc/msm/qdsp6v2/msm-lsm-client.c | C | gpl-2.0 | 21,720 |
/* $Header: /cvsroot/lesstif/lesstif/test/Xm/messagebox/test2.c,v 1.6 2001/05/15 14:08:34 amai Exp $
test of selection boxes */
#include <stdlib.h>
#include <Xm/Xm.h>
#include <Xm/PushBP.h>
#include <Xm/MessageB.h>
#include "../../common/Test.h"
Widget toplevel, box, push;
void Push(Widget w, XtPointer client, ... | ystk/debian-lesstif2 | test/Xm/messagebox/test2.c | C | gpl-2.0 | 1,866 |
/*
* linux/arch/arm/mm/fault.c
*
* Copyright (C) 1995 Linus Torvalds
* Modifications for ARM processor (c) 1995-2004 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foun... | rickyzhang82/bbb-linux | arch/arm/mm/fault.c | C | gpl-2.0 | 14,669 |
static const unsigned char toolbar_help_png[] = {
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x30,
0x08, 0x06, 0x00, 0x00, 0x00, 0x57, 0x02, 0xf9, 0x87, 0x00, 0x00, 0x00,
0x04, 0x73, 0x42, 0x49, 0x54, 0x08, 0x08, 0x08, 0x0... | flewrain/flewrain-dolphin | Source/Core/DolphinWX/resources/toolbar_help.c | C | gpl-2.0 | 22,185 |
/*
This file was produced by Deep Exploration Plugin: CPP Export filter.
Deep Exploration
Copyright (c) 1999-2003 Right Hemisphere, Inc
WWW http://www.righthemisphere.com/dexp.htm
eMail support@righthemisphere.com
*/
//#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <math.h>
typedef struct sam... | Distrotech/pidgin | pidgin/plugins/crazychat/eye.c | C | gpl-2.0 | 46,785 |
/* drivers/input/touchscreen/himax8528.c
*
* Copyright (C) 2013 HTC Corporation.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distri... | jmztaylor/android_kernel_htc_a3ul_new | drivers/input/touchscreen/himax_852xD.c | C | gpl-2.0 | 223,214 |
#include <math.h>
#include "sndintrf.h"
#include "streams.h"
#include "2203intf.h"
#include "fm.h"
struct ym2203_info
{
sound_stream * stream;
mame_timer * timer[2];
void * chip;
void * psg;
const struct YM2203interface *intf;
};
static void psg_set_clock(void *param, int clock)
{
struct ym2203_info *info... | scs/uclinux | user/games/xmame/xmame-0.106/src/sound/2203intf.c | C | gpl-2.0 | 7,615 |
/*
* This file is part of wl1271
*
* Copyright (C) 2008-2010 Nokia Corporation
*
* Contact: Luciano Coelho <luciano.coelho@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Fou... | danielgpalmer/linux-picosam9g45 | drivers/net/wireless/ti/wlcore/boot.c | C | gpl-2.0 | 11,640 |
/*
* Copyright (C) NXP Semiconductors (PLMA)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program ... | apascual89/android_kernel_oneplus_msm8996-1 | sound/soc/codecs/tfa9890/tfa_dsp.c | C | gpl-2.0 | 63,350 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to th... | openjdk/jdk7u | jdk/src/share/native/sun/java2d/cmm/lcms/cmsxform.c | C | gpl-2.0 | 49,412 |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2017 Google, Inc.
*/
/*
* Regression test for commit 63a0b0509e70 ("KEYS: fix freeing uninitialized
* memory in key_update()"). Try to reproduce the crash in two different ways:
*
* 1. Try to update a key of a type that has a ->preparse() method bu... | linux-test-project/ltp | testcases/kernel/syscalls/keyctl/keyctl05.c | C | gpl-2.0 | 7,389 |
/*
* Fraps FPS1 decoder
* Copyright (c) 2005 Roine Gustafsson
* Copyright (c) 2006 Konstantin Shishkov
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation... | neuros/neuroslink-mythtv-0.21.0-fixes18722 | libs/libavcodec/fraps.c | C | gpl-2.0 | 9,963 |
/*
* pfmlib_intel_snb.c : Intel Sandy Bridge core PMU
*
* Copyright (c) 2010 Google, Inc
* Contributed by Stephane Eranian <eranian@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the... | wanghao-xznu/vte | testcases/third_party_suite/pfm/libpfm-4.2.0/lib/pfmlib_intel_snb.c | C | gpl-2.0 | 4,289 |
/*
* linux/arch/arm/mach-mmp/board-baffinq.c
*
* Support for the Marvell PXA988 Emei DKB Development Platform.
*
* Copyright (C) 2012 Marvell International Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* ... | bensonhsu2013/diff-T210-T110 | arch/arm/mach-mmp/board-baffinq.c | C | gpl-2.0 | 121,321 |
/*
* This file is part of the coreboot project.
*
* It was originally based on the Linux kernel (drivers/pci/pci.c).
*
* Modifications are:
* Copyright (C) 2003-2004 Linux Networx
* (Written by Eric Biederman <ebiederman@lnxi.com> for Linux Networx)
* Copyright (C) 2003-2006 Ronald G. Minnich <rminnich@gmail.co... | ggkitsas/coreboot | src/device/pci_device.c | C | gpl-2.0 | 42,619 |
/***************************************************************************** */
/* This file is part of Forward OS. */
/* */
/* Forward OS is free software: you can redistribute it and/or modify ... | kookerus/Forward-OS | src/timer.c | C | gpl-3.0 | 2,438 |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope tha... | uhhpctools/openuh-openacc | osprey/libu/clib/limit.c | C | gpl-3.0 | 1,492 |
/*
This file is part of darktable,
Copyright (C) 2010-2020 darktable developers.
darktable is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opti... | mazhe/darktable | src/gui/presets.c | C | gpl-3.0 | 64,374 |
/*
* Copyright (c) 2009 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compli... | darlinghq/darling | src/dyld/unit-tests/test-cases/coreSymbolication-notify/main.c | C | gpl-3.0 | 1,632 |
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (stdstring.c).
* ---------------------------------------------------------------------------------------
*
* Permis... | orbea/RetroArch | libretro-common/string/stdstring.c | C | gpl-3.0 | 9,395 |
/* vim: set expandtab ts=4 sw=4: */
/*
* You may redistribute this program and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it... | woshilapin/cjdns | util/Pinger.c | C | gpl-3.0 | 6,198 |
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of... | RobsonRojas/frertos-udemy | Keil-FreeRTOS-Sample-Project/Keil-FreeRTOS/FreeRTOSv9.0.0/FreeRTOS/Demo/PIC32MX_MPLAB/ParTest/ParTest_USBII_Starter_Kit.c | C | gpl-3.0 | 5,186 |
/*
* asn1_ber_primitive_value.c
*
* Copyright 2013 Michael Zillgith
*
* This file is part of libIEC61850.
*
* libIEC61850 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Lice... | careychow/libIEC61850 | src/mms/asn1/asn1_ber_primitive_value.c | C | gpl-3.0 | 2,355 |
/*
* Rate converter plugin using libavcodec's resampler
* Copyright (c) 2007 by Nicholas Kain <njkain@gmail.com>
*
* based on rate converter that uses libsamplerate
* Copyright (c) 2006 by Takashi Iwai <tiwai@suse.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms ... | Themaister/alsa-plugins-rsound | rate-lavc/rate_lavcrate.c | C | lgpl-2.1 | 7,108 |
/* GStreamer
* Copyright (C) <2010> Wim Taymans <wim.taymans@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any... | froggatt/gst-plugins-good-m | gst/rtp/gstrtpgstdepay.c | C | lgpl-2.1 | 16,098 |
/*
* ctx.c: Context related functions
*
* Copyright (C) 2002 Juha Yrjölä <juha.yrjola@iki.fi>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Licens... | kasparsd/opensc-latvia-id | src/libopensc/ctx.c | C | lgpl-2.1 | 26,031 |
/*
* jniExecClass.c
*
* Copyright (c) 2004
* The Kaffe.org's developers. See ChangeLog for details.
*
* See the file "license.terms" for information on usage and redistribution
* of this file.
*/
#include <jni.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ltdl.h>
static char *conca... | 02N/kaffe | test/jni/jniExecClass.c | C | lgpl-2.1 | 2,373 |
#include <sys/ioctl.h>
/* VME Linux driver test/demo code */
/*
* Include files
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "../vmedrv.h"
vmeInfoCfg_t myVmeInfo;
int
getMyInfo()
{
int fd, status... | diamondIPP/eudaq-drs4 | extern/Tsi148/testapps/vmesetinbound.c | C | lgpl-3.0 | 3,137 |
/* ecc-add-ehh.c
Copyright (C) 2014 Niels Möller
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the Lic... | ShiftMediaProject/nettle | ecc-add-ehh.c | C | lgpl-3.0 | 3,266 |
/*
* Copyright (c) 2015 Cisco and/or its affiliates.
* 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 applicabl... | chrisy/vpp | src/plugins/srv6-am/node.c | C | apache-2.0 | 9,407 |
/******************************************************************************
*
* Copyright (C) 2009-2012 Broadcom Corporation
*
* 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:
*
... | nineisk/esp-idf | components/bt/bluedroid/stack/gatt/gatt_utils.c | C | apache-2.0 | 88,491 |
/* $NetBSD: adler32.c,v 1.1.1.1 2006/01/14 20:10:24 christos Exp $ */
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-2004 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) Id */
#define ZLIB_INTERNAL
#include "zlib.h"
#define BASE ... | ayyucedemirbas/Minix-Source-Code | minix-master/common/dist/zlib/adler32.c | C | apache-2.0 | 4,628 |
/*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* Marius Groeger <mgroeger@sysgo.de>
*
* Copyright (C) 2001 Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... | indashnet/InDashNet.Open.UN2000 | lichee/u-boot/arch/arm/lib/bootm.c | C | apache-2.0 | 10,354 |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | apache/lucy | perl/xs/Lucy/Index/DocReader.c | C | apache-2.0 | 4,845 |
/*
SPC5 HAL - Copyright (C) 2013 STMicroelectronics
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 ... | raphaelchang/quadthingy-software | quadrotor/ChibiOS_16.1.4/os/hal/ports/SPC5/SPC5xx/eMIOS_v1/icu_lld.c | C | apache-2.0 | 22,040 |
#include <string.h>
#include <curses.h>
#include "textgfx.h"
#include "curs.h"
#include "../input/termin.h"
#ifndef NCURSES_VERSION
const short colors1_6[6] = {
COLOR_RED, COLOR_GREEN, COLOR_YELLOW,
COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN
};
#endif
unsigned textgfx_flags = 0;
int margin_x = 0;
WINDOW *window;
WI... | dankmachine/dank-nooodls-vitetris | src/textgfx/curses.c | C | bsd-2-clause | 5,475 |
#include "evas_common.h"
#include "evas_private.h"
#include "evas_cs.h"
#ifdef EVAS_CSERVE2
#include "evas_cs2_private.h"
#endif
#ifdef LKDEBUG
EAPI Eina_Bool lockdebug = EINA_FALSE;
EAPI int lockmax = 0;
#endif
static int _evas_init_count = 0;
int _evas_log_dom_global = -1;
EAPI int
evas_init(void)
{
if (++_evas_... | jordemort/evas | src/lib/canvas/evas_main.c | C | bsd-2-clause | 15,571 |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... | 01org/TPM2.0-TSS | test/integration/esys-quote.int.c | C | bsd-2-clause | 5,650 |
/*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* Copyright (C) 2010 John Crispin <blogic@openwrt.org>
* Based on EP93xx wdt driver
*/
#define pr_fmt(fmt) KBUILD_MODN... | AiJiaZone/linux-4.0 | virt/drivers/watchdog/lantiq_wdt.c | C | gpl-2.0 | 5,878 |
/*
* File: arm_cm4.c
* Purpose: Generic high-level routines for ARM Cortex M4 processors
*
* Notes:
*/
#include "common.h"
/***********************************************************************/
/*
* Configures the ARM system control register for STOP (deep sleep) mode
* and then executes the WFI instructi... | andyOsaft/02_SourceCode | freeRTOS/FreeRTOSV7.4.0/FreeRTOSV7.4.0/FreeRTOS/Demo/CORTEX_Kinetis_K60_Tower_IAR/Freescale_Code/cpu/arm_cm4.c | C | mit | 4,261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.