Changeset a418b2f in rtems


Ignore:
Timestamp:
Mar 3, 2014, 7:38:10 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8b50a55
Parents:
ba25cc2
git-author:
Sebastian Huber <sebastian.huber@…> (03/03/14 07:38:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/14 08:43:58)
Message:

libnetworking: Typo

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/rtems/rtems_syscall.c

    rba25cc2 ra418b2f  
    821821        .fstat_h = rtems_bsdnet_fstat,
    822822        .ftruncate_h = rtems_filesystem_default_ftruncate,
    823         .fstat_h = rtems_filesystem_default_fsync_or_fdatasync,
     823        .fsync_h = rtems_filesystem_default_fsync_or_fdatasync,
    824824        .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync,
    825825        .fcntl_h = rtems_bsdnet_fcntl,
  • testsuites/libtests/syscall01/init.c

    rba25cc2 ra418b2f  
    4040  char buf [1];
    4141  ssize_t n;
    42   int fd = open(open_driver_path, O_RDWR);
     42  int fd;
     43
     44  fd = open(open_driver_path, O_RDWR);
    4345  rtems_test_assert(fd >= 0);
    4446
     47  errno = 0;
    4548  n = send(fd, buf, sizeof(buf), 0);
    4649  rtems_test_assert(n == -1);
    4750  rtems_test_assert(errno == ENOTSOCK);
    4851
     52  errno = 0;
    4953  n = recv(fd, buf, sizeof(buf), 0);
    5054  rtems_test_assert(n == -1);
    5155  rtems_test_assert(errno == ENOTSOCK);
     56
     57  rv = close(fd);
     58  rtems_test_assert(rv == 0);
     59
     60  fd = socket(PF_INET, SOCK_DGRAM, 0);
     61  rtems_test_assert(fd >= 0);
     62
     63  errno = 0;
     64  rv = fsync(fd);
     65  rtems_test_assert(rv == -1);
     66  rtems_test_assert(errno == EINVAL);
     67
     68  errno = 0;
     69  rv = fdatasync(fd);
     70  rtems_test_assert(rv == -1);
     71  rtems_test_assert(errno == EINVAL);
    5272
    5373  rv = close(fd);
Note: See TracChangeset for help on using the changeset viewer.