Commit Graph

33 Commits

Author SHA1 Message Date
goldsimon
12d42c5801 unixsim: enable more warnings and fix the newly found warnings in ports/unix 2010-03-26 14:20:39 +00:00
goldsimon
14d8d2b9e4 Fixed compilation of proj/lib 2010-02-21 11:26:15 +00:00
goldsimon
e1f2af00d7 Fix usage of stats 2010-02-13 17:34:20 +00:00
goldsimon
eda6db6ebc Adapted win32- and unix-port to changes in sys layer 2010-02-12 13:57:58 +00:00
goldsimon
2bb8f85116 Unix port: fixed compilation after moving timeout handling to timers.c; fixed some threading- and other issues with initialization 2010-01-07 10:21:13 +00:00
kieranm
5cceed389c Fix unix port warnings on 64 bit compile 2009-06-25 12:51:23 +00:00
kieranm
b5bb80bbc3 BUG #25695: replace calls to sys_sem_wait() with sys_arch_sem_wait()
in unix port
2009-04-17 10:30:30 +00:00
kieranm
5c39901bdc Match unix port definition of sys_now to lwIP core definition 2009-03-25 11:01:00 +00:00
kieranm
234cfd1dcf Fix name of sys_now() function (was called sys_unix_now()) in unix port 2008-11-19 13:38:10 +00:00
jifl
ba11c223fa 2008-09-30 David Woodhouse <dwmw2@infradead.org> :
* ports/unix/sys_arch.c, ports/unix/include/arch/cc.h,
        ports/unix/netif/tcpdump.c, ports/unix/proj/unixsim/simhost.c:
        Fix 64-bit issues in unix port.
        * ports/unix/include/arch/cc.h: silence warning about packed
        attribute on fields, since whole struct is packed.
        * ports/unix/proj/unixsim/apps/shell.c: Remove rexmit fields
        from stat data, in line with lwip stats changes.
