Changeset d8dbdc0 in rtems


Ignore:
Timestamp:
03/29/04 22:11:51 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4c84d7b
Parents:
d6154c7
Message:

2004-03-29 Ralf Corsepius <ralf_corsepius@…>

  • libnetworking/lib/ftpfs.c, libnetworking/lib/rtems_bsdnet_ntp.c, libnetworking/lib/tftpDriver.c, libnetworking/machine/endian.h, libnetworking/net/if_ppp.c, libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_bsdnet_internal.h, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_syscall.c: Convert to using c99 fixed size types.
Location:
cpukit
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd6154c7 rd8dbdc0  
     12004-03-29      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * libnetworking/lib/ftpfs.c, libnetworking/lib/rtems_bsdnet_ntp.c,
     4        libnetworking/lib/tftpDriver.c, libnetworking/machine/endian.h,
     5        libnetworking/net/if_ppp.c, libnetworking/rtems/rtems_bsdnet.h,
     6        libnetworking/rtems/rtems_bsdnet_internal.h,
     7        libnetworking/rtems/rtems_glue.c,
     8        libnetworking/rtems/rtems_syscall.c: Convert to using c99 fixed size
     9        types.
     10
    1112004-03-29      Ralf Corsepius <ralf_corsepius@rtems.org>
    212
  • cpukit/libnetworking/lib/ftpfs.c

    rd6154c7 rd8dbdc0  
    521521  rtems_libio_t *iop,
    522522  const char    *new_name,
    523   unsigned32     flag,
    524   unsigned32     mode
     523  uint32_t       flag,
     524  uint32_t       mode
    525525)
    526526{
     
    531531  char *hostname  = NULL;
    532532  char port_buffer[sizeof(FTP_PORT_CMD)+6*4+1+1];
    533   rtems_unsigned32 my_ip;
    534   rtems_unsigned16 my_port;
     533  uint32_t  my_ip;
     534  uint16_t  my_port;
    535535  int eno = 0;
    536536  rtems_status_code rc;
     
    963963  rtems_libio_t *iop,
    964964  void          *buffer,
    965   unsigned32     count
     965  uint32_t       count
    966966)
    967967{
     
    10171017  rtems_libio_t *iop,
    10181018  const void    *buffer,
    1019   unsigned32     count
     1019  uint32_t       count
    10201020)
    10211021{
  • cpukit/libnetworking/lib/rtems_bsdnet_ntp.c

    rd6154c7 rd8dbdc0  
    3636
    3737struct timestamp {
    38         rtems_unsigned32        integer;
    39         rtems_unsigned32        fraction;
     38        uint32_t        integer;
     39        uint32_t        fraction;
    4040};
    4141
    4242struct ntpPacketSmall {
    43         rtems_unsigned8         li_vn_mode;
    44         rtems_unsigned8         stratum;
    45         rtems_signed8           poll_interval;
    46         rtems_signed8           precision;
    47         rtems_signed32          root_delay;
    48         rtems_signed32          root_dispersion;
     43        uint8_t                 li_vn_mode;
     44        uint8_t                 stratum;
     45        int8_t                  poll_interval;
     46        int8_t                  precision;
     47        int32_t                 root_delay;
     48        int32_t                 root_dispersion;
    4949        char                    reference_identifier[4];
    5050        struct timestamp        reference_timestamp;
  • cpukit/libnetworking/lib/tftpDriver.c

    rd6154c7 rd8dbdc0  
    8484     */
    8585    struct tftpRWRQ {
    86         rtems_unsigned16    opcode;
     86        uint16_t      opcode;
    8787        char                filename_mode[TFTP_BUFSIZE];
    8888    } tftpRWRQ;
     
    9292     */
    9393    struct tftpDATA {
    94         rtems_unsigned16    opcode;
    95         rtems_unsigned16    blocknum;
    96         rtems_unsigned8     data[TFTP_BUFSIZE];
     94        uint16_t      opcode;
     95        uint16_t      blocknum;
     96        uint8_t       data[TFTP_BUFSIZE];
    9797    } tftpDATA;
    9898
     
    101101     */
    102102    struct tftpACK {
    103         rtems_unsigned16    opcode;
    104         rtems_unsigned16    blocknum;
     103        uint16_t      opcode;
     104        uint16_t      blocknum;
    105105    } tftpACK;
    106106
     
    109109     */
    110110    struct tftpERROR {
    111         rtems_unsigned16    opcode;
    112         rtems_unsigned16    errorCode;
     111        uint16_t      opcode;
     112        uint16_t      errorCode;
    113113        char                errorMessage[TFTP_BUFSIZE];
    114114    } tftpERROR;
     
    127127     * Last block number transferred
    128128     */
    129     rtems_unsigned16    blocknum;
     129    uint16_t      blocknum;
    130130
    131131    /*
     
    290290    int len;
    291291    struct {
    292         rtems_unsigned16    opcode;
    293         rtems_unsigned16    errorCode;
     292        uint16_t      opcode;
     293        uint16_t      errorCode;
    294294        char                errorMessage[12];
    295295    } msg;
     
    540540    rtems_libio_t *iop,
    541541    char          *full_path_name,
    542     unsigned32     flags,
    543     unsigned32     mode
     542    uint32_t       flags,
     543    uint32_t       mode
    544544)
    545545{
     
    711711                tp->nused = 0;
    712712                tp->blocknum = 1;
    713                 tp->nleft = len - 2 * sizeof (rtems_unsigned16);
     713                tp->nleft = len - 2 * sizeof (uint16_t  );
    714714                tp->eof = (tp->nleft < TFTP_BUFSIZE);
    715715                if (sendAck (tp) != 0) {
     
    753753    rtems_libio_t *iop,
    754754    const char    *new_name,
    755     unsigned32     flags,
    756     unsigned32     mode
     755    uint32_t       flags,
     756    uint32_t       mode
    757757)
    758758{
     
    795795    rtems_libio_t *iop,
    796796    void          *buffer,
    797     unsigned32    count
     797    uint32_t      count
    798798)
    799799{
     
    835835            if (len >= (int)sizeof tp->pkbuf.tftpACK) {
    836836                int opcode = ntohs (tp->pkbuf.tftpDATA.opcode);
    837                 rtems_unsigned16 nextBlock = tp->blocknum + 1;
     837                uint16_t  nextBlock = tp->blocknum + 1;
    838838                if ((opcode == TFTP_OPCODE_DATA)
    839839                 && (ntohs (tp->pkbuf.tftpDATA.blocknum) == nextBlock)) {
    840840                    tp->nused = 0;
    841                     tp->nleft = len - 2 * sizeof (rtems_unsigned16);
     841                    tp->nleft = len - 2 * sizeof (uint16_t  );
    842842                    tp->eof = (tp->nleft < TFTP_BUFSIZE);
    843843                    tp->blocknum++;
     
    870870    int retryCount = 0;
    871871
    872     wlen = tp->nused + 2 * sizeof (rtems_unsigned16);
     872    wlen = tp->nused + 2 * sizeof (uint16_t  );
    873873    for (;;) {
    874874        tp->pkbuf.tftpDATA.opcode = htons (TFTP_OPCODE_DATA);
     
    936936    rtems_libio_t   *iop,
    937937    const void      *buffer,
    938     unsigned32      count
     938    uint32_t        count
    939939)
    940940{
  • cpukit/libnetworking/machine/endian.h

    rd6154c7 rd8dbdc0  
    4646 */
    4747
    48 #define       ntohl(_x)        ((long)  CPU_swap_u32((unsigned32)_x))
    49 #define       ntohs(_x)        ((short) CPU_swap_u16((unsigned16)_x))
    50 #define       htonl(_x)        ((long)  CPU_swap_u32((unsigned32)_x))
    51 #define       htons(_x)        ((short) CPU_swap_u16((unsigned16)_x))
     48#define       ntohl(_x)        ((long)  CPU_swap_u32((uint32_t  )_x))
     49#define       ntohs(_x)        ((short) CPU_swap_u16((uint16_t  )_x))
     50#define       htonl(_x)        ((long)  CPU_swap_u32((uint32_t  )_x))
     51#define       htons(_x)        ((short) CPU_swap_u16((uint16_t  )_x))
    5252
    5353#define NTOHS(x) (x) = ntohs(x)
  • cpukit/libnetworking/net/if_ppp.c

    rd6154c7 rd8dbdc0  
    389389{
    390390  rtems_status_code   status;
    391   rtems_unsigned32    priority = 100;
     391  uint32_t      priority = 100;
    392392
    393393  /* determine priority value */
  • cpukit/libnetworking/rtems/rtems_bsdnet.h

    rd6154c7 rd8dbdc0  
    176176 * Interface configuration. The commands are listed in `sys/sockio.h'.
    177177 */
    178 int rtems_bsdnet_ifconfig (const char *ifname, unsigned32 cmd, void *param);
     178int rtems_bsdnet_ifconfig (const char *ifname, uint32_t  cmd, void *param);
    179179
    180180void rtems_bsdnet_do_bootp (void);
  • cpukit/libnetworking/rtems/rtems_bsdnet_internal.h

    rd6154c7 rd8dbdc0  
    2020typedef unsigned int            vm_size_t;
    2121
    22 #define _BSD_OFF_T_     rtems_signed32
     22#define _BSD_OFF_T_     int32_t 
    2323#define _BSD_PID_T_     rtems_id
    2424#define _BSD_VA_LIST_   char *
  • cpukit/libnetworking/rtems/rtems_glue.c

    rd6154c7 rd8dbdc0  
    6161#endif
    6262static rtems_id networkDaemonTid;
    63 static rtems_unsigned32 networkDaemonPriority;
     63static uint32_t  networkDaemonPriority;
    6464static void networkDaemon (void *task_argument);
    6565
     
    508508        rtems_interval now;
    509509        int ticksPassed;
    510         unsigned32 timeout;
     510        uint32_t  timeout;
    511511        struct callout *c;
    512512
     
    760760in_cksum_hdr (const void *ip)
    761761{
    762         rtems_unsigned32 sum;
    763         const rtems_unsigned16 *sp;
     762        uint32_t  sum;
     763        const uint16_t  *sp;
    764764        int i;
    765765
    766766        sum = 0;
    767         sp = (rtems_unsigned16 *)ip;
     767        sp = (uint16_t  *)ip;
    768768        for (i = 0 ; i < 10 ; i++)
    769769                sum += *sp++;
     
    983983 * Interface Configuration.
    984984 */
    985 int rtems_bsdnet_ifconfig (const char *ifname, unsigned32 cmd, void *param)
     985int rtems_bsdnet_ifconfig (const char *ifname, uint32_t  cmd, void *param)
    986986{
    987987        int s, r = 0;
  • cpukit/libnetworking/rtems/rtems_syscall.c

    rd6154c7 rd8dbdc0  
    685685
    686686static ssize_t
    687 rtems_bsdnet_read (rtems_libio_t *iop, void *buffer, unsigned32 count)
     687rtems_bsdnet_read (rtems_libio_t *iop, void *buffer, uint32_t  count)
    688688{
    689689        return recv (iop->data0, buffer, count, 0);
     
    691691
    692692static ssize_t
    693 rtems_bsdnet_write (rtems_libio_t *iop, const void *buffer, unsigned32 count)
     693rtems_bsdnet_write (rtems_libio_t *iop, const void *buffer, uint32_t  count)
    694694{
    695695        return send (iop->data0, buffer, count, 0);
     
    697697
    698698static int
    699 so_ioctl (rtems_libio_t *iop, struct socket *so, unsigned32 command, void *buffer)
     699so_ioctl (rtems_libio_t *iop, struct socket *so, uint32_t  command, void *buffer)
    700700{
    701701        switch (command) {
     
    724724
    725725static int
    726 rtems_bsdnet_ioctl (rtems_libio_t *iop, unsigned32 command, void *buffer)
     726rtems_bsdnet_ioctl (rtems_libio_t *iop, uint32_t  command, void *buffer)
    727727{
    728728        struct socket *so;
Note: See TracChangeset for help on using the changeset viewer.