<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/lib/embed, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>py/stream: Remove mp_stream_errno and use system errno instead.</title>
<updated>2020-04-27T13:58:46+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-04-20T13:48:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e08ca78f40bb1948acffa60c0315083acfb02227'/>
<id>e08ca78f40bb1948acffa60c0315083acfb02227</id>
<content type='text'>
This change is made for two reasons:

1. A 3rd-party library (eg berkeley-db-1.xx, axtls) may use the system
   provided errno for certain errors, and yet MicroPython stream objects
   that it calls will be using the internal mp_stream_errno.  So if the
   library returns an error it is not known whether the corresponding errno
   code is stored in the system errno or mp_stream_errno.  Using the system
   errno in all cases (eg in the mp_stream_posix_XXX wrappers) fixes this
   ambiguity.

2. For systems that have threading the system-provided errno should always
   be used because the errno value is thread-local.

For systems that do not have an errno, the new lib/embed/__errno.c file is
provided.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change is made for two reasons:

1. A 3rd-party library (eg berkeley-db-1.xx, axtls) may use the system
   provided errno for certain errors, and yet MicroPython stream objects
   that it calls will be using the internal mp_stream_errno.  So if the
   library returns an error it is not known whether the corresponding errno
   code is stored in the system errno or mp_stream_errno.  Using the system
   errno in all cases (eg in the mp_stream_posix_XXX wrappers) fixes this
   ambiguity.

2. For systems that have threading the system-provided errno should always
   be used because the errno value is thread-local.

For systems that do not have an errno, the new lib/embed/__errno.c file is
provided.
</pre>
</div>
</content>
</entry>
<entry>
<title>all: Use MP_ERROR_TEXT for all error messages.</title>
<updated>2020-04-05T05:02:06+00:00</updated>
<author>
<name>Jim Mussared</name>
</author>
<published>2020-03-02T11:35:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=def76fe4d9bbc2c342594dc05861b24d7165d274'/>
<id>def76fe4d9bbc2c342594dc05861b24d7165d274</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/embed/abort_: Use mp_raise_msg helper function.</title>
<updated>2017-09-22T01:31:00+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2017-09-22T01:31:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=d36539df06863cd83fc3a475c7b6f04d20095967'/>
<id>d36539df06863cd83fc3a475c7b6f04d20095967</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/abort_.c: Add prototype to make coverage build happy.</title>
<updated>2016-07-30T14:52:06+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-07-30T14:52:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=58d9d85a564bbae5fa7eaa1f0baa62be56024366'/>
<id>58d9d85a564bbae5fa7eaa1f0baa62be56024366</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/embed/abort_: Implementation of abort_() function raising uPy exception.</title>
<updated>2016-07-29T21:35:50+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2016-07-29T21:35:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=c8b80e4740baa0f3bdf025a23f92c3a1ff2bf6fc'/>
<id>c8b80e4740baa0f3bdf025a23f92c3a1ff2bf6fc</id>
<content type='text'>
Helpful when porting existing C libraries to MicroPython. abort()ing in
embedded environment isn't a good idea, so when compiling such library,
-Dabort=abort_ option can be given to redirect standard abort() to this
"safe" version.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Helpful when porting existing C libraries to MicroPython. abort()ing in
embedded environment isn't a good idea, so when compiling such library,
-Dabort=abort_ option can be given to redirect standard abort() to this
"safe" version.
</pre>
</div>
</content>
</entry>
</feed>
