"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libedit/sys.h" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

sys.h  (tnftp-20151004):sys.h  (tnftp-20200705)
/* $NetBSD: sys.h,v 1.4 2005/05/27 04:58:05 lukem Exp $ */ /* $NetBSD: sys.h,v 1.7 2020/07/04 13:43:21 lukem Exp $ */
/* from NetBSD: sys.h,v 1.9 2004/01/17 17:57:40 christos Exp */ /* from NetBSD: sys.h,v 1.27 2016/05/09 21:46:56 christos Exp */
/*- /*-
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* This code is derived from software contributed to Berkeley by * This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University. * Christos Zoulas of Cornell University.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
skipping to change at line 44 skipping to change at line 44
* *
* @(#)sys.h 8.1 (Berkeley) 6/4/93 * @(#)sys.h 8.1 (Berkeley) 6/4/93
*/ */
/* /*
* sys.h: Put all the stupid compiler and system dependencies here... * sys.h: Put all the stupid compiler and system dependencies here...
*/ */
#ifndef _h_sys #ifndef _h_sys
#define _h_sys #define _h_sys
#if 0 /* tnftp */
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
#endif /* tnftp */
#if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || _ _GNUC__ == 2 && __GNUC_MINOR__ < 8) #if !defined(__attribute__) && (defined(__cplusplus) || !defined(__GNUC__) || _ _GNUC__ == 2 && __GNUC_MINOR__ < 8)
# define __attribute__(A) # define __attribute__(A)
#endif #endif
#if __not_for_tnftp #if 0 /* tnftp */
#ifndef __BEGIN_DECLS #ifndef __BEGIN_DECLS
# ifdef __cplusplus # ifdef __cplusplus
# define __BEGIN_DECLS extern "C" { # define __BEGIN_DECLS extern "C" {
# define __END_DECLS } # define __END_DECLS }
# else # else
# define __BEGIN_DECLS # define __BEGIN_DECLS
# define __END_DECLS # define __END_DECLS
# endif # endif
#endif #endif
#endif /* __not_for_tnftp */ #endif /* tnftp */
#ifndef public
# define public /* Externally visible functions/variables */
#endif
#ifndef private /* If your compiler does not support this, define it to be empty. */
# define private static /* Always hidden internals */ #define libedit_private __attribute__((__visibility__("hidden")))
#endif
#ifndef protected #ifndef __arraycount
# define protected /* Redefined from elsewhere to "static" */ # define __arraycount(a) (sizeof(a) / sizeof(*(a)))
/* When we want to hide everything */
#endif #endif
#ifndef _PTR_T #if 0 /* tnftp */
# define _PTR_T
typedef void *ptr_t;
#endif
#ifndef _IOCTL_T
# define _IOCTL_T
typedef void *ioctl_t;
#endif
#if __not_for_tnftp
#include <stdio.h> #include <stdio.h>
#ifndef HAVE_STRLCAT #ifndef HAVE_STRLCAT
#define strlcat libedit_strlcat #define strlcat libedit_strlcat
size_t strlcat(char *dst, const char *src, size_t size); size_t strlcat(char *dst, const char *src, size_t size);
#endif #endif
#ifndef HAVE_STRLCPY #ifndef HAVE_STRLCPY
#define strlcpy libedit_strlcpy #define strlcpy libedit_strlcpy
size_t strlcpy(char *dst, const char *src, size_t size); size_t strlcpy(char *dst, const char *src, size_t size);
#endif #endif
#ifndef HAVE_FGETLN #ifndef HAVE_GETLINE
#define fgetln libedit_fgetln #define getline libedit_getline
char *fgetln(FILE *fp, size_t *len); ssize_t getline(char **line, size_t *len, FILE *fp);
#endif
#ifndef _DIAGASSERT
#define _DIAGASSERT(x)
#endif
#ifndef __RCSID
#define __RCSID(x)
#endif
#ifndef HAVE_U_INT32_T
typedef unsigned int u_int32_t;
#endif
#ifndef HAVE_SIZE_MAX
#define SIZE_MAX ((size_t)-1)
#endif #endif
#define REGEX /* Use POSIX.2 regular expression functions */ #define REGEX /* Use POSIX.2 regular expression functions */
#undef REGEXP /* Use UNIX V8 regular expression functions */ #undef REGEXP /* Use UNIX V8 regular expression functions */
#endif /* __not_for_tnftp */ #endif /* tnftp */
#ifdef notdef #if defined(__sun)
# undef REGEX extern int tgetent(char *, const char *);
# undef REGEXP extern int tgetflag(char *);
# include <malloc.h> extern int tgetnum(char *);
# ifdef __GNUC__ extern int tputs(const char *, int, int (*)(int));
/* extern char* tgoto(const char*, int, int);
* Broken hdrs. extern char* tgetstr(char*, char**);
*/
extern int tgetent(const char *bp, char *name);
extern int tgetflag(const char *id);
extern int tgetnum(const char *id);
extern char *tgetstr(const char *id, char **area);
extern char *tgoto(const char *cap, int col, int row);
extern int tputs(const char *str, int affcnt, int (*putc)(int));
extern char *getenv(const char *);
extern int fprintf(FILE *, const char *, ...);
extern int sigsetmask(int);
extern int sigblock(int);
extern int fputc(int, FILE *);
extern int fgetc(FILE *);
extern int fflush(FILE *);
extern int tolower(int);
extern int toupper(int);
extern int errno, sys_nerr;
extern char *sys_errlist[];
extern void perror(const char *);
# include <string.h>
# define strerror(e) sys_errlist[e]
# endif
# ifdef SABER
extern ptr_t memcpy(ptr_t, const ptr_t, size_t);
extern ptr_t memset(ptr_t, int, size_t);
# endif
extern char *fgetline(FILE *, int *);
#endif #endif
#if HAVE_REGEX_H #if HAVE_REGEX_H /* tnftp extension */
# include <regex.h> # include <regex.h>
# define REGEX # define REGEX
#endif #endif
#endif /* _h_sys */ #endif /* _h_sys */
 End of changes. 11 change blocks. 
64 lines changed or deleted 43 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)