Changeset ae35953d in rtems for c/src/lib/include


Ignore:
Timestamp:
Oct 21, 1997, 4:18:03 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
55e1322
Parents:
4fd61795
Message:

Added termios submission from Eric Norum and Katsutoshi Shibuya.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/include/rtems/libio.h

    r4fd61795 rae35953d  
    3333    Objects_Id           sem;
    3434    unsigned32           data0;         /* private to "driver" */
    35     unsigned32           data1;         /* ... */
     35    void                *data1;         /* ... */
    3636} rtems_libio_t;
    3737
     
    106106    int (*open)(const char  *pathname, unsigned32 flag, unsigned32 mode);
    107107    int (*close)(int  fd);
    108     int (*read)(int fd, void *buffer, unsigned32 count);
     108    int (*read)(int fd, void *buffer);
    109109    int (*write)(int fd, const void *buffer, unsigned32 count);
    110110    int (*ioctl)(int fd, unsigned32  command, void *buffer);
     
    129129#define       RTEMS_IO_SET_ATTRIBUTES 2
    130130
     131/*
     132 * Termios prototypes
     133 */
     134void rtems_termios_initialize (void);
     135rtems_status_code rtems_termios_open (
     136  rtems_device_major_number  major,
     137  rtems_device_minor_number  minor,
     138  void                      *arg,
     139  int                       (*deviceFirstOpen)(int major, int minor, void *arg),
     140  int                       (*deviceLastClose)(int major, int minor, void *arg),
     141  int                       (*deviceRead)(int minor, char *buf),
     142  int                       (*deviceWrite)(int minor, char *buf, int len)
     143  );
     144
     145rtems_status_code rtems_termios_close (void *arg);
     146rtems_status_code rtems_termios_read (void *arg);
     147rtems_status_code rtems_termios_write (void *arg);
     148rtems_status_code rtems_termios_ioctl (void *arg);
     149void rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len);
     150
    131151#endif /* _RTEMS_LIBIO_H */
Note: See TracChangeset for help on using the changeset viewer.