Next batch of changes!

This commit is contained in:
Godzil
2013-03-20 01:58:06 +01:00
committed by Manoël Trapier
parent a05a174f40
commit 1c4e04de3a
29 changed files with 129 additions and 78 deletions

View File

@@ -22,6 +22,10 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>

View File

@@ -15,9 +15,15 @@
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "out.h"
#include "arch.h"
#include "ranlib.h"
#include "object.h"
int numsort_flg;
int sectsort_flg;
@@ -98,8 +104,6 @@ int main(int argc, char *argv[])
exit(0);
}
int rd_unsigned2(int fd);
void process(int fd)
{
unsigned int magic;

View File

@@ -1,4 +1,3 @@
static char rcsid[] = "$Id$";
/*
* show - make the contents of an ACK object file human readable.
*/
@@ -9,6 +8,7 @@ static char rcsid[] = "$Id$";
#include <sys/types.h>
#include <sys/stat.h>
#include <out.h>
#include "object.h"
#define OK 0 /* Return value of gethead if Orl Korekt. */
#define BMASK 0xFF /* To extract least significant 8 bits from an int. */

View File

@@ -7,7 +7,7 @@
#include <stdlib.h>
#include <stdio.h>
#include "out.h"
#include "object.h"
/*
asize -- determine object size

View File

@@ -21,6 +21,10 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdarg.h>
#include <string.h>
#include "out.h"

View File

@@ -6,9 +6,13 @@
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include "out.h"
#include "object.h"
/*
astrip -- remove symbols and relocation bits
@@ -17,12 +21,13 @@
char temp_name[] = "/tmp/sXXXXXX";
char *tname;
char *mktemp();
FILE *fopen();
FILE *tf;
struct outhead buf;
int readerror, writeerror;
int strip(char *name);
int copy(char *fnam, char *tnam, long size, int fr, int fw);
int main(int argc, char *argv[])
{
int status;
@@ -113,7 +118,7 @@ int strip(char *name)
int copy(char *fnam, char *tnam, long size, int fr, int fw)
{
int s, n;
int s/*, n*/;
char lbuf[512];
while(size != (long)0) {