/[lwip]/lwip/src/arch/unix/netif/sio.c
ViewVC logotype

Diff of /lwip/src/arch/unix/netif/sio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by adamdunkels, Wed Oct 23 20:00:21 2002 UTC revision 1.3 by adamdunkels, Wed Oct 23 20:18:27 2002 UTC
# Line 1  Line 1 
1    /* Author: Magnus Ivarsson <magnus.ivarsson@volvo.com> */
2    
3  #include "netif/sio.h"  #include "netif/sio.h"
4  #include "netif/fifo.h"  #include "netif/fifo.h"
5  #include "lwip/debug.h"  #include "lwip/debug.h"
# Line 22  Line 24 
24  #include <stdio.h>  #include <stdio.h>
25  #include <unistd.h>  #include <unistd.h>
26  #include <fcntl.h>  #include <fcntl.h>
27    #include <signal.h>
28  #include <sys/signal.h>  #include <sys/signal.h>
29  #include <sys/types.h>  #include <sys/types.h>
30    
# Line 108  static int sio_init( char * device, int Line 111  static int sio_init( char * device, int
111          }          }
112    
113          saio.sa_flags = 0;          saio.sa_flags = 0;
114    #if linux
115          saio.sa_restorer = NULL;          saio.sa_restorer = NULL;
116    #endif /* linux */
117          sigaction( SIGIO,&saio,NULL );          sigaction( SIGIO,&saio,NULL );
118    
119          /* allow the process to receive SIGIO */          /* allow the process to receive SIGIO */
# Line 180  void sio_send( u8_t c, sio_status_t * si Line 185  void sio_send( u8_t c, sio_status_t * si
185  void sio_send_string( u8_t *str, sio_status_t * siostat )  void sio_send_string( u8_t *str, sio_status_t * siostat )
186  {  {
187  //      sio_status_t * siostat = ((siostruct_t*)netif->state)->sio;  //      sio_status_t * siostat = ((siostruct_t*)netif->state)->sio;
188          int len = strlen( str );          int len = strlen( (const char *)str );
189    
190          if ( write( siostat->fd, str, len ) <= 0 )          if ( write( siostat->fd, str, len ) <= 0 )
191          {          {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26