repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
AkihiroSuda/runrootless | proot/PRoot/tests/test-82ba4ba1.c | #define _GNU_SOURCE
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
uid_t ruid = 13, euid = 13, suid = 13;
gid_t rgid = 13, egid = 13, sgid = 13;
int status;
status = getresuid(&ruid, &euid, &suid);
if (status != 0 || ruid != 0 || euid != 0 || suid != 0) {
perror("getresuid");
fpr... |
AkihiroSuda/runrootless | proot/PRoot/src/tracee/reg.h | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/src/path/temp.c | #include <sys/types.h> /* stat(2), opendir(3), */
#include <sys/stat.h> /* stat(2), chmod(2), */
#include <unistd.h> /* stat(2), rmdir(2), unlink(2), readlink(2), */
#include <errno.h> /* errno(2), */
#include <dirent.h> /* readdir(3), opendir(3), */
#include <string.h> /* strcmp(3), */
#include <st... |
AkihiroSuda/runrootless | proot/PRoot/src/compat.h | <filename>proot/PRoot/src/compat.h
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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... |
AkihiroSuda/runrootless | proot/PRoot/src/path/proc.c | <filename>proot/PRoot/src/path/proc.c
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 F... |
AkihiroSuda/runrootless | proot/PRoot/src/execve/elf.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/src/attribute.h | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/src/rootlesscontainers/rootlesscontainers.pb-c.c | /* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: rootlesscontainers.proto */
/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif
#include "rootlesscontainers.pb-c.h"
void rootlesscontainers__resource__init
... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-e87b34ae.c | <reponame>AkihiroSuda/runrootless<gh_stars>10-100
#include <unistd.h> /* syscall(2), fork(2), usleep(3), */
#include <stdio.h> /* perror(3), printf(3), */
#include <limits.h> /* PATH_MAX, */
#include <stdlib.h> /* exit(3), */
#include <sys/syscall.h> /* SYS_readlink, SYS_getcwd, */
#include <errno.h> /* errno, */
int... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-c10e2073.c | #include <unistd.h> /* syscall(2), */
#include <stdio.h> /* perror(3), fprintf(3), */
#include <limits.h> /* PATH_MAX, */
#include <stdlib.h> /* exit(3), */
#include <string.h> /* strlen(3), */
#include <sys/syscall.h> /* SYS_readlink, SYS_getcwd, */
#include <fcntl.h> /* AT_FDCWD */
int main(void)
{
char path[PATH_... |
AkihiroSuda/runrootless | proot/PRoot/src/cli/cli.h | /* This file is automatically generated from the documentation. EDIT AT YOUR OWN RISK. */
#ifndef CLI_H
#define CLI_H
#include <stddef.h>
#include "tracee/tracee.h"
#include "attribute.h"
typedef struct {
const char *name;
char separator;
const char *value;
} Argument;
struct Cli;
typedef int (*option_handler_t)... |
AkihiroSuda/runrootless | proot/PRoot/src/tracee/event.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/tests/ptrace.c | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ptrace.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
int main(int argc, char **argv)
{
int child_status;
long status;
pid_t pid;
pid = (argc <= 1 ? fork() : vfork());
switch(pid) {
case -1:
perror("fork()");
exit(... |
AkihiroSuda/runrootless | proot/PRoot/src/.check_seccomp_filter.c | <reponame>AkihiroSuda/runrootless
#include <sys/prctl.h> /* prctl(2), PR_* */
#include <linux/seccomp.h> /* SECCOMP_MODE_FILTER, */
#include <linux/filter.h> /* struct sock_*, */
#include <linux/audit.h> /* AUDIT_ARCH_*, */
#include <stddef.h> /* offsetof(3), */
int main(void)
{
const size_t arch_offset... |
AkihiroSuda/runrootless | proot/PRoot/src/cli/cli.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/tests/symlink.c | <filename>proot/PRoot/tests/symlink.c
#include <unistd.h> /* syscall(2), */
#include <stdio.h> /* perror(3), fprintf(3), */
#include <stdlib.h> /* exit(3), */
#include <sys/syscall.h> /* SYS_symlink, */
#include <fcntl.h> /* AT_FDCWD */
int main(int argc, char *argv[])
{
int status;
if (argc != 3) {
fprintf(stde... |
AkihiroSuda/runrootless | proot/PRoot/src/extension/care/archive.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-a3e68988.c | <gh_stars>10-100
#include <linux/auxvec.h> /* AT_*, */
#include <stdio.h> /* printf(3), */
#include <sys/types.h> /* open(2), */
#include <sys/stat.h> /* open(2), */
#include <fcntl.h> /* open(2), */
#include <unistd.h> /* read(2), close(2), */
#include <stdlib.h> /* exit(3), EXIT_*, re... |
AkihiroSuda/runrootless | proot/PRoot/tests/cat.c | #include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
int main(int argc, char *argv[])
{
int status;
int fd;
int i;
for (i = 1; i < argc; i++) {
char buffer[1024];
fd = open(argv[i], O_RDONLY);
if (fd < 0) {
perror("... |
AkihiroSuda/runrootless | proot/PRoot/src/execve/ldso.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-33333334.c | <reponame>AkihiroSuda/runrootless
#include <stdlib.h> /* exit(3), */
#include <unistd.h> /* fork(2), */
int main(void)
{
int child_status;
int status;
switch (fork()) {
case -1:
exit(EXIT_FAILURE);
case 0: /* child */
return 13;
default: /* parent */
status = wait(&child_status);
if (status < 0) {
... |
AkihiroSuda/runrootless | proot/PRoot/src/loader/script.h | <filename>proot/PRoot/src/loader/script.h
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 t... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-a8e69d6f.c | <gh_stars>10-100
#include <unistd.h> /* syscall(2), */
#include <stdio.h> /* perror(3), fprintf(3), */
#include <stdlib.h> /* exit(3), */
#include <sys/syscall.h> /* SYS_lstat, */
#include <sys/stat.h> /* struct stat, */
#include <fcntl.h> /* AT_FDCWD */
int main(void)
{
struct stat stat;
int status;
#if defined(... |
AkihiroSuda/runrootless | proot/PRoot/src/tracee/abi.h | <reponame>AkihiroSuda/runrootless
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 ... |
AkihiroSuda/runrootless | proot/PRoot/src/cli/note.h | <reponame>AkihiroSuda/runrootless<gh_stars>10-100
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publis... |
AkihiroSuda/runrootless | proot/PRoot/src/tracee/mem.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-oooooooo.c | #include <unistd.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
int i;
for (i = 0; i < 999; i++) {
int status;
int fds[2];
pid_t pid;
status = pipe(fds);
if (status < 0) {
perror("pipe");
break;
}
pid = fork();
switch (pid) {
case -1:
perror("fork");
e... |
AkihiroSuda/runrootless | proot/PRoot/tests/chdir_getcwd.c | <reponame>AkihiroSuda/runrootless
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
int main(int argc, char *argv[])
{
char path[PATH_MAX];
int status;
int fd;
if (argc < 2) {
fprintf(stderr, "missin... |
AkihiroSuda/runrootless | proot/PRoot/src/extension/care/extract.h | <reponame>AkihiroSuda/runrootless
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 ... |
AkihiroSuda/runrootless | proot/PRoot/src/cli/proot.c | <gh_stars>10-100
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 Foundati... |
AkihiroSuda/runrootless | proot/PRoot/tests/test-5bed7141.c | #include <pthread.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
static void *routine(void *path)
{
int status;
status = chdir(path);
if (status < 0) {
perror("chdir");
pthread_exit((void *)-1);
}
pthread_exit(NULL);
}
static void pterror(const char *message, int error)
{
... |
AkihiroSuda/runrootless | proot/PRoot/src/loader/assembly-x86.h | <gh_stars>10-100
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 Foundati... |
AkihiroSuda/runrootless | proot/PRoot/src/path/path.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/tests/getresgid.c | #define _GNU_SOURCE /* See feature_test_macros(7) */
#include <unistd.h>
#include <stdio.h>
int main()
{
uid_t rid;
uid_t eid;
uid_t sid;
getresgid(&rid, &eid, &sid);
printf("%d %d %d\n", rid, eid, sid);
return 0;
}
|
AkihiroSuda/runrootless | proot/PRoot/tests/readlink.c | #include <unistd.h> /* syscall(2), */
#include <stdio.h> /* perror(3), fprintf(3), */
#include <limits.h> /* PATH_MAX, */
#include <stdlib.h> /* exit(3), */
#include <sys/syscall.h> /* SYS_readlink, */
#include <fcntl.h> /* AT_FDCWD */
int main(int argc, char *argv[])
{
char path[PATH_MAX];
int status;
if (argc !... |
AkihiroSuda/runrootless | proot/PRoot/src/execve/aoxp.h | <filename>proot/PRoot/src/execve/aoxp.h
/* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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... |
AkihiroSuda/runrootless | proot/PRoot/src/extension/care/care.h | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
AkihiroSuda/runrootless | proot/PRoot/src/path/glue.c | /* -*- c-set-style: "K&R"; c-basic-offset: 8 -*-
*
* This file is part of PRoot.
*
* Copyright (C) 2015 STMicroelectronics
*
* 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 versio... |
ryang14/tagnav | navigation.h | <reponame>ryang14/tagnav
#pragma once
void link_tags(int tag1, int tag2);
int distance_to_tag(int current, int destination);
int distance_to_tag();
int next_tag(int current, int destination);
int next_tag();
int navigate_to(int destination);
void set_current_tag(int current);
int get_current_tag();
int get_destination... |
gerazo/loose_quadtree | src/include/LooseQuadtree-impl.h | #ifndef LOOSEQUADTREE_LOOSEQUADTREE_IMPL_H
#define LOOSEQUADTREE_LOOSEQUADTREE_IMPL_H
#include "LooseQuadtree.h"
#include <array>
#include <cassert>
#include <cstddef>
#include <deque>
#include <forward_list>
#include <limits>
#include <map>
#include <memory>
#include <unordered_map>
#include <type_traits>
#include <... |
gerazo/loose_quadtree | src/include/LooseQuadtree.h | <filename>src/include/LooseQuadtree.h
#ifndef LOOSEQUADTREE_LOOSEQUADTREE_H
#define LOOSEQUADTREE_LOOSEQUADTREE_H
/**
* LooseQuadtree written by Zozo
* use freely under MIT license
*
* Loose quadtree (unlike normal quadtrees which are for points only) is
* a region tree designed to store bounding boxes effectivel... |
LyonFoster/GNC-Homework | savageFunctions.h |
#ifndef SAVAGE_FUNCTIONS_26MAY2020
#define SAVAGE_FUNCTIONS_26MAY2020
#include "savageFunctions.h"
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <string>
#include <Eigen/Dense>
class savageFunctions
{
public:
savageFunctions(){}
Eigen::Matrix3d skew(Eigen::Vector3d v);
Eigen::VectorXd sta... |
clausecker/memf | src/memf.h | <gh_stars>1-10
/* formatted read into / write from binary structures */
#ifndef MEMF_H
#define MEMF_H
#include <stdint.h>
#ifdef __STDC_HOSTED__
# include <stdio.h>
extern size_t freadf(FILE*, const char*, void *restrict);
extern size_t fwritef(FILE*, const char*, const void*);
#endif
extern size_t mreadf(const uin... |
clausecker/memf | src/memf-internal.h | <reponame>clausecker/memf
/* file abstraction */
#ifndef MEMF_INTERNAL_H
#define MEMF_INTERNAL_H
#include <stdint.h>
/* read / write function(file, buffer, count) */
typedef size_t rwfunc(void*, uint8_t*, size_t);
/* read / write / ignore data (for nopf) */
enum direction {READ, WRITE};
/*
* abstraction over a st... |
clausecker/memf | src/fdreadf.c | #define _POSIX_C_SOURCE 200809L
#include <stddef.h>
#include <unistd.h>
#include "memf.h"
#include "memf-internal.h"
static rwfunc rwfdread;
/*
* Read count bytes from file to buf.
*/
static size_t
rwfdread(void *file, uint8_t *buf, size_t count)
{
size_t total = 0;
ssize_t n;
while (total < count) {
total +... |
clausecker/memf | src/freadf.c | #include <stddef.h>
#include <stdio.h>
#include "memf.h"
#include "memf-internal.h"
static rwfunc rwfread;
/*
* Write count bytes from buf to file.
*/
static size_t
rwfread(void *file, uint8_t *buf, size_t count)
{
return fread(buf, 1, count, (FILE*)file);
}
/*
* Read binary data from a FILE* and marshall it i... |
clausecker/memf | src/fwritef.c | #include <stddef.h>
#include <stdio.h>
#include "memf.h"
#include "memf-internal.h"
static rwfunc rwfwrite;
/*
* write count bytes from buf to file.
*/
static size_t
rwfwrite(void *file, uint8_t *buf, size_t count)
{
return fwrite(buf, 1, count, (FILE*)file);
}
/*
* Write binary data to a FILE* and marshall it... |
clausecker/memf | test/ptestgen.c | /*
* Utility to generate test cases for parsertest.c. This utility uses the parser
* itself to generate test cases. Please make sure that the test case behaves
* correctly before adding it.
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "memf-internal.h"
extern int
main(int argc, char *argv... |
clausecker/memf | src/sizef.c | <gh_stars>1-10
#include <string.h>
#include "fiddle.h"
#include "memf.h"
#include "memf-internal.h"
/*
* Compute the size of the structure representation as described by fstr
* If the formatting string is invalid, errno will be set to a nonzero
* value and the value returned is invalid. You can use this function t... |
clausecker/memf | test/parsertest.c | <reponame>clausecker/memf<filename>test/parsertest.c
/*
* Verify that parsefstr() from memf.c parses formatting strings correctly.
*/
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "memf-internal.h"
struct item {
long rep;
int size;
enum byteorder bo;
};
struct testcase {
... |
clausecker/memf | src/fiddle.h | #ifndef FIDDLE_H
#define FIDDLE_H
#include <stddef.h>
#include <stdint.h>
/* byte-fiddling functions */
/* read/write intel/motorola 16/32/64 */
static inline uint8_t rm8 (const uint8_t[1]);
static inline uint16_t rm16(const uint8_t[2]);
static inline uint32_t rm32(const uint8_t[4]);
static inline uint64_t rm64(con... |
clausecker/memf | src/mwritef.c | <filename>src/mwritef.c<gh_stars>1-10
#include <string.h>
#include "memf.h"
#include "memf-internal.h"
static rwfunc rwmwrite;
/*
* Write count bytes into file and then increment the place file points
* to appropriately.
*/
static size_t
rwmwrite(void *file, uint8_t *buf, size_t count)
{
uint8_t **dest = (uint8_... |
clausecker/memf | src/fdwritef.c | <reponame>clausecker/memf
#define _POSIX_C_SOURCE 200809L
#include <stddef.h>
#include <unistd.h>
#include "memf.h"
#include "memf-internal.h"
static rwfunc rwfdwrite;
/*
* Write count bytes from buf to file.
*/
static size_t
rwfdwrite(void *file, uint8_t *buf, size_t count)
{
size_t total = 0;
ssize_t n;
whil... |
clausecker/memf | src/memf.c | /* generic memf function */
#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "memf-internal.h"
#include "fiddle.h"
enum {
/*
* Length of the buffer for marshalling objects. Must be larger than
* sizeof (uint64_t). A buffer of this size is placed in au... |
clausecker/memf | src/lenf.c | <filename>src/lenf.c
#include <string.h>
#include "memf.h"
#include "memf-internal.h"
/*
* Compute how long the marshalled representation as described by fstr
* is. If the formatting string is invalid, errno will be set to a
* nonzero value and the value returned is invalid.
*/
extern size_t
mlenf(const char *fst... |
clausecker/memf | test/mem_skel.c | <filename>test/mem_skel.c
/*
* skeleton for the tests generated by memtestgen. This file is included by the
* generated source file of each test case. The generated files only contain
* the definition of struct testcase, the functions prototyped below and the
* constant TESTFSTR. This file contains the code that... |
clausecker/memf | src/mreadf.c | #include <string.h>
#include "memf.h"
#include "memf-internal.h"
static rwfunc rwmread;
/*
* Read count bytes from file and then increment the place file points
* to appropriately.
*/
static size_t
rwmread(void *file, uint8_t *buf, size_t count)
{
uint8_t **source = (uint8_t**)file;
memcpy(buf, *source, count)... |
JellyGD/GDMediator | Example/GDmediator/GDAppDelegate.h | //
// GDAppDelegate.h
// GDmediator
//
// Created by <EMAIL> on 01/09/2019.
// Copyright (c) 2019 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface GDAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
JellyGD/GDMediator | GDmediator/Classes/GDMediator.h | //
// GDMediator.h
// CTMediator
//
// Created by jelly on 2019/1/9.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface GDMediator : NSObject
/** 名称 */
@property(nonatomic,copy) NSString *name;
/** target */
@property(nonatomic,copy) NSString *target;
/** action */
@property(nonatomic,co... |
JellyGD/GDMediator | Example/GDmediator/GDViewController.h | <gh_stars>0
//
// GDViewController.h
// GDmediator
//
// Created by <EMAIL> on 01/09/2019.
// Copyright (c) 2019 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface GDViewController : UIViewController
@end
|
jrick/volo | webkit.h | // Copyright (c) 2014 <NAME>.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
#ifndef _WEBKIT_H
#define _WEBKIT_H
#include <string>
#include <webkit2/webkit2.h>
#include <gtk.h>
namespace webkit {
struct find_controller;
namespace methods {
template <class T, c... |
jrick/volo | gtk.h | // Copyright (c) 2014 <NAME>.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
#ifndef _GTK_H
#define _GTK_H
#include <memory>
#include <string>
#include <utility>
#include <gtk/gtk.h>
namespace gtk {
template <class T>
struct destroy_delete {
void operator()(T *p... |
jrick/volo | volo.h | // Copyright (c) 2014 <NAME>.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
#ifndef _VOLO_H
#define _VOLO_H
#include <array>
#include <vector>
#include <gtk.h>
#include <webkit.h>
#include <uri_entry.h>
namespace volo {
// browser_tab represents the widgets adde... |
jrick/volo | uri_entry.h | // Copyright (c) 2014 <NAME>.
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
#ifndef _VOLO_URI_ENTRY_H
#define _VOLO_URI_ENTRY_H
#include <string>
#include <gtk/gtk.h>
#include <gtk.h>
G_BEGIN_DECLS
#define VOLO_TYPE_URI_ENTRY (volo_uri_entry_get_type())
#defi... |
DiegoNazareth/N-meros-aleatorios- | main2.c | <gh_stars>0
//llenar una matriz con numeros aleatorios
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(){
int numero[4][4],i,j;
srand(time(NULL));
for(i=0;i<4;i++){
for(j=0;j<4;j++){
numero[i][j]=1+rand()%((10+1)-1);
}
}
for(i=0;i<4;i++){
for(j=0;j<4;j++){
printf("%4d " , numer... |
DiegoNazareth/N-meros-aleatorios- | main.c | <reponame>DiegoNazareth/N-meros-aleatorios-
//llenar un vector con numeros aleatorios
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main(){
int numero[4],i;
srand(time(NULL));
for(i=0;i<4;i++){
numero[i]=1+rand()%((10+1)-1);
}
for(i=0;i<4;i++){
printf("%d " , numero[i]);
}
return(0);
}
|
cpq0518/pok_homework | kernel/core/sched.c | <gh_stars>1-10
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* made according to the POK licence. You CANNOT use this file or a part of
* this file is this part of a file for your own project
*
* For more information on the POK licence,... |
cpq0518/pok_homework | libpok/include/arinc653/process.h | /*
* POK header
*
* The following file is a part of the POK project. Any modification should
* made according to the POK licence. You CANNOT use this file or a part of
* this file is this part of a file for your own project
*
* For more information on the POK licence, please see ou... |
cpq0518/pok_homework | examples/semaphores/sizes.c | <reponame>cpq0518/pok_homework<filename>examples/semaphores/sizes.c
#include <types.h>
uint32_t part_sizes[] = {
93972
,
91960
};
|
cpq0518/pok_homework | kernel/core/thread.c | <filename>kernel/core/thread.c<gh_stars>1-10
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* made according to the POK licence. You CANNOT use this file or a part of
* this file is this part of a file for your own project
*
* For more i... |
cpq0518/pok_homework | libpok/include/core/thread.h | <gh_stars>1-10
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* made according to the POK licence. You CANNOT use this file or a part of
* this file is this part of a file for your own project
*
* For more information on the POK licence,... |
cpq0518/pok_homework | examples/test_edf/kernel/deployment.h | /*
* POK header
*
* The following file is a part of the POK project. Any modification should
* made according to the POK licence. You CANNOT use this file or a part of
* this file is this part of a file for your own project
*
* For more information on the POK licence, please see ou... |
RenRenJuan/shcl | core/support/macros.c | <filename>core/support/macros.c
/* Copyright 2017 <NAME>
*
* 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 appl... |
tplester/Money | Supporting Files/Money.h | //
// Money
//
// Copyright © 2016 Money. All rights reserved.
//
@import Foundation;
//! Project version number for Money.
FOUNDATION_EXPORT double MoneyVersionNumber;
//! Project version string for Money.
FOUNDATION_EXPORT const unsigned char MoneyVersionString[];
|
dschalk/monads-in-javascript | dist/build/autogen/cabal_macros.h | <gh_stars>1-10
/* DO NOT EDIT: This file is automatically generated by Cabal */
/* package base-4.9.0.0 */
#define VERSION_base "4.9.0.0"
#define MIN_VERSION_base(major1,major2,minor) (\
(major1) < 4 || \
(major1) == 4 && (major2) < 9 || \
(major1) == 4 && (major2) == 9 && (minor) <= 0)
/* package concurrent-... |
billiob/ptyproxy | ptyproxy.c | <filename>ptyproxy.c
#define _GNU_SOURCE 1
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <limits.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <poll.h>
#include <sysexits.h>
#ifdef _... |
wms124/PX4_Plane2_sdlog2 | src/modules/sensors/simulate.h |
const double den_data[2500]={
-0.07943173426941,
-0.105296292853872,
-0.0741911686733484,
0.00954877800391853,
0.134546283493848,
0.284018969511997,
0.438124883200786,
0.57668949258422,
0.681940027666311,
0.740876986947017,
0.746966627705711,
0.700934384230915,
0.610563859180519,
0.48954205... |
hongxiayang/proxygen | proxygen/lib/http/codec/HQFramedCodec.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <proxygen/lib/http/codec/HQFramer.h>
#include <proxygen/lib/http/codec/HTTPCod... |
hongxiayang/proxygen | proxygen/lib/http/session/HQUnidirectionalCallbacks.h | <reponame>hongxiayang/proxygen
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <quic/api/QuicSocket.h>
#include <quic/logging/... |
hongxiayang/proxygen | proxygen/lib/http/codec/HTTP1xCodec.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <proxygen/lib/http/HTTPMessage.h>
#include <proxygen/lib/http/codec/HTTPCodec.... |
hongxiayang/proxygen | proxygen/lib/http/test/MockHTTPMessageFilter.h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <gmock/gmock.h>
#include <proxygen/lib/http/HTTPMessageFilters.h>
namespace ... |
lsmakethebest/LSApplePayDemo | applePayDemo/applePayDemo/InpPayViewController.h | //
// InpPayViewController.h
// applePayDemo
//
// Created by 刘松 on 16/9/7.
// Copyright © 2016年 liusong. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InpPayViewController : UIViewController
@end
|
luym11/hackzurich2019_logi | Handy/Keyhandler.h | class Keyhandler {
public:
static void pressKey(int keycode, bool shift=false, bool ctrl=false, bool option=false, bool cmd=false);
};
|
luym11/hackzurich2019_logi | Handy/keytest.c | <filename>Handy/keytest.c<gh_stars>0
#include <stdio.h>
#include <ApplicationServices/ApplicationServices.h>
int main()
{
ProcessSerialNumber psn;
GetFrontProcess(&psn);
CGEventSourceRef source = CGEventSourceCreate(kCGEventSourceStateHIDSystemState);//CGEventSourceCreate(kCGEventSourceStateCombinedSession... |
luym11/hackzurich2019_logi | Handy/FingerCount.h | <filename>Handy/FingerCount.h<gh_stars>0
#pragma once
#include <algorithm>
#include "opencv/cv.h"
#include "Processing.h"
/*
Author: <NAME> https://github.com/nicast
*/
using namespace cv;
using namespace std;
class FingerCount {
public:
FingerCount(void);
Mat findFingersCount(Mat input_image, Mat frame, boo... |
luym11/hackzurich2019_logi | Handy/Processing.h | #pragma once
#include <algorithm>
#include "opencv/cv.h"
#include "Keyhandler.h"
using namespace cv;
using namespace std;
class Processing {
public:
enum MovementType {
SWIPE_LEFT = 0b1100,
SWIPE_RIGHT = 0b0011,
SWIPE_UP = 0b1010,
SWIPE_DOWN = 0b0101,
NO_SWIPE = 0
};
enum PinchType {
... |
wbpxre150/wordscapes_cheat | gw.c | #include <stdio.h>
#include <string.h>
int check_word(char word[256], char input[8], char mask[8]) {
int i = 0 ,j = 0,n = 0,m = 0, z = 0, y = 0, k = 0;
char internal_input[8];
strcpy(internal_input, input);
m = strlen(word)-2;
//printf("%s %s", internal_input, word);
// if word contains more letters t... |
wbpxre150/wordscapes_cheat | make_words.c | #include <stdio.h>
#include <string.h>
int main(int argc, char const *argv[]) {
char buffer [256];
// load words files
FILE* words;
FILE* new_words;
words = fopen("all_words", "r");
new_words = fopen("words", "w");
// loop over words one at a time.
while (fgets(buffer, 256, words) != NULL) {
// wo... |
zerotier/dumb | dumb.c | <gh_stars>10-100
/* DUMB: Dumb User Mode Bridge */
/* (c)2018 ZeroTier, Inc. */
/* MIT license */
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <pthread.h>
#include <pcap/pcap.h>
s... |
Kewen12/redex | service/regalloc-fast/LinearScan.h | <gh_stars>0
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include "DexClass.h"
#include "IRCode.h"
#include "LiveRange.h"
#include <cstdint>
#include <functional>... |
Kewen12/redex | libredex/BundleResources.h | <gh_stars>0
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
// TODO (T91001948): Integrate protobuf dependency in supported platforms for
// open source
#ifdef HAS_P... |
Kewen12/redex | libredex/RedexResources.h | <gh_stars>0
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <boost/filesystem.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/noncopyable.hp... |
GithubPrankster/Overtime | headers/physics.h | <filename>headers/physics.h
class unevenPhysics {
public:
glm::vec3 worldGravity;
unevenPhysics(float gravity = -9.81) {
worldGravity = glm::vec3(0, gravity, 0);
}
void loadCollisionMesh(const char* filename) {
mesh tempMesh(filename);
tempMesh.swapVertex(meshVertices);
tempMesh.terminator();
... |
GithubPrankster/Overtime | headers/framebuffer.h | #ifndef FRAMEHANDLER_H
#define FRAMEHANDLER_H
#include <iostream>
#include <glad\glad.h>
class framebuffer{
public:
unsigned int fbo, renderbuffer;
unsigned int hdrAttachment, depthAttachment;
int width, height;
framebuffer(int pWidth, int pHeight) {
glGenFramebuffers(1, &fbo);
width = pWidth;
... |
GithubPrankster/Overtime | headers/quadHandler.h | #ifndef QUADHANDLER_H
#define QUADHANDLER_H
#include <glad/glad.h>
#include <vector>
class Quad {
public:
Quad() {
float vertices[] = {
// positions // texture Coords
-1.0f, 1.0f, 0.0f, 0.0f, 1.0f,
-1.0f, -1.0f, 0.0f, 0.0f, 0.0f,
1.0f, 1.0f, 0.0f, 1.0f, 1.0f,
1.0f, -1.0f, 0.... |
GithubPrankster/Overtime | headers/camera.h | glm::mat4 proj = glm::mat4(1.0f), model = glm::mat4(1.0f), view = glm::mat4(1.0f);
glm::vec3 cameraPos = glm::vec3(0.0f, 0.0f, 3.0f);
glm::vec3 cameraFront = glm::vec3(0.0f, 0.0f, -1.0f);
glm::vec3 cameraUp = glm::vec3(0.0f, 1.0f, 0.0f);
double lastX, lastY;
bool firstMouse = true;
float yaw = -90.0f; // yaw ... |
GithubPrankster/Overtime | headers/input.h | namespace inputType {
Uint8 storedKeyState[SDL_NUM_SCANCODES];
Uint8 currentKeyState[SDL_NUM_SCANCODES];
Sint16 storedJoy1YState;
Sint16 storedJoy1XState;
SDL_Event event;
}
bool isHeld(int key) {
Uint8 currentState = inputType::currentKeyState[key];
Uint8 storedState = inputType::storedKeyState[k... |
GithubPrankster/Overtime | meshHandler.h | #ifndef MESHHANDLER_H
#define MESHHANDLER_H
#include <glad/glad.h>
#include <vector>
#include <string>
#include <stdexcept>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
#include "vertex.h"
class mesh {
public:
glm::mat4 mat;
mesh(const char* path) {
tinyobj::attrib_t attrib;
... |
GithubPrankster/Overtime | headers/textureStuff.h | <filename>headers/textureStuff.h
#ifndef TEXHANDLER_H
#define TEXHANDLER_H
#include <glad/glad.h>
#include <iostream>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
struct texture {
public:
unsigned int id;
texture(const char* name, GLenum rgbType, GLenum filterSpace) {
stbi_set_flip_vertical... |
Jovins/JSWebp | Example/JSWebp/JSWebp/JSWebpImage.h | <reponame>Jovins/JSWebp
//
// JSWebpImage.h
// JSWebp_Example
//
// Created by Jovins on 2021/6/10.
// Copyright © 2021 CocoaPods. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <libwebp/decode.h>
#import <libwebp/demux.h>
#import <libwebp/mux_types.h>
@interface JSWebpFrame : NSObject
@property (nonato... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.