Home
last modified time | relevance | path

Searched refs:mbox (Results 1 – 25 of 40) sorted by relevance

12

/external/syslinux/core/thread/
Dmbox.c11 void mbox_init(struct mailbox *mbox, size_t size) in mbox_init() argument
13 if (!!mbox) { in mbox_init()
14 sem_init(&mbox->prod_sem, size); /* All slots empty */ in mbox_init()
15 sem_init(&mbox->cons_sem, 0); /* No slots full */ in mbox_init()
16 sem_init(&mbox->head_sem, 1); /* Head mutex */ in mbox_init()
17 sem_init(&mbox->tail_sem, 1); /* Tail mutex */ in mbox_init()
19 mbox->wrap = &mbox->data[size]; in mbox_init()
20 mbox->head = &mbox->data[0]; in mbox_init()
21 mbox->tail = &mbox->data[0]; in mbox_init()
25 int mbox_post(struct mailbox *mbox, void *msg, mstime_t timeout) in mbox_post() argument
[all …]
/external/syslinux/core/lwip/src/arch/
Dsys_arch.c60 err_t sys_mbox_new(sys_mbox_t *mbox, int size) in sys_mbox_new() argument
62 if (!mbox) in sys_mbox_new()
64 *mbox = malloc(MBOX_BYTES(size)); in sys_mbox_new()
65 if (!(*mbox)) in sys_mbox_new()
68 mbox_init(*mbox, size); in sys_mbox_new()
72 void sys_mbox_free(sys_mbox_t *mbox) in sys_mbox_free() argument
74 if (!!mbox && !!*mbox) { in sys_mbox_free()
75 sys_mbox_set_invalid(mbox); in sys_mbox_free()
76 free(*mbox); in sys_mbox_free()
77 *mbox = NULL; in sys_mbox_free()
[all …]
/external/python/cpython2/Lib/test/
Dtest_old_mailbox.py44 def createMessage(self, dir, mbox=False): argument
53 if mbox:
67 self.mbox = mailbox.Maildir(test_support.TESTFN)
68 self.assertTrue(len(self.mbox) == 0)
69 self.assertTrue(self.mbox.next() is None)
70 self.assertTrue(self.mbox.next() is None)
74 self.mbox = mailbox.Maildir(test_support.TESTFN)
75 self.assertTrue(len(self.mbox) == 1)
76 msg = self.mbox.next()
79 self.assertTrue(self.mbox.next() is None)
[all …]
Dtest_mailbox.py990 _factory = lambda self, path, factory=None: mailbox.mbox(path, factory)
1002 self._box = mailbox.mbox(self._path, create=True)
1948 def createMessage(self, dir, mbox=False): argument
1957 if mbox:
1972 self.mbox = mailbox.Maildir(test_support.TESTFN)
1975 self.assertIsNone(self.mbox.next())
1976 self.assertIsNone(self.mbox.next())
1980 self.mbox = mailbox.Maildir(test_support.TESTFN)
1982 msg = self.mbox.next()
1985 self.assertIsNone(self.mbox.next())
[all …]
/external/syslinux/core/include/
Dmbox.h34 void mbox_init(struct mailbox *mbox, size_t size);
35 int mbox_post(struct mailbox *mbox, void *msg, mstime_t timeout);
36 mstime_t mbox_fetch(struct mailbox *mbox, void **msg, mstime_t timeout);
46 static inline void mbox_set_invalid(struct mailbox *mbox) in mbox_set_invalid() argument
48 if (!!mbox) in mbox_set_invalid()
49 sem_set_invalid(&mbox->prod_sem); in mbox_set_invalid()
55 static inline bool mbox_is_valid(struct mailbox *mbox) in mbox_is_valid() argument
57 return ((!!mbox) && sem_is_valid(&mbox->prod_sem)); in mbox_is_valid()
/external/syslinux/core/lwip/src/include/lwip/
Dsys.h168 err_t sys_mbox_new(sys_mbox_t *mbox, int size);
173 void sys_mbox_post(sys_mbox_t *mbox, void *msg);
177 err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg);
185 u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout);
194 u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg);
197 #define sys_mbox_tryfetch(mbox, msg) sys_arch_mbox_tryfetch(mbox, msg)
200 void sys_mbox_free(sys_mbox_t *mbox);
201 #define sys_mbox_fetch(mbox, msg) sys_arch_mbox_fetch(mbox, msg, 0)
204 int sys_mbox_valid(sys_mbox_t *mbox);
208 void sys_mbox_set_invalid(sys_mbox_t *mbox);
Dtimers.h89 void sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg);
Dstats.h110 struct stats_syselem mbox; member
/external/syslinux/core/lwip/src/api/
Dtcpip.c55 static sys_mbox_t mbox; variable
88 sys_timeouts_mbox_fetch(&mbox, (void **)&msg); in tcpip_thread()
175 if (sys_mbox_valid(&mbox)) { in tcpip_input()
184 if (sys_mbox_trypost(&mbox, msg) != ERR_OK) { in tcpip_input()
210 if (sys_mbox_valid(&mbox)) { in tcpip_callback_with_block()
220 sys_mbox_post(&mbox, msg); in tcpip_callback_with_block()
222 if (sys_mbox_trypost(&mbox, msg) != ERR_OK) { in tcpip_callback_with_block()
246 if (sys_mbox_valid(&mbox)) { in tcpip_timeout()
256 sys_mbox_post(&mbox, msg); in tcpip_timeout()
275 if (sys_mbox_valid(&mbox)) { in tcpip_untimeout()
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_helpabout.py29 cls.mbox = Mbox()
31 textview.tkMessageBox = cls.mbox
44 self.mbox.showerror.message = ''
47 self.assertEqual(self.mbox.showerror.message, '')
/external/syslinux/core/lwip/src/core/
Dstats.c148 LWIP_PLATFORM_DIAG(("mbox.used: %"U32_F"\n\t", (u32_t)sys->mbox.used)); in stats_display_sys()
149 LWIP_PLATFORM_DIAG(("mbox.max: %"U32_F"\n\t", (u32_t)sys->mbox.max)); in stats_display_sys()
150 LWIP_PLATFORM_DIAG(("mbox.err: %"U32_F"\n\t", (u32_t)sys->mbox.err)); in stats_display_sys()
Dtimers.c419 sys_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg) in sys_timeouts_mbox_fetch() argument
428 time_needed = sys_arch_mbox_fetch(mbox, msg, 0); in sys_timeouts_mbox_fetch()
431 time_needed = sys_arch_mbox_fetch(mbox, msg, next_timeout->time); in sys_timeouts_mbox_fetch()
/external/syslinux/core/lwip/doc/
Dsys_arch.txt80 - void sys_mbox_free(sys_mbox_t mbox)
86 - void sys_mbox_post(sys_mbox_t mbox, void *msg)
91 - err_t sys_mbox_trypost(sys_mbox_t mbox, void *msg)
96 - u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)
113 - u32_t sys_arch_mbox_tryfetch(sys_mbox_t mbox, void **msg)
122 #define sys_arch_mbox_tryfetch(mbox,msg) \
123 sys_arch_mbox_fetch(mbox,msg,1)
/external/python/cpython3/Doc/library/
Dmailbox.rst19 Supported mailbox formats are Maildir, mbox, MH, Babyl, and MMDF.
72 tasks is Maildir; try to avoid using single-file formats such as mbox for
92 :class:`mboxMessage` instance and this is an :class:`mbox` instance), its
124 :class:`mbox` instance), its format-specific information is
438 .. _mailbox-mbox:
440 :class:`mbox`
444 .. class:: mbox(path, factory=None, create=True)
446 A subclass of :class:`Mailbox` for mailboxes in mbox format. Parameter *factory*
453 The mbox format is the classic format for storing mail on Unix systems. All
454 messages in an mbox mailbox are stored in a single file with the beginning of
[all …]
Demail.generator.rst54 *mangle_from_* is intended for use when messages are stored in unix mbox
155 *mangle_from_* is intended for use when messages are stored in unix mbox
/external/python/cpython2/Doc/library/
Dmailbox.rst17 Maildir, mbox, MH, Babyl, and MMDF.
71 tasks is Maildir; try to avoid using single-file formats such as mbox for
90 :class:`mboxMessage` instance and this is an :class:`mbox` instance), its
118 :class:`mbox` instance), its format-specific information is
421 .. _mailbox-mbox:
423 :class:`mbox`
427 .. class:: mbox(path, factory=None, create=True)
429 A subclass of :class:`Mailbox` for mailboxes in mbox format. Parameter *factory*
436 The mbox format is the classic format for storing mail on Unix systems. All
437 messages in an mbox mailbox are stored in a single file with the beginning of
[all …]
/external/tensorflow/tensorflow/contrib/quantize/
DREADME.md36 x_{min} & \mbox{if } x \le x_{min} \\
37 x & \mbox{if } x_{min} \leq x \leq x_{max} \\
38 x_{max} & \mbox{if } x_{max} \le x
/external/python/cpython3/Lib/test/
Dtest_mailbox.py1092 _factory = lambda self, path, factory=None: mailbox.mbox(path, factory)
1104 self._box = mailbox.mbox(self._path, create=True)
2128 def createMessage(self, dir, mbox=False): argument
2137 if mbox:
2152 self.mbox = mailbox.Maildir(support.TESTFN)
2155 self.assertIsNone(self.mbox.next())
2156 self.assertIsNone(self.mbox.next())
2160 self.mbox = mailbox.Maildir(support.TESTFN)
2162 self.assertIsNotNone(self.mbox.next())
2163 self.assertIsNone(self.mbox.next())
[all …]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/bench/
Dwikipedia.min.css1mbox-inside .standard-talk,.messagebox.nested-talk{border:1px solid #c0c090;background-color:#f8ea…
Dwikipedia.css2872 .mbox-inside .standard-talk,
2903 th.mbox-text, td.mbox-text { /* The message body cell(s) */
2909 td.mbox-image { /* The left image cell */
2915 td.mbox-imageright { /* The right image cell */
2921 td.mbox-empty-cell { /* An empty narrow cell */
2938 .ambox th.mbox-text,
2939 .ambox td.mbox-text { /* The message body cell(s) */
2942 .ambox td.mbox-image { /* The left image cell */
2946 .ambox td.mbox-imageright { /* The right image cell */
2988 .imbox .mbox-text .imbox { /* For imboxes inside imbox-text cells. */
[all …]
/external/harfbuzz_ng/
Dharfbuzz.doap21 <foaf:mbox rdf:resource="mailto:harfbuzz@behdad.org" />
/external/eigen/doc/
DTutorialReductionsVisitorsBroadcasting.dox157 \mbox{m} = \begin{bmatrix} 1 & 2 & 6 & 9 \\
164 \mbox{m.colwise().sum()} = \begin{bmatrix} 4 & 3 & 13 & 11 \end{bmatrix}
246 \mbox{m.colwise() - v} =
255 \mbox{(m.colwise() - v).colwise().squaredNorm()} =
/external/syslinux/core/lwip/
DUPGRADING56 * Converted mbox- and semaphore-functions to take pointers to sys_mbox_t/
/external/mdnsresponder/mDNSCore/
DDNSCommon.c1135 …case kDNSType_RP: return DomainNameHashValue(&rdb->rp.mbox) + DomainNameHashValue(&rdb->rp.txt); in RDataHashValue()
1190 case kDNSType_RP: return(mDNSBool)( samename(&b1->rp.mbox, &b2->rp.mbox) && in SameRDataBody()
1427 case kDNSType_RP: return(mDNSu16)(CompressedDomainNameLength(&rd->rp.mbox, name) + in GetRDLength()
1695 case kDNSType_RP: ptr = putDomainNameAsLabels(msg, ptr, limit, &rdb->rp.mbox); in putRData()
2260 case kDNSType_RP: ptr = getDomainName(msg, ptr, end, &rdb->rp.mbox); // Domainname + domainname in GetLargeResourceRecord()
/external/fio/
Dgclient.c1149 static void gfio_show_ddir_status(struct gfio_client *gc, GtkWidget *mbox, in gfio_show_ddir_status() argument
1175 gtk_box_pack_start(GTK_BOX(mbox), box, TRUE, FALSE, 3); in gfio_show_ddir_status()

12