Changeset c5b59ce in mainline
- Timestamp:
- 2010-09-26T12:28:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7390870
- Parents:
- e98b1d5
- Location:
- uspace
- Files:
-
- 1 deleted
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netecho/netecho.c
re98b1d5 rc5b59ce 41 41 #include <task.h> 42 42 #include <arg_parse.h> 43 #include <err.h> 43 44 44 45 #include <in.h> … … 46 47 #include <inet.h> 47 48 #include <socket.h> 48 #include <net_err.h>49 49 #include <socket_parse.h> 50 50 -
uspace/app/nettest1/nettest.c
re98b1d5 rc5b59ce 36 36 37 37 #include <stdio.h> 38 #include <err.h> 38 39 39 40 #include <socket.h> 40 #include <net_err.h>41 41 42 42 #include "nettest.h" -
uspace/app/nettest1/nettest1.c
re98b1d5 rc5b59ce 41 41 #include <time.h> 42 42 #include <arg_parse.h> 43 #include <err.h> 43 44 44 45 #include <in.h> … … 46 47 #include <inet.h> 47 48 #include <socket.h> 48 #include <net_err.h>49 49 #include <socket_parse.h> 50 50 -
uspace/app/nettest2/nettest2.c
re98b1d5 rc5b59ce 41 41 #include <time.h> 42 42 #include <arg_parse.h> 43 #include <err.h> 43 44 44 45 #include <in.h> … … 46 47 #include <inet.h> 47 48 #include <socket.h> 48 #include <net_err.h>49 49 #include <socket_parse.h> 50 50 -
uspace/lib/c/include/err.h
re98b1d5 rc5b59ce 36 36 #define LIBC_ERR_H_ 37 37 38 #include <stdio.h> 39 #include <errno.h> 40 41 #ifdef CONFIG_DEBUG 42 #include <str_error.h> 43 #endif 44 38 45 #define errx(status, fmt, ...) { \ 39 46 printf((fmt), ##__VA_ARGS__); \ … … 41 48 } 42 49 50 51 /** An actual stored error code. */ 52 #define ERROR_CODE error_check_return_value 53 54 /** An error processing routines declaration. 55 * 56 * This has to be declared in the block where the error processing 57 * is desired. 58 */ 59 #define ERROR_DECLARE int ERROR_CODE 60 61 /** Store the value as an error code and checks if an error occurred. 62 * 63 * @param[in] value The value to be checked. May be a function call. 64 * @return False if the value indicates success (EOK). 65 * @return True otherwise. 66 */ 67 #ifdef CONFIG_DEBUG 68 69 #define ERROR_OCCURRED(value) \ 70 (((ERROR_CODE = (value)) != EOK) && \ 71 ({ \ 72 fprintf(stderr, "libsocket error at %s:%d (%s)\n", \ 73 __FILE__, __LINE__, str_error(ERROR_CODE)); \ 74 1; \ 75 })) 76 77 #else 78 79 #define ERROR_OCCURRED(value) ((ERROR_CODE = (value)) != EOK) 80 81 #endif 82 83 #define ERROR_NONE(value) !ERROR_OCCURRED((value)) 84 85 /** Error propagation 86 * 87 * Check if an error occurred and immediately exit the actual 88 * function returning the error code. 89 * 90 * @param[in] value The value to be checked. May be a function call. 91 * 92 */ 93 94 #define ERROR_PROPAGATE(value) \ 95 if (ERROR_OCCURRED(value)) \ 96 return ERROR_CODE 97 43 98 #endif 44 99 -
uspace/lib/net/adt/module_map.c
re98b1d5 rc5b59ce 38 38 #include <task.h> 39 39 #include <unistd.h> 40 #include <err.h> 40 41 41 42 #include <ipc/services.h> 42 43 43 #include <net_err.h>44 44 #include <net_modules.h> 45 45 -
uspace/lib/net/generic/packet_remote.c
re98b1d5 rc5b59ce 38 38 #include <async.h> 39 39 #include <errno.h> 40 #include <err.h> 40 41 #include <ipc/ipc.h> 41 42 #include <sys/mman.h> 42 43 43 #include <net_err.h>44 44 #include <net_messages.h> 45 45 #include <packet/packet.h> -
uspace/lib/net/include/netif_local.h
re98b1d5 rc5b59ce 44 44 #include <ipc/ipc.h> 45 45 #include <ipc/services.h> 46 #include <err.h> 46 47 47 48 #include <adt/measured_strings.h> 48 #include <net_err.h>49 49 #include <net_device.h> 50 50 #include <packet/packet.h> -
uspace/lib/net/netif/netif_local.c
re98b1d5 rc5b59ce 42 42 #include <ipc/ipc.h> 43 43 #include <ipc/services.h> 44 45 #include <net_err.h> 44 #include <err.h> 45 46 46 #include <net_messages.h> 47 47 #include <net_modules.h> -
uspace/lib/net/tl/tl_common.c
re98b1d5 rc5b59ce 39 39 #include <ipc/services.h> 40 40 #include <errno.h> 41 42 #include <net_err.h> 41 #include <err.h> 42 43 43 #include <packet/packet.h> 44 44 #include <packet/packet_client.h> -
uspace/lib/socket/adt/measured_strings.c
re98b1d5 rc5b59ce 36 36 */ 37 37 38 #include <errno.h>39 38 #include <malloc.h> 40 39 #include <mem.h> 41 40 #include <unistd.h> 41 #include <errno.h> 42 #include <err.h> 42 43 43 44 #include <ipc/ipc.h> 44 45 45 #include <net_err.h>46 46 #include <net_modules.h> 47 47 #include <adt/measured_strings.h> -
uspace/lib/socket/generic/net_modules.c
re98b1d5 rc5b59ce 37 37 #include <async.h> 38 38 #include <malloc.h> 39 #include <err.h> 39 40 40 41 #include <ipc/ipc.h> … … 43 44 #include <sys/time.h> 44 45 45 #include <net_err.h>46 46 #include <net_modules.h> 47 47 -
uspace/lib/socket/generic/socket_client.c
re98b1d5 rc5b59ce 43 43 #include <stdlib.h> 44 44 #include <errno.h> 45 #include <err.h> 45 46 46 47 #include <ipc/services.h> 47 48 48 #include <net_err.h>49 49 #include <net_modules.h> 50 50 #include <in.h> -
uspace/lib/socket/generic/socket_core.c
re98b1d5 rc5b59ce 38 38 #include <stdlib.h> 39 39 #include <errno.h> 40 41 #include <net_err.h> 40 #include <err.h> 41 42 42 #include <in.h> 43 43 #include <inet.h> -
uspace/lib/socket/include/adt/generic_char_map.h
re98b1d5 rc5b59ce 38 38 #define __GENERIC_CHAR_MAP_H__ 39 39 40 #include <unistd.h> 40 41 #include <errno.h> 41 #include <unistd.h> 42 43 #include <net_err.h> 42 #include <err.h> 44 43 45 44 #include <adt/char_map.h> -
uspace/lib/socket/packet/packet.c
re98b1d5 rc5b59ce 36 36 */ 37 37 38 #include <errno.h>39 38 #include <malloc.h> 40 39 #include <mem.h> 41 40 #include <fibril_synch.h> 42 41 #include <unistd.h> 42 #include <errno.h> 43 #include <err.h> 43 44 44 45 #include <sys/mman.h> 45 46 46 #include <net_err.h>47 47 #include <adt/generic_field.h> 48 48 #include <packet/packet.h> -
uspace/lib/socket/packet/packet_server.c
re98b1d5 rc5b59ce 39 39 #include <async.h> 40 40 #include <errno.h> 41 #include <err.h> 41 42 #include <fibril_synch.h> 42 43 #include <unistd.h> … … 45 46 #include <sys/mman.h> 46 47 47 #include <net_err.h>48 48 #include <net_messages.h> 49 49 #include <packet/packet.h> -
uspace/srv/hw/netif/dp8390/dp8390_module.c
re98b1d5 rc5b59ce 39 39 #include <ddi.h> 40 40 #include <errno.h> 41 #include <err.h> 41 42 #include <malloc.h> 42 43 #include <ipc/ipc.h> 43 44 #include <ipc/services.h> 44 45 45 #include <net_err.h>46 46 #include <net_messages.h> 47 47 #include <net_modules.h> -
uspace/srv/net/il/arp/arp.c
re98b1d5 rc5b59ce 45 45 #include <ipc/ipc.h> 46 46 #include <ipc/services.h> 47 48 #include <net_err.h> 47 #include <err.h> 48 49 49 #include <net_messages.h> 50 50 #include <net_modules.h> -
uspace/srv/net/il/arp/arp_module.c
re98b1d5 rc5b59ce 40 40 #include <async.h> 41 41 #include <stdio.h> 42 #include <err.h> 42 43 43 44 #include <ipc/ipc.h> 44 45 #include <ipc/services.h> 45 46 46 #include <net_err.h>47 47 #include <net_modules.h> 48 48 #include <net_interface.h> -
uspace/srv/net/il/ip/ip.c
re98b1d5 rc5b59ce 38 38 #include <async.h> 39 39 #include <errno.h> 40 #include <err.h> 40 41 #include <fibril_synch.h> 41 42 #include <stdio.h> … … 45 46 #include <sys/types.h> 46 47 47 #include <net_err.h>48 48 #include <net_messages.h> 49 49 #include <net_modules.h> -
uspace/srv/net/il/ip/ip_module.c
re98b1d5 rc5b59ce 42 42 #include <ipc/ipc.h> 43 43 #include <ipc/services.h> 44 #include <err.h> 44 45 45 #include <net_err.h>46 46 #include <net_modules.h> 47 47 #include <net_interface.h> -
uspace/srv/net/net/net.c
re98b1d5 rc5b59ce 40 40 #include <ddi.h> 41 41 #include <errno.h> 42 #include <err.h> 42 43 #include <malloc.h> 43 44 #include <stdio.h> … … 47 48 #include <ipc/services.h> 48 49 49 #include <net_err.h>50 50 #include <net_messages.h> 51 51 #include <net_modules.h> -
uspace/srv/net/netif/lo/lo.c
re98b1d5 rc5b59ce 37 37 #include <async.h> 38 38 #include <errno.h> 39 #include <err.h> 39 40 #include <stdio.h> 40 41 #include <str.h> … … 43 44 #include <ipc/services.h> 44 45 45 #include <net_err.h>46 46 #include <net_messages.h> 47 47 #include <net_modules.h> -
uspace/srv/net/netstart/netstart.c
re98b1d5 rc5b59ce 45 45 #include <task.h> 46 46 #include <str_error.h> 47 #include <err.h> 47 48 #include <ipc/ipc.h> 48 49 #include <ipc/services.h> 49 50 50 #include <net_err.h>51 51 #include <net_modules.h> 52 52 #include <net_net_messages.h> -
uspace/srv/net/nil/eth/eth.c
re98b1d5 rc5b59ce 41 41 #include <stdio.h> 42 42 #include <str.h> 43 #include <err.h> 43 44 44 45 #include <ipc/ipc.h> 45 46 #include <ipc/services.h> 46 47 47 #include <net_err.h>48 48 #include <net_messages.h> 49 49 #include <net_modules.h> -
uspace/srv/net/nil/eth/eth_module.c
re98b1d5 rc5b59ce 38 38 #include <async.h> 39 39 #include <stdio.h> 40 #include <err.h> 40 41 41 42 #include <ipc/ipc.h> 42 43 #include <ipc/services.h> 43 44 44 #include <net_err.h>45 45 #include <net_modules.h> 46 46 #include <net_interface.h> -
uspace/srv/net/nil/nildummy/nildummy.c
re98b1d5 rc5b59ce 41 41 #include <stdio.h> 42 42 #include <str.h> 43 #include <err.h> 43 44 #include <ipc/ipc.h> 44 45 #include <ipc/services.h> 45 46 46 #include <net_err.h>47 47 #include <net_messages.h> 48 48 #include <net_modules.h> -
uspace/srv/net/nil/nildummy/nildummy_module.c
re98b1d5 rc5b59ce 38 38 #include <async.h> 39 39 #include <stdio.h> 40 #include <err.h> 40 41 41 42 #include <ipc/ipc.h> 42 43 #include <ipc/services.h> 43 44 44 #include <net_err.h>45 45 #include <net_modules.h> 46 46 #include <net_interface.h> -
uspace/srv/net/tl/icmp/icmp.c
re98b1d5 rc5b59ce 47 47 #include <sys/types.h> 48 48 #include <errno.h> 49 50 #include <net_err.h> 49 #include <err.h> 50 51 51 #include <net_messages.h> 52 52 #include <net_modules.h> -
uspace/srv/net/tl/icmp/icmp_module.c
re98b1d5 rc5b59ce 40 40 #include <async.h> 41 41 #include <stdio.h> 42 #include <err.h> 42 43 #include <ipc/ipc.h> 43 44 #include <ipc/services.h> 44 45 45 #include <net_err.h>46 46 #include <net_modules.h> 47 47 #include <packet/packet.h> -
uspace/srv/net/tl/tcp/tcp.c
re98b1d5 rc5b59ce 43 43 #include <stdio.h> 44 44 #include <errno.h> 45 #include <err.h> 45 46 46 47 #include <ipc/ipc.h> 47 48 #include <ipc/services.h> 48 49 49 #include <net_err.h>50 50 #include <net_messages.h> 51 51 #include <net_modules.h> -
uspace/srv/net/tl/tcp/tcp_module.c
re98b1d5 rc5b59ce 40 40 #include <async.h> 41 41 #include <stdio.h> 42 #include <err.h> 42 43 #include <ipc/ipc.h> 43 44 #include <ipc/services.h> 44 45 45 #include <net_err.h>46 46 #include <net_modules.h> 47 47 #include <packet/packet.h> -
uspace/srv/net/tl/udp/udp.c
re98b1d5 rc5b59ce 43 43 #include <ipc/services.h> 44 44 #include <errno.h> 45 46 #include <net_err.h> 45 #include <err.h> 46 47 47 #include <net_messages.h> 48 48 #include <net_modules.h> -
uspace/srv/net/tl/udp/udp_module.c
re98b1d5 rc5b59ce 40 40 #include <async.h> 41 41 #include <stdio.h> 42 #include <err.h> 42 43 #include <ipc/ipc.h> 43 44 #include <ipc/services.h> 44 45 45 #include <net_err.h>46 46 #include <net_modules.h> 47 47 #include <packet/packet.h>
Note:
See TracChangeset
for help on using the changeset viewer.