This is loadmprotect.c in view mode; [Download] [Up]
/*
* load kernel extension filepurge()
*/
#include <sys/sysconfig.h>
main()
{
int rc;
struct cfg_load lparms = {"mprotect",0,0};
rc = sysconfig(SYS_KULOAD, &lparms, sizeof(struct cfg_load));
rc = sysconfig(SYS_KLOAD, &lparms, sizeof(struct cfg_load));
if (rc )
printf("loadmprotect failed (%d)\n",rc);
}
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.