2008-09-30 13:48:07 +00:00
goldsimon
0eaad1ca9b Removed some warnings in unix port 2008-07-16 20:37:56 +00:00
jifl
579c7a3df4 sys_jiffies(): set sec and usec correctly from gettimeofday(), and avoid sec overflow 2008-06-19 15:31:12 +00:00
kieranm
d959889ab5 Fix BUG23230: unlock mutex if sys_mbox_trypost() finds a full mail box 2008-05-30 11:41:51 +00:00
kieranm
43c61c1317 BUG23408: avoid deadlock by splitting mail semaphore into "not_empty"
and "not_full"
2008-05-30 11:28:28 +00:00
kieranm
e021174865 Bring unix sys_arch.c up to current CVS HEAD API 2008-01-17 11:51:09 +00:00
kieranm
bddf652073 Update unix port to 1.3.0 before release 2008-01-15 13:10:51 +00:00
fbernon
f1f5c7dd80 Update for new sys_thread_new parameters (see task #7252 : "Create sys_thread_new_ex()" ). Some @todo are integrate to do some suggestions to port maintainers. 2007-09-05 16:48:11 +00:00
christiaans
14ec6680d2 Fixed missing malloc return value checks. 2006-07-03 07:23:05 +00:00
kieranm
ce67f2094f Kieran Mansley - kjm25@cam.ac.uk - 29th July 2004
* Fixed DEBUG statement that could attempt to dereference a NULL pointer in sys_arch_mbox_fetch()
2004-07-29 09:37:46 +00:00
jani
fd5e3abadb fix stats defs 2003-11-24 08:11:32 +00:00
marcbou
751297c61b Added PPP support to unix port. Works over serial or pseudo-tty, talking
to the host's pppd.
2003-06-19 11:42:56 +00:00
kieranm
e754426f52 Changed DEBUGF to LWIP_DEBUGF 2003-06-10 10:45:29 +00:00
jani
cab5828518 patches 149{2,3,4} from Marc 2003-05-19 14:45:02 +00:00
likewise
b4eaa5a113 Major stylo search/replace for "One space between keyword and opening bracket." 2003-05-01 13:27:52 +00:00
davidhaas
0a27425c3e Made lwip timeout measurements accurate by no longer returning 1 millisecond
whenever sys_arch_mbox_wait() and sys_arch_sem_wait() get a message or
semaphore immediately. Updated documentation for this change.
Unix port and Coldfire port have been updated.
2003-03-28 20:47:10 +00:00
jani
0749599eab the contrib part of thread priority patch by floriZ.Also take out unused unix netifs from unixsim makefile for now 2003-03-19 15:28:31 +00:00
davidhaas
7d1204e144 Fixed SYS_ARCH_PROTECT macros when NO_SYS is not defined.
Added documentation for lightweight protection.

Fixed debug statement in ip.c.

Removed tabs in files I changed.
2003-02-18 21:14:26 +00:00
davidhaas
68db26a7ab Made sys_arch_prot() interface more generic by returning sys_prot_t instead
of u32_t.
2003-02-12 16:38:57 +00:00
davidhaas
ae49c020d7 sys_thread_new() now returns the thread (request from Marc Boucher).
Removed some unused .h files in coldfire port.

Support LWIP_DIAG and LWIP_ASSERT in coldfire (sort of).

Fix to last api fix to make sure select() is triggered, even when there has
been a FIN.

Allow build of unixsim from cygwin by specifying "make ARCH=cygwin" or from
linux by specifying "make ARCH=linux".
2003-02-11 20:59:49 +00:00
davidhaas
6929a67489 Add the following features and bugfixes:
Added select() functionality to sockets library.
Support for errno in sockets library.
Byte ordering fixes.
basic lwip_ioctl(), FIONREAD, get/setsockopt() etc. support

- added additional argument to netif_add to pass state pointer so that the
if_init function has access to context information before
the interface is added, without accessing globals.

- added netif_remove()

- to conserve cpu load the tcpip_tcp_timer should only be active
when tcbs that need it exist.

- pass length of available data to callbacks for NETCONN_EVT_RCV events

- added tcpip_link_input(), a hack to allow processing of PPP
packets in tcpip_thread() context. This saves threads and context
switches.

- renamed incompatible ASSERT() macro to LWIP_ASSERT() to avoid name
collision.

- changed a bunch of %d's to %u's in format strings for unsigned values.

- added ip_frag to lwip_stats.

- changed IP_REASS_MAXAGE and IP_REASS_TMO defaults to more realistic
values.

- added sys_timeout_remove() function to cancel timeouts (needed by PPP
amongst other things).

- tolerate NULL returns from sys_arch_timeouts() since some threads might
not need to use or have timeouts.

- added sys_sem_wait_timeout()

- moved mem_malloc() function to end of mem.c to work around tasking
compiler bug.

- automatically bind to local tcp port if 0.

- allow customization of port ranges for automatic local bindings.

- corrected various typos, spelling errors, etc..

Thanks to Marc Boucher for many of these changes.
2003-02-06 22:18:30 +00:00
davidhaas
3cbe86d8a7 Added lightweight protection. In coldfire this is implemented by disabling
interrupts. In unixsim this is implemented by using a mutex. Uses #define
SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but
disabled in unixsim.

Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
2003-02-04 22:52:01 +00:00
davidhaas
f71da3c8c8 ----------------------------------------------------------------------
Fixed the following bugs:
	2366: For coldfire port: pbuf is freed twice when no room on
	      output ring.
	2368: Coldfire port: buffer cleanup in 5272 driver causes
	      problems.
	2376: Can't have timeouts large enough

Note that timeouts are now 32 bits. This was done for select()
support. Coldfire and unix ports have been updated.
Committing in .

Modified Files:
 	unix/sys_arch.c
2003-02-04 14:48:54 +00:00
jani
b63196d62a Add Unix port 2003-01-18 18:18:02 +00:00