Libraries updates and cleanup
* Updating common/lib * Updating lib/csu * Updating lib/libc * Updating libexec/ld.elf_so * Corrected test on __minix in featuretest to actually follow the meaning of the comment. * Cleaned up _REENTRANT-related defintions. * Disabled -D_REENTRANT for libfetch * Removing some unneeded __NBSD_LIBC defines and tests Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <err.h>
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -696,7 +696,7 @@ unsigned short mon_len[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||
void fill_date(entry)
|
||||
DIRECTORY *entry;
|
||||
{
|
||||
register long cur_time = time((long *) 0) - DOS_TIME;
|
||||
register long cur_time = time(NULL) - DOS_TIME;
|
||||
unsigned short year = 0, month = 1, day, hour, minutes, seconds;
|
||||
int i;
|
||||
long tmp;
|
||||
|
||||
@@ -251,7 +251,8 @@ extern char *malloc();
|
||||
#endif
|
||||
|
||||
/* everybody but Amiga wants lseek declared here */
|
||||
#if !AMIGA
|
||||
/* LSC: MINIX Does not want it either! */
|
||||
#if !AMIGA && !defined(__minix)
|
||||
extern long lseek();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -419,11 +419,11 @@ int main(int argc, char **argv)
|
||||
if (rflag) {
|
||||
if (aflag) usage();
|
||||
if ((argc - i) != 1) usage();
|
||||
fprintf(stderr, "%s: -r is not yet implemented\n");
|
||||
fprintf(stderr, "%s: -r is not yet implemented\n", __func__);
|
||||
exit(1);
|
||||
} else {
|
||||
if ((argc - i) < 1) usage();
|
||||
if (aflag) fprintf(stderr, "%s: -a is not yet implemented\n");
|
||||
if (aflag) fprintf(stderr, "%s: -a is not yet implemented\n", __func__);
|
||||
|
||||
device= argv[i++];
|
||||
geometry();
|
||||
|
||||
@@ -70,7 +70,7 @@ void usage()
|
||||
int main ( int argc, char *argv[] )
|
||||
{
|
||||
int i, r, audio, file;
|
||||
char *buffer, *file_name;
|
||||
char *buffer, *file_name = NULL;
|
||||
unsigned int sign;
|
||||
unsigned int fragment_size;
|
||||
unsigned int channels;
|
||||
|
||||
@@ -112,7 +112,6 @@ int diocntl(dev_t device, int request, struct partition *entry)
|
||||
{
|
||||
char *name;
|
||||
int r, f, err;
|
||||
struct partition geometry;
|
||||
|
||||
name= finddev(device);
|
||||
if ((f= open(name, O_RDONLY)) < 0) return -1;
|
||||
@@ -164,7 +163,7 @@ int main(int argc, char **argv)
|
||||
struct stat hdst;
|
||||
struct partition whole, entry;
|
||||
struct part_entry table[4], *pe;
|
||||
int drive, par, device, incr;
|
||||
int drive, par = 0, device, incr;
|
||||
int partf;
|
||||
char *table_file;
|
||||
int hd_major, hd_minor;
|
||||
|
||||
Reference in New Issue
Block a user