Logo Search packages:      
Sourcecode: umsdos version File versions

umsdos_progs.h

/*
 * Avoid glibc2 types in favor of kernel types.
 

#define daddr_t         glibc_daddr_t
#define dev_t           glibc_dev_t
#define gid_t           glibc_gid_t
#define ino_t           glibc_ino_t
#define key_t           glibc_key_t
#define mode_t          glibc_mode_t
#define nlink_t         glibc_nlink_t
#define off_t           glibc_off_t
#define pid_t           glibc_pid_t
#define uid_t           glibc_uid_t

#include <time.h>
#include <sys/types.h>

#undef  glibc_daddr_t
#undef  glibc_dev_t
#undef  glibc_gid_t
#undef  glibc_ino_t
#undef  glibc_key_t
#undef  glibc_mode_t
#undef  glibc_nlink_t
#undef  glibc_off_t
#undef  glibc_pid_t
#undef  glibc_uid_t

#define clock_t         kernel_clock_t

#include <linux/types.h>

#undef  clock_t
#undef  daddr_t
#undef  dev_t
#undef  gid_t
#undef  ino_t
#undef  key_t
#undef  mode_t
#undef  nlink_t
#undef  off_t
#undef  pid_t
#undef  uid_t

typedef __kernel_daddr_t        daddr_t;
typedef __kernel_dev_t          dev_t;
typedef __kernel_gid_t          gid_t;
typedef __kernel_ino_t          ino_t;
#ifdef __kernel_key_t
typedef __kernel_key_t          key_t;
#else
typedef int                     key_t;
#endif
typedef __kernel_mode_t         mode_t;
typedef __kernel_nlink_t        nlink_t;
typedef __kernel_off_t          off_t;
typedef __kernel_pid_t          pid_t;
typedef __kernel_uid_t          uid_t;
*/
#ifndef UMSDOS_PROGS_H
#define UMSDOS_PROGS_H

#include <sys/types.h>

#define UPROG_VERSION   1
#define UPROG_RELEASE   13
#define PROG_ID(n)      fprintf(stderr,n " %d.%d "\
                  "(Umsdos compatibility level %d.%d)\n"\
                  ,UPROG_VERSION,UPROG_RELEASE\
                  ,UMSDOS_VERSION,UMSDOS_RELEASE);

#include <sys/stat.h>
#include <dirent.h>
#include "umsdos_gen.h"
#include "umsdos_progs.p"

#endif


Generated by  Doxygen 1.6.0   Back to index