Changeset b6c319b in rtems-libbsd


Ignore:
Timestamp:
Jan 16, 2014, 1:44:03 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 0ad342ae5f65d22eb6c914d58664d3b5d1d3d43f, freebsd-9.3, 98d197895b6162050176ea18d66783a1dc216d82
Children:
a257bd7
Parents:
f8d99e9
git-author:
Sebastian Huber <sebastian.huber@…> (01/16/14 13:44:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/16/14 14:45:00)
Message:

socketops: Return ENXIO for open() on sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/sys_socket.c

    rf8d99e9 rb6c319b  
    463463#ifdef __rtems__
    464464static int
     465rtems_bsd_soo_open(rtems_libio_t *iop, const char *path, int oflag,
     466    mode_t mode)
     467{
     468        return rtems_bsd_error_to_status_and_errno(ENXIO);
     469}
     470
     471static int
    465472rtems_bsd_soo_close(rtems_libio_t *iop)
    466473{
     
    487494
    488495const rtems_filesystem_file_handlers_r socketops = {
    489         .open_h = rtems_filesystem_default_open,
     496        .open_h = rtems_bsd_soo_open,
    490497        .close_h = rtems_bsd_soo_close,
    491498        .read_h = rtems_bsd_soo_read,
Note: See TracChangeset for help on using the changeset viewer.