003 File Manager
Current Path:
/usr/src/contrib/blacklist/port
usr
/
src
/
contrib
/
blacklist
/
port
/
📁
..
📄
Makefile.am
(745 B)
📄
_strtoi.h
(2.81 KB)
📄
clock_gettime.c
(292 B)
📄
config.h
(50 B)
📄
configure.ac
(2.54 KB)
📄
fgetln.c
(2.68 KB)
📄
fparseln.c
(5.27 KB)
📄
getprogname.c
(297 B)
📁
m4
📄
pidfile.c
(4.77 KB)
📄
popenve.c
(6.35 KB)
📄
port.h
(1.73 KB)
📄
sockaddr_snprintf.c
(9.48 KB)
📄
strlcat.c
(2.51 KB)
📄
strlcpy.c
(2.11 KB)
📄
strtoi.c
(2.17 KB)
Editing: port.h
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdio.h> #include <inttypes.h> #include <time.h> #include <sys/stat.h> #include <netdb.h> #ifndef __unused #define __unused __attribute__((__unused__)) #endif #ifndef __dead #define __dead __attribute__((__noreturn__)) #endif #ifndef __RCSID #define __RCSID(a) #endif #ifndef __UNCONST #define __UNCONST(a) ((void *)(intptr_t)(a)) #endif #ifndef __arraycount #define __arraycount(a) (sizeof(a) / sizeof(a[0])) #endif #ifndef HAVE_STRLCPY size_t strlcpy(char *, const char *, size_t); #endif #ifndef HAVE_STRLCAT size_t strlcat(char *, const char *, size_t); #endif #ifndef HAVE_POPENVE FILE *popenve(const char *, char *const *, char *const *, const char *); int pcloseve(FILE *); #define pclose(a) pcloseve(a); #endif #ifndef HAVE_SOCKADDR_SNPRINTF struct sockaddr; int sockaddr_snprintf(char *, size_t, const char *, const struct sockaddr *); #endif #ifndef HAVE_STRTOI intmax_t strtoi(const char *, char **, int, intmax_t, intmax_t, int *); #endif #ifndef HAVE_GETPROGNAME const char *getprogname(void); void setprogname(char *); #endif #ifndef HAVE_PIDFILE int pidfile(const char *); #endif #ifndef HAVE_FPARSELN #define FPARSELN_UNESCALL 0xf #define FPARSELN_UNESCCOMM 0x1 #define FPARSELN_UNESCCONT 0x2 #define FPARSELN_UNESCESC 0x4 #define FPARSELN_UNESCREST 0x8 char *fparseln(FILE *, size_t *, size_t *, const char delim[3], int); #endif #ifndef HAVE_FGETLN char *fgetln(FILE *, size_t *); #endif #ifndef HAVE_CLOCK_GETTIME struct timespec; int clock_gettime(int, struct timespec *); #define CLOCK_REALTIME 0 #endif #if !defined(__FreeBSD__) #define _PATH_BLCONF "conf" #define _PATH_BLCONTROL "control" #define _PATH_BLSOCK "blacklistd.sock" #define _PATH_BLSTATE "blacklistd.db" #endif
Upload File
Create Folder