Browse Source

Introduced a default definition for PATH_MAX.

release-1.5.4.branch
Thomas Schmitt 12 years ago
parent
commit
cbb376a137
  1. 5
      demo/demo.c
  2. 6
      demo/iso_read.c
  3. 6
      demo/lsl.c
  4. 5
      libisofs/builder.c
  5. 5
      libisofs/filesrc.c
  6. 5
      libisofs/fs_image.c
  7. 5
      libisofs/libisofs.h
  8. 6
      libisofs/node.c
  9. 6
      libisofs/stream.c
  10. 6
      libisofs/tree.c

5
demo/demo.c

@ -65,6 +65,11 @@ static char helptext[][80] = {
#include <fcntl.h>
#include <err.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
/* ------------------------- from demo/tree.c ----------------------- */
static void

6
demo/iso_read.c

@ -10,6 +10,12 @@
#include "libisofs.h"
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
static void
print_permissions(mode_t mode)
{

6
demo/lsl.c

@ -13,6 +13,12 @@
#include <stdlib.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
/*
* Little test program to test filesystem implementations.
*

5
libisofs/builder.c

@ -21,6 +21,11 @@
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
void iso_node_builder_ref(IsoNodeBuilder *builder)
{

5
libisofs/filesrc.c

@ -23,6 +23,11 @@
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
int iso_file_src_cmp(const void *n1, const void *n2)
{
int ret;

5
libisofs/fs_image.c

@ -30,6 +30,11 @@
#include <stdio.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
/**
* Options for image reading.
* There are four kind of options:

5
libisofs/libisofs.h

@ -4689,6 +4689,11 @@ int iso_local_set_attrs(char *disk_path, size_t num_attrs, char **names,
size_t *value_lengths, char **values, int flag);
/* Default in case that the compile environment has no macro PATH_MAX.
*/
#define Libisofs_default_path_maX 4096
/* --------------------------- Filters in General -------------------------- */
/*

6
libisofs/node.c

@ -22,6 +22,12 @@
#include <limits.h>
#include <stdio.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
struct dir_iter_data
{
/* points to the last visited child, to NULL before start */

6
libisofs/stream.c

@ -17,6 +17,12 @@
#include <limits.h>
#include <stdio.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
ino_t serial_id = (ino_t)1;
ino_t mem_serial_id = (ino_t)1;
ino_t cut_out_serial_id = (ino_t)1;

6
libisofs/tree.c

@ -25,6 +25,12 @@
#include <stdio.h>
#include <fnmatch.h>
#ifndef PATH_MAX
#define PATH_MAX Libisofs_default_path_maX
#endif
/**
* Add a new directory to the iso tree.
*

Loading…
Cancel
Save