Changeset 04803bf in mainline for uspace/lib/c/include/net/icmp_common.h
- Timestamp:
- 2011-03-21T22:00:17Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
uspace/lib/c/include/net/icmp_common.h (moved) (moved from uspace/lib/libc/include/atomic.h ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/net/icmp_common.h
rb50b5af2 r04803bf 1 1 /* 2 * Copyright (c) 200 6 Jakub Jermar2 * Copyright (c) 2009 Lukas Mejdrech 3 3 * All rights reserved. 4 4 * … … 28 28 29 29 /** @addtogroup libc 30 * @{ 31 */ 32 /** @file 30 * @{ 33 31 */ 34 32 35 #ifndef LIBC_ATOMIC_H_ 36 #define LIBC_ATOMIC_H_ 33 /** @file 34 * ICMP module common interface. 35 */ 37 36 38 typedef struct atomic { 39 volatile long count; 40 } atomic_t; 37 #ifndef LIBC_ICMP_COMMON_H_ 38 #define LIBC_ICMP_COMMON_H_ 41 39 42 #include <libarch/atomic.h> 40 #include <ipc/services.h> 41 #include <sys/time.h> 43 42 44 static inline void atomic_set(atomic_t *val, long i) 45 { 46 val->count = i; 47 } 43 /** Default timeout for incoming connections in microseconds (1 sec). */ 44 #define ICMP_CONNECT_TIMEOUT 1000000 48 45 49 static inline long atomic_get(atomic_t *val) 50 { 51 return val->count; 52 } 46 extern int icmp_connect_module(suseconds_t); 53 47 54 48 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
