This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(argc, argv) | |
int argc; | |
char *argv[]; | |
{ | |
int i; | |
argc--; | |
for(i=1; i<=argc; i++) | |
printf("%s%c", argv[i], i==argc? '\n': ' '); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# No execution (syntax check) | |
#set -n | |
# Debug | |
#set -x | |
# Deploy RDK image & rootfs into NFS directory | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* huebr | |
*/ | |
#include <stdio.h> | |
#include <stdbool.h> | |
int arg(int x, const char *name) | |
{ | |
printf("%s: %d %s\n", __func__, x, name); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* syscalltable.c | |
* | |
* A friend of mine asked few questions about | |
* (quite deprecated) syscall hooking tecnikz | |
* and went into a question asking why some sys_call_table | |
* entry ptr finders algorithms out there return a pointer to pointer (**), C doubts. | |
* | |
* I didn't look in detail, yet, at sys call table kernel impl so I | |
* started assuming (keep not looking closer because tonight I am feeling lazy) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Example code reading/printing | |
# each given command line argument. | |
# | |
######################## | |
# Sets current argument index into | |
# given register | |
.macro NARG reg | |
popl %eax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define HASHTSIZ 512 | |
typedef struct innerlist_t | |
{ | |
int val; | |
struct innerlist_t *next; | |
}innerlist_t; |