IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 24, 2005, 4:50:29 PM (21 years ago)
Author:
eugene
Message:

includes cleanup, adding autocode stuff, fits_db

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/ohana.h

    r3400 r3508  
    2525# define OHANA_H
    2626
    27 extern double hypot();
    28 
    2927# define TRUE (1)
    3028# define FALSE (0)
     
    3634# define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
    3735# define SWAP(X,Y) {double tmp=(X); (X) = (Y); (Y) = tmp;}
     36# define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec))
    3837
    3938# define LCK_UNLOCK  0   /* file is unlocked */
     
    5554# endif
    5655
    57 int setlockfile2 (char *filename, double timeout, int type, int *state);
    58 int clearlockfile2 (char *filename, int fd, int type, int *state);
    59 
    60 FILE *fsetlockfile (char *filename, double timeout, int type, int *state);
    61 int fclearlockfile (char *filename, FILE *f, int type, int *state);
     56# define DEG_RAD 57.295779513082322
     57# define RAD_DEG  0.017453292519943
    6258
    6359# ifndef PROTO
     
    10399# endif /* FOPEN */
    104100
    105 # define DEG_RAD 57.295779513082322
    106 # define RAD_DEG  0.017453292519943
    107 
    108 # define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec))
     101extern double hypot();
    109102
    110103/* in string.c */
     
    118111int   get_argument (int argc, char **argv, char *arg);
    119112int   remove_argument (int N, int *argc, char **argv);
     113void  uppercase (char *string);
    120114
    121 int   Fread (void *ptr, int size, int nitems, FILE *f, char *type);
    122 int   Fwrite (void *ptr, int size, int nitems, FILE *f, char *type);
    123 int   ByteSwap (char *ptr, int size, int nitems, char *type);
    124 int   ConvertStruct (char *buffer, int size, int Nbytes, char *type);
    125 
     115/* in findexec.c */
    126116char *pathname (char *name);
    127117char *filebasename (char *name);
    128118char *filerootname (char *name);
    129119char *findexec (int argc, char **argv);
    130 int mkdirhier (char *path);
     120int   mkdirhier (char *path);
     121void  make_backup (char *filename);
    131122
     123/* in glockfile.c */
    132124FILE *fsetlockfile (char *filename, double timeout, int type, int *state);
    133 int fclearlockfile (char *filename, FILE *f, int type, int *state);
    134 int setlockfile2 (char *filename, double timeout, int type, int *state);
    135 int clearlockfile2 (char *filename, int fd, int type, int *state);
     125int   fclearlockfile (char *filename, FILE *f, int type, int *state);
     126int   setlockfile2 (char *filename, double timeout, int type, int *state);
     127int   clearlockfile2 (char *filename, int fd, int type, int *state);
    136128
     129/* in config.c */
    137130char *SelectConfigFile (int *argc, char **argv, char *progname);
    138131char *LoadConfigFile (char *filename);
     
    141134char *fileextname (char *file);
    142135char *LoadRawConfigFile (char *, int);
     136
     137/* in Fseek.c */
     138int   Fseek (FILE *f, long offset, int whence);
    143139
    144140/*
Note: See TracChangeset for help on using the changeset viewer.