Lines Matching refs:sig
647 struct api_signature *sig; in api_init() local
679 sig = malloc(sizeof(struct api_signature)); in api_init()
680 if (sig == NULL) { in api_init()
685 env_set_hex("api_address", (unsigned long)sig); in api_init()
686 debugf("API sig @ 0x%lX\n", (unsigned long)sig); in api_init()
687 memcpy(sig->magic, API_SIG_MAGIC, 8); in api_init()
688 sig->version = API_SIG_VERSION; in api_init()
689 sig->syscall = &syscall; in api_init()
690 sig->checksum = 0; in api_init()
691 sig->checksum = crc32(0, (unsigned char *)sig, in api_init()
693 debugf("syscall entry: 0x%lX\n", (unsigned long)sig->syscall); in api_init()