diff options
| author | Chris Larson <clarson@kergoth.com> | 2004-12-09 09:47:41 +0000 |
|---|---|---|
| committer | Chris Larson <clarson@kergoth.com> | 2004-12-09 09:47:41 +0000 |
| commit | 2c5b8ec6d95cf68650265941530e5ce38c8dd6d9 (patch) | |
| tree | bf879bea7ef8517ba8c3d1286ef300401d3d484c /pad | |
| parent | 101e2f1623def0a355d20aacb8bd93810703e834 (diff) | |
Merge oe-devel@oe-devel.bkbits.net:openembedded
into hyperion.kergoth.com:/home/kergoth/code/openembedded
2004/12/09 03:39:39-06:00 kergoth.com!kergoth
Break people's builds again.. this time moving the packages into a packages/ subdir to clean things up a bit.
BKrev: 41b81f3dvlp3rU7_8MUXLcI8LDdDoA
Diffstat (limited to 'pad')
| -rw-r--r-- | pad/pad-native.bb | 0 | ||||
| -rw-r--r-- | pad/pad/pad.c | 40 |
2 files changed, 0 insertions, 40 deletions
diff --git a/pad/pad-native.bb b/pad/pad-native.bb deleted file mode 100644 index e69de29bb2..0000000000 --- a/pad/pad-native.bb +++ /dev/null diff --git a/pad/pad/pad.c b/pad/pad/pad.c deleted file mode 100644 index e81e22504d..0000000000 --- a/pad/pad/pad.c +++ /dev/null @@ -1,40 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> - -int stat(const char *file_name, struct stat *buf); - -int syntax(void) -{ - printf("syntax:\n"); - printf(" pad padnum filename\n"); - return(0); -} - -int main(int argc, char **argv) -{ - FILE *fp; - long int i=0L, padsize=0L; - unsigned char data=0xff; - struct stat fileinfo; - if(argc<3){ - syntax(); - exit(1); - } - if((fp=fopen(argv[2],"a"))==NULL){ - printf("error opening %s.\n",argv[2]); - exit(1); - } - if(stat(argv[2],&fileinfo)!=0){ - printf("error in stat of %s.\n",argv[2]); - exit(1); - } - padsize = strtol(argv[1],NULL,10) - fileinfo.st_size; - for(i=0;i<padsize;i++){ - fwrite(&data,1,1,fp); - } - fclose(fp); - return(0); -} |
