54 Commits (3b5803ec9aba483278fd5faad74a49f10bb052d8)

Author SHA1 Message Date
Dirk Ziegelmeier 3b5803ec9a sys.h: Avoid un #defined LWIP_COMPAT_MUTEX macro (usually #defined in arch/sys_arch.h) 10 years ago
sg 22df34fc70 minor/coding style: removed spaces before line ending (from file header) 11 years ago
sg 490581a0eb minor/coding style: removed spaces before line ending 11 years ago
Sylvain Rochet b589864144 sys.h: fixed comment, sys_msleep() is in ms, not in jiffies 11 years ago
goldsimon beabd3c6b7 Added some macros with extension "_val" that work on actual instances and leave away the "if != NULL" check to get rid of gcc "-Waddress" warnings in the core code at least (I might not have caught all of them, yet) 11 years ago
sg 04b4971d8c Added comment that sys_thread_new must not fail (ports have to assert this!) 11 years ago
Simon Goldschmidt 33237419c1 Parts of patch #8397 Typos corrected in comments and text outputs 12 years ago
goldsimon 1204f15bfa bug #35874 reserved identifier violation, 2nd part 12 years ago
Simon Goldschmidt dbd125c714 Fixed bug #35874 reserved identifier violation (removed leading underscores from header include guards) 12 years ago
goldsimon 666e84eef2 Improved/fixed comments about timeout. 13 years ago
goldsimon 2750d61e92 added missing valid/set_invalid defines for NO_SYS 15 years ago
goldsimon 4b038f13de sys_thread_new: name is a const pointer 16 years ago
goldsimon 385d044f7d Corrected spelling of milliseconds (my dictionary tells me to use two l's :) 16 years ago
goldsimon a61f5f3a78 Fixed old comments 16 years ago
goldsimon 3529349470 Fixed compilation for NO_SYS==1 16 years ago
goldsimon 0030d1ade5 task #10139 (Prefer statically allocated memory): converted mbox and semaphore functions to take pointers to sys_mbox_t/sys_sem_t; converted sys_mbox_new/sys_sem_new to take pointers and return err_t; task #7212: Add Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use binary semaphores instead of mutexes - as before) 16 years ago
goldsimon 45e51d1929 Removed sys_sem_wait_timeout, added comments to the port-supplied sys(-arch)-functions 16 years ago
goldsimon 2d4e76874c Using typedefs for function prototypes and -pointers throughout the stack for clarity 16 years ago
goldsimon a566f9d8f2 Separated timer implementation from semaphore/mbox implementation, moved timer implementation to timers.c/.h (TASK#7235) 16 years ago
goldsimon 4b8255a588 Bug #25608: Made SYS_LIGHTWEIGHT_PROT and sys_now() work with NO_SYS=1 17 years ago
kieranm 4b14621208 TASK9218: add support for TCP timestamp options 17 years ago
goldsimon 638020ec70 sys_now() must return u32_t, not unsigned long 17 years ago
fbernon 5941b3c86e sys_arch.txt, api.h, api_lib.c, api_msg.h, api_msg.c, tcpip.c, sys.h, opt.h: Introduce changes for task #7490 "Add return value to sys_mbox_post" with some modifications in the sys_mbox api: sys_mbox_new take a "size" parameters which indicate the number of pointers query by the mailbox. There is three defines in opt.h to indicate sizes for tcpip::mbox, netconn::recvmbox, and for the netconn::acceptmbox. Port maintainers, you can decide to just add this new parameter in your implementation, but to ignore it to keep the previous behavior. The new sys_mbox_trypost function return a value to know if the mailbox is full or if the message is posted. Take a look to sys_arch.txt for more details. This new function is used in tcpip_input (so, can be called in an interrupt context since the function is not blocking), and in recv_udp and recv_raw. 19 years ago
goldsimon 48e62e25e9 sys.h, api_lib.c, api_msg.c, sockets.c: fix bug #21698: "netconn->recv_avail is not protected" by using new macros for interlocked access to modify/test netconn->recv_avail. 19 years ago
fbernon c7e91d3302 Minor change, sys_prot_t is undefined is NO_SYS=1 19 years ago
fbernon ac1149156d several-files: replace some #include "arch/cc.h" by "lwip/arch.h", or simply remove it as long as "lwip/opt.h" is included before (this one include "lwip/debug.h" which already include "lwip/arch.h"). Like that, default defines are provided by "lwip/arch.h" if they are not defined in cc.h, in the same spirit than "lwip/opt.h" for lwipopts.h. 19 years ago
fbernon 90a3f88c08 Change parameters list for sys_thread_new (see "task #7252 : Create sys_thread_new_ex()"). Two new parameters have to be provided: a task name, and a task stack size. For this one, since it's platform dependant, you could define the best one for you in your lwipopts.h. For port maintainers, you can just add these new parameters in your sys_arch.c file, and but it's not mandatory, use them in your OS specific functions. 19 years ago
fbernon 2ff620e1b5 sys.h, sys.c, api_lib.c, tcpip.c: remove sys_mbox_fetch_timeout() (was only used for LWIP_SO_RCVTIMEO option) and use sys_arch_mbox_fetch() instead of sys_mbox_fetch() in api files. Now, users SHOULD NOT use internal lwIP features like "sys_timeout" in their application threads. 19 years ago
goldsimon cde11f9d9c Added some new functions as null-definitions if NO_SYS=1 19 years ago
goldsimon 19d49db305 sys.h: moved #include "arch/sys_arch.h" down a little, so that functions using the defines SYS_ARCH_TIMEOUT/SYS_MBOX_EMPTY can be define as static (inline) in sys_arch.h. This should not affect any others since the defines couldn't be overridden anyway... 19 years ago
goldsimon 84fc489e0c Included patch #5448: include '#ifdef __cplusplus \ extern "C" {' in all header files. Now you can write your application using the lwIP stack in C++ and simply #include the core files. Note I have left out the netif/ppp/*h header files for now, since I don't know which files are included by applications and which are for internal use only. 19 years ago
jifl 0c94f22ded * sys.h, api_lib.c: Provide new sys_mbox_tryfetch function. 19 years ago
kieranm 05909d6fa7 Apply patch #5745: Fix "Constant is long" warnings with 16bit 19 years ago
fbernon fdcb87db19 Implement LWIP_SO_RCVTIMEO configuration option to enable/disable SO_RCVTIMEO on UDP sockets/netconn. 19 years ago
fbernon 7fd37d4e87 Implement SO_RCVTIMEO on UDP sockets/netconn. 19 years ago
christiaans b5f4672155 Partially accepted patch #5449 for ANSI C compatibility / build fixes. Fixed bug #17574 corrected UDP-Lite protocol identifier. 20 years ago
likewise 475576ec20 Updated some copyright notices to include 2004 (a few were forgotten earlier). 22 years ago
jani 2bfd55fd69 sys_msleep and sys_jiffies used by PPP code.From Marc 23 years ago
jani 840953c0e3 empty lightweight protection macros defined not only for no_sys 23 years ago
davidhaas 0bce6f8974 Fixed bug where tearing down a connection would cause loss of memory. 23 years ago
jani 84697ce713 Add priority argument to thread sys_thread_new.Patch from floriZ but slightly modfied 23 years ago
jani f308f7cc80 Add sys_untimeout stub in case of NO_SYS 23 years ago
davidhaas ee2c049518 Fixed build for coldfire after last debug.h and opt.h changes. 23 years ago
davidhaas e13c78820f Fixed SYS_ARCH_PROTECT macros when NO_SYS is not defined. 23 years ago
davidhaas 7f1becc682 Allow minimal unix target to build in cygwin (but not necessarily run). 23 years ago
likewise 90bc698a40 Lightweight protection macros were not defined if NO_SYS was defined. 23 years ago
davidhaas de29a0818e By request: moved lightweight protection to macros. 23 years ago
davidhaas 4fc309b1dd Made sys_arch_prot() interface more generic by returning sys_prot_t instead 23 years ago
davidhaas 7b3e158c92 sys_thread_new() now returns the thread (request from Marc Boucher). 23 years ago
davidhaas dd2fa15e8a Add the following features and bugfixes: 23 years ago