wok diff busybox/stuff/busybox-1.31-diet.u @ rev 22117

updated vsftpd (2.3.5 -> 3.0.3)
author Hans-G?nter Theisgen
date Sat Nov 02 16:53:53 2019 +0100 (2019-11-02)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.31-diet.u	Sat Nov 02 16:53:53 2019 +0100
     1.3 @@ -0,0 +1,115 @@
     1.4 +--- busybox-1.31/include/platform.h
     1.5 ++++ busybox-1.31/include/platform.h
     1.6 +@@ -533,6 +533,25 @@
     1.7 + # undef HAVE_PRINTF_PERCENTM
     1.8 + #endif
     1.9 + 
    1.10 ++#if defined(__dietlibc__)
    1.11 ++# define __aligned_u64 __u64 __attribute__((aligned(8)))
    1.12 ++# define LOOP_SET_STATUS64	0x4C04
    1.13 ++# define LOOP_GET_STATUS64	0x4C05
    1.14 ++# define MAXSYMLINKS	20
    1.15 ++# define S_TYPEISMQ(x)	0
    1.16 ++# define S_TYPEISSEM(x)	0
    1.17 ++# define S_TYPEISSHM(x)	0
    1.18 ++# define O_CLOEXEC		0
    1.19 ++# undef HAVE_STRVERSCMP
    1.20 ++# undef HAVE_DPRINTF
    1.21 ++# undef HAVE_STRCASESTR
    1.22 ++#undef ALWAYS_INLINE
    1.23 ++#define ALWAYS_INLINE inline
    1.24 ++#undef NOINLINE
    1.25 ++#define NOINLINE
    1.26 ++# define ttyname_r(a,b,c)	(strlcpy(b, ttyname(a), c) == 0)
    1.27 ++#endif
    1.28 ++ 
    1.29 + /*
    1.30 +  * Now, define prototypes for all the functions defined in platform.c
    1.31 +  * These must come after all the HAVE_* macros are defined (or not)
    1.32 +--- busybox-1.31/networking/ping.c
    1.33 ++++ busybox-1.31/networking/ping.c
    1.34 +@@ -123,6 +124,84 @@
    1.35 + #include "libbb.h"
    1.36 + #include "common_bufsiz.h"
    1.37 + 
    1.38 ++#ifdef __dietlibc__
    1.39 ++/* Dietlibc is missing the BSD definition 'struct icmp' */
    1.40 ++/*
    1.41 ++ * Internal of an ICMP Router Advertisement
    1.42 ++ */
    1.43 ++struct icmp_ra_addr
    1.44 ++{
    1.45 ++    uint32_t ira_addr;
    1.46 ++    uint32_t ira_preference;
    1.47 ++};
    1.48 ++
    1.49 ++struct icmp
    1.50 ++{
    1.51 ++    uint8_t  icmp_type;  /* type of message, see below */
    1.52 ++    uint8_t  icmp_code;  /* type sub code */
    1.53 ++    uint16_t icmp_cksum; /* ones complement checksum of struct */
    1.54 ++    union
    1.55 ++    {
    1.56 ++	uint8_t ih_pptr;             /* ICMP_PARAMPROB */
    1.57 ++	struct in_addr ih_gwaddr;   /* gateway address */
    1.58 ++	struct ih_idseq             /* echo datagram */
    1.59 ++	{
    1.60 ++	    uint16_t icd_id;
    1.61 ++	    uint16_t icd_seq;
    1.62 ++	} ih_idseq;
    1.63 ++	uint32_t ih_void;
    1.64 ++
    1.65 ++	/* ICMP_UNREACH_NEEDFRAG -- Path MTU Discovery (RFC1191) */
    1.66 ++	struct ih_pmtu
    1.67 ++	{
    1.68 ++	    uint16_t ipm_void;
    1.69 ++	    uint16_t ipm_nextmtu;
    1.70 ++	} ih_pmtu;
    1.71 ++
    1.72 ++	struct ih_rtradv
    1.73 ++	{
    1.74 ++	    uint8_t irt_num_addrs;
    1.75 ++	    uint8_t irt_wpa;
    1.76 ++	    uint16_t irt_lifetime;
    1.77 ++	} ih_rtradv;
    1.78 ++    } icmp_hun;
    1.79 ++#define icmp_pptr       icmp_hun.ih_pptr
    1.80 ++#define icmp_gwaddr     icmp_hun.ih_gwaddr
    1.81 ++#define icmp_id         icmp_hun.ih_idseq.icd_id
    1.82 ++#define icmp_seq        icmp_hun.ih_idseq.icd_seq
    1.83 ++#define icmp_void       icmp_hun.ih_void
    1.84 ++#define icmp_pmvoid     icmp_hun.ih_pmtu.ipm_void
    1.85 ++#define icmp_nextmtu    icmp_hun.ih_pmtu.ipm_nextmtu
    1.86 ++#define icmp_num_addrs  icmp_hun.ih_rtradv.irt_num_addrs
    1.87 ++#define icmp_wpa        icmp_hun.ih_rtradv.irt_wpa
    1.88 ++#define icmp_lifetime   icmp_hun.ih_rtradv.irt_lifetime
    1.89 ++    union
    1.90 ++    {
    1.91 ++	struct
    1.92 ++	{
    1.93 ++	    uint32_t its_otime;
    1.94 ++	    uint32_t its_rtime;
    1.95 ++	    uint32_t its_ttime;
    1.96 ++	} id_ts;
    1.97 ++	struct
    1.98 ++	{
    1.99 ++	    struct ip idi_ip;
   1.100 ++	    /* options and then 64 bits of data */
   1.101 ++	} id_ip;
   1.102 ++	struct icmp_ra_addr id_radv;
   1.103 ++	uint32_t   id_mask;
   1.104 ++	uint8_t    id_data[1];
   1.105 ++    } icmp_dun;
   1.106 ++#define icmp_otime      icmp_dun.id_ts.its_otime
   1.107 ++#define icmp_rtime      icmp_dun.id_ts.its_rtime
   1.108 ++#define icmp_ttime      icmp_dun.id_ts.its_ttime
   1.109 ++#define icmp_ip         icmp_dun.id_ip.idi_ip
   1.110 ++#define icmp_radv       icmp_dun.id_radv
   1.111 ++#define icmp_mask       icmp_dun.id_mask
   1.112 ++#define icmp_data       icmp_dun.id_data
   1.113 ++};
   1.114 ++#endif /* __dietlibc__ */
   1.115 ++ 
   1.116 + #ifdef __BIONIC__
   1.117 + /* should be in netinet/ip_icmp.h */
   1.118 + # define ICMP_DEST_UNREACH    3  /* Destination Unreachable  */