Skip to content

Instantly share code, notes, and snippets.

@kkartaltepe
Created March 19, 2014 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkartaltepe/9634895 to your computer and use it in GitHub Desktop.
Save kkartaltepe/9634895 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<stdlib.h>
#include<error.h>
#include<string.h>
#include<syscall.h>
#include<sys/time.h>
int main() {
char *name = "Longhorn";
int n = syscall(351, name, strlen(name));
printf("%d\n", strlen(name));
struct timeval *someTimeVal = malloc(sizeof(struct timeval));
n = syscall(352, sometimeVal);
printf("%d, %d\n", n, someTimeVal->tv_sec);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment