repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
jrth/zephyr | arch/x86/core/multiboot.c | <gh_stars>0
/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <kernel.h>
#include <arch/x86/multiboot.h>
#ifdef CONFIG_X86_MULTIBOOT_INFO
struct x86_multiboot_info x86_multiboot_info;
#ifdef CONFIG_X86_MULTIBOOT_FRAMEBUF
#include <display/framebuf.h>
static struct f... |
jrth/zephyr | soc/arm/st_stm32/stm32f4/dts_fixup.h | <reponame>jrth/zephyr<gh_stars>0
/* SPDX-License-Identifier: Apache-2.0 */
/* SoC level DTS fixup file */
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define DT_GPIO_STM32_GPIOA_BASE_ADDRESS DT_ST_STM32_GPIO_40020000_BASE_ADDRESS
#define DT_GPIO_STM32_GPIOA_CLOCK_BITS_0 ... |
jrth/zephyr | arch/x86/include/intel64/kernel_arch_func.h | <gh_stars>0
/*
* Copyright (c) 2019 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_
#define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_FUNC_H_
#ifndef _ASMLANGUAGE
static ALWAYS_INLINE void
z_set_thread_return_value(struct k_thread *thread, u... |
jrth/zephyr | include/arch/xtensa/arch.h | /*
* Copyright (c) 2016 Cadence Design Systems, Inc.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Xtensa specific kernel interface header
* This header contains the Xtensa specific kernel interface. It is included
* by the generic kernel interface header (include/arch/cpu.h)
*/
#ifndef ZEPHY... |
jrth/zephyr | arch/x86/include/intel64/kernel_arch_data.h | <reponame>jrth/zephyr
/*
* Copyright (c) 2019 Intel Corp.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_DATA_H_
#define ZEPHYR_ARCH_X86_INCLUDE_INTEL64_KERNEL_ARCH_DATA_H_
/*
* Some SSE definitions. Ideally these will ultimately be shared with 32-bit.
*/
#define X8... |
jrth/zephyr | arch/x86/include/kernel_arch_func.h | <reponame>jrth/zephyr<gh_stars>0
/*
* Copyright (c) 2019 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
#define ZEPHYR_ARCH_X86_INCLUDE_KERNEL_ARCH_FUNC_H_
#ifdef CONFIG_X86_LONGMODE
#include <intel64/kernel_arch_func.h>
#else
#include <ia32/kernel_ar... |
jrth/zephyr | arch/x86/include/offsets_short_arch.h | <reponame>jrth/zephyr
/*
* Copyright (c) 2019 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
#define ZEPHYR_ARCH_X86_INCLUDE_OFFSETS_SHORT_ARCH_H_
#ifdef CONFIG_X86_LONGMODE
#include <intel64/offsets_short_arch.h>
#else
#include <ia32/offsets_short_... |
jrth/zephyr | soc/arm/st_stm32/stm32g0/dts_fixup.h | /*
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
/* SoC level DTS fixup file */
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V6M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define DT_FLASH_DEV_BASE_ADDRESS DT_ST_STM32G0_FLASH_CONTROLLER_40022000_BASE_ADDRESS
#define DT_FLASH_DEV... |
ucsb-cs32-s21/Lab01-STARTER | demogData.h | <reponame>ucsb-cs32-s21/Lab01-STARTER
#ifndef DEMOG_H
#define DEMOG_H
#include <string>
#include<iostream>
using namespace std;
/*
class to represent county demographic data
from CORGIS
*/
class demogData {
public:
demogData(string inN, string inS, double in65, double in18,
double in5, int totPop14... |
domantascibas/nmea-rmc-parser | src/MessageParser.c | <filename>src/MessageParser.c
#include "MessageParser.h"
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#define GPRMC_ID_STRING "GPRMC"
uint8_t fieldNumber = 0;
uint8_t fieldOffset = 0;
uint8_t checksum = 0;
bool receivingMessage = false;
bool receivingChecksum = false;
bool isRmcMessage = f... |
domantascibas/nmea-rmc-parser | src/MessageParser.h | <reponame>domantascibas/nmea-rmc-parser
#ifndef _MESSAGE_PARSER_H
#define _MESSAGE_PARSER_H
#include <stdint.h>
/**
* @brief Data status indicator
*/
typedef enum {
RMC_DATA_INVALID,
RMC_DATA_VALID
} rmc_status_t;
/**
* @brief North/South indicator
*/
typedef enum {
RMC_NORTH,
RMC_SOUTH... |
roscopeco/Xosera | xosera_m68k_api/xosera_regs.h | /*
* vim: set et ts=4 sw=4
*------------------------------------------------------------
* ___ ___ _
* ___ ___ ___ ___ ___ _____| _| . | |_
* | _| . |_ -| _| . | | | . | . | '_|
* |_| |___|___|___|___|_____|_|_|_|___|___|_,_|
* |_____|
* ---... |
roscopeco/Xosera | xosera_tester_fast/ST_8x8w.h | // Generated by: image_to_mem -i -16 -w -c /Users/kenj/Downloads/Atari_ST_character_set_8x8.png ST_8x8w.h
#include <avr/pgmspace.h>
#include <stdint.h>
const PROGMEM uint16_t ST_8x8w[256 * 4] = {
// 0x00 '\x00'
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
0b0000000000000000,
// 0... |
roscopeco/Xosera | xvid_spi/ftdi_spi.h | // ftdi_spi.h - header for FTDI SPI routines
//
// vim: set et ts=4 sw=4
//
// Copyright (c) 2020 Xark - https://hackaday.io/Xark
//
// See top-level LICENSE file for license information. (Hint: MIT)
#if !defined(HOST_SPI_H)
#define HOST_SPI_H
#include <ftdi.h>
#include <stdint.h>
// Thanks to https://github.com/Yosy... |
roscopeco/Xosera | xosera_tester_fast/vga_8x16.h | <reponame>roscopeco/Xosera
// Generated by: image_to_mem -c /Users/kenj/Downloads/vga8x12_extra_chars.png vga_8x16.cpp
#include <avr/pgmspace.h>
#include <stdint.h>
const PROGMEM uint8_t vga_8x16[256 * 16] = {
// 0x00 '\x00'
0b00000000, // ........
0b00000000, // ........
0b00000000, ... |
roscopeco/Xosera | xosera_m68k_api/xosera_api.c | <gh_stars>0
/*
* vim: set et ts=4 sw=4
*------------------------------------------------------------
* ___ ___ _
* ___ ___ ___ ___ ___ _____| _| . | |_
* | _| . |_ -| _| . | | | . | . | '_|
* |_| |___|___|___|___|_____|_|_|_|___|___|_,_|
* |_... |
roscopeco/Xosera | rtl/sim/xosera_defs.h | #if !defined(XOSERA_DEFS_H)
#define XOSERA_DEFS_H
#define VM_TRACE 1
#define SDL_RENDER 1
#if !defined(SPI_INTERFACE)
#define SPI_INTERFACE 0
#endif
#if !defined(BUS_INTERFACE)
#define BUS_INTERFACE 0
#endif
#if defined(MODE_640x400) // 640x400@70Hz (often treated as 720x400 VGA text mode)
// VGA mode 640x4... |
roscopeco/Xosera | xosera_m68k_api/xosera_api.h | <filename>xosera_m68k_api/xosera_api.h
/*
* vim: set et ts=4 sw=4
*------------------------------------------------------------
* ___ ___ _
* ___ ___ ___ ___ ___ _____| _| . | |_
* | _| . |_ -| _| . | | | . | . | '_|
* |_| |___|___|___|___|_____|_|_|_|___|___|_,_... |
roscopeco/Xosera | xosera_test_m68k/xosera_test_m68k.c | /*
* vim: set et ts=4 sw=4
*------------------------------------------------------------
* ___ ___ _
* ___ ___ ___ ___ ___ _____| _| . | |_
* | _| . |_ -| _| . | | | . | . | '_|
* |_| |___|___|___|___|_____|_|_|_|___|___|_,_|
* |_____|
* ---... |
jteixeir/42_piscine | C06/ex03/ft_sort_params.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sort_params.c :+: :+: :+: ... |
yuexiaona/weiXin | Wechat/Wechat/UIBarButtonItem+Extention.h | <reponame>yuexiaona/weiXin
//
// UIBarButtonItem+Extention.h
// Wechat
//
// Created by admin on 16/2/2.
// Copyright © 2016年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIBarButtonItem (Extention)
+ (instancetype)itemSetImage:(NSString *)image Target:(id)target action:(SEL)action;
@end
|
yuexiaona/weiXin | Wechat/Wechat/BaseNavigationController.h | //
// BaseNavigationController.h
// Wechat
//
// Created by admin on 16/2/2.
// Copyright © 2016年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BaseNavigationController : UITableViewController
@end
|
yuexiaona/weiXin | Wechat/Wechat/WeiXinTableViewController.h | <gh_stars>0
//
// WeiXinTableViewController.h
// Wechat
//
// Created by admin on 16/2/2.
// Copyright © 2016年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WeiXinTableViewController : UITableViewController
@end
|
yuexiaona/weiXin | Wechat/Wechat/WXTableBarViewController.h | //
// WXTableBarViewController.h
// Wechat
//
// Created by admin on 16/2/1.
// Copyright © 2016年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface WXTableBarViewController : UITabBarController
@end
|
LetsBuildRockets/Horizon-Tracker | horizonTracker.h | #include <opencv2/opencv.hpp>
#include <iostream>
#include <math.h>
#include <sys/time.h>
#include <assert.h>
#include <stdio.h>
#include <string>
#include <sstream>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#ifndef _HORIZON_TRACKER_H_
#define _HORIZON_TRACKER_H_
#ifdef __ARMEL__
#include <bcm... |
1184893257/libpag | tgfx/src/gpu/opengl/GLState.h | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
1184893257/libpag | src/rendering/caches/RenderCache.h | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
1184893257/libpag | tgfx/include/core/Color.h | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
1184893257/libpag | tgfx/src/gpu/opengl/GLInterface.h | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
1184893257/libpag | tgfx/include/core/Matrix.h | <gh_stars>1-10
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache ... |
1184893257/libpag | tgfx/include/gpu/opengl/GLRenderTarget.h | <reponame>1184893257/libpag
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed unde... |
1184893257/libpag | tgfx/src/core/vectors/web/WebMask.h | /////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
BFL-lab/flip | src/flip.h | <reponame>BFL-lab/flip
/****************************************************************************
* flip.h version 2.0.2 *
* *
* Copyright (C) 1997 OGMP ... |
BFL-lab/flip | src/flip.c | /****************************************************************************
* flip.c version 2.0.2 *
* *
* Copyright (C) 1997 OGMP *
* ... |
erikmwerner/QJoyControl | eventhandler.h | <filename>eventhandler.h
#ifndef EVENTHANDLER_H
#define EVENTHANDLER_H
#include <QtGlobal>
#include <QMap>
/*!
* \brief The JOYCON_BUTTONS enum is used to mask
* button status from the bytes of a standard input report
* the joycons
*/
enum JOYCON_BUTTONS : int {
// byte 3:
R_BUT_Y = 1,
R_BUT_X = 2,
... |
erikmwerner/QJoyControl | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include "joyconworker.h"
// https://stackoverflow.com/questions/40599038/on-linux-whats-a-good-way-to-to-use-hid-reports-over-usb
class QThread;
class StatusWidget;
class InputMapWidget;
namespace Ui {
class MainWindow;
}
... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/VehicleControllerInterface.h | <gh_stars>1-10
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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,... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/PawnSpectatorComponent.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/UrbanTraffic.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/TrafficLight.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/RoadNode.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/RoadNodeGuide.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/RoadNodePort.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/VehicleHardwareComponent.h | <filename>Source/UrbanTraffic/Public/VehicleHardwareComponent.h
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, i... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/SceneLoader.h | <reponame>mrlordkaj/UrbanTraffic
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/VehicleBase.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/RoadSegment.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/ObstacleSensorComponent.h | <filename>Source/UrbanTraffic/Public/ObstacleSensorComponent.h
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, in... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/VehicleObserverComponent.h | /*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, modify, ... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/RoadTurn.h | <filename>Source/UrbanTraffic/Public/RoadTurn.h<gh_stars>1-10
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, inc... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/CharacterBase.h | <filename>Source/UrbanTraffic/Public/CharacterBase.h
/*
* The MIT License
*
* Copyright 2020 <NAME>.
*
* 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 wi... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/Tools/SimpleSerial.h | <filename>Source/UrbanTraffic/Public/Tools/SimpleSerial.h
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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, includi... |
mrlordkaj/UrbanTraffic | Source/UrbanTraffic/Public/RoadNodeCross.h | <filename>Source/UrbanTraffic/Public/RoadNodeCross.h
/*
* The MIT License
*
* Copyright 2019 <NAME>.
*
* 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 wi... |
PLSysSec/haybale | tests/bcfiles/struct-O3.c | #include <stdlib.h>
struct TwoInts {
int el1;
int el2;
};
struct WithPointer {
volatile struct TwoInts ti;
volatile struct TwoInts* volatile* ti_2;
};
// function that takes a pointer to a struct as an argument
// really the point here is to get a GEP with multiple indices on -O3
__attribute__((noinline))
in... |
khorben/daemonize | src/main.c | <filename>src/main.c
/* $Id$ */
/* Copyright (c) 2020-2021 <NAME> <<EMAIL>> */
/* This file is part of daemonize */
/* 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 ... |
khorben/daemonize | src/daemonize.c | /* $Id$ */
/* Copyright (c) 2020-2021 <NAME> <<EMAIL>> */
/* This file is part of daemonize */
/* 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 r... |
noorus/libminibmcapture | include/libminibmcapture.h | <filename>include/libminibmcapture.h
// libminibmcapture (c) 2020 noorus
// This software is licensed under the zlib license.
// See the LICENSE file which should be included with
// this source distribution for details.
#pragma once
#include <cstdint>
namespace minibm {
//! \enum DeviceFlags
//! \brief Bitflag... |
noorus/libminibmcapture | libminibmcapture/include/utils.h | // libminibmcapture (c) 2020 noorus
// This software is licensed under the zlib license.
// See the LICENSE file which should be included with
// this source distribution for details.
#pragma once
#include "pch.h"
namespace minibm {
class RWLock {
protected:
SRWLOCK lock_;
public:
RWLock() { Initializ... |
noorus/libminibmcapture | libminibmcapture/include/pch.h | <reponame>noorus/libminibmcapture
// libminibmcapture (c) 2020 noorus
// This software is licensed under the zlib license.
// See the LICENSE file which should be included with
// this source distribution for details.
#pragma once
#define NTDDI_VERSION NTDDI_WIN10
#define _WIN32_WINNT _WIN32_WINNT_WIN10
#include <sdk... |
noorus/libminibmcapture | libminibmcapture/include/minibmcap.h | <reponame>noorus/libminibmcapture<gh_stars>1-10
// libminibmcapture (c) 2020 noorus
// This software is licensed under the zlib license.
// See the LICENSE file which should be included with
// this source distribution for details.
#pragma once
#include "pch.h"
#include "utils.h"
#include "libminibmcapture.h"
#inclu... |
frankjas/libjr | libjr/syscalls/jr_getpid.c | #include "ezport.h"
#ifdef ostype_winnt
#include <process.h>
#include "jr/syscalls.h"
jr_int jr_getpid ()
{
return _getpid ();
}
#else
#include <unistd.h>
#include "jr/syscalls.h"
jr_int jr_getpid ()
{
return getpid ();
}
#endif
|
frankjas/libjr | libjr/struct/net_type.c | #include "ezport.h"
#include "jr/nettype.h"
jr_int jr_NetIntPtrCmp (netlong1, netlong2)
const jr_NetInt *netlong1;
const jr_NetInt *netlong2;
{
return (jr_NetIntToHost (*netlong1) - jr_NetIntToHost (*netlong2));
}
jr_int jr_NetUIntPtrCmp (netlong1, netlong2)
const jr_NetUInt *netlong1;
const jr_NetUInt *netlong... |
frankjas/libjr | libjr/syscalls/jr_tape.c | #include "ezport.h"
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "jr/syscalls.h"
#include "jr/error.h"
jr_int jr_IsTapeFilePtr (fp, error_buf)
FILE * fp;
char * error_buf;
{
struct stat stat_info[1];
jr_int status;
status = fstat (fileno (fp... |
frankjas/libjr | include/jr/vector.h | #ifndef __jr_vector_h___
#define __jr_vector_h___
#include "ezport.h"
#include <stdio.h>
extern char * jr_getenv PROTO((
char ** string_vector,
const char * name_string
)) ;
extern char ** jr_setenv PROTO((
char ** jr_malloced_env_vector,
const char * ... |
frankjas/libjr | include/jr/uuid.h | #ifndef __jr_uuid_h___
#define __jr_uuid_h___
#include "ezport.h"
#include "jr/misc.h"
typedef struct {
unsigned char uuid_buf [16];
} jr_UUIdStruct;
/*
* A UUID is a 128 bit quantity, or 16 bytes.
*
* Under Linux, the uuid_t type is 16 byte char array typedef.
* So the uuid_buf field above is type compatible... |
frankjas/libjr | libjr/string/envpathx.c | <filename>libjr/string/envpathx.c<gh_stars>0
#include "ezport.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jr/string.h"
#include "jr/vector.h"
#include "jr/malloc.h"
char **jr_extendpath(environ_arg, pathname)
char ** environ_arg ;
const char * pathname ;
{
const char * new_dir = pat... |
frankjas/libjr | libjr/misc/cmpshort.c | #include "ezport.h"
#include "jr/misc.h"
jr_int shortcmp(n,m)
short n, m ;
{
return((n)-(m)) ;
}
jr_int shortpcmp(np,mp)
short *np, *mp ;
{
return((*np)-(*mp)) ;
}
jr_int rshortcmp(n,m)
short n, m ;
{
return((m)-(n)) ;
}
jr_int rshortpcmp(np,mp)
short *np, *mp ;
{
return((*mp)-(*np)) ;
}
jr_int jr_ushort_... |
frankjas/libjr | libjr/syscalls/jr_symlink.c | #include "ezport.h"
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "jr/syscalls.h"
#include "jr/error.h"
jr_int jr_SymLink (
const char * link_target_path,
const char * new_link_path,
char * error_buf)
{
jr_int status;
status = symlink (link_target_path, new_link_path);
if (... |
frankjas/libjr | include/jr/inputbuf.h | #ifndef _input_bufferh
#define _input_bufferh
#include "ezport.h"
#include <stdio.h>
#include "jr/alist.h"
#include "jr/htable.h"
typedef struct {
jr_AList context_stack [1];
jr_HTable context_names [1];
jr_int eof_line_number;
jr_int eof_column_number;
jr_int eof_byte_offset;
jr_int tab_stops;
} jr_IB... |
frankjas/libjr | libjr/misc/bktrace.c | #include "ezport.h"
#include "jr/misc.h"
#ifndef missing_execinfo_h
#include <execinfo.h>
jr_int jr_backtrace (pc_array, pc_array_size)
void ** pc_array;
jr_int pc_array_size;
{
jr_int trace_size;
jr_int q;
trace_size = backtrace (pc_array, pc_array_size);
for (q=0; q < trace_size-1; q++) {
pc_... |
frankjas/libjr | libjr/misc/jr_rand.c | #include "ezport.h"
#include <apr-1/apr_general.h>
#include "jr/misc.h"
#include "jr/apr.h"
#include "jr/error.h"
jr_int jr_random_bytes (
void * bytes_ptr,
jr_int bytes_length,
char * opt_error_buf)
{
jr_int status;
jr_apr_initialize();
status = apr_generate_random_bytes (bytes_ptr, byt... |
frankjas/libjr | libjr/io/jr_fgets.c | #include "ezport.h"
#include <string.h>
#include "jr/io.h"
#include "jr/malloc.h"
jr_int jr_GetWholeLine (line_buf_ref, line_buf_size_ref, rfp)
char ** line_buf_ref;
jr_int * line_buf_size_ref;
FILE * rfp;
{
char * line_buf = *line_buf_ref;
jr_int line_buf_size = *line_buf_size_ref;
jr_int ... |
frankjas/libjr | libjr/io/http_lib.c | <reponame>frankjas/libjr
#define _POSIX_SOURCE
#include "jr/io.h"
char *jr_HTTP_StatusString (http_status)
jr_int http_status;
{
switch (http_status) {
case jr_HTTP_CONTINUE_STATUS : return "Continue";
case jr_HTTP_SUCCESS_STATUS : return "Success";
case jr_HTTP_CREATED_STATUS : return "Created";
... |
frankjas/libjr | include/jr/xdr.h | <gh_stars>0
#ifndef _jr_xdr_h___
#define _jr_xdr_h___
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without charge, but ... |
frankjas/libjr | libjr/syscalls/jr_apr.h | <filename>libjr/syscalls/jr_apr.h
#ifndef ___apr_h__
#define ___apr_h__
#include "ezport.h"
#include <apr-1/apr_general.h>
#include <apr-1/apr_pools.h>
#include <apr-1/apr_errno.h>
#include <apr-1/apr_file_io.h>
#include "jr/apr.h"
#include "jr/syscalls.h"
#include "jr/malloc.h"
#include "jr/error.h"
#include "jr/tr... |
frankjas/libjr | libjr/string/memrepl.c | <filename>libjr/string/memrepl.c
#include "ezport.h"
#include <string.h>
#include "jr/string.h"
#include "jr/trace.h"
#include "jr/malloc.h"
jr_int jr_CountSubByteMatches(source_buf_arg, source_len, pattern_arg, patlen)
const void * source_buf_arg ;
jr_int source_len ;
const void * pattern_arg ;
jr_int patlen... |
frankjas/libjr | include/jr/ansi_c/exprnode.h | #ifndef __c_expr_node_h__
#define __c_expr_node_h__
#include "ezport.h"
typedef struct c_expr_node {
jr_int node_type;
struct c_expr_node * children [3];
char * identifier_name; /* used for identifiers only, see below */
jr_int value_type;
void (*alloc_fn)(
jr_int op_type,
... |
frankjas/libjr | libjr/misc/hashshrt.c | #include "ezport.h"
#include "jr/misc.h"
/*
Author: <NAME>
Creation Date: March, 1987
*/
jr_int shorthash (i)
short i;
{
return ((i*i)+1);
}
/*
jr_int jr_intphash (n)
jr_int *n;
{
return ((*n * *n)+1);
}
*/
jr_int shortphash (n)
short *n;
{
jr_int i = (*n * *n) ;
if (i < 0) {
i = -i ;
i >>= i ;
}
... |
frankjas/libjr | libjr/syscalls/jr_epoll.c | #include "ezport.h"
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include "jr/epoll.h"
#include "jr/alist.h"
#include "jr/dlist.h"
#include "jr/error.h"
void jr_epoll_event_init_ptr (
struct epoll_event * event_info,
jr_int event_flags,
void * ptr)
{
memset (event_info, 0, sizeof (*event_... |
frankjas/libjr | libjr/htable/htablins.c | #include "project.h"
jr_int jr_HTableFindIndexGeneric (htable, key_ptr, is_ptr_value)
jr_HTable * htable;
const void * key_ptr;
jr_int is_ptr_value;
{
jr_int hash_value;
jr_int bucket;
jr_int curr_entry;
jr_int diff;
if (htable->num_buckets == 0) {
return -1;
}
hash_value = (*htable->hashfn) ... |
frankjas/libjr | libjr/syscalls/jr_errno.c | #define _POSIX_SOURCE 1
#include "ezport.h"
#ifdef ostype_winnt
# include <winerror.h>
#else
# include <netdb.h>
#endif
#include <errno.h>
#include "jr/error.h"
jr_int jr_ConvertErrno (
jr_int errno_value)
{
switch (errno_value) {
case EACCES : return jr_PERMISSION_ERROR;
case ESRCH :
case ENOENT :... |
frankjas/libjr | libjr/misc/jr_bswap.c | <filename>libjr/misc/jr_bswap.c
#include "ezport.h"
#include "jr/nettype.h"
unsigned jr_int jr_bswap_32 (unsigned jr_int value)
{
/*
** 1/27/07: Little endian: 0123
** Big endian: 3210
*/
value = (0xffff0000 & value) >> 16 | (0x0000ffff & value) << 16;
value = (0xff00ff00 & value) >> 8 | (0x00ff00ff & valu... |
frankjas/libjr | libjr/syscalls/fd_lock.c | #define _POSIX_SOURCE 1
#include "ezport.h"
#include <signal.h>
#include <string.h>
#include <errno.h>
#include <setjmp.h>
#include <sys/file.h>
#include <unistd.h>
#include "jr/syscalls.h"
#include "jr/error.h"
jr_int jr_fcntl_flock (fd, operation, is_blocking)
jr_int fd;
jr_int operation;
jr_int is_block... |
frankjas/libjr | libjr/misc/jr_uuidc.c | #define _POSIX_SOURCE 1
#include "ezport.h"
#include <string.h>
#include "jr/uuid.h"
#include "jr/misc.h"
jr_int jr_UUIdCmp (void_ptr_1, void_ptr_2)
const void * void_ptr_1;
const void * void_ptr_2;
{
const jr_UUIdStruct * uuid_info_1 = void_ptr_1;
const jr_UUIdStruct * uuid_info_2 = void_ptr_2;
jr_... |
frankjas/libjr | libjr/missing/setsid.c | <reponame>frankjas/libjr<filename>libjr/missing/setsid.c
#define _POSIX_SOURCE 1
#include "ezport.h"
#ifdef missing_setsid
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int setsid()
{
jr_int tty_fd;
pid_t grp_id;
tty_fd = open ("/dev/tty", O_RDONLY) ;... |
frankjas/libjr | libjr/syscalls/invoke.c | <gh_stars>0
#define _POSIX_SOURCE 1
#include "ezport.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include "jr/syscalls.h"
#include "jr/malloc.h"
#include "jr/error.h"
jr_int jr_Invoke1WayCommand... |
frankjas/libjr | libjr/io/readfile.c | <reponame>frankjas/libjr<gh_stars>0
#include "ezport.h"
#include "jr/io.h"
#include "jr/malloc.h"
#include "jr/error.h"
#include "jr/alist.h"
void * jr_FileNameReadIntoNewMemory(rfn, length_ptr)
const char * rfn ;
unsigned jr_int * length_ptr ;
{
FILE * rfp ;
char * result_buffer ;
rfp = fopen(rfn, "r") ;
... |
frankjas/libjr | libjr/syscalls/async_fn.h | #ifndef __async_fn_h___
#define __async_fn_h___
#define _POSIX_SOURCE 1
#include "ezport.h"
#include <signal.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include <string.h>
#include "jr/error.h"
#include "jr/errsim.h"
#include "jr/syscalls.h"
#include "jr/avl_tree.h"
typedef struct {
jr_int ... |
frankjas/libjr | libjr/string/cremove.c | #include "ezport.h"
#include <string.h>
#include "jr/string.h"
void jr_RemoveAllOfChar (s, c)
char * s ;
jr_int c ;
{
char *tp ;
while (tp=(char *)strchr(s,c)) {
for (;*tp;tp++) *tp = tp[1] ;
}
}
/*
void main()
{
char * original = " hello 12345 there 6" ;
char * result ;
jr_int char_val = 'e' ;
... |
frankjas/libjr | libjr/string/vectorio.c | <reponame>frankjas/libjr
#include "ezport.h"
#include <stdio.h>
#include "jr/vector.h"
#include "jr/string.h"
#include "jr/malloc.h"
#include "jr/error.h"
#include "jr/alist.h"
char ** jr_VectorReadDeclaration(rfp, variable_name, error_buf)
FILE * rfp ;
char * variable_name ;
char * error_buf ;
{
char value_buf... |
frankjas/libjr | libjr/syscalls/jr_hostname.c | #include "ezport.h"
#include <apr-1/apr_pools.h>
#include <apr-1/apr_network_io.h>
#include "jr/apr.h"
#include "jr/error.h"
jr_int jr_gethostname(
char * host_name,
jr_int buf_length,
char * error_buf)
{
apr_pool_t * apr_pool_ptr = 0;
jr_int status;
jr_apr_initialize();
apr_pool_cr... |
frankjas/libjr | libjr/syscalls/jr_exec.c | <filename>libjr/syscalls/jr_exec.c
#define _POSIX_SOURCE 1
#include "ezport.h"
#include <stdlib.h>
#include <stdio.h>
#include "jr/syscalls.h"
#include "jr/error.h"
jr_int jr_exec_cmd (
const char * command_str,
char * error_buf)
{
jr_int status;
status = system (command_str);
if (status < 0) {
j... |
frankjas/libjr | libjr/misc/pslib.c | #define _POSIX_SOURCE 1
#include "ezport.h"
#include <string.h>
#include "jr/string.h"
#include "jr/misc.h"
#include "jr/trace.h"
jr_int jr_PostScriptLineGetPageNumber(lbuf)
char * lbuf ;
{
jr_int nitems;
jr_int page_number;
nitems = sscanf (lbuf, "%%%% Page: ? %d", &page_number);
if (nitems != 1) {
return ... |
frankjas/libjr | libjr/misc/exn_brk.c | #include "exn_proj.h"
jr_int jr_ExceptionBreakPoint (status)
jr_int status;
{
/*
* This function servers only as a place to
* set a break point in the debugger.
* This function is called every time an exception
* is raised.
* This function should be compiled with the debugger
* option on
*
* If this... |
frankjas/libjr | libjr/struct/net_dbl.c | <gh_stars>0
#define _POSIX_SOURCE 1
#include "ezport.h"
#include "jr/nettype.h"
#include "jr/xdr.h"
static XDR DoubleEncodeXDR[1];
static XDR DoubleDecodeXDR[1];
static jr_int DidInit = 0;
static double DoubleEncodeBuf[16];
static double DoubleDecodeBuf[16];
/*
* Only need 1 double, verified in RPC specific... |
frankjas/libjr | libjr/syscalls/termctrl.c | #include "ezport.h"
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "jr/syscalls.h"
#include "jr/error.h"
jr_int jr_SetTerminalMode (fd, mode_constant, turn_on_mode, error_buf)
jr_int fd;
jr_int mode_constant ;
jr_int turn_on_mode ;
char * ... |
frankjas/libjr | libjr/misc/pfx_lib.c | <filename>libjr/misc/pfx_lib.c<gh_stars>0
#include "pfx_proj.h"
void jr_SetContainers (
char * container_name,
void * container_ptr,
...)
{
va_list arg_list;
jr_PrefixInfoType * prefix_array;
jr_PrefixInfoType prefix_info [1];
jr_int prefix_size;
va_start (arg_list, container_ptr);
... |
frankjas/libjr | libjr/struct/intset.c | <gh_stars>0
#include "ezport.h"
#include "jr/intset.h"
#include "jr/malloc.h"
/*
Author: <NAME>
Date: Febuary 17, 1987
*/
jr_IntSet *jr_IntSetCreate ()
{
jr_IntSet *iset = jr_malloc (sizeof (jr_IntSet));
jr_IntSetInit (iset);
return (iset);
}
void jr_IntSetInit (iset)
jr_IntSet *iset;
{
iset->array = 0;
is... |
frankjas/libjr | libjr/string/isdigits.c | <filename>libjr/string/isdigits.c
#include "ezport.h"
#include <stdio.h>
#include <ctype.h>
#include "jr/string.h"
jr_int jr_StringIsAllDigits(str)
const char *str ;
{
jr_int retval = 0 ;
for (; *str; str++) {
if (! isdigit(*str)) return(0) ;
else retval++ ;
}
return(retval) ;
}
/*
void main()
{
char st... |
frankjas/libjr | libjr/misc/esis_typ.c | #include "esis_prj.h"
void jr_ESIS_TreeInit (tree_info, attr_manager)
jr_ESIS_TreeType * tree_info;
jr_AttributeManagerType * attr_manager;
{
tree_info->attr_manager = attr_manager;
jr_HTableInit (
tree_info->generic_element_table, sizeof (jr_ESIS_GenericElementType),
jr_ESIS_GenericElementHash, jr_ESIS_Gen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.