Plan 9 from Bell Labs’s /usr/web/sources/contrib/gabidiaz/wip/mboxfs/eutil.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


 
#define DEBUG 1
#define FATAL 2
#define HOLD 3


void* emalloc(ulong n);
void* erealloc(void *v, ulong n);
char* estrdup(char *s);

int error(int level, char *format, ... );
int printm(Message *m,int t);
int printmsg(Message *m,int t);
int printbox(Mailbox *b);

Mailbox* newbox(char *f);
Mailbox* blookup(Mailbox *list, char *name);
Mailbox* btofront(Mailbox *list, Mailbox *new);
Mailbox* btoend(Mailbox *list, Mailbox *new);

Message* newmsg(vlong start);
Message* mtofront(Message *list, Message *new);
Message* mtoend(Message *list, Message *new);
Message* mlookup(Message *list, int id);
Message* ptofront(Message *list, Message *new);
Message* ptoend(Message *list, Message *new);
Message* plookup(Message *list, int id);

void freemime(Mime *m);
void freem(Message *m);
void freemlist(Message *list);
void freeplist(Message *list);
Message* delm(Message *list, int id);
Message* delp(Message *list, int id);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.