id int64 1 722k | file_path stringlengths 8 177 | funcs stringlengths 1 35.8M |
|---|---|---|
722,401 | ./openmeap/clients/c/openmeap-slic-core/src/zip.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,402 | ./openmeap/clients/c/openmeap-slic-core/src/storage-default.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,403 | ./openmeap/clients/c/openmeap-slic-core/src/storage.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,404 | ./openmeap/clients/c/openmeap-slic-core/src/string.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,405 | ./openmeap/clients/c/openmeap-slic-core/src/prefs.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,406 | ./openmeap/clients/c/openmeap-slic-core/src/dict.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,407 | ./openmeap/clients/c/openmeap-slic-core/test/digest-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,408 | ./openmeap/clients/c/openmeap-slic-core/test/zip-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,409 | ./openmeap/clients/c/openmeap-slic-core/test/dict-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,410 | ./openmeap/clients/c/openmeap-slic-core/test/core-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,411 | ./openmeap/clients/c/openmeap-slic-core/test/jsapi-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,412 | ./openmeap/clients/c/openmeap-slic-core/test/unit-tests.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,413 | ./openmeap/clients/c/openmeap-slic-core/test/config-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,414 | ./openmeap/clients/c/openmeap-slic-core/test/storage-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,415 | ./openmeap/clients/c/openmeap-slic-core/test/string-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,416 | ./openmeap/clients/c/openmeap-slic-core/test/error-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,417 | ./openmeap/clients/c/openmeap-slic-core/test/list-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,418 | ./openmeap/clients/c/openmeap-slic-core/test/update-test.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,419 | ./openmeap/clients/c/openmeap-slic-core/test/mock/props-mock.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,420 | ./openmeap/clients/c/openmeap-slic-core/test/mock/prefs-mock.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,421 | ./openmeap/clients/c/openmeap-slic-core/test/mock/network-mock.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,422 | ./openmeap/clients/c/openmeap-slic-core/test/mock/storage-mock.c | /*
###############################################################################
# #
# Copyright (C) 2011-2013 OpenMEAP, Inc. #
# Credits to Jonathan Schang & Robert Thacher ... |
722,423 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/ioapi.c | /* ioapi.c -- IO base function header for compress/uncompress .zip
files using zlib + zip or unzip API
Version 1.01h, December 28th, 2009
Copyright (C) 1998-2009 Gilles Vollant
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "ioapi.h"
/* I've found an old Unix (a... |
722,424 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/unzip.c | /* unzip.c -- IO for uncompress .zip files using zlib
Version 1.01h, December 28th, 2009
Copyright (C) 1998-2009 Gilles Vollant
Read unzip.h for more info
*/
/* Decryption code comes from crypt.c by Info-ZIP but has been greatly reduced in terms of
compatibility with older software. The following is from th... |
722,425 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/minizip.c | /*
minizip.c
Version 1.01h, December 28th, 2009
Copyright (C) 1998-2009 Gilles Vollant
Changes:
Aug 3, 2006. jg. support storing files with out paths. (-j)
Aug 3, 2006. jg. files with paths should not have leading slashes.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#in... |
722,426 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/miniunz.c | /*
miniunz.c
Version 1.01h, December 28th, 2009
Copyright (C) 1998-2009 Gilles Vollant
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#ifdef unix
# include <unistd.h>
# include <utime.h>
#else
# include <direct.h>
# include <io.h>
#endi... |
722,427 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/zip.c | /* zip.c -- IO on .zip files using zlib
Version 1.01h, December 28th, 2009
27 Dec 2004 Rolf Kalbermatter
Modification to zipOpen2 to support globalComment retrieval.
Copyright (C) 1998-2009 Gilles Vollant
Read zip.h for more info
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include... |
722,428 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/iowin32.c | /* iowin32.c -- IO base function header for compress/uncompress .zip
files using zlib + zip or unzip API
This IO API version uses the Win32 API (for Microsoft Windows)
Version 1.01h, December 28th, 2009
Copyright (C) 1998-2009 Gilles Vollant
*/
#include <stdlib.h>
#include "zlib.h"
#include "ioapi.h"
#i... |
722,429 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/minzip-1.01h/mztools.c | /*
Additional tools for Minizip
Code: Xavier Roche '2004
License: Same as ZLIB (www.gzip.org)
*/
/* Code */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
#define READ_8(adr) ((unsigned char)*(adr))
#define READ_16(adr) ( READ_8(adr) | (READ_8(adr+1) << 8) )
#de... |
722,430 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/cJSON/test.c | /*
Copyright (c) 2009 Dave Gamble
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, merge, publish, dist... |
722,431 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/cJSON/cJSON.c | /*
Copyright (c) 2009 Dave Gamble
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, merge, publish, distr... |
722,432 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/digest-md5/md5.c | /*
* This code implements the MD5 message-digest algorithm.
* The algorithm is due to Ron Rivest. This code was
* written by Colin Plumb in 1993, no copyright is claimed.
* This code is in the public domain; do with it what you wish.
*
* Equivalent code is available from RSA Data Security, Inc.
* This code has ... |
722,433 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/digest-sha1/shatest.c | /*
* shatest.c
*
* Copyright (C) 1998, 2009
* Paul E. Jones <paulej@packetizer.com>
* All Rights Reserved
*
*****************************************************************************
* $Id: shatest.c 12 2009-06-22 19:34:25Z paulej $
**********************************************************************... |
722,434 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/digest-sha1/sha1.c | /*
* sha1.c
*
* Copyright (C) 1998, 2009
* Paul E. Jones <paulej@packetizer.com>
* All Rights Reserved
*
*****************************************************************************
* $Id: sha1.c 12 2009-06-22 19:34:25Z paulej $
****************************************************************************... |
722,435 | ./openmeap/clients/c/openmeap-slic-core/3rd_party/digest-sha1/sha.c | /*
* sha.cpp
*
* Copyright (C) 1998, 2009
* Paul E. Jones <paulej@packetizer.com>
* All Rights Reserved
*
*****************************************************************************
* $Id: sha.c 12 2009-06-22 19:34:25Z paulej $
****************************************************************************... |
722,436 | ./comb/calc.c | /*
Copyright 2012 William Hart. 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 list of
conditions and the follow... |
722,437 | ./comb/combinator.c | /*
Copyright 2012 William Hart. 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 list of
conditions and the follow... |
722,438 | ./pcaputils/src/pcapdump.c | /*
pcapdump.c - dump and filter pcaps
Copyright (C) 2007 Robert S. Edmonds
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, co... |
722,439 | ./pcaputils/src/pcapip.c | /*
pcapip.c - pcap IP filter
Copyright (C) 2007 Robert S. Edmonds
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, modif... |
722,440 | ./pcaputils/src/pcappick.c | /*
pcappick.c - pick a pcap frame
Copyright (C) 2007 Robert S. Edmonds
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, ... |
722,441 | ./pcaputils/src/pcapuc.c | /*
pcapuc.c - pcap IP address unique count
Copyright (C) 2007 Robert S. Edmonds
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 us... |
722,442 | ./pcaputils/util/uint.c | #include "uint.h"
/* derived from public domain djbdns code */
void u16_pack(char s[2], u16 u)
{
s[0] = (char) (u & 255);
s[1] = (char) (u >> 8);
}
void u16_pack_big(char s[2], u16 u)
{
s[1] = (char) (u & 255);
s[0] = (char) (u >> 8);
}
void u16_unpack(const char s[2], u16 *u)
{
u16 result;
result = ... |
722,443 | ./pcaputils/util/file.c | /*
file.c - abstractions for file manipulation
Copyright (C) 2008 Robert S. Edmonds
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
... |
722,444 | ./pcaputils/util/checksum.c | #include "checksum.h"
#include "net.h"
#include "uint.h"
#include "util.h"
/*
* This is a version of ip_compute_csum() optimized for IP headers,
* which always checksum on 4 octet boundaries.
*
* By Jorge Cwik <jorge@laser.satlink.net>, adapted for linux by
* Arnt Gulbrandsen.
*/
/**
* ip_fast_csum - Compu... |
722,445 | ./pcaputils/util/util.c | #ifdef HAVE_EXECINFO_H
# include <execinfo.h>
#endif
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <util/util.h>
bool util_flag_daemonized;
bool util_flag_verbose;
#ifdef HAVE_EXECINFO_H
void util_print_backtrace(int x __unused){
#define NFRAMES 32
int nptrs;
void *buf[... |
722,446 | ./pcaputils/util/daemon.c | /*
daemon.c - functions for daemonizing
Copyright (C) 2008 Robert S. Edmonds
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,... |
722,447 | ./pcaputils/util/socket.c | #include <stdbool.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include "byte.h"
#include "socket.h"
#include "uint.h"
/* from libowfat */
/*
Copyright (c) 2001 Felix von Leitner.
All rights reserved.
This program is free software; you can re... |
722,448 | ./pcaputils/util/ring.c | /*
* Portable Audio I/O Library
* Ring Buffer utility.
*
* Author: Phil Burk, http://www.softsynth.com
* modified for SMP safety on Mac OS X by Bjorn Roche
* modified for SMP safety on Linux by Leland Lucius
* also, allowed for const where possible
*
* Note that this is safe only for a single-thread reader and... |
722,449 | ./pcaputils/util/pcapnet.c | /*
pcapnet.c - libpcap abstraction layer
Copyright (C) 2007 Robert S. Edmonds
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... |
722,450 | ./pcaputils/util/byte.c | #include "byte.h"
/* derived from public domain djbdns code */
unsigned int byte_chr(const char* s,unsigned int n,int c)
{
char ch;
const char *t;
ch = (char) c;
t = s;
for (;;) {
if (!n) break; if (*t == ch) break; ++t; --n;
if (!n) break; if (*t == ch) break; ++t; --n;
if (!n) break; if (*t =... |
722,451 | ./pcaputils/util/cfgopt.c | /*
cfgopt.c - unified config file / command line option parsing
Copyright (C) 2008 Robert S. Edmonds
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 limit... |
722,452 | ./pcaputils/util/net.c | /*
net.c - functions useful for programs which interact with the network
Copyright (C) 2008 Robert S. Edmonds
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 with... |
722,453 | ./pcaputils/util/rng.c | /*
rng.c - randomization functions
Copyright (C) 2008 Robert S. Edmonds
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... |
722,454 | ./pcaputils/util/server.c | /*
server.c - functions useful for programs which provide network services
Copyright (C) 2008 Robert S. Edmonds
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... |
722,455 | ./pcaputils/util/scanfmt.c | #include <ctype.h>
#include "socket.h"
#include "scanfmt.h"
unsigned fmt_mac(char *s, const char mac[6]){
unsigned i;
unsigned len = 0;
i = fmt_xlong(s, (unsigned long) (unsigned char) mac[0]); len += i; if(s) s += i;
if(s) *s++ = ':'; ++len;
i = fmt_xlong(s, (unsigned long) (unsigned char) mac[1]); len += i; i... |
722,456 | ./pcaputils/util/rate.c | #include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <util/rate.h>
#include <util/util.h>
rate_t *rate_new(int call_rate){
rate_t *r;
NEW0(r);
r->call_rate = call_rate;
r->gtod_rate = call_rate / 10;
r->sleep_rate = call_rate / 100;
r->ts.tv_sec = 0;
r->ts.tv_nsec = 4E6;
if(r->gtod_rate == 0)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.