repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
mkroman/bl602-604
components/bl602/bl602_std/bl602_std/LHalDriver/Src/lhal_uart.c
#include "bl602_uart.h" #include "bl602_glb.h" #include "lhal_uart.h" static void LHAL_UART_TX_Int_CallBack0(void); static void LHAL_UART_TX_Int_CallBack1(void); static void LHAL_UART_RX_Int_CallBack0(void); static void LHAL_UART_RX_Int_CallBack1(void); static LHAL_UART_Handle_Type* uartHandlerList[UART_ID_MAX] = {NU...
mkroman/bl602-604
components/hal_drv/bl602_hal/bl_gpio_cli.c
<gh_stars>0 /* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redi...
mkroman/bl602-604
components/network/ble/blestack/src/include/bluetooth/buf.h
<gh_stars>0 /* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redi...
mkroman/bl602-604
components/hal_drv/bl602_hal/bl_adc.c
<gh_stars>0 /* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redi...
mkroman/bl602-604
components/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_sf_cfg_ext.c
/** ****************************************************************************** * @file bl602_sf_cfg_ext.c * @version V1.0 * @date * @brief This file is the standard driver c file ****************************************************************************** * @attention * * <h2><center>&copy;...
mkroman/bl602-604
components/network/ble/blestack/src/common/include/misc/stack.h
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
mkroman/bl602-604
components/hal_drv/bl602_hal/bl_wifi.c
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
mkroman/bl602-604
components/network/ble/blestack/src/host_cmdproc/oadc_cmdproc.c
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
mkroman/bl602-604
components/bl602/bl602_std/bl602_std/StdDriver/Src/bl602_sflash_ext.c
<reponame>mkroman/bl602-604 /** ****************************************************************************** * @file bl602_sflash_ext.c * @version V1.0 * @date * @brief This file is the standard driver c file ****************************************************************************** * @attentio...
Mleekko/CarND-PID-Control-Project
src/PID.h
#ifndef PID_H #define PID_H #include <vector> enum TwiddlePhase { ADD, REMOVE, ADJUST }; class PID { public: /** * Constructor */ PID(); /** * Destructor. */ virtual ~PID(); /** * Initialize PID. * @param (Kp_, Ki_, Kd_) The initial PID coefficients */ vo...
Mleekko/CarND-PID-Control-Project
src/SteeringWheel.h
<gh_stars>0 // // Created by Mleekko on 2020-03-16. // #ifndef PID_STEERINGWHEEL_H #define PID_STEERINGWHEEL_H class SteeringWheel { private: double angle = 0.; public: double turnTo(double desiredAngle); void reset(); }; #endif //PID_STEERINGWHEEL_H
BladeTail/OOListBox
OOListBox/Classes/NNTestFile.h
<gh_stars>0 // // NNTestFile.h // OOListBox // // Created by <NAME> on 2018-02-23. // #import <Foundation/Foundation.h> @interface NNTestFile : NSObject @end
BladeTail/OOListBox
OOListBox/Classes/OOListBox.h
// // OOListBox.h // // Created by <NAME> on 5/13/16. // Copyright © 2016 Oldone. All rights reserved. // #import <UIKit/UIKit.h> // Tell the compiler to assume that no method should have a NULL value NS_ASSUME_NONNULL_BEGIN /** Tasteful Checkbox for iOS. */ IB_DESIGNABLE @interface OOListBox : UIView #pragma m...
BladeTail/OOListBox
Example/Pods/Target Support Files/OOListBox/OOListBox-umbrella.h
<reponame>BladeTail/OOListBox #ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "ATest.h" #import "NNTestFile.h" #import "OOListBox.h" #import "OOListBoxBundle.h" #imp...
BladeTail/OOListBox
OOListBox/Classes/OOVC.h
// // OOVC.h // OOListBox // // Created by <NAME> on 2018-02-09. // #import <UIKit/UIKit.h> @interface OOVC : UIViewController +(OOVC *)loadFromNib; @end
BladeTail/OOListBox
OOListBox/Classes/OOListBoxBundle.h
// // OOListBoxBundle.h // OOListBox // // Created by <NAME> on 2018-02-09. // #import <Foundation/Foundation.h> @interface OOListBoxBundle : NSObject +(NSBundle *)frameworkBundle; @end
BladeTail/OOListBox
OOListBox/Classes/ATest.h
<filename>OOListBox/Classes/ATest.h // // ATest.h // OOListBox // // Created by <NAME> on 04/02/2018. // #import <Foundation/Foundation.h> @interface ATest : NSObject @property (nonatomic,copy) NSString *test; @end
openwengo/qmail-ldap
slurpclose.h
#ifndef SLURPCLOSE_H #define SLURPCLOSE_H #include "stralloc.h" extern int slurpclose(int, stralloc *, unsigned int); #endif
openwengo/qmail-ldap
auto_userl.h
<gh_stars>10-100 #ifndef AUTO_USERL_H #define AUTO_USERL_H extern char auto_userl[]; #endif
openwengo/qmail-ldap
idedit.c
<reponame>openwengo/qmail-ldap #include <sys/types.h> #include <pwd.h> #include <grp.h> #include <unistd.h> #include "readwrite.h" #include "exit.h" #include "scan.h" #include "fmt.h" #include "strerr.h" #include "open.h" #include "seek.h" #include "fork.h" #include "wait.h" #define FATAL "idedit: fatal: " #define WAR...
openwengo/qmail-ldap
sig.h
#ifndef SIG_H #define SIG_H extern void sig_catch(int, void (*)()); extern void sig_block(int); extern void sig_unblock(int); extern void sig_blocknone(void); extern void sig_pause(void); extern void sig_dfl(); extern void sig_miscignore(void); extern void sig_bugcatch(void (*)()); extern void sig_pipeignore(void);...
openwengo/qmail-ldap
auto_patrn.h
#ifndef AUTO_PATRN_H #define AUTO_PATRN_H extern unsigned int auto_patrn; #endif
openwengo/qmail-ldap
qbiff.c
#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <utmp.h> #ifndef UTMP_FILE #ifdef _PATH_UTMP #define UTMP_FILE _PATH_UTMP #else #define UTMP_FILE "/etc/utmp" #endif #endif #include "readwrite.h" #include "stralloc.h" #include "substdio.h" #include "subfd.h" #include "open.h" #include "byte.h" ...
openwengo/qmail-ldap
fmtqfn.h
#ifndef FMTQFN_H #define FMTQFN_H extern unsigned int fmtqfn(char *, const char *, unsigned long, int); #define FMTQFN 40 /* maximum space needed, if len(dirslash) <= 10 */ #endif
openwengo/qmail-ldap
subfd.h
#ifndef SUBFD_H #define SUBFD_H #include "substdio.h" extern substdio *subfdin; extern substdio *subfdinsmall; extern substdio *subfdout; extern substdio *subfdoutsmall; extern substdio *subfderr; extern int subfd_read(int, void *, int); extern int subfd_readsmall(int, void *, int); #endif
openwengo/qmail-ldap
getln.c
<gh_stars>10-100 #include "substdio.h" #include "byte.h" #include "stralloc.h" #include "getln.h" int getln(ss,sa,match,sep) register substdio *ss; register stralloc *sa; int *match; int sep; { char *cont; unsigned int clen; if (getln2(ss,sa,&cont,&clen,sep) == -1) return -1; if (!clen) { *match = 0; return 0...
openwengo/qmail-ldap
maildir.h
#ifndef MAILDIR_H #define MAILDIR_H #include "prioq.h" #include "stralloc.h" #include "strerr.h" extern struct strerr maildir_chdir_err; extern struct strerr maildir_scan_err; extern int maildir_chdir(void); extern void maildir_clean(stralloc *); extern int maildir_scan(prioq *, stralloc *, int, int); #endif
openwengo/qmail-ldap
env.h
#ifndef ENV_H #define ENV_H extern int env_isinit; extern int env_init(void); extern int env_put(const char *); extern int env_put2(const char *, const char *); extern int env_unset(const char *); extern /*@null@*/char *env_get(const char *); extern char *env_pick(void); extern void env_clear(void); extern const char...
openwengo/qmail-ldap
ipmeprint.c
#include "subfd.h" #include "substdio.h" #include "ip.h" #include "ipme.h" #include "exit.h" char temp[IPFMT]; int main(int argc, char **argv) { unsigned int j; switch(ipme_init()) { case 0: substdio_putsflush(subfderr,"out of memory\n"); _exit(111); case -1: substdio_putsflush(subfderr,"hard error\n"); _ex...
openwengo/qmail-ldap
ipme.c
#include <sys/types.h> #include <sys/param.h> #include <sys/time.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> #ifndef SIOCGIFCONF /* whatever works */ #include <sys/sockio.h> #endif #include <unistd.h> #include "hassalen.h" #include "byte.h" #include "ip.h" #include "ipa...
openwengo/qmail-ldap
dns.h
#ifndef DNS_H #define DNS_H #include "ip.h" #include "ipalloc.h" #include "stralloc.h" #define DNS_SOFT -1 #define DNS_HARD -2 #define DNS_MEM -3 void dns_init(int); int dns_cname(stralloc *); int dns_mxip(ipalloc *, stralloc *, unsigned long); int dns_ip(ipalloc *, stralloc *); int dns_ptr(stralloc *, struct ip_add...
openwengo/qmail-ldap
tryflock.c
#include <sys/types.h> #include <sys/file.h> #include <fcntl.h> void main() { flock(0,LOCK_EX | LOCK_UN | LOCK_NB); }
openwengo/qmail-ldap
timeoutwrite.h
<gh_stars>10-100 #ifndef TIMEOUTWRITE_H #define TIMEOUTWRITE_H extern int timeoutwrite(int, int, const void *, int); #endif
openwengo/qmail-ldap
substdi.c
#include "substdio.h" #include "byte.h" #include "error.h" static int oneread(op,fd,buf,len) register int (*op)(); register int fd; register char *buf; register unsigned int len; { register int r; for (;;) { r = op(fd,buf,len); if (r == -1) if (errno == error_intr) continue; return r; } } static in...
openwengo/qmail-ldap
tcpto_clean.c
<reponame>openwengo/qmail-ldap #include <unistd.h> #include "tcpto.h" #include "open.h" #include "substdio.h" #include "readwrite.h" char tcpto_cleanbuf[1024]; void tcpto_clean(void) /* running from queue/mess */ { int fd; unsigned int i; substdio ss; fd = open_write("../lock/tcpto"); if (fd == -1) return; sub...
openwengo/qmail-ldap
headerbody.c
<reponame>openwengo/qmail-ldap #include "stralloc.h" #include "substdio.h" #include "getln.h" #include "hfield.h" #include "headerbody.h" static int getsa(ss,sa,match) substdio *ss; stralloc *sa; int *match; { if (!*match) return 0; if (getln(ss,sa,match,'\n') == -1) return -1; if (*match) return 1; if (!sa->len) ...
openwengo/qmail-ldap
auto-int.c
#include "substdio.h" #include "readwrite.h" #include "exit.h" #include "scan.h" #include "fmt.h" char buf1[256]; substdio ss1 = SUBSTDIO_FDBUF(subwrite,1,buf1,sizeof(buf1)); void putstr(s) char *s; { if (substdio_puts(&ss1,s) == -1) _exit(111); } int main(argc,argv) int argc; char **argv; { char *name; char *...
openwengo/qmail-ldap
now.h
<reponame>openwengo/qmail-ldap<filename>now.h<gh_stars>10-100 #ifndef NOW_H #define NOW_H #include "datetime.h" extern datetime_sec now(void); #endif
openwengo/qmail-ldap
fifo.h
<reponame>openwengo/qmail-ldap<gh_stars>10-100 #ifndef FIFO_H #define FIFO_H extern int fifo_make(const char *, int); #endif
openwengo/qmail-ldap
stralloc.h
<gh_stars>10-100 #ifndef STRALLOC_H #define STRALLOC_H #include "gen_alloc.h" GEN_ALLOC_typedef(stralloc,char,s,len,a) extern int stralloc_ready(stralloc *, unsigned int); extern int stralloc_readyplus(stralloc *, unsigned int); extern int stralloc_copy(stralloc *, stralloc *); extern int stralloc_cat(stralloc *, st...
openwengo/qmail-ldap
prot.h
#ifndef PROT_H #define PROT_H extern int prot_gid(unsigned int); extern int prot_uid(unsigned int); #endif
openwengo/qmail-ldap
endian.c
<filename>endian.c /* endian.c * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <<EMAIL>> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is w...
openwengo/qmail-ldap
substdo.c
<reponame>openwengo/qmail-ldap #include "substdio.h" #include "str.h" #include "byte.h" #include "error.h" static int allwrite(op,fd,buf,len) register int (*op)(); register int fd; register const char *buf; register unsigned int len; { register int w; while (len) { w = op(fd,buf,len); if (w == -1) { ...
openwengo/qmail-ldap
ip.c
#include "fmt.h" #include "scan.h" #include "ip.h" unsigned int ip_fmt(s,ip) char *s; struct ip_address *ip; { unsigned int len; unsigned int i; len = 0; i = fmt_ulong(s,(unsigned long) ip->d[0]); len += i; if (s) s += i; i = fmt_str(s,"."); len += i; if (s) s += i; i = fmt_ulong(s,(unsigned long) ip->d[...
openwengo/qmail-ldap
qmail-start.c
<filename>qmail-start.c #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "fd.h" #include "prot.h" #include "exit.h" #include "fork.h" #include "auto_uids.h" const char *(qsargs[]) = { "qmail-send", 0 }; const char *(qcargs[]) = { "qmail-clean", 0 }; const char *(qlargs[]) = { "qmail-lspawn", "...
openwengo/qmail-ldap
qmail-smtpd.c
#include <unistd.h> #include "sig.h" #include "readwrite.h" #include "stralloc.h" #include "substdio.h" #include "subfd.h" #include "alloc.h" #include "auto_qmail.h" #include "auto_break.h" #include "control.h" #include "received.h" #include "constmap.h" #include "error.h" #include "ipme.h" #include "ip.h" #include "qm...
openwengo/qmail-ldap
dnsdoe.c
#include "substdio.h" #include "subfd.h" #include "exit.h" #include "dns.h" #include "dnsdoe.h" void dnsdoe(r) int r; { switch (r) { case DNS_HARD: substdio_putsflush(subfderr,"hard error\n"); _exit(100); case DNS_SOFT: substdio_putsflush(subfderr,"soft error\n"); _exit(111); case DNS_MEM: substdio_putsflu...
openwengo/qmail-ldap
rcpthosts.c
#include "cdb.h" #include "byte.h" #include "case.h" #include "open.h" #include "error.h" #include "control.h" #include "constmap.h" #include "stralloc.h" #include "rcpthosts.h" static int flagrh = -1; static stralloc rh = {0}; static struct constmap maprh; static int fdlo; static int fdrh; static int fdmrh; static st...
openwengo/qmail-ldap
qmail-newmrh.c
#include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <unistd.h> #include "strerr.h" #include "stralloc.h" #include "substdio.h" #include "getln.h" #include "exit.h" #include "readwrite.h" #include "open.h" #include "auto_qmail.h" #include "cdb_make.h" #include "case.h" #define FATAL "qmail-newmrh: ...
openwengo/qmail-ldap
hostname.c
<gh_stars>10-100 #include <unistd.h> #include "substdio.h" #include "subfd.h" #include "readwrite.h" #include "exit.h" char host[256]; int main() { host[0] = 0; /* sigh */ gethostname(host,sizeof(host)); host[sizeof(host) - 1] = 0; substdio_puts(subfdoutsmall,host); substdio_puts(subfdoutsmall,"\n"); substdio_f...
openwengo/qmail-ldap
maildir.c
<gh_stars>1-10 #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "prioq.h" #include "env.h" #include "stralloc.h" #include "direntry.h" #include "datetime.h" #include "now.h" #include "scan.h" #include "str.h" #include "maildir.h" struct strerr maildir_chdir_err; struct strerr maildir_scan_err;...
openwengo/qmail-ldap
auto_break.h
<gh_stars>10-100 #ifndef AUTO_BREAK_H #define AUTO_BREAK_H extern char auto_break[]; #endif
openwengo/qmail-ldap
coe.h
<reponame>openwengo/qmail-ldap #ifndef COE_H #define COE_H extern int coe(int); #endif
openwengo/qmail-ldap
chkspawn.c
#include "substdio.h" #include "subfd.h" #include "fmt.h" #include "select.h" #include "exit.h" #include "auto_spawn.h" char num[FMT_ULONG]; fd_set fds; int main(int argc, char **argv) { unsigned long hiddenlimit; unsigned long maxnumd; hiddenlimit = sizeof(fds) * 8; maxnumd = (hiddenlimit - 5) / 2; if ...
openwengo/qmail-ldap
timeoutwrite.c
<reponame>openwengo/qmail-ldap<filename>timeoutwrite.c #include "timeoutwrite.h" #include "select.h" #include "error.h" #include "readwrite.h" int timeoutwrite(t,fd,buf,len) int t; int fd; const void *buf; int len; { fd_set wfds; struct timeval tv; tv.tv_sec = t; tv.tv_usec = 0; FD_ZERO(&wfds); FD_SET(fd...
openwengo/qmail-ldap
auto_qmail_inst.h
#ifndef AUTO_QMAIL_INST_H #define AUTO_QMAIL_INST_H extern char auto_qmail_inst[]; #endif
openwengo/qmail-ldap
newfield.h
#ifndef NEWFIELD_H #define NEWFIELD_H #include "datetime.h" #include "stralloc.h" extern stralloc newfield_date; extern int newfield_datemake(datetime_sec); extern stralloc newfield_msgid; extern int newfield_msgidmake(const char *, int, datetime_sec); #endif
openwengo/qmail-ldap
stralloc_copy.c
#include "byte.h" #include "stralloc.h" int stralloc_copy(sato,safrom) stralloc *sato; stralloc *safrom; { return stralloc_copyb(sato,safrom->s,safrom->len); }
openwengo/qmail-ldap
byte.h
<filename>byte.h #ifndef BYTE_H #define BYTE_H extern unsigned int byte_chr(const char *, unsigned int, int); extern unsigned int byte_rchr(const char *, unsigned int, int); extern void byte_copy(void *, unsigned int, const void *); extern void byte_copyr(void *, unsigned int, const void *); extern int byte_diff(const...
openwengo/qmail-ldap
maildirmake.c
<reponame>openwengo/qmail-ldap #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "strerr.h" #include "exit.h" #define FATAL "maildirmake: fatal: " int main(argc,argv) int argc; char **argv; { umask(077); if (!argv[1]) strerr_die1x(100,"maildirmake: usage: maildirmake name"); if (mkdi...
openwengo/qmail-ldap
stralloc_eady.c
<filename>stralloc_eady.c #include "alloc.h" #include "stralloc.h" #include "gen_allocdefs.h" GEN_ALLOC_ready(stralloc,char,s,len,a,i,n,x,30,stralloc_ready) GEN_ALLOC_readyplus(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus)
openwengo/qmail-ldap
substdio_copy.c
#include "substdio.h" int substdio_copy(ssout,ssin) register substdio *ssout; register substdio *ssin; { register int n; register char *x; for (;;) { n = substdio_feed(ssin); if (n < 0) return -2; if (!n) return 0; x = substdio_PEEK(ssin); if (substdio_put(ssout,x,n) == -1) return -3; su...
openwengo/qmail-ldap
digest_sha1.h
/* digest_sha1.h for QLDAP modified to use djb stuff */ /* */ /* SHA1 */ /* */ /* * SHA-1 in C * By <NAME> <<EMAIL>> * 100% Public Domain */ #ifndef _SHA1_H #define _SHA1_H #include "uint32.h" typedef struct { uint32 state[5]; uint32 count[2]; unsigned char buffer[64]; } SHA1_CTX;...
openwengo/qmail-ldap
fmtqfn.c
#include "fmtqfn.h" #include "fmt.h" #include "auto_split.h" unsigned int fmtqfn(s,dirslash,id,flagsplit) char *s; const char *dirslash; unsigned long id; int flagsplit; { unsigned int len; unsigned int i; len = 0; i = fmt_str(s,dirslash); len += i; if (s) s += i; if (flagsplit) { i = fmt_ulong(s,id % auto_...
openwengo/qmail-ldap
tcp-env.c
<reponame>openwengo/qmail-ldap #include <sys/types.h> #include <sys/socket.h> #include <sys/param.h> #include <netinet/in.h> #include <unistd.h> #include "sig.h" #include "stralloc.h" #include "str.h" #include "env.h" #include "fmt.h" #include "scan.h" #include "subgetopt.h" #include "ip.h" #include "dns.h" #include "b...
openwengo/qmail-ldap
remoteinfo.c
<reponame>openwengo/qmail-ldap<filename>remoteinfo.c #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <fcntl.h> #include <unistd.h> #include "byte.h" #include "substdio.h" #include "ip.h" #include "fmt.h" #include "timeoutconn.h" #include "timeoutread.h" #include "timeoutwrite.h" #include...
openwengo/qmail-ldap
qsutil.h
<filename>qsutil.h #ifndef QSUTIL_H #define QSUTIL_H extern void log1(const char *); extern void log2(const char *, const char *); extern void log3(const char *, const char *, const char *); extern void logsa(stralloc *); extern void nomem(void); extern void pausedir(const char *); extern void logsafe(const char *); ...
openwengo/qmail-ldap
qmail-send.c
<reponame>openwengo/qmail-ldap<filename>qmail-send.c #include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> #include <unistd.h> #include "readwrite.h" #include "sig.h" #include "direntry.h" #include "control.h" #include "select.h" #include "open.h" #include "seek.h" #include "exit.h" #include "lock.h" #includ...
openwengo/qmail-ldap
env.c
/* env.c, envread.c, env.h: environ library <NAME>, <EMAIL>. Depends on str.h, alloc.h. Requires environ. 19960113: rewrite. warning: interface is different. No known patent problems. */ #include "str.h" #include "alloc.h" #include "env.h" int env_isinit = 0; /* if env_isinit: */ static unsigned int ea; /* environ is...
openwengo/qmail-ldap
trigger.h
#ifndef TRIGGER_H #define TRIGGER_H #include "select.h" extern void trigger_set(void); extern void trigger_selprep(int *, fd_set *); extern int trigger_pulled(fd_set *); #endif
openwengo/qmail-ldap
qmail-qmqpc.c
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include "substdio.h" #include "getln.h" #include "readwrite.h" #include "exit.h" #include "stralloc.h" #include "slurpclose.h" #include "error.h" #include "sig.h" #include "ip.h" #include "timeoutconn.h" #...
openwengo/qmail-ldap
tcpto.h
<filename>tcpto.h #ifndef TCPTO_H #define TCPTO_H struct ip_address; extern int tcpto(struct ip_address *); extern void tcpto_err(struct ip_address *, int); extern void tcpto_clean(void); #endif
openwengo/qmail-ldap
stralloc_catb.c
<filename>stralloc_catb.c #include "stralloc.h" #include "byte.h" int stralloc_catb(sa,s,n) stralloc *sa; const char *s; unsigned int n; { if (!sa->s) return stralloc_copyb(sa,s,n); if (!stralloc_readyplus(sa,n + 1)) return 0; byte_copy(sa->s + sa->len,n,s); sa->len += n; sa->s[sa->len] = 'Z'; /* ``offensive...
openwengo/qmail-ldap
scan_8long.c
<gh_stars>10-100 #include "scan.h" unsigned int scan_8long(s,u) register const char *s; register unsigned long *u; { register unsigned int pos; register unsigned long result; register unsigned long c; pos = 0; result = 0; while ((c = (unsigned long) (unsigned char) (s[pos] - '0')) < 8) { result = result * ...
openwengo/qmail-ldap
seek.h
#ifndef SEEK_H #define SEEK_H typedef unsigned long seek_pos; extern seek_pos seek_cur(int fd); extern int seek_set(int fd, seek_pos); extern int seek_end(int fd); extern int seek_trunc(int fd, seek_pos); #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) #endif
openwengo/qmail-ldap
getln.h
#ifndef GETLN_H #define GETLN_H #include "stralloc.h" #include "substdio.h" extern int getln(substdio *, stralloc *, int *, int); extern int getln2(substdio *, stralloc *, char **, unsigned int *, int); #endif
openwengo/qmail-ldap
readwrite.h
#ifndef READWRITE_H #define READWRITE_H int subread(int, void *, int); int subwrite(int, void *, int); #endif
openwengo/qmail-ldap
hfield.c
<filename>hfield.c #include "hfield.h" static const char *(hname[]) = { "unknown-header" , "sender" , "from" , "reply-to" , "to" , "cc" , "bcc" , "date" , "message-id" , "subject" , "resent-sender" , "resent-from" , "resent-reply-to" , "resent-to" , "resent-cc" , "resent-bcc" , "resent-date" , "resent-message-id" , ...
openwengo/qmail-ldap
fd.h
<gh_stars>10-100 #ifndef FD_H #define FD_H extern int fd_copy(int, int); extern int fd_move(int, int); #endif
openwengo/qmail-ldap
prot.c
#include <unistd.h> #include "hasshsgr.h" #include "prot.h" /* XXX: there are more portability problems here waiting to leap out at me */ int prot_gid(gid) unsigned int gid; { #ifdef HASSHORTSETGROUPS short x[2]; x[0] = gid; x[1] = 73; /* catch errors */ if (setgroups(1,x) == -1) return -1; #else if (setgroup...
openwengo/qmail-ldap
trysalen.c
<gh_stars>10-100 #include <sys/types.h> #include <sys/param.h> #include <sys/time.h> #include <sys/ioctl.h> #include <sys/socket.h> void foo() { struct sockaddr sa; sa.sa_len = 0; }
openwengo/qmail-ldap
preline.c
<filename>preline.c<gh_stars>10-100 #include <unistd.h> #include "fd.h" #include "sgetopt.h" #include "readwrite.h" #include "strerr.h" #include "substdio.h" #include "exit.h" #include "fork.h" #include "wait.h" #include "env.h" #include "sig.h" #include "error.h" #define FATAL "preline: fatal: " void die_usage() { ...
openwengo/qmail-ldap
auto_uids.h
#ifndef AUTO_UIDS_H #define AUTO_UIDS_H extern unsigned int auto_uida; extern unsigned int auto_uidd; extern unsigned int auto_uidl; extern unsigned int auto_uido; extern unsigned int auto_uidp; extern unsigned int auto_uidq; extern unsigned int auto_uidr; extern unsigned int auto_uids; extern unsigned int auto_gidn;...
openwengo/qmail-ldap
date822fmt.c
<filename>date822fmt.c #include "datetime.h" #include "fmt.h" #include "date822fmt.h" static const char *montab[12] = { "Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec" }; unsigned int date822fmt(s,dt) char *s; struct datetime *dt; { unsigned int i; unsigned int len; len = 0; i = fmt_ui...
openwengo/qmail-ldap
newfield.c
#include <sys/types.h> #include <unistd.h> #include "fmt.h" #include "datetime.h" #include "stralloc.h" #include "date822fmt.h" #include "newfield.h" /* "Date: 26 Sep 1995 04:46:53 -0000\n" */ stralloc newfield_date = {0}; /* "Message-ID: <19950926044653.<EMAIL>>\n" */ stralloc newfield_msgid = {0}; static unsigned i...
openwengo/qmail-ldap
dnsdoe.h
<reponame>openwengo/qmail-ldap<filename>dnsdoe.h<gh_stars>10-100 #ifndef DNSDOE_H #define DNSDOE_H extern void dnsdoe(int); #endif
openwengo/qmail-ldap
case_lowers.c
<reponame>openwengo/qmail-ldap #include "case.h" void case_lowers(s) char *s; { unsigned char x; while ((x = *s)) { x -= 'A'; if (x <= 'Z' - 'A') *s = x + 'a'; ++s; } }
openwengo/qmail-ldap
ndelay.c
<reponame>openwengo/qmail-ldap #include <sys/types.h> #include <fcntl.h> #include "ndelay.h" #ifndef O_NONBLOCK #define O_NONBLOCK O_NDELAY #endif int ndelay_on(fd) int fd; { return fcntl(fd,F_SETFL,fcntl(fd,F_GETFL,0) | O_NONBLOCK); }
openwengo/qmail-ldap
fmt_uint.c
#include "fmt.h" unsigned int fmt_uint(s,u) register char *s; register unsigned int u; { register unsigned long l; l = u; return fmt_ulong(s,l); }
openwengo/qmail-ldap
seek_end.c
<reponame>openwengo/qmail-ldap #include <sys/types.h> #include <unistd.h> #include "seek.h" #define END 2 /* sigh */ int seek_end(fd) int fd; { if (lseek(fd,(off_t) 0,END) == -1) return -1; return 0; }
openwengo/qmail-ldap
qlx.h
#ifndef QLX_H #define QLX_H /* 0, 111, 100 are qmail-local success, soft, hard */ #define QLX_USAGE 112 #define QLX_BUG 101 #define QLX_ROOT 113 #define QLX_NFS 115 #define QLX_NOALIAS 116 #define QLX_CDB 117 #define QLX_SYS 118 #define QLX_NOMEM 119 #define QLX_EXECSOFT 120 #define QLX_EXECPW 121 #define QLX_EXECHAR...
openwengo/qmail-ldap
datetime.c
<filename>datetime.c /* 19950925 */ #include "datetime.h" void datetime_tai(dt,t) struct datetime *dt; datetime_sec t; { int day; int tod; int year; int yday; int wday; int mon; tod = t % 86400; day = t / 86400; if (tod < 0) { tod += 86400; --day; } dt->hour = tod / 3600; tod %= 3600; dt->m...
openwengo/qmail-ldap
limit.h
#ifndef __LIMIT_H__ #define __LIMIT_H__ #include <limits.h> /* * we only need the max value for 32bit integers so make sure that we have * those available. * So we assume ILP32 or I32LP64 based systems which should be the default * for unix systems. AFAIK only Cray is ILP64... */ #ifndef UINT_MAX #define UINT_M...
openwengo/qmail-ldap
now.c
<gh_stars>10-100 #include <time.h> #include "datetime.h" #include "now.h" datetime_sec now(void) { return time((void *)0); }
openwengo/qmail-ldap
gfrom.c
#include "str.h" #include "gfrom.h" int gfrom(s,len) char *s; int len; { while ((len > 0) && (*s == '>')) { ++s; --len; } return (len >= 5) && !str_diffn(s,"From ",5); }
openwengo/qmail-ldap
trysgact.c
<reponame>openwengo/qmail-ldap #include <signal.h> void main() { struct sigaction sa; sa.sa_handler = 0; sa.sa_flags = 0; sigemptyset(&sa.sa_mask); sigaction(0,&sa,(struct sigaction *) 0); }
openwengo/qmail-ldap
subfderr.c
#include "readwrite.h" #include "substdio.h" #include "subfd.h" char subfd_errbuf[256]; static substdio it = SUBSTDIO_FDBUF(subwrite,2,subfd_errbuf,256); substdio *subfderr = &it;
openwengo/qmail-ldap
install.c
#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include "substdio.h" #include "strerr.h" #include "error.h" #include "open.h" #include "readwrite.h" #include "exit.h" #include "fifo.h" extern void hier(); #define FATAL "install: fatal: " #ifdef FAKE_CHOWN #include <stdio.h> #include <unistd.h> #inc...
openwengo/qmail-ldap
extra.h
#ifndef EXTRA_H #define EXTRA_H #define QUEUE_EXTRA "" #define QUEUE_EXTRALEN 0 #endif
openwengo/qmail-ldap
quote.h
#ifndef QUOTE_H #define QUOTE_H #include "stralloc.h" extern int quote_need(const char *, unsigned int); extern int quote(stralloc *, stralloc *); extern int quote2(stralloc *, const char *); #endif