Changeset b6c319b in rtems-libbsd


Ignore:
Timestamp:
Jan 16, 2014, 1:44:03 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
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.