/
usr
/
include
/
proftpd
/
/usr/include/proftpd
mkdir
upload
Name
Size
Mode
Actions
ascii.h
2674
0644
edit
dl
rm
auth.h
6381
0644
edit
dl
rm
base.h
3497
0644
edit
dl
rm
bindings.h
8027
0644
edit
dl
rm
buildstamp.h
50
0644
edit
dl
rm
ccan-json.h
3677
0644
edit
dl
rm
child.h
1511
0644
edit
dl
rm
class.h
3096
0644
edit
dl
rm
cmd.h
4463
0644
edit
dl
rm
compat.h
1324
0644
edit
dl
rm
conf.h
3948
0644
edit
dl
rm
config.h
36627
0644
edit
dl
rm
configdb.h
5864
0644
edit
dl
rm
ctrls.h
8524
0644
edit
dl
rm
data.h
2582
0644
edit
dl
rm
default_paths.h
3037
0644
edit
dl
rm
dirtree.h
7648
0644
edit
dl
rm
display.h
2514
0644
edit
dl
rm
encode.h
3757
0644
edit
dl
rm
env.h
1913
0644
edit
dl
rm
error.h
18894
0644
edit
dl
rm
event.h
3583
0644
edit
dl
rm
expr.h
2209
0644
edit
dl
rm
feat.h
1303
0644
edit
dl
rm
filter.h
2113
0644
edit
dl
rm
fsio.h
19528
0644
edit
dl
rm
ftp.h
9196
0644
edit
dl
rm
glibc-glob.h
7294
0644
edit
dl
rm
hanson-tpl.h
4505
0644
edit
dl
rm
help.h
1265
0644
edit
dl
rm
ident.h
1334
0644
edit
dl
rm
inet.h
5395
0644
edit
dl
rm
jot.h
8736
0644
edit
dl
rm
json.h
6282
0644
edit
dl
rm
lastlog.h
1655
0644
edit
dl
rm
log.h
6822
0644
edit
dl
rm
logfmt.h
3444
0644
edit
dl
rm
memcache.h
5056
0644
edit
dl
rm
mkhome.h
1569
0644
edit
dl
rm
modules.h
6474
0644
edit
dl
rm
mod_ctrls.h
4058
0644
edit
dl
rm
mod_sftp.h
10959
0644
edit
dl
rm
mod_tls.h
6478
0644
edit
dl
rm
netacl.h
2571
0644
edit
dl
rm
netaddr.h
15999
0644
edit
dl
rm
netio.h
8176
0644
edit
dl
rm
openbsd-blowfish.h
2967
0644
edit
dl
rm
options.h
8531
0644
edit
dl
rm
os.h
7391
0644
edit
dl
rm
parser.h
6351
0644
edit
dl
rm
pidfile.h
1331
0644
edit
dl
rm
pool.h
4138
0644
edit
dl
rm
pr-syslog.h
3552
0644
edit
dl
rm
privs.h
2613
0644
edit
dl
rm
proctitle.h
1682
0644
edit
dl
rm
proftpd.h
9727
0644
edit
dl
rm
random.h
1325
0644
edit
dl
rm
redis.h
15953
0644
edit
dl
rm
regexp.h
3720
0644
edit
dl
rm
response.h
3145
0644
edit
dl
rm
rlimit.h
1873
0644
edit
dl
rm
scoreboard.h
4760
0644
edit
dl
rm
session.h
4430
0644
edit
dl
rm
sets.h
1986
0644
edit
dl
rm
signals.h
1879
0644
edit
dl
rm
stash.h
2174
0644
edit
dl
rm
str.h
5729
0644
edit
dl
rm
support.h
4494
0644
edit
dl
rm
table.h
11883
0644
edit
dl
rm
throttle.h
1299
0644
edit
dl
rm
timers.h
3370
0644
edit
dl
rm
trace.h
2421
0644
edit
dl
rm
utf8.h
1407
0644
edit
dl
rm
var.h
4419
0644
edit
dl
rm
version.h
1631
0644
edit
dl
rm
xferlog.h
1374
0644
edit
dl
rm
Edit:
/usr/include/proftpd/os.h
(7391B)
/* * ProFTPD - FTP server daemon * Copyright (c) 2017-2022 The ProFTPD Project team * * 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 version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * * As a special exemption, Public Flood Software/MacGyver aka Habeeb J. Dihu * and other respective copyright holders give permission to link this program * with OpenSSL, and distribute the resulting executable, without including * the source code for OpenSSL in the source distribution. */ /* OS/Platform header file includes. */ #ifndef PR_OS_H #define PR_OS_H #ifndef _GNU_SOURCE # define _GNU_SOURCE #endif #include "config.h" /* Manually override the socklen_t type on HP-UX 11 boxes. For more * details on why, see: * http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16317 */ #if defined(HPUX11) && !defined(_XOPEN_SOURCE_EXTENDED) # undef socklen_t # define socklen_t int #endif #include "default_paths.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <pwd.h> #include <grp.h> #ifdef HAVE_STROPTS_H # include <stropts.h> #endif #ifdef HAVE_SYS_TYPES_H # include <sys/types.h> #endif #ifdef HAVE_INTTYPES_H # include <inttypes.h> #endif #ifdef HAVE_UNISTD_H # include <unistd.h> #endif #ifdef HAVE_LIMITS_H # include <limits.h> #endif #ifdef HAVE_SIGNAL_H # include <signal.h> #endif #ifdef HAVE_SYS_ACL_H # include <sys/acl.h> #endif #ifdef HAVE_SYS_SELECT_H # include <sys/select.h> #endif #ifdef HAVE_SYS_STAT_H # include <sys/stat.h> #endif #ifdef HAVE_SYS_FILE_H # include <sys/file.h> #endif #ifdef HAVE_SYS_WAIT_H # include <sys/wait.h> #endif #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned)(stat_val)>>8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #ifdef HAVE_MEMORY_H # include <memory.h> #endif #ifdef HAVE_STRINGS_H # include <strings.h> #endif #ifdef STDC_HEADERS # include <string.h> #else # ifndef HAVE_STRCHR # define strchr index # define strrchr rindex # endif char *strchr(),*strrchr(); # ifndef HAVE_MEMCPY # define memcpy(d,s,n) bcopy((s),(d),(n)) # define memmove(d,s,n) bcopy((s),(d),(n)) # endif #endif #ifdef HAVE_BSTRING_H # include <bstring.h> #endif #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif #ifdef HAVE_SYS_PARAM_H # include <sys/param.h> #endif #ifdef HAVE_SYS_RESOURCE_H # include <sys/resource.h> #endif #ifdef HAVE_SYS_SOCKET_H # include <sys/socket.h> #endif #ifdef HAVE_NETDB_H # include <netdb.h> #endif #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> #endif #ifdef HAVE_NETINET_IN_SYSTM_H # include <netinet/in_systm.h> #endif #ifdef HAVE_NETINET_IP_H # include <netinet/ip.h> #endif #ifdef HAVE_NETINET_TCP_H # include <netinet/tcp.h> #endif #ifdef HAVE_ARPA_INET_H # include <arpa/inet.h> #endif #if (defined(HAVE_SHADOW_H) && defined(USESHADOW)) # include <shadow.h> #endif #ifndef TM_IN_SYS_TIME # include <time.h> #endif #ifdef HAVE_SYSLOG_H # include <syslog.h> #endif #ifdef HAVE_DIRENT_H # include <dirent.h> # define NAMLEN(dirent) strlen((dirent)->d_name) #else # define dirent direct # define NAMLEN(dirent) ((dirent)->d_namlen) # ifdef HAVE_SYS_NDIR_H # include <sys/ndir.h> # endif # ifdef HAVE_SYS_DIR_H # include <sys/dir.h> # endif # ifdef HAVE_NDIR_H # include <ndir.h> # endif #endif #ifdef HAVE_FCNTL_H # include <fcntl.h> #endif #ifdef HAVE_SYS_IOCTL_H # ifdef SOLARIS2 # define BSD_COMP 1 # endif # include <sys/ioctl.h> #endif #ifdef HAVE_ERRNO_H # include <errno.h> #endif #ifdef HAVE_CTYPE_H # include <ctype.h> #endif #ifdef HAVE_FNMATCH # include <fnmatch.h> #endif #ifdef HAVE_UTIME_H # include <utime.h> #endif #ifdef HAVE_UTMP_H # include <utmp.h> #endif #ifdef HAVE_UTMPX_H # include <utmpx.h> #endif /* Solaris 2.5 needs sys/termios.h for TIOCNOTTY. Due to complications * with termio.h/termios.h, prefer to include termios.h. If not found, * then try termio.h */ #ifdef HAVE_TERMIOS_H # include <termios.h> #else # ifdef HAVE_SYS_TERMIOS_H # include <sys/termios.h> # else # ifdef HAVE_SYS_TERMIO_H # include <sys/termio.h> # endif /* HAVE_SYS_TERMIO_H */ # endif /* HAVE_SYS_TERMIOS_H */ #endif /* HAVE_TERMIOS_H */ #ifdef PR_USE_NLS # ifdef HAVE_LIBINTL_H # include <libintl.h> # endif # define _(str) dgettext("proftpd", str) # ifdef HAVE_LOCALE_H # include <locale.h> # endif #else # define _(str) (str) # define textdomain(dir) # define bindtextdomain(pkg, dir) #endif /* PR_USE_NLS */ /* AIX, when compiled using -D_NO_PROTO, lacks some prototypes without * which ProFTPD may do some funny (and not good) things. Provide the * prototypes as necessary here. * * As examples of what these "not good" things might be: * * 1. The ScoreboardFile will grow endlessly; session slots will not * be cleared and reused properly. * * 2. The mod_delay module will complain of being unable to load the * table into memory due to "Invalid argument". */ #if defined(_NO_PROTO) && (defined(AIX4) || defined(AIX5)) off_t lseek(int, off_t, int); #endif /* See if we have bcopy, if not define them to use the memcpy functions */ #ifndef HAVE_BCOPY # define bcopy(s,d,n) memcpy((d),(s),(n)) # define bzero(d,n) memset((d),0,(n)) #endif /* Solaris has __vsnprintf, but no vsnprintf */ #if ! defined(HAVE_VSNPRINTF) && defined(HAVE___VSNPRINTF) # undef vsnprintf # define vsnprintf __vsnprintf # define HAVE_VSNPRINTF 1 #endif #if ! defined(HAVE_SNPRINTF) && defined(HAVE___SNPRINTF) # undef snprintf # define snprintf __snprintf # define HAVE_SNPRINTF #endif /* If we are BSD, make minor adjustments */ #if defined(BSD) && !defined(O_APPEND) # define O_APPEND F_APPEND #endif #ifndef O_NONBLOCK #define O_NONBLOCK O_NDELAY #endif #ifndef O_NDELAY #define O_NDELAY O_NONBLOCK #endif #if defined(HAVE_GETOPT) && defined(AIX3) /* AIX 3.2.5 libc exports symbol optopt but is forgotten in includes */ extern int optopt; #endif /* Necessary for alloca to work */ #if !defined(__alloca) && !defined(__GNU_LIBRARY__) # ifdef __GNUC__ # undef alloca # define alloca(n) __builtin_alloca(n) # else /* Not GCC */ # ifdef HAVE_ALLOCA_H # include <alloca.h> # else /* No HAVE_ALLOCA_H */ # ifndef _AIX # ifdef WINDOWS32 # include <malloc.h> # else extern char *alloca(); # endif /* WINDOWS32 */ # endif /* Not _AIX */ # endif /* sparc or HAVE_ALLOCA_H */ # endif /* GCC */ # define __alloca alloca #endif #ifdef HAVE_SETPASSENT # define setpwent() setpassent(1) #endif /* HAVE_SETPASSENT */ #ifdef HAVE_SETGROUPENT # define setgrent() setgroupent(1) #endif /* HAVE_SETGROUPENT */ #if !defined(HAVE_U_INT8_T) typedef uint8_t u_int8_t; #endif #if !defined(HAVE_U_INT16_T) typedef uint16_t u_int16_t; #endif #if !defined(HAVE_U_INT32_T) typedef uint32_t u_int32_t; #endif #endif /* PR_OS_H */
Save
cmd:
run