amiga-news DEUTSCHE VERSION
.
Links| Forums| Comments| Report news
.
Chat| Polls| Newsticker| Archive
.

[Login] [Register] [Forgot your password?]

< Next messagePrior message >
09.Jun.2006
pegasos.org (Webseite)


MorphOS: Nixskeleton, a Shared Library Skeleton
Sigbjørn 'CISC' Skjære has published an example implementation of a Shared Library called "nixskeleton" in the download section of the "MorphOS Developer Connection". Features of Nixskeleton:
  • Multiple libbases, each opener gets their own private base and global data.
  • A task will always get the same base, thus the library can be indirectly opened elsewhere through the same task and still get the right libbase.
  • However this means callers should avoid sharing libbase across tasks (this is frowned upon anyway), as it'll lead to trouble!
  • You can use libnix I/O and anything requiring constructors etc in the library.
  • Full of comments (hopefully enough) to help you understand the magic involved.
  • The skeleton uses SYSV (with r12base to be able to work its magic) functions, since this is the most likely candidate (it is however possible to adapt it for 68k entries, basically you have to change the global __restore_r13() function).
  • You *can* *not* pass filedescriptors between caller and library, or free() memory allocated by the other etc, doing so will mean certain death, you have been warned! ;)

If there should be any questions please contact the author. (cg) (Translation: dr)

[News message: 09. Jun. 2006, 15:43] [Comments: 0]
[Send via e-mail]  [Print version]  [ASCII version]
< Next messagePrior message >

.
Masthead | Privacy policy | Netiquette | Advertising | Contact
Copyright © 1998-2024 by amiga-news.de - all rights reserved.
.