| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Maximus at UNIX |
Sun 2003-06-01 12:55, Bo Simonsen (2:236/100) wrote to Bob Jones:
BJ>> Interesting. What needed correcting in the msgapi? Was this the
BJ>> Maximus msgapi, or the versions of the api previously ported to Linux
BJ>> / Unix systsems for use by such things as the husky project?
BS> Maximus's msgapi, it didn't wrote the XMSG structure correctly
BS> (subject, from, to, ftsc_data and so on). So i borrowed some code
BS> from the smapi.
This was probably due to the compiler using structure alignment on word
boundaries (not type size) in which case you should be able to use:
#pragma pack(1)
typedef struct _xmsg
{
/* ... */
}
XMSG;
#pragma pack()
To align structures on byte boundaries. This isn't portable to all
compilers, but I think it works with all versions of GNU C.
Maybe you did this already. ;-)
-- mail{at}ozzmosis.com
--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Mt Eliza, Melbourne, Australia (3:633/267)SEEN-BY: 633/267 270 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.