summaryrefslogtreecommitdiff
path: root/pad
diff options
context:
space:
mode:
Diffstat (limited to 'pad')
-rw-r--r--pad/pad-native.bb0
-rw-r--r--pad/pad/pad.c40
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);
-}