Rev 3912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3912 | Rev 4192 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | * |
34 | * |
35 | */ |
35 | */ |
36 | 36 | ||
- | 37 | #include <mem.h> |
|
37 | #include <stdio.h> |
38 | #include <stdio.h> |
38 | #include <string.h> |
- | |
39 | 39 | ||
40 | #include "include/sockaddr.h" |
40 | #include "include/sockaddr.h" |
41 | #include "include/socket.h" |
41 | #include "include/socket.h" |
42 | 42 | ||
43 | #include "err.h" |
43 | #include "err.h" |
Line 66... | Line 66... | ||
66 | break; |
66 | break; |
67 | default: |
67 | default: |
68 | return ENOTSUP; |
68 | return ENOTSUP; |
69 | } |
69 | } |
70 | if( ! address ){ |
70 | if( ! address ){ |
71 | memset( data, 0, count ); |
71 | bzero( data, count ); |
72 | return ENOENT; |
72 | return ENOENT; |
73 | } |
73 | } |
74 | next = address; |
74 | next = address; |
75 | index = 0; |
75 | index = 0; |
76 | do{ |
76 | do{ |
Line 86... | Line 86... | ||
86 | value >>= 8; |
86 | value >>= 8; |
87 | // ++ index; |
87 | // ++ index; |
88 | }while( shift -- ); |
88 | }while( shift -- ); |
89 | index += bytes; |
89 | index += bytes; |
90 | }else{ |
90 | }else{ |
91 | memset( data + index, 0, count - index ); |
91 | bzero( data + index, count - index ); |
92 | return EOK; |
92 | return EOK; |
93 | } |
93 | } |
94 | }while( index < count ); |
94 | }while( index < count ); |
95 | return EOK; |
95 | return EOK; |
96 | } |
96 | } |