Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 152778 Details for
Bug 236711
gcc: internal compiler error: in compare_values, at tree-vrp.c
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
preprocessed source file to demonstrate gcc internal compiler error
gccbug.c (text/plain), 493.13 KB, created by
Helmut Tschemernjak
on 2007-04-17 08:59:58 UTC
(
hide
)
Description:
preprocessed source file to demonstrate gcc internal compiler error
Filename:
MIME Type:
Creator:
Helmut Tschemernjak
Created:
2007-04-17 08:59:58 UTC
Size:
493.13 KB
patch
obsolete
>// /usr/libexec/gcc/ppc64-redhat-linux/4.1.1/cc1 -quiet -Iobj-linuxppc -I/helios/release/h-2.1.6 -I../../../h -I../../../h/obj-linuxppc -I/helios/release/libs/hellib-5.0.0/h -I/helios/release/libs/codecs-1.0.9/h -I/helios/release/libs/sfio-4.0.8/h -I/helios/release/libs/sfdisc-4.0.9/h -I/helios/release/libs/sched-5.0.3/h -I/helios/release/etalk-4.0.6/h -I/helios/release/etalk-4.0.6/sys/h -I/helios/release/libs/imgfmtlib-3.1.2/h -I/helios/release/libs/oi-8.0.0/h -I/helios/release/libs/printlib-2.0.9/h -I/helios/release/libs/printlib-2.0.9/h/obj-linuxppc -I/helios/release/libs/license-6.0.3/h -I../h -I../h/obj-linuxppc -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DSHARED_OBJ -DSHAREDLIB="opibase.so" -DCHECKME -DARCH="linuxppc" oieps_itoc_tag.c -msecure-plt -quiet -dumpbase oieps_itoc_tag.c -auxbase-strip obj-linuxppc/pic/oieps_itoc_tag.o -O2 -Wall -fno-strict-aliasing -fomit-frame-pointer -fPIC -o - -frandom-seed=0 ># 1 "oieps_itoc_tag.c" ># 1 "<built-in>" ># 1 "<command line>" ># 1 "oieps_itoc_tag.c" ># 9 "oieps_itoc_tag.c" ># 1 "oieps_itoc.h" 1 ># 12 "oieps_itoc.h" ># 1 "../h/oieps.h" 1 ># 15 "../h/oieps.h" ># 1 "/helios/release/h-2.1.6/basehdrs.h" 1 > > > > > > ># 1 "/helios/release/h-2.1.6/machine.h" 1 ># 8 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/libs/sfio-4.0.8/h/stdio.h" 1 ># 21 "/helios/release/libs/sfio-4.0.8/h/stdio.h" ># 1 "/helios/release/h-2.1.6/machine.h" 1 ># 22 "/helios/release/libs/sfio-4.0.8/h/stdio.h" 2 ># 1 "/helios/release/libs/sfio-4.0.8/h/sfio.h" 1 ># 46 "/helios/release/libs/sfio-4.0.8/h/sfio.h" ># 1 "/usr/include/sys/types.h" 1 3 4 ># 27 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/features.h" 1 3 4 ># 329 "/usr/include/features.h" 3 4 ># 1 "/usr/include/sys/cdefs.h" 1 3 4 ># 313 "/usr/include/sys/cdefs.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 314 "/usr/include/sys/cdefs.h" 2 3 4 ># 330 "/usr/include/features.h" 2 3 4 ># 352 "/usr/include/features.h" 3 4 ># 1 "/usr/include/gnu/stubs.h" 1 3 4 > > > ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 5 "/usr/include/gnu/stubs.h" 2 3 4 > > ># 1 "/usr/include/gnu/stubs-32.h" 1 3 4 ># 8 "/usr/include/gnu/stubs.h" 2 3 4 ># 353 "/usr/include/features.h" 2 3 4 ># 28 "/usr/include/sys/types.h" 2 3 4 > > > ># 1 "/usr/include/bits/types.h" 1 3 4 ># 28 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/bits/types.h" 2 3 4 > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 214 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 3 4 >typedef unsigned int size_t; ># 32 "/usr/include/bits/types.h" 2 3 4 > > >typedef unsigned char __u_char; >typedef unsigned short int __u_short; >typedef unsigned int __u_int; >typedef unsigned long int __u_long; > > >typedef signed char __int8_t; >typedef unsigned char __uint8_t; >typedef signed short int __int16_t; >typedef unsigned short int __uint16_t; >typedef signed int __int32_t; >typedef unsigned int __uint32_t; > > > > >__extension__ typedef signed long long int __int64_t; >__extension__ typedef unsigned long long int __uint64_t; > > > > > > > >__extension__ typedef long long int __quad_t; >__extension__ typedef unsigned long long int __u_quad_t; ># 134 "/usr/include/bits/types.h" 3 4 ># 1 "/usr/include/bits/typesizes.h" 1 3 4 ># 135 "/usr/include/bits/types.h" 2 3 4 > > >__extension__ typedef __u_quad_t __dev_t; >__extension__ typedef unsigned int __uid_t; >__extension__ typedef unsigned int __gid_t; >__extension__ typedef unsigned long int __ino_t; >__extension__ typedef __u_quad_t __ino64_t; >__extension__ typedef unsigned int __mode_t; >__extension__ typedef unsigned int __nlink_t; >__extension__ typedef long int __off_t; >__extension__ typedef __quad_t __off64_t; >__extension__ typedef int __pid_t; >__extension__ typedef struct { int __val[2]; } __fsid_t; >__extension__ typedef long int __clock_t; >__extension__ typedef unsigned long int __rlim_t; >__extension__ typedef __u_quad_t __rlim64_t; >__extension__ typedef unsigned int __id_t; >__extension__ typedef long int __time_t; >__extension__ typedef unsigned int __useconds_t; >__extension__ typedef long int __suseconds_t; > >__extension__ typedef int __daddr_t; >__extension__ typedef long int __swblk_t; >__extension__ typedef int __key_t; > > >__extension__ typedef int __clockid_t; > > >__extension__ typedef void * __timer_t; > > >__extension__ typedef long int __blksize_t; > > > > >__extension__ typedef long int __blkcnt_t; >__extension__ typedef __quad_t __blkcnt64_t; > > >__extension__ typedef unsigned long int __fsblkcnt_t; >__extension__ typedef __u_quad_t __fsblkcnt64_t; > > >__extension__ typedef unsigned long int __fsfilcnt_t; >__extension__ typedef __u_quad_t __fsfilcnt64_t; > >__extension__ typedef int __ssize_t; > > > >typedef __off64_t __loff_t; >typedef __quad_t *__qaddr_t; >typedef char *__caddr_t; > > >__extension__ typedef int __intptr_t; > > >__extension__ typedef unsigned int __socklen_t; ># 32 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __u_char u_char; >typedef __u_short u_short; >typedef __u_int u_int; >typedef __u_long u_long; >typedef __quad_t quad_t; >typedef __u_quad_t u_quad_t; >typedef __fsid_t fsid_t; > > > > >typedef __loff_t loff_t; > > > > > >typedef __ino64_t ino_t; ># 62 "/usr/include/sys/types.h" 3 4 >typedef __dev_t dev_t; > > > > >typedef __gid_t gid_t; > > > > >typedef __mode_t mode_t; > > > > >typedef __nlink_t nlink_t; > > > > >typedef __uid_t uid_t; > > > > > > > >typedef __off64_t off_t; ># 100 "/usr/include/sys/types.h" 3 4 >typedef __pid_t pid_t; > > > > >typedef __id_t id_t; > > > > >typedef __ssize_t ssize_t; > > > > > >typedef __daddr_t daddr_t; >typedef __caddr_t caddr_t; > > > > > >typedef __key_t key_t; ># 133 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 59 "/usr/include/time.h" 3 4 > > >typedef __clock_t clock_t; > > > ># 75 "/usr/include/time.h" 3 4 > > >typedef __time_t time_t; > > > ># 93 "/usr/include/time.h" 3 4 >typedef __clockid_t clockid_t; ># 105 "/usr/include/time.h" 3 4 >typedef __timer_t timer_t; ># 134 "/usr/include/sys/types.h" 2 3 4 > > > >typedef __useconds_t useconds_t; > > > >typedef __suseconds_t suseconds_t; > > > > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 148 "/usr/include/sys/types.h" 2 3 4 > > > >typedef unsigned long int ulong; >typedef unsigned short int ushort; >typedef unsigned int uint; ># 195 "/usr/include/sys/types.h" 3 4 >typedef int int8_t __attribute__ ((__mode__ (__QI__))); >typedef int int16_t __attribute__ ((__mode__ (__HI__))); >typedef int int32_t __attribute__ ((__mode__ (__SI__))); >typedef int int64_t __attribute__ ((__mode__ (__DI__))); > > >typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); >typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__))); >typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); >typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__))); > >typedef int register_t __attribute__ ((__mode__ (__word__))); ># 217 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/endian.h" 1 3 4 ># 37 "/usr/include/endian.h" 3 4 ># 1 "/usr/include/bits/endian.h" 1 3 4 ># 38 "/usr/include/endian.h" 2 3 4 ># 218 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/select.h" 1 3 4 ># 31 "/usr/include/sys/select.h" 3 4 ># 1 "/usr/include/bits/select.h" 1 3 4 ># 32 "/usr/include/sys/select.h" 2 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 23 "/usr/include/bits/sigset.h" 3 4 >typedef int __sig_atomic_t; > > > > >typedef struct > { > unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; > } __sigset_t; ># 35 "/usr/include/sys/select.h" 2 3 4 > > > >typedef __sigset_t sigset_t; > > > > > ># 1 "/usr/include/time.h" 1 3 4 ># 121 "/usr/include/time.h" 3 4 >struct timespec > { > __time_t tv_sec; > long int tv_nsec; > }; ># 45 "/usr/include/sys/select.h" 2 3 4 > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 69 "/usr/include/bits/time.h" 3 4 >struct timeval > { > __time_t tv_sec; > __suseconds_t tv_usec; > }; ># 47 "/usr/include/sys/select.h" 2 3 4 ># 55 "/usr/include/sys/select.h" 3 4 >typedef long int __fd_mask; ># 67 "/usr/include/sys/select.h" 3 4 >typedef struct > { > > > > __fd_mask fds_bits[1024 / (8 * sizeof (__fd_mask))]; > > > > > > } fd_set; > > > > > > >typedef __fd_mask fd_mask; ># 99 "/usr/include/sys/select.h" 3 4 > ># 109 "/usr/include/sys/select.h" 3 4 >extern int select (int __nfds, fd_set *__restrict __readfds, > fd_set *__restrict __writefds, > fd_set *__restrict __exceptfds, > struct timeval *__restrict __timeout); ># 128 "/usr/include/sys/select.h" 3 4 > ># 221 "/usr/include/sys/types.h" 2 3 4 > > ># 1 "/usr/include/sys/sysmacros.h" 1 3 4 ># 29 "/usr/include/sys/sysmacros.h" 3 4 >__extension__ >extern __inline unsigned int gnu_dev_major (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev) > __attribute__ ((__nothrow__)); >__extension__ >extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major, > unsigned int __minor) > __attribute__ ((__nothrow__)); > > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev) >{ > return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); >} > >__extension__ extern __inline unsigned int >__attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev) >{ > return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); >} > >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor) >{ > return ((__minor & 0xff) | ((__major & 0xfff) << 8) > | (((unsigned long long int) (__minor & ~0xff)) << 12) > | (((unsigned long long int) (__major & ~0xfff)) << 32)); >} ># 224 "/usr/include/sys/types.h" 2 3 4 > > > > >typedef __blksize_t blksize_t; ># 248 "/usr/include/sys/types.h" 3 4 >typedef __blkcnt64_t blkcnt_t; > > > >typedef __fsblkcnt64_t fsblkcnt_t; > > > >typedef __fsfilcnt64_t fsfilcnt_t; ># 270 "/usr/include/sys/types.h" 3 4 ># 1 "/usr/include/bits/pthreadtypes.h" 1 3 4 ># 24 "/usr/include/bits/pthreadtypes.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 25 "/usr/include/bits/pthreadtypes.h" 2 3 4 ># 51 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef unsigned long int pthread_t; > > >typedef union >{ > char __size[36]; > long int __align; >} pthread_attr_t; ># 68 "/usr/include/bits/pthreadtypes.h" 3 4 >typedef struct __pthread_internal_slist >{ > struct __pthread_internal_slist *__next; >} __pthread_slist_t; > > > > > >typedef union >{ > struct __pthread_mutex_s > { > int __lock; > unsigned int __count; > int __owner; > > > > > > int __kind; > > > > > > unsigned int __nusers; > __extension__ union > { > int __spins; > __pthread_slist_t __list; > }; > > } __data; > char __size[24]; > long int __align; >} pthread_mutex_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_mutexattr_t; > > > > >typedef union >{ > struct > { > int __lock; > unsigned int __futex; > __extension__ unsigned long long int __total_seq; > __extension__ unsigned long long int __wakeup_seq; > __extension__ unsigned long long int __woken_seq; > void *__mutex; > unsigned int __nwaiters; > unsigned int __broadcast_seq; > } __data; > char __size[48]; > __extension__ long long int __align; >} pthread_cond_t; > >typedef union >{ > char __size[4]; > int __align; >} pthread_condattr_t; > > > >typedef unsigned int pthread_key_t; > > > >typedef int pthread_once_t; > > > > > >typedef union >{ ># 171 "/usr/include/bits/pthreadtypes.h" 3 4 > struct > { > int __lock; > unsigned int __nr_readers; > unsigned int __readers_wakeup; > unsigned int __writer_wakeup; > unsigned int __nr_readers_queued; > unsigned int __nr_writers_queued; > > > unsigned int __flags; > int __writer; > } __data; > > char __size[32]; > long int __align; >} pthread_rwlock_t; > >typedef union >{ > char __size[8]; > long int __align; >} pthread_rwlockattr_t; ># 271 "/usr/include/sys/types.h" 2 3 4 > > > ># 47 "/helios/release/libs/sfio-4.0.8/h/sfio.h" 2 ># 143 "/helios/release/libs/sfio-4.0.8/h/sfio.h" ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stdarg.h" 1 3 4 ># 43 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stdarg.h" 3 4 >typedef __builtin_va_list __gnuc_va_list; ># 105 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stdarg.h" 3 4 >typedef __gnuc_va_list va_list; ># 144 "/helios/release/libs/sfio-4.0.8/h/sfio.h" 2 ># 158 "/helios/release/libs/sfio-4.0.8/h/sfio.h" >typedef struct _sfio_s Sfio_t; >typedef struct _sfdisc_s Sfdisc_t; >typedef ssize_t (*Sfread_f)(Sfio_t*, void*, size_t, Sfdisc_t*); >typedef ssize_t (*Sfwrite_f)(Sfio_t*, const void*, size_t, Sfdisc_t*); >typedef off_t (*Sfseek_f)(Sfio_t*, off_t, int, Sfdisc_t*); >typedef int (*Sfexcept_f)(Sfio_t*, int, void*, Sfdisc_t*); > > >struct _sfdisc_s >{ Sfread_f readf; > Sfwrite_f writef; > Sfseek_f seekf; > Sfexcept_f exceptf; > Sfdisc_t* disc; >}; > > >struct _sfio_s >{ unsigned char* next; > unsigned char* endw; > unsigned char* endr; > unsigned char* endb; > Sfio_t* push; > unsigned int flags; > int file; > unsigned char* data; > ssize_t size; > ssize_t val; > > > >}; > > >typedef struct _sffmt_s Sffmt_t; >typedef int (*Sffmtext_f)(Sfio_t*, void*, Sffmt_t*); >typedef int (*Sffmtevent_f)(Sfio_t*, int, void*, Sffmt_t*); >struct _sffmt_s >{ long version; > Sffmtext_f extf; > Sffmtevent_f eventf; > > char* form; > va_list args; > > int fmt; > ssize_t size; > int flags; > int width; > int precis; > int base; > > char* t_str; > ssize_t n_str; > > void* noop; >}; ># 331 "/helios/release/libs/sfio-4.0.8/h/sfio.h" > > >extern ssize_t _Sfi; > > >extern Sfio_t* sfstdin; >extern Sfio_t* sfstdout; >extern Sfio_t* sfstderr; > > Sfio_t* sfnew (Sfio_t*, void*, size_t, int, unsigned int); > Sfio_t* sfopen (Sfio_t*, const char*, const char*); > Sfio_t* sfpopen (Sfio_t*, const char*, const char*); > Sfio_t* sfpopenargs (Sfio_t*, const char*, char* argv[], const char*); > Sfio_t* sfstack (Sfio_t*, Sfio_t*); > Sfio_t* sfswap (Sfio_t*, Sfio_t*); > Sfio_t* sftmp (size_t); > int sfpurge (Sfio_t*); > int sfpoll (Sfio_t**, int, int); > void* sfreserve (Sfio_t*, ssize_t, int); > int sfsync (Sfio_t*); > int sfclrlock (Sfio_t*); > void* sfsetbuf (Sfio_t*, void*, size_t); > Sfdisc_t* sfdisc (Sfio_t*,Sfdisc_t*); > int sfraise (Sfio_t*, int, void*); > int sfnotify (void(*)(Sfio_t*, int, int)); > int sfset (Sfio_t*, unsigned int, int); > int sfsetfd (Sfio_t*, int); > Sfio_t* sfpool (Sfio_t*, Sfio_t*, unsigned int); > ssize_t sfread (Sfio_t*, void*, size_t); > ssize_t sfwrite (Sfio_t*, const void*, size_t); > off_t sfmove (Sfio_t*, Sfio_t*, off_t, int); > int sfclose (Sfio_t*); > off_t sftell (Sfio_t*); > off_t sfseek (Sfio_t*, off_t, int); > ssize_t sfputr (Sfio_t*, const char*, int); > char* sfgetr (Sfio_t*, int, int); > ssize_t sfnputc (Sfio_t*, int, size_t); > int sfungetc (Sfio_t*, int); > int sfprintf (Sfio_t*, const char*, ...); > char* sfprints (const char*, ...); > int sfsprintf (char*, int, const char*, ...); > int sfvsprintf (char*, int, const char*, va_list); > int sfvprintf (Sfio_t*, const char*, va_list); > int sfscanf (Sfio_t*, const char*, ...); > int sfsscanf (const char*, const char*, ...); > int sfvsscanf (const char*, const char*, va_list); > int sfvscanf (Sfio_t*, const char*, va_list); > > > int sfmutex (Sfio_t*, int); > > > ssize_t sfrd (Sfio_t*, void*, size_t, Sfdisc_t*); > ssize_t sfwr (Sfio_t*, const void*, size_t, Sfdisc_t*); > off_t sfsk (Sfio_t*, off_t, int, Sfdisc_t*); > ssize_t sfpkrd (int, void*, size_t, int, long, int); > > int sfdlen (double); > int sfllen (long long); > int sfulen (unsigned long long); > > int sfputd (Sfio_t*, double); > int sfputl (Sfio_t*, long long); > int sfputu (Sfio_t*, unsigned long long); > int sfputm (Sfio_t*, unsigned long long, unsigned long long); > int sfputc (Sfio_t*, int); > > double sfgetd (Sfio_t*); > long long sfgetl (Sfio_t*); > unsigned long long sfgetu (Sfio_t*); > unsigned long long sfgetm (Sfio_t*, unsigned long long); > int sfgetc (Sfio_t*); > > int _sfputd (Sfio_t*, double); > int _sfputl (Sfio_t*, long long); > int _sfputu (Sfio_t*, unsigned long long); > int _sfputm (Sfio_t*, unsigned long long, unsigned long long); > int _sfflsbuf (Sfio_t*, int); > > int _sffilbuf (Sfio_t*, int); > > int _sfdlen (double); > int _sfllen (long long); > > > off_t sfsize (Sfio_t*); > int sfclrerr (Sfio_t*); > int sfeof (Sfio_t*); > int sferror (Sfio_t*); > int sffileno (Sfio_t*); > int sfstacked (Sfio_t*); > ssize_t sfvalue (Sfio_t*); > ssize_t sfslen (void); > > int InitSfio(int majorVersion, int minorVersion, char *ebuf, int ebuflen); > void ExitSfio(void); > > Sfio_t* sfnull(unsigned int); > > ># 23 "/helios/release/libs/sfio-4.0.8/h/stdio.h" 2 > > > > > > ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 30 "/helios/release/libs/sfio-4.0.8/h/stdio.h" 2 ># 44 "/helios/release/libs/sfio-4.0.8/h/stdio.h" > > > char* ctermid (char*); > char* cuserid (char*); > char* tmpnam (char*); > char* tempnam (const char*, const char*); > > int remove (const char*); ># 64 "/helios/release/libs/sfio-4.0.8/h/stdio.h" > int rename (const char *, const char *); > > > void _stdperror (const char*); > > Sfio_t* _stdfdopen (int, const char*); > Sfio_t* _stdfopen (const char*, const char*); > Sfio_t* _stdfreopen (const char*, const char*, Sfio_t*); > Sfio_t* _stdpopen (const char*, const char*); > Sfio_t* _stdtmpfile (void); > > int _stdprintf (const char*, ...); > int _stdfprintf (Sfio_t* f, const char*, ...); > int _stdsprintf (char*, const char*, ...); > int _stdvsprintf (char*, const char*, va_list); > int _stdscanf (const char*, ...); > int _stdfscanf (Sfio_t* f, const char*, ...); > int _stdsetvbuf (Sfio_t*, char*, int, size_t); > int _stdfputc (int, Sfio_t*); > int _stdfgetc (Sfio_t*); > int _stdputw (int, Sfio_t*); > int _stdgetw (Sfio_t*); > ssize_t _stdfwrite (const void*, size_t, size_t, Sfio_t*); > ssize_t _stdfread (void*, size_t, size_t, Sfio_t*); > char* _stdgets (Sfio_t*, char*, int n, int isgets); > > ># 9 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/sys/stat.h" 1 3 4 ># 37 "/usr/include/sys/stat.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 38 "/usr/include/sys/stat.h" 2 3 4 ># 103 "/usr/include/sys/stat.h" 3 4 > > ># 1 "/usr/include/bits/stat.h" 1 3 4 ># 24 "/usr/include/bits/stat.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 25 "/usr/include/bits/stat.h" 2 3 4 ># 45 "/usr/include/bits/stat.h" 3 4 >struct stat > { > __dev_t st_dev; > > > > > __ino64_t st_ino; > > __mode_t st_mode; > __nlink_t st_nlink; > __uid_t st_uid; > __gid_t st_gid; > __dev_t st_rdev; > unsigned short int __pad2; > > > > __off64_t st_size; > > __blksize_t st_blksize; > > > > > __blkcnt64_t st_blocks; ># 79 "/usr/include/bits/stat.h" 3 4 > struct timespec st_atim; > struct timespec st_mtim; > struct timespec st_ctim; ># 93 "/usr/include/bits/stat.h" 3 4 > unsigned long int __unused4; > unsigned long int __unused5; > }; ># 106 "/usr/include/sys/stat.h" 2 3 4 ># 215 "/usr/include/sys/stat.h" 3 4 >extern int stat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "stat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (1, 2))); >extern int fstat (int __fd, struct stat *__buf) __asm__ ("" "fstat64") __attribute__ ((__nothrow__)) > __attribute__ ((__nonnull__ (2))); ># 263 "/usr/include/sys/stat.h" 3 4 >extern int lstat (__const char *__restrict __file, struct stat *__restrict __buf) __asm__ ("" "lstat64") __attribute__ ((__nothrow__)) > > > __attribute__ ((__nonnull__ (1, 2))); ># 280 "/usr/include/sys/stat.h" 3 4 >extern int chmod (__const char *__file, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int lchmod (__const char *__file, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int fchmod (int __fd, __mode_t __mode) __attribute__ ((__nothrow__)); ># 307 "/usr/include/sys/stat.h" 3 4 >extern __mode_t umask (__mode_t __mask) __attribute__ ((__nothrow__)); ># 316 "/usr/include/sys/stat.h" 3 4 >extern int mkdir (__const char *__path, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 331 "/usr/include/sys/stat.h" 3 4 >extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 345 "/usr/include/sys/stat.h" 3 4 >extern int mkfifo (__const char *__path, __mode_t __mode) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 391 "/usr/include/sys/stat.h" 3 4 >extern int __fxstat (int __ver, int __fildes, struct stat *__stat_buf) __asm__ ("" "__fxstat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (3))); >extern int __xstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__xstat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (2, 3))); >extern int __lxstat (int __ver, __const char *__filename, struct stat *__stat_buf) __asm__ ("" "__lxstat64") __attribute__ ((__nothrow__)) > > __attribute__ ((__nonnull__ (2, 3))); >extern int __fxstatat (int __ver, int __fildes, __const char *__filename, struct stat *__stat_buf, int __flag) __asm__ ("" "__fxstatat64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))); ># 423 "/usr/include/sys/stat.h" 3 4 >extern int __xmknod (int __ver, __const char *__path, __mode_t __mode, > __dev_t *__dev) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > >extern int __xmknodat (int __ver, int __fd, __const char *__path, > __mode_t __mode, __dev_t *__dev) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 5))); > > > > >extern __inline__ int >__attribute__ ((__nothrow__)) stat (__const char *__path, struct stat *__statbuf) >{ > return __xstat (3, __path, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) lstat (__const char *__path, struct stat *__statbuf) >{ > return __lxstat (3, __path, __statbuf); >} > > >extern __inline__ int >__attribute__ ((__nothrow__)) fstat (int __fd, struct stat *__statbuf) >{ > return __fxstat (3, __fd, __statbuf); >} ># 463 "/usr/include/sys/stat.h" 3 4 >extern __inline__ int >__attribute__ ((__nothrow__)) mknod (__const char *__path, __mode_t __mode, __dev_t __dev) >{ > return __xmknod (1, __path, __mode, &__dev); >} ># 515 "/usr/include/sys/stat.h" 3 4 > ># 11 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 23 "/helios/release/h-2.1.6/basehdrs.h" ># 1 "/usr/include/pthread.h" 1 3 4 ># 23 "/usr/include/pthread.h" 3 4 ># 1 "/usr/include/sched.h" 1 3 4 ># 29 "/usr/include/sched.h" 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 30 "/usr/include/sched.h" 2 3 4 > > ># 1 "/usr/include/bits/sched.h" 1 3 4 ># 65 "/usr/include/bits/sched.h" 3 4 >struct sched_param > { > int __sched_priority; > }; > > > > > >extern int clone (int (*__fn) (void *__arg), void *__child_stack, > int __flags, void *__arg, ...) __attribute__ ((__nothrow__)); > > >extern int unshare (int __flags) __attribute__ ((__nothrow__)); > > > > > > > > > > >struct __sched_param > { > int __sched_priority; > }; ># 104 "/usr/include/bits/sched.h" 3 4 >typedef unsigned long int __cpu_mask; > > > > > > >typedef struct >{ > __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; >} cpu_set_t; ># 33 "/usr/include/sched.h" 2 3 4 > > > > > > > >extern int sched_setparam (__pid_t __pid, __const struct sched_param *__param) > __attribute__ ((__nothrow__)); > > >extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __attribute__ ((__nothrow__)); > > >extern int sched_setscheduler (__pid_t __pid, int __policy, > __const struct sched_param *__param) __attribute__ ((__nothrow__)); > > >extern int sched_getscheduler (__pid_t __pid) __attribute__ ((__nothrow__)); > > >extern int sched_yield (void) __attribute__ ((__nothrow__)); > > >extern int sched_get_priority_max (int __algorithm) __attribute__ ((__nothrow__)); > > >extern int sched_get_priority_min (int __algorithm) __attribute__ ((__nothrow__)); > > >extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __attribute__ ((__nothrow__)); ># 84 "/usr/include/sched.h" 3 4 > ># 24 "/usr/include/pthread.h" 2 3 4 ># 1 "/usr/include/time.h" 1 3 4 ># 31 "/usr/include/time.h" 3 4 > > > > > > > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 40 "/usr/include/time.h" 2 3 4 > > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 40 "/usr/include/bits/time.h" 3 4 >extern long int __sysconf (int); ># 44 "/usr/include/time.h" 2 3 4 ># 132 "/usr/include/time.h" 3 4 > > >struct tm >{ > int tm_sec; > int tm_min; > int tm_hour; > int tm_mday; > int tm_mon; > int tm_year; > int tm_wday; > int tm_yday; > int tm_isdst; > > > long int tm_gmtoff; > __const char *tm_zone; > > > > >}; > > > > > > > > >struct itimerspec > { > struct timespec it_interval; > struct timespec it_value; > }; > > >struct sigevent; ># 181 "/usr/include/time.h" 3 4 > > > >extern clock_t clock (void) __attribute__ ((__nothrow__)); > > >extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); > > >extern double difftime (time_t __time1, time_t __time0) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); > > > > > >extern size_t strftime (char *__restrict __s, size_t __maxsize, > __const char *__restrict __format, > __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > > > >extern char *strptime (__const char *__restrict __s, > __const char *__restrict __fmt, struct tm *__tp) > __attribute__ ((__nothrow__)); ># 229 "/usr/include/time.h" 3 4 > > > >extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > >extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > > > >extern struct tm *gmtime_r (__const time_t *__restrict __timer, > struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > >extern struct tm *localtime_r (__const time_t *__restrict __timer, > struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > > > > > >extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); > > > > > > > >extern char *asctime_r (__const struct tm *__restrict __tp, > char *__restrict __buf) __attribute__ ((__nothrow__)); > > >extern char *ctime_r (__const time_t *__restrict __timer, > char *__restrict __buf) __attribute__ ((__nothrow__)); > > > > >extern char *__tzname[2]; >extern int __daylight; >extern long int __timezone; > > > > >extern char *tzname[2]; > > > >extern void tzset (void) __attribute__ ((__nothrow__)); > > > >extern int daylight; >extern long int timezone; ># 312 "/usr/include/time.h" 3 4 >extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); > > >extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 327 "/usr/include/time.h" 3 4 >extern int nanosleep (__const struct timespec *__requested_time, > struct timespec *__remaining); > > > >extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); > > >extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); > > >extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) > __attribute__ ((__nothrow__)); ># 356 "/usr/include/time.h" 3 4 >extern int timer_create (clockid_t __clock_id, > struct sigevent *__restrict __evp, > timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); > > >extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); > > >extern int timer_settime (timer_t __timerid, int __flags, > __const struct itimerspec *__restrict __value, > struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); > > >extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) > __attribute__ ((__nothrow__)); > > >extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); ># 389 "/usr/include/time.h" 3 4 >extern int getdate_err; ># 398 "/usr/include/time.h" 3 4 >extern struct tm *getdate (__const char *__string); ># 416 "/usr/include/time.h" 3 4 > ># 25 "/usr/include/pthread.h" 2 3 4 > > ># 1 "/usr/include/signal.h" 1 3 4 ># 31 "/usr/include/signal.h" 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 34 "/usr/include/signal.h" 2 3 4 ># 400 "/usr/include/signal.h" 3 4 > ># 28 "/usr/include/pthread.h" 2 3 4 > ># 1 "/usr/include/bits/setjmp.h" 1 3 4 ># 33 "/usr/include/bits/setjmp.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 34 "/usr/include/bits/setjmp.h" 2 3 4 ># 48 "/usr/include/bits/setjmp.h" 3 4 >typedef long int __jmp_buf[64 + (12 * 4)] __attribute__ ((__aligned__ (16))); ># 30 "/usr/include/pthread.h" 2 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 31 "/usr/include/pthread.h" 2 3 4 > > > >enum >{ > PTHREAD_CREATE_JOINABLE, > > PTHREAD_CREATE_DETACHED > >}; > > > >enum >{ > PTHREAD_MUTEX_TIMED_NP, > PTHREAD_MUTEX_RECURSIVE_NP, > PTHREAD_MUTEX_ERRORCHECK_NP, > PTHREAD_MUTEX_ADAPTIVE_NP > > , > PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, > PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, > PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, > PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL > > > > > >}; ># 76 "/usr/include/pthread.h" 3 4 >enum >{ > PTHREAD_PRIO_NONE, > PTHREAD_PRIO_INHERIT, > PTHREAD_PRIO_PROTECT >}; ># 113 "/usr/include/pthread.h" 3 4 >enum >{ > PTHREAD_RWLOCK_PREFER_READER_NP, > PTHREAD_RWLOCK_PREFER_WRITER_NP, > PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, > PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP >}; ># 143 "/usr/include/pthread.h" 3 4 >enum >{ > PTHREAD_INHERIT_SCHED, > > PTHREAD_EXPLICIT_SCHED > >}; > > > >enum >{ > PTHREAD_SCOPE_SYSTEM, > > PTHREAD_SCOPE_PROCESS > >}; > > > >enum >{ > PTHREAD_PROCESS_PRIVATE, > > PTHREAD_PROCESS_SHARED > >}; ># 178 "/usr/include/pthread.h" 3 4 >struct _pthread_cleanup_buffer >{ > void (*__routine) (void *); > void *__arg; > int __canceltype; > struct _pthread_cleanup_buffer *__prev; >}; > > >enum >{ > PTHREAD_CANCEL_ENABLE, > > PTHREAD_CANCEL_DISABLE > >}; >enum >{ > PTHREAD_CANCEL_DEFERRED, > > PTHREAD_CANCEL_ASYNCHRONOUS > >}; ># 216 "/usr/include/pthread.h" 3 4 > > > > > >extern int pthread_create (pthread_t *__restrict __newthread, > __const pthread_attr_t *__restrict __attr, > void *(*__start_routine) (void *), > void *__restrict __arg) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))); > > > > > >extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); > > > > > > > >extern int pthread_join (pthread_t __th, void **__thread_return); ># 259 "/usr/include/pthread.h" 3 4 >extern int pthread_detach (pthread_t __th) __attribute__ ((__nothrow__)); > > > >extern pthread_t pthread_self (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) __attribute__ ((__nothrow__)); > > > > > > > >extern int pthread_attr_init (pthread_attr_t *__attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_destroy (pthread_attr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_getdetachstate (__const pthread_attr_t *__attr, > int *__detachstate) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, > int __detachstate) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getguardsize (__const pthread_attr_t *__attr, > size_t *__guardsize) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setguardsize (pthread_attr_t *__attr, > size_t __guardsize) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getschedparam (__const pthread_attr_t *__restrict > __attr, > struct sched_param *__restrict __param) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, > __const struct sched_param *__restrict > __param) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_getschedpolicy (__const pthread_attr_t *__restrict > __attr, int *__restrict __policy) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_getinheritsched (__const pthread_attr_t *__restrict > __attr, int *__restrict __inherit) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, > int __inherit) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr, > int *__restrict __scope) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict > __attr, void **__restrict __stackaddr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); > > > > > >extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, > void *__stackaddr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); > > >extern int pthread_attr_getstacksize (__const pthread_attr_t *__restrict > __attr, size_t *__restrict __stacksize) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int pthread_attr_setstacksize (pthread_attr_t *__attr, > size_t __stacksize) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 409 "/usr/include/pthread.h" 3 4 >extern int pthread_setschedparam (pthread_t __target_thread, int __policy, > __const struct sched_param *__param) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))); > > >extern int pthread_getschedparam (pthread_t __target_thread, > int *__restrict __policy, > struct sched_param *__restrict __param) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > > >extern int pthread_setschedprio (pthread_t __target_thread, int __prio) > __attribute__ ((__nothrow__)); > > > > >extern int pthread_getconcurrency (void) __attribute__ ((__nothrow__)); > > >extern int pthread_setconcurrency (int __level) __attribute__ ((__nothrow__)); ># 462 "/usr/include/pthread.h" 3 4 >extern int pthread_once (pthread_once_t *__once_control, > void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); ># 474 "/usr/include/pthread.h" 3 4 >extern int pthread_setcancelstate (int __state, int *__oldstate); > > > >extern int pthread_setcanceltype (int __type, int *__oldtype); > > >extern int pthread_cancel (pthread_t __th); > > > > >extern void pthread_testcancel (void); > > > > >typedef struct >{ > struct > { > __jmp_buf __cancel_jmp_buf; > int __mask_was_saved; > } __cancel_jmp_buf[1]; > void *__pad[4]; >} __pthread_unwind_buf_t __attribute__ ((__aligned__)); ># 508 "/usr/include/pthread.h" 3 4 >struct __pthread_cleanup_frame >{ > void (*__cancel_routine) (void *); > void *__cancel_arg; > int __do_it; > int __cancel_type; >}; ># 648 "/usr/include/pthread.h" 3 4 >extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf) > ; ># 659 "/usr/include/pthread.h" 3 4 >extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf) > ; ># 699 "/usr/include/pthread.h" 3 4 >extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf) > __attribute__ ((__noreturn__)) > > __attribute__ ((__weak__)) > > ; > > > >struct __jmp_buf_tag; >extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __attribute__ ((__nothrow__)); > > > > > >extern int pthread_mutex_init (pthread_mutex_t *__mutex, > __const pthread_mutexattr_t *__mutexattr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutex_lock (pthread_mutex_t *__mutex) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 739 "/usr/include/pthread.h" 3 4 >extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int pthread_mutex_getprioceiling (__const pthread_mutex_t * > __restrict __mutex, > int *__restrict __prioceiling) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, > int __prioceiling, > int *__restrict __old_ceiling) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 3))); ># 770 "/usr/include/pthread.h" 3 4 >extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_getpshared (__const pthread_mutexattr_t * > __restrict __attr, > int *__restrict __pshared) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, > int __pshared) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int pthread_mutexattr_gettype (__const pthread_mutexattr_t *__restrict > __attr, int *__restrict __kind) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > >extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_getprotocol (__const pthread_mutexattr_t * > __restrict __attr, > int *__restrict __protocol) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, > int __protocol) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_mutexattr_getprioceiling (__const pthread_mutexattr_t * > __restrict __attr, > int *__restrict __prioceiling) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, > int __prioceiling) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 842 "/usr/include/pthread.h" 3 4 >extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, > __const pthread_rwlockattr_t *__restrict > __attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 866 "/usr/include/pthread.h" 3 4 >extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 881 "/usr/include/pthread.h" 3 4 >extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlockattr_getpshared (__const pthread_rwlockattr_t * > __restrict __attr, > int *__restrict __pshared) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, > int __pshared) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_rwlockattr_getkind_np (__const pthread_rwlockattr_t * > __restrict __attr, > int *__restrict __pref) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, > int __pref) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >extern int pthread_cond_init (pthread_cond_t *__restrict __cond, > __const pthread_condattr_t *__restrict > __cond_attr) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_cond_destroy (pthread_cond_t *__cond) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_cond_signal (pthread_cond_t *__cond) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_cond_broadcast (pthread_cond_t *__cond) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, > pthread_mutex_t *__restrict __mutex) > __attribute__ ((__nonnull__ (1, 2))); ># 954 "/usr/include/pthread.h" 3 4 >extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, > pthread_mutex_t *__restrict __mutex, > __const struct timespec *__restrict > __abstime) __attribute__ ((__nonnull__ (1, 2, 3))); > > > > >extern int pthread_condattr_init (pthread_condattr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_condattr_destroy (pthread_condattr_t *__attr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_condattr_getpshared (__const pthread_condattr_t * > __restrict __attr, > int *__restrict __pshared) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, > int __pshared) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 1065 "/usr/include/pthread.h" 3 4 >extern int pthread_key_create (pthread_key_t *__key, > void (*__destr_function) (void *)) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int pthread_key_delete (pthread_key_t __key) __attribute__ ((__nothrow__)); > > >extern void *pthread_getspecific (pthread_key_t __key) __attribute__ ((__nothrow__)); > > >extern int pthread_setspecific (pthread_key_t __key, > __const void *__pointer) __attribute__ ((__nothrow__)) ; ># 1099 "/usr/include/pthread.h" 3 4 >extern int pthread_atfork (void (*__prepare) (void), > void (*__parent) (void), > void (*__child) (void)) __attribute__ ((__nothrow__)); > > > > >extern __inline int >__attribute__ ((__nothrow__)) pthread_equal (pthread_t __thread1, pthread_t __thread2) >{ > return __thread1 == __thread2; >} > > > ># 24 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/time.h" 1 3 4 ># 29 "/usr/include/sys/time.h" 3 4 ># 1 "/usr/include/bits/time.h" 1 3 4 ># 30 "/usr/include/sys/time.h" 2 3 4 ># 39 "/usr/include/sys/time.h" 3 4 > ># 57 "/usr/include/sys/time.h" 3 4 >struct timezone > { > int tz_minuteswest; > int tz_dsttime; > }; > >typedef struct timezone *__restrict __timezone_ptr_t; ># 73 "/usr/include/sys/time.h" 3 4 >extern int gettimeofday (struct timeval *__restrict __tv, > __timezone_ptr_t __tz) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int settimeofday (__const struct timeval *__tv, > __const struct timezone *__tz) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int adjtime (__const struct timeval *__delta, > struct timeval *__olddelta) __attribute__ ((__nothrow__)); > > > > >enum __itimer_which > { > > ITIMER_REAL = 0, > > > ITIMER_VIRTUAL = 1, > > > > ITIMER_PROF = 2 > > }; > > > >struct itimerval > { > > struct timeval it_interval; > > struct timeval it_value; > }; > > > > > > >typedef int __itimer_which_t; > > > > >extern int getitimer (__itimer_which_t __which, > struct itimerval *__value) __attribute__ ((__nothrow__)); > > > > >extern int setitimer (__itimer_which_t __which, > __const struct itimerval *__restrict __new, > struct itimerval *__restrict __old) __attribute__ ((__nothrow__)); > > > > >extern int utimes (__const char *__file, __const struct timeval __tvp[2]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int lutimes (__const char *__file, __const struct timeval __tvp[2]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int futimes (int __fd, __const struct timeval __tvp[2]) __attribute__ ((__nothrow__)); ># 191 "/usr/include/sys/time.h" 3 4 > ># 25 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/utime.h" 1 3 4 ># 28 "/usr/include/utime.h" 3 4 > ># 38 "/usr/include/utime.h" 3 4 >struct utimbuf > { > __time_t actime; > __time_t modtime; > }; > > > >extern int utime (__const char *__file, > __const struct utimbuf *__file_times) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > ># 26 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/param.h" 1 3 4 ># 22 "/usr/include/sys/param.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 1 3 4 ># 11 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/syslimits.h" 1 3 4 > > > > > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 1 3 4 ># 122 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 3 4 ># 1 "/usr/include/limits.h" 1 3 4 ># 145 "/usr/include/limits.h" 3 4 ># 1 "/usr/include/bits/posix1_lim.h" 1 3 4 ># 153 "/usr/include/bits/posix1_lim.h" 3 4 ># 1 "/usr/include/bits/local_lim.h" 1 3 4 ># 36 "/usr/include/bits/local_lim.h" 3 4 ># 1 "/usr/include/linux/limits.h" 1 3 4 ># 37 "/usr/include/bits/local_lim.h" 2 3 4 ># 154 "/usr/include/bits/posix1_lim.h" 2 3 4 ># 146 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/posix2_lim.h" 1 3 4 ># 150 "/usr/include/limits.h" 2 3 4 > > > ># 1 "/usr/include/bits/xopen_lim.h" 1 3 4 ># 34 "/usr/include/bits/xopen_lim.h" 3 4 ># 1 "/usr/include/bits/stdio_lim.h" 1 3 4 ># 35 "/usr/include/bits/xopen_lim.h" 2 3 4 ># 154 "/usr/include/limits.h" 2 3 4 ># 123 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 2 3 4 ># 8 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/syslimits.h" 2 3 4 ># 12 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 2 3 4 ># 23 "/usr/include/sys/param.h" 2 3 4 > ># 1 "/usr/include/linux/param.h" 1 3 4 > > > ># 1 "/usr/include/asm/param.h" 1 3 4 ># 5 "/usr/include/linux/param.h" 2 3 4 ># 25 "/usr/include/sys/param.h" 2 3 4 ># 27 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/file.h" 1 3 4 ># 25 "/usr/include/sys/file.h" 3 4 ># 1 "/usr/include/fcntl.h" 1 3 4 ># 30 "/usr/include/fcntl.h" 3 4 > > > > ># 1 "/usr/include/bits/fcntl.h" 1 3 4 ># 141 "/usr/include/bits/fcntl.h" 3 4 >struct flock > { > short int l_type; > short int l_whence; > > > > > __off64_t l_start; > __off64_t l_len; > > __pid_t l_pid; > }; ># 208 "/usr/include/bits/fcntl.h" 3 4 > ># 237 "/usr/include/bits/fcntl.h" 3 4 > ># 35 "/usr/include/fcntl.h" 2 3 4 ># 76 "/usr/include/fcntl.h" 3 4 >extern int fcntl (int __fd, int __cmd, ...); ># 88 "/usr/include/fcntl.h" 3 4 >extern int open (__const char *__file, int __oflag, ...) __asm__ ("" "open64") > __attribute__ ((__nonnull__ (1))); ># 133 "/usr/include/fcntl.h" 3 4 >extern int creat (__const char *__file, __mode_t __mode) __asm__ ("" "creat64") __attribute__ ((__nonnull__ (1))); ># 162 "/usr/include/fcntl.h" 3 4 >extern int lockf (int __fd, int __cmd, __off64_t __len) __asm__ ("" "lockf64"); ># 213 "/usr/include/fcntl.h" 3 4 > ># 26 "/usr/include/sys/file.h" 2 3 4 > > > ># 51 "/usr/include/sys/file.h" 3 4 >extern int flock (int __fd, int __operation) __attribute__ ((__nothrow__)); > > > ># 28 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/resource.h" 1 3 4 ># 25 "/usr/include/sys/resource.h" 3 4 ># 1 "/usr/include/bits/resource.h" 1 3 4 ># 33 "/usr/include/bits/resource.h" 3 4 >enum __rlimit_resource >{ > > RLIMIT_CPU = 0, > > > > RLIMIT_FSIZE = 1, > > > > RLIMIT_DATA = 2, > > > > RLIMIT_STACK = 3, > > > > RLIMIT_CORE = 4, > > > > > > > __RLIMIT_RSS = 5, > > > > RLIMIT_NOFILE = 7, > __RLIMIT_OFILE = RLIMIT_NOFILE, > > > > > RLIMIT_AS = 9, > > > > __RLIMIT_NPROC = 6, > > > > __RLIMIT_MEMLOCK = 8, > > > > __RLIMIT_LOCKS = 10, > > > > __RLIMIT_SIGPENDING = 11, > > > > __RLIMIT_MSGQUEUE = 12, > > > > > > __RLIMIT_NICE = 13, > > > > > __RLIMIT_RTPRIO = 14, > > > __RLIMIT_NLIMITS = 15, > __RLIM_NLIMITS = __RLIMIT_NLIMITS > > >}; ># 129 "/usr/include/bits/resource.h" 3 4 >typedef __rlim64_t rlim_t; > > > > > >struct rlimit > { > > rlim_t rlim_cur; > > rlim_t rlim_max; > }; ># 154 "/usr/include/bits/resource.h" 3 4 >enum __rusage_who >{ > > RUSAGE_SELF = 0, > > > > RUSAGE_CHILDREN = -1 > >}; > > ># 1 "/usr/include/bits/time.h" 1 3 4 ># 167 "/usr/include/bits/resource.h" 2 3 4 > > >struct rusage > { > > struct timeval ru_utime; > > struct timeval ru_stime; > > long int ru_maxrss; > > > long int ru_ixrss; > > long int ru_idrss; > > long int ru_isrss; > > > long int ru_minflt; > > long int ru_majflt; > > long int ru_nswap; > > > long int ru_inblock; > > long int ru_oublock; > > long int ru_msgsnd; > > long int ru_msgrcv; > > long int ru_nsignals; > > > > long int ru_nvcsw; > > > long int ru_nivcsw; > }; > > > > > > > >enum __priority_which >{ > PRIO_PROCESS = 0, > > PRIO_PGRP = 1, > > PRIO_USER = 2 > >}; ># 26 "/usr/include/sys/resource.h" 2 3 4 > > > > > > > ># 43 "/usr/include/sys/resource.h" 3 4 >typedef int __rlimit_resource_t; >typedef int __rusage_who_t; >typedef int __priority_which_t; ># 55 "/usr/include/sys/resource.h" 3 4 >extern int getrlimit (__rlimit_resource_t __resource, struct rlimit *__rlimits) __asm__ ("" "getrlimit64") __attribute__ ((__nothrow__)); ># 74 "/usr/include/sys/resource.h" 3 4 >extern int setrlimit (__rlimit_resource_t __resource, __const struct rlimit *__rlimits) __asm__ ("" "setrlimit64") __attribute__ ((__nothrow__)); ># 88 "/usr/include/sys/resource.h" 3 4 >extern int getrusage (__rusage_who_t __who, struct rusage *__usage) __attribute__ ((__nothrow__)); > > > > > >extern int getpriority (__priority_which_t __which, id_t __who) __attribute__ ((__nothrow__)); > > > >extern int setpriority (__priority_which_t __which, id_t __who, int __prio) > __attribute__ ((__nothrow__)); > > ># 29 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/socket.h" 1 3 4 ># 25 "/usr/include/sys/socket.h" 3 4 > > ># 1 "/usr/include/sys/uio.h" 1 3 4 ># 26 "/usr/include/sys/uio.h" 3 4 > > > ># 1 "/usr/include/bits/uio.h" 1 3 4 ># 44 "/usr/include/bits/uio.h" 3 4 >struct iovec > { > void *iov_base; > size_t iov_len; > }; ># 30 "/usr/include/sys/uio.h" 2 3 4 ># 40 "/usr/include/sys/uio.h" 3 4 >extern ssize_t readv (int __fd, __const struct iovec *__iovec, int __count); ># 50 "/usr/include/sys/uio.h" 3 4 >extern ssize_t writev (int __fd, __const struct iovec *__iovec, int __count); > > ># 28 "/usr/include/sys/socket.h" 2 3 4 > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 30 "/usr/include/sys/socket.h" 2 3 4 > > > > > ># 1 "/usr/include/bits/socket.h" 1 3 4 ># 29 "/usr/include/bits/socket.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 30 "/usr/include/bits/socket.h" 2 3 4 > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 1 3 4 ># 32 "/usr/include/bits/socket.h" 2 3 4 > > > > >typedef __socklen_t socklen_t; > > > > >enum __socket_type >{ > SOCK_STREAM = 1, > > > SOCK_DGRAM = 2, > > > SOCK_RAW = 3, > > SOCK_RDM = 4, > > SOCK_SEQPACKET = 5, > > > SOCK_PACKET = 10 > > > >}; ># 142 "/usr/include/bits/socket.h" 3 4 ># 1 "/usr/include/bits/sockaddr.h" 1 3 4 ># 29 "/usr/include/bits/sockaddr.h" 3 4 >typedef unsigned short int sa_family_t; ># 143 "/usr/include/bits/socket.h" 2 3 4 > > >struct sockaddr > { > sa_family_t sa_family; > char sa_data[14]; > }; ># 162 "/usr/include/bits/socket.h" 3 4 >struct sockaddr_storage > { > sa_family_t ss_family; > __uint32_t __ss_align; > char __ss_padding[(128 - (2 * sizeof (__uint32_t)))]; > }; > > > >enum > { > MSG_OOB = 0x01, > > MSG_PEEK = 0x02, > > MSG_DONTROUTE = 0x04, > > > > > > > MSG_CTRUNC = 0x08, > > MSG_PROXY = 0x10, > > MSG_TRUNC = 0x20, > > MSG_DONTWAIT = 0x40, > > MSG_EOR = 0x80, > > MSG_WAITALL = 0x100, > > MSG_FIN = 0x200, > > MSG_SYN = 0x400, > > MSG_CONFIRM = 0x800, > > MSG_RST = 0x1000, > > MSG_ERRQUEUE = 0x2000, > > MSG_NOSIGNAL = 0x4000, > > MSG_MORE = 0x8000 > > }; > > > > >struct msghdr > { > void *msg_name; > socklen_t msg_namelen; > > struct iovec *msg_iov; > size_t msg_iovlen; > > void *msg_control; > size_t msg_controllen; > > > > > int msg_flags; > }; > > >struct cmsghdr > { > size_t cmsg_len; > > > > > int cmsg_level; > int cmsg_type; > > __extension__ unsigned char __cmsg_data []; > > }; ># 263 "/usr/include/bits/socket.h" 3 4 >extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, > struct cmsghdr *__cmsg) __attribute__ ((__nothrow__)); > > > > >extern __inline struct cmsghdr * >__attribute__ ((__nothrow__)) __cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) >{ > if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) > > return 0; > > __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg > + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1))); > if ((unsigned char *) (__cmsg + 1) > ((unsigned char *) __mhdr->msg_control > + __mhdr->msg_controllen) > || ((unsigned char *) __cmsg + (((__cmsg->cmsg_len) + sizeof (size_t) - 1) & (size_t) ~(sizeof (size_t) - 1)) > > ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen))) > > return 0; > return __cmsg; >} > > > > >enum > { > SCM_RIGHTS = 0x01 > > > , SCM_CREDENTIALS = 0x02 > > > }; > > > >struct ucred >{ > pid_t pid; > uid_t uid; > gid_t gid; >}; > > ># 1 "/usr/include/asm/socket.h" 1 3 4 ># 11 "/usr/include/asm/socket.h" 3 4 ># 1 "/usr/include/asm/sockios.h" 1 3 4 ># 12 "/usr/include/asm/socket.h" 2 3 4 ># 311 "/usr/include/bits/socket.h" 2 3 4 > > > >struct linger > { > int l_onoff; > int l_linger; > }; ># 36 "/usr/include/sys/socket.h" 2 3 4 > > > > >struct osockaddr > { > unsigned short int sa_family; > unsigned char sa_data[14]; > }; > > > > >enum >{ > SHUT_RD = 0, > > SHUT_WR, > > SHUT_RDWR > >}; ># 100 "/usr/include/sys/socket.h" 3 4 >extern int socket (int __domain, int __type, int __protocol) __attribute__ ((__nothrow__)); > > > > > >extern int socketpair (int __domain, int __type, int __protocol, > int __fds[2]) __attribute__ ((__nothrow__)); > > >extern int bind (int __fd, __const struct sockaddr * __addr, socklen_t __len) > __attribute__ ((__nothrow__)); > > >extern int getsockname (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __len) __attribute__ ((__nothrow__)); ># 124 "/usr/include/sys/socket.h" 3 4 >extern int connect (int __fd, __const struct sockaddr * __addr, socklen_t __len); > > > >extern int getpeername (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __len) __attribute__ ((__nothrow__)); > > > > > > >extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags); > > > > > > >extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); > > > > > > >extern ssize_t sendto (int __fd, __const void *__buf, size_t __n, > int __flags, __const struct sockaddr * __addr, > socklen_t __addr_len); ># 161 "/usr/include/sys/socket.h" 3 4 >extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, > int __flags, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len); > > > > > > > >extern ssize_t sendmsg (int __fd, __const struct msghdr *__message, > int __flags); > > > > > > >extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); > > > > > >extern int getsockopt (int __fd, int __level, int __optname, > void *__restrict __optval, > socklen_t *__restrict __optlen) __attribute__ ((__nothrow__)); > > > > >extern int setsockopt (int __fd, int __level, int __optname, > __const void *__optval, socklen_t __optlen) __attribute__ ((__nothrow__)); > > > > > >extern int listen (int __fd, int __n) __attribute__ ((__nothrow__)); ># 209 "/usr/include/sys/socket.h" 3 4 >extern int accept (int __fd, struct sockaddr *__restrict __addr, > socklen_t *__restrict __addr_len); > > > > > > > >extern int shutdown (int __fd, int __how) __attribute__ ((__nothrow__)); ># 231 "/usr/include/sys/socket.h" 3 4 >extern int isfdtype (int __fd, int __fdtype) __attribute__ ((__nothrow__)); ># 240 "/usr/include/sys/socket.h" 3 4 > ># 30 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/un.h" 1 3 4 ># 27 "/usr/include/sys/un.h" 3 4 > > > >struct sockaddr_un > { > sa_family_t sun_family; > char sun_path[108]; > }; > > > ># 1 "/usr/include/string.h" 1 3 4 ># 28 "/usr/include/string.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 34 "/usr/include/string.h" 2 3 4 > > > > >extern void *memcpy (void *__restrict __dest, > __const void *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memmove (void *__dest, __const void *__src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, > int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > >extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void *memchr (__const void *__s, int __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 82 "/usr/include/string.h" 3 4 > > >extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncpy (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *strcat (char *__restrict __dest, __const char *__restrict __src) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strncat (char *__restrict __dest, __const char *__restrict __src, > size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strcoll (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern size_t strxfrm (char *__restrict __dest, > __const char *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > ># 130 "/usr/include/string.h" 3 4 >extern char *strdup (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); ># 165 "/usr/include/string.h" 3 4 > > >extern char *strchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > >extern char *strrchr (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 181 "/usr/include/string.h" 3 4 > > > >extern size_t strcspn (__const char *__s, __const char *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern size_t strspn (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strpbrk (__const char *__s, __const char *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > >extern char *strstr (__const char *__haystack, __const char *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern char *strtok (char *__restrict __s, __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > >extern char *__strtok_r (char *__restrict __s, > __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); > >extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, > char **__restrict __save_ptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); ># 240 "/usr/include/string.h" 3 4 > > >extern size_t strlen (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > ># 254 "/usr/include/string.h" 3 4 > > >extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); > ># 281 "/usr/include/string.h" 3 4 >extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > > > >extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern void bcopy (__const void *__src, void *__dest, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern char *index (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > >extern char *rindex (__const char *__s, int __c) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); > > > >extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 325 "/usr/include/string.h" 3 4 >extern int strcasecmp (__const char *__s1, __const char *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 348 "/usr/include/string.h" 3 4 >extern char *strsep (char **__restrict __stringp, > __const char *__restrict __delim) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); ># 414 "/usr/include/string.h" 3 4 ># 1 "/usr/include/bits/string.h" 1 3 4 ># 415 "/usr/include/string.h" 2 3 4 > > ># 1 "/usr/include/bits/string2.h" 1 3 4 ># 80 "/usr/include/bits/string2.h" 3 4 >typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2; >typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3; >typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4; >typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5; >typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6; >typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7; >typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8; ># 394 "/usr/include/bits/string2.h" 3 4 >extern void *__rawmemchr (const void *__s, int __c); ># 969 "/usr/include/bits/string2.h" 3 4 >extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); >extern __inline size_t >__strcspn_c1 (__const char *__s, int __reject) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject) > ++__result; > return __result; >} > >extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, > int __reject2); >extern __inline size_t >__strcspn_c2 (__const char *__s, int __reject1, int __reject2) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2) > ++__result; > return __result; >} > >extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, > int __reject2, int __reject3); >extern __inline size_t >__strcspn_c3 (__const char *__s, int __reject1, int __reject2, > int __reject3) >{ > register size_t __result = 0; > while (__s[__result] != '\0' && __s[__result] != __reject1 > && __s[__result] != __reject2 && __s[__result] != __reject3) > ++__result; > return __result; >} ># 1045 "/usr/include/bits/string2.h" 3 4 >extern __inline size_t __strspn_c1 (__const char *__s, int __accept); >extern __inline size_t >__strspn_c1 (__const char *__s, int __accept) >{ > register size_t __result = 0; > > while (__s[__result] == __accept) > ++__result; > return __result; >} > >extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline size_t >__strspn_c2 (__const char *__s, int __accept1, int __accept2) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2) > ++__result; > return __result; >} > >extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline size_t >__strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) >{ > register size_t __result = 0; > > while (__s[__result] == __accept1 || __s[__result] == __accept2 > || __s[__result] == __accept3) > ++__result; > return __result; >} ># 1121 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, > int __accept2); >extern __inline char * >__strpbrk_c2 (__const char *__s, int __accept1, int __accept2) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} > >extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1, > int __accept2, int __accept3); >extern __inline char * >__strpbrk_c3 (__const char *__s, int __accept1, int __accept2, > int __accept3) >{ > > while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 > && *__s != __accept3) > ++__s; > return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; >} ># 1173 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); >extern __inline char * >__strtok_r_1c (char *__s, char __sep, char **__nextp) >{ > char *__result; > if (__s == ((void *)0)) > __s = *__nextp; > while (*__s == __sep) > ++__s; > __result = ((void *)0); > if (*__s != '\0') > { > __result = __s++; > while (*__s != '\0') > if (*__s++ == __sep) > { > __s[-1] = '\0'; > break; > } > *__nextp = __s; > } > return __result; >} ># 1205 "/usr/include/bits/string2.h" 3 4 >extern char *__strsep_g (char **__stringp, __const char *__delim); ># 1223 "/usr/include/bits/string2.h" 3 4 >extern __inline char *__strsep_1c (char **__s, char __reject); >extern __inline char * >__strsep_1c (char **__s, char __reject) >{ > register char *__retval = *__s; > if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) > *(*__s)++ = '\0'; > return __retval; >} > >extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2); >extern __inline char * >__strsep_2c (char **__s, char __reject1, char __reject2) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} > >extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2, > char __reject3); >extern __inline char * >__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) >{ > register char *__retval = *__s; > if (__retval != ((void *)0)) > { > register char *__cp = __retval; > while (1) > { > if (*__cp == '\0') > { > __cp = ((void *)0); > break; > } > if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) > { > *__cp++ = '\0'; > break; > } > ++__cp; > } > *__s = __cp; > } > return __retval; >} ># 1299 "/usr/include/bits/string2.h" 3 4 ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 587 "/usr/include/stdlib.h" 3 4 > > >extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > >extern void *calloc (size_t __nmemb, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; > ># 978 "/usr/include/stdlib.h" 3 4 > ># 1300 "/usr/include/bits/string2.h" 2 3 4 > > > > >extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 1323 "/usr/include/bits/string2.h" 3 4 >extern char *__strndup (__const char *__string, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); ># 418 "/usr/include/string.h" 2 3 4 ># 426 "/usr/include/string.h" 3 4 > ># 39 "/usr/include/sys/un.h" 2 3 4 > > > > > > > ># 31 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/sys/mman.h" 1 3 4 ># 26 "/usr/include/sys/mman.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 27 "/usr/include/sys/mman.h" 2 3 4 ># 42 "/usr/include/sys/mman.h" 3 4 ># 1 "/usr/include/bits/mman.h" 1 3 4 ># 43 "/usr/include/sys/mman.h" 2 3 4 > > > > > ># 62 "/usr/include/sys/mman.h" 3 4 >extern void * mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) __asm__ ("" "mmap64") __attribute__ ((__nothrow__)); ># 77 "/usr/include/sys/mman.h" 3 4 >extern int munmap (void *__addr, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern int mprotect (void *__addr, size_t __len, int __prot) __attribute__ ((__nothrow__)); > > > > > > > >extern int msync (void *__addr, size_t __len, int __flags); > > > > >extern int madvise (void *__addr, size_t __len, int __advice) __attribute__ ((__nothrow__)); ># 104 "/usr/include/sys/mman.h" 3 4 >extern int mlock (__const void *__addr, size_t __len) __attribute__ ((__nothrow__)); > > >extern int munlock (__const void *__addr, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern int mlockall (int __flags) __attribute__ ((__nothrow__)); > > > >extern int munlockall (void) __attribute__ ((__nothrow__)); > > > > > > > >extern int mincore (void *__start, size_t __len, unsigned char *__vec) > __attribute__ ((__nothrow__)); ># 145 "/usr/include/sys/mman.h" 3 4 >extern int shm_open (__const char *__name, int __oflag, mode_t __mode); > > >extern int shm_unlink (__const char *__name); > > ># 33 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/sys/wait.h" 1 3 4 ># 29 "/usr/include/sys/wait.h" 3 4 > > ># 1 "/usr/include/signal.h" 1 3 4 ># 31 "/usr/include/signal.h" 3 4 > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 103 "/usr/include/bits/sigset.h" 3 4 >extern int __sigismember (__const __sigset_t *, int); >extern int __sigaddset (__sigset_t *, int); >extern int __sigdelset (__sigset_t *, int); ># 117 "/usr/include/bits/sigset.h" 3 4 >extern __inline int __sigismember (__const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; } >extern __inline int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); } >extern __inline int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); } ># 34 "/usr/include/signal.h" 2 3 4 > > > > > > > >typedef __sig_atomic_t sig_atomic_t; > ># 58 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/signum.h" 1 3 4 ># 59 "/usr/include/signal.h" 2 3 4 ># 75 "/usr/include/signal.h" 3 4 >typedef void (*__sighandler_t) (int); > > > > >extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); ># 90 "/usr/include/signal.h" 3 4 > > >extern __sighandler_t signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); ># 104 "/usr/include/signal.h" 3 4 > > > > > >extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) > __attribute__ ((__nothrow__)); > > > > > > >extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__)); > > > > > > >extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__)); > > > > >extern int raise (int __sig) __attribute__ ((__nothrow__)); > ># 141 "/usr/include/signal.h" 3 4 >extern void psignal (int __sig, __const char *__s); ># 153 "/usr/include/signal.h" 3 4 >extern int __sigpause (int __sig_or_mask, int __is_sig); ># 162 "/usr/include/signal.h" 3 4 >extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); ># 181 "/usr/include/signal.h" 3 4 >extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > >extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > >extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); ># 201 "/usr/include/signal.h" 3 4 >typedef __sighandler_t sig_t; ># 212 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 25 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 26 "/usr/include/bits/siginfo.h" 2 3 4 > > > > > > > >typedef union sigval > { > int sival_int; > void *sival_ptr; > } sigval_t; ># 51 "/usr/include/bits/siginfo.h" 3 4 >typedef struct siginfo > { > int si_signo; > int si_errno; > > int si_code; > > union > { > int _pad[((128 / sizeof (int)) - 3)]; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > } _kill; > > > struct > { > int si_tid; > int si_overrun; > sigval_t si_sigval; > } _timer; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > sigval_t si_sigval; > } _rt; > > > struct > { > __pid_t si_pid; > __uid_t si_uid; > int si_status; > __clock_t si_utime; > __clock_t si_stime; > } _sigchld; > > > struct > { > void *si_addr; > } _sigfault; > > > struct > { > long int si_band; > int si_fd; > } _sigpoll; > } _sifields; > } siginfo_t; ># 129 "/usr/include/bits/siginfo.h" 3 4 >enum >{ > SI_ASYNCNL = -60, > > SI_TKILL = -6, > > SI_SIGIO, > > SI_ASYNCIO, > > SI_MESGQ, > > SI_TIMER, > > SI_QUEUE, > > SI_USER, > > SI_KERNEL = 0x80 > >}; > > > >enum >{ > ILL_ILLOPC = 1, > > ILL_ILLOPN, > > ILL_ILLADR, > > ILL_ILLTRP, > > ILL_PRVOPC, > > ILL_PRVREG, > > ILL_COPROC, > > ILL_BADSTK > >}; > > >enum >{ > FPE_INTDIV = 1, > > FPE_INTOVF, > > FPE_FLTDIV, > > FPE_FLTOVF, > > FPE_FLTUND, > > FPE_FLTRES, > > FPE_FLTINV, > > FPE_FLTSUB > >}; > > >enum >{ > SEGV_MAPERR = 1, > > SEGV_ACCERR > >}; > > >enum >{ > BUS_ADRALN = 1, > > BUS_ADRERR, > > BUS_OBJERR > >}; > > >enum >{ > TRAP_BRKPT = 1, > > TRAP_TRACE > >}; > > >enum >{ > CLD_EXITED = 1, > > CLD_KILLED, > > CLD_DUMPED, > > CLD_TRAPPED, > > CLD_STOPPED, > > CLD_CONTINUED > >}; > > >enum >{ > POLL_IN = 1, > > POLL_OUT, > > POLL_MSG, > > POLL_ERR, > > POLL_PRI, > > POLL_HUP > >}; ># 273 "/usr/include/bits/siginfo.h" 3 4 >typedef struct sigevent > { > sigval_t sigev_value; > int sigev_signo; > int sigev_notify; > > union > { > int _pad[((64 / sizeof (int)) - 3)]; > > > > __pid_t _tid; > > struct > { > void (*_function) (sigval_t); > void *_attribute; > } _sigev_thread; > } _sigev_un; > } sigevent_t; > > > > > > >enum >{ > SIGEV_SIGNAL = 0, > > SIGEV_NONE, > > SIGEV_THREAD, > > > SIGEV_THREAD_ID = 4 > >}; ># 213 "/usr/include/signal.h" 2 3 4 > > > >extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern int sigismember (__const sigset_t *__set, int __signo) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 246 "/usr/include/signal.h" 3 4 ># 1 "/usr/include/bits/sigaction.h" 1 3 4 ># 25 "/usr/include/bits/sigaction.h" 3 4 >struct sigaction > { > > > union > { > > __sighandler_t sa_handler; > > void (*sa_sigaction) (int, siginfo_t *, void *); > } > __sigaction_handler; > > > > > > > > __sigset_t sa_mask; > > > int sa_flags; > > > void (*sa_restorer) (void); > }; ># 247 "/usr/include/signal.h" 2 3 4 > > >extern int sigprocmask (int __how, __const sigset_t *__restrict __set, > sigset_t *__restrict __oset) __attribute__ ((__nothrow__)); > > > > > > >extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1))); > > >extern int sigaction (int __sig, __const struct sigaction *__restrict __act, > struct sigaction *__restrict __oact) __attribute__ ((__nothrow__)); > > >extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig) > __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int sigwaitinfo (__const sigset_t *__restrict __set, > siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sigtimedwait (__const sigset_t *__restrict __set, > siginfo_t *__restrict __info, > __const struct timespec *__restrict __timeout) > __attribute__ ((__nonnull__ (1))); > > > >extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val) > __attribute__ ((__nothrow__)); ># 304 "/usr/include/signal.h" 3 4 >extern __const char *__const _sys_siglist[65]; >extern __const char *__const sys_siglist[65]; > > >struct sigvec > { > __sighandler_t sv_handler; > int sv_mask; > > int sv_flags; > > }; ># 328 "/usr/include/signal.h" 3 4 >extern int sigvec (int __sig, __const struct sigvec *__vec, > struct sigvec *__ovec) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/bits/sigcontext.h" 1 3 4 ># 28 "/usr/include/bits/sigcontext.h" 3 4 ># 1 "/usr/include/asm/sigcontext.h" 1 3 4 ># 10 "/usr/include/asm/sigcontext.h" 3 4 ># 1 "/usr/include/asm/ptrace.h" 1 3 4 ># 29 "/usr/include/asm/ptrace.h" 3 4 >struct pt_regs { > unsigned long gpr[32]; > unsigned long nip; > unsigned long msr; > unsigned long orig_gpr3; > unsigned long ctr; > unsigned long link; > unsigned long xer; > unsigned long ccr; > > > > unsigned long mq; > > > unsigned long trap; > > > unsigned long dar; > unsigned long dsisr; > unsigned long result; >}; ># 11 "/usr/include/asm/sigcontext.h" 2 3 4 > > > > >struct sigcontext { > unsigned long _unused[4]; > int signal; > > > > unsigned long handler; > unsigned long oldmask; > struct pt_regs *regs; ># 49 "/usr/include/asm/sigcontext.h" 3 4 >}; ># 29 "/usr/include/bits/sigcontext.h" 2 3 4 ># 334 "/usr/include/signal.h" 2 3 4 > > >extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__)); ># 346 "/usr/include/signal.h" 3 4 >extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__)); > ># 1 "/usr/include/bits/sigstack.h" 1 3 4 ># 26 "/usr/include/bits/sigstack.h" 3 4 >struct sigstack > { > void *ss_sp; > int ss_onstack; > }; > > > >enum >{ > SS_ONSTACK = 1, > > SS_DISABLE > >}; ># 50 "/usr/include/bits/sigstack.h" 3 4 >typedef struct sigaltstack > { > void *ss_sp; > int ss_flags; > size_t ss_size; > } stack_t; ># 349 "/usr/include/signal.h" 2 3 4 > > ># 1 "/usr/include/sys/ucontext.h" 1 3 4 ># 27 "/usr/include/sys/ucontext.h" 3 4 ># 1 "/usr/include/bits/sigcontext.h" 1 3 4 ># 28 "/usr/include/sys/ucontext.h" 2 3 4 > > > > > > > >typedef unsigned long gregset_t[48]; > > >typedef struct _libc_fpstate >{ > double fpregs[32]; > double fpscr; > unsigned int _pad[2]; >} fpregset_t; > > > >typedef struct _libc_vrstate >{ > unsigned int vrregs[32][4]; > unsigned int vrsave; > unsigned int _pad[2]; > unsigned int vscr; >} vrregset_t; > > >typedef struct >{ > gregset_t gregs; > fpregset_t fpregs; > vrregset_t vrregs __attribute__((__aligned__(16))); >} mcontext_t; ># 135 "/usr/include/sys/ucontext.h" 3 4 >typedef struct ucontext > { > unsigned long int uc_flags; > struct ucontext *uc_link; > stack_t uc_stack; ># 164 "/usr/include/sys/ucontext.h" 3 4 > int uc_pad[7]; > union uc_regs_ptr { > struct pt_regs *regs; > mcontext_t *uc_regs; > } uc_mcontext; > sigset_t uc_sigmask; > char uc_reg_space[sizeof(mcontext_t) + 12]; > > > > > } ucontext_t; ># 352 "/usr/include/signal.h" 2 3 4 > > > > > >extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) > __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__)); > > > >extern int sigaltstack (__const struct sigaltstack *__restrict __ss, > struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__)); > > > > > > > >extern int sighold (int __sig) __attribute__ ((__nothrow__)); > > >extern int sigrelse (int __sig) __attribute__ ((__nothrow__)); > > >extern int sigignore (int __sig) __attribute__ ((__nothrow__)); > > >extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __attribute__ ((__nothrow__)); > > > > > > ># 1 "/usr/include/bits/sigthread.h" 1 3 4 ># 31 "/usr/include/bits/sigthread.h" 3 4 >extern int pthread_sigmask (int __how, > __const __sigset_t *__restrict __newmask, > __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__)); > > >extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__)); ># 388 "/usr/include/signal.h" 2 3 4 > > > > > > >extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__)); > >extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__)); > > > > ># 32 "/usr/include/sys/wait.h" 2 3 4 > > > > > > ># 1 "/usr/include/bits/waitflags.h" 1 3 4 ># 39 "/usr/include/sys/wait.h" 2 3 4 ># 63 "/usr/include/sys/wait.h" 3 4 >typedef union > { > union wait *__uptr; > int *__iptr; > } __WAIT_STATUS __attribute__ ((__transparent_union__)); ># 80 "/usr/include/sys/wait.h" 3 4 ># 1 "/usr/include/bits/waitstatus.h" 1 3 4 ># 67 "/usr/include/bits/waitstatus.h" 3 4 >union wait > { > int w_status; > struct > { > > > > > > > > unsigned int:16; > unsigned int __w_retcode:8; > unsigned int __w_coredump:1; > unsigned int __w_termsig:7; > > } __wait_terminated; > struct > { > > > > > > > unsigned int:16; > unsigned int __w_stopsig:8; > unsigned int __w_stopval:8; > > } __wait_stopped; > }; ># 81 "/usr/include/sys/wait.h" 2 3 4 ># 102 "/usr/include/sys/wait.h" 3 4 >typedef enum >{ > P_ALL, > P_PID, > P_PGID >} idtype_t; ># 116 "/usr/include/sys/wait.h" 3 4 >extern __pid_t wait (__WAIT_STATUS __stat_loc); ># 139 "/usr/include/sys/wait.h" 3 4 >extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options); > > > ># 1 "/usr/include/bits/siginfo.h" 1 3 4 ># 25 "/usr/include/bits/siginfo.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 26 "/usr/include/bits/siginfo.h" 2 3 4 ># 144 "/usr/include/sys/wait.h" 2 3 4 ># 155 "/usr/include/sys/wait.h" 3 4 >extern int waitid (idtype_t __idtype, __id_t __id, siginfo_t *__infop, > int __options); > > > > > >struct rusage; > > > > > > >extern __pid_t wait3 (__WAIT_STATUS __stat_loc, int __options, > struct rusage * __usage) __attribute__ ((__nothrow__)); > > > > > >struct rusage; > > >extern __pid_t wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc, int __options, > struct rusage *__usage) __attribute__ ((__nothrow__)); > > > > ># 34 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/syslog.h" 1 3 4 ># 1 "/usr/include/sys/syslog.h" 1 3 4 ># 40 "/usr/include/sys/syslog.h" 3 4 ># 1 "/usr/include/bits/syslog-path.h" 1 3 4 ># 41 "/usr/include/sys/syslog.h" 2 3 4 ># 169 "/usr/include/sys/syslog.h" 3 4 > > > > > > >extern void closelog (void); > > > > > >extern void openlog (__const char *__ident, int __option, int __facility); > > >extern int setlogmask (int __mask) __attribute__ ((__nothrow__)); > > > > > >extern void syslog (int __pri, __const char *__fmt, ...) > __attribute__ ((__format__ (__printf__, 2, 3))); ># 200 "/usr/include/sys/syslog.h" 3 4 >extern void vsyslog (int __pri, __const char *__fmt, __gnuc_va_list __ap) > __attribute__ ((__format__ (__printf__, 2, 0))); ># 213 "/usr/include/sys/syslog.h" 3 4 > ># 1 "/usr/include/syslog.h" 2 3 4 ># 35 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/dirent.h" 1 3 4 ># 28 "/usr/include/dirent.h" 3 4 > ># 62 "/usr/include/dirent.h" 3 4 ># 1 "/usr/include/bits/dirent.h" 1 3 4 ># 23 "/usr/include/bits/dirent.h" 3 4 >struct dirent > { > > > > > __ino64_t d_ino; > __off64_t d_off; > > unsigned short int d_reclen; > unsigned char d_type; > char d_name[256]; > }; ># 63 "/usr/include/dirent.h" 2 3 4 ># 98 "/usr/include/dirent.h" 3 4 >enum > { > DT_UNKNOWN = 0, > > DT_FIFO = 1, > > DT_CHR = 2, > > DT_DIR = 4, > > DT_BLK = 6, > > DT_REG = 8, > > DT_LNK = 10, > > DT_SOCK = 12, > > DT_WHT = 14 > > }; ># 128 "/usr/include/dirent.h" 3 4 >typedef struct __dirstream DIR; > > > > > > >extern DIR *opendir (__const char *__name) __attribute__ ((__nonnull__ (1))); ># 150 "/usr/include/dirent.h" 3 4 >extern int closedir (DIR *__dirp) __attribute__ ((__nonnull__ (1))); ># 166 "/usr/include/dirent.h" 3 4 >extern struct dirent *readdir (DIR *__dirp) __asm__ ("" "readdir64") > __attribute__ ((__nonnull__ (1))); ># 190 "/usr/include/dirent.h" 3 4 >extern int readdir_r (DIR *__restrict __dirp, struct dirent *__restrict __entry, struct dirent **__restrict __result) __asm__ ("" "readdir64_r") __attribute__ ((__nonnull__ (1, 2, 3))); ># 209 "/usr/include/dirent.h" 3 4 >extern void rewinddir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern void seekdir (DIR *__dirp, long int __pos) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int telldir (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int dirfd (DIR *__dirp) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 243 "/usr/include/dirent.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 244 "/usr/include/dirent.h" 2 3 4 ># 257 "/usr/include/dirent.h" 3 4 >extern int scandir (__const char *__restrict __dir, struct dirent ***__restrict __namelist, int (*__selector) (__const struct dirent *), int (*__cmp) (__const void *, __const void *)) __asm__ ("" "scandir64") __attribute__ ((__nonnull__ (1, 2))); ># 284 "/usr/include/dirent.h" 3 4 >extern int alphasort (__const void *__e1, __const void *__e2) __asm__ ("" "alphasort64") __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); ># 330 "/usr/include/dirent.h" 3 4 >extern __ssize_t getdirentries (int __fd, char *__restrict __buf, size_t __nbytes, __off64_t *__restrict __basep) __asm__ ("" "getdirentries64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); ># 349 "/usr/include/dirent.h" 3 4 > ># 36 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/netdb.h" 1 3 4 ># 28 "/usr/include/netdb.h" 3 4 ># 1 "/usr/include/netinet/in.h" 1 3 4 ># 23 "/usr/include/netinet/in.h" 3 4 ># 1 "/usr/include/stdint.h" 1 3 4 ># 27 "/usr/include/stdint.h" 3 4 ># 1 "/usr/include/bits/wchar.h" 1 3 4 ># 28 "/usr/include/stdint.h" 2 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 29 "/usr/include/stdint.h" 2 3 4 ># 49 "/usr/include/stdint.h" 3 4 >typedef unsigned char uint8_t; >typedef unsigned short int uint16_t; > >typedef unsigned int uint32_t; > > > > > >__extension__ >typedef unsigned long long int uint64_t; > > > > > > >typedef signed char int_least8_t; >typedef short int int_least16_t; >typedef int int_least32_t; > > > >__extension__ >typedef long long int int_least64_t; > > > >typedef unsigned char uint_least8_t; >typedef unsigned short int uint_least16_t; >typedef unsigned int uint_least32_t; > > > >__extension__ >typedef unsigned long long int uint_least64_t; > > > > > > >typedef signed char int_fast8_t; > > > > > >typedef int int_fast16_t; >typedef int int_fast32_t; >__extension__ >typedef long long int int_fast64_t; > > > >typedef unsigned char uint_fast8_t; > > > > > >typedef unsigned int uint_fast16_t; >typedef unsigned int uint_fast32_t; >__extension__ >typedef unsigned long long int uint_fast64_t; ># 126 "/usr/include/stdint.h" 3 4 >typedef int intptr_t; > > >typedef unsigned int uintptr_t; ># 138 "/usr/include/stdint.h" 3 4 >__extension__ >typedef long long int intmax_t; >__extension__ >typedef unsigned long long int uintmax_t; ># 24 "/usr/include/netinet/in.h" 2 3 4 > > > > > > > >enum > { > IPPROTO_IP = 0, > > IPPROTO_HOPOPTS = 0, > > IPPROTO_ICMP = 1, > > IPPROTO_IGMP = 2, > > IPPROTO_IPIP = 4, > > IPPROTO_TCP = 6, > > IPPROTO_EGP = 8, > > IPPROTO_PUP = 12, > > IPPROTO_UDP = 17, > > IPPROTO_IDP = 22, > > IPPROTO_TP = 29, > > IPPROTO_IPV6 = 41, > > IPPROTO_ROUTING = 43, > > IPPROTO_FRAGMENT = 44, > > IPPROTO_RSVP = 46, > > IPPROTO_GRE = 47, > > IPPROTO_ESP = 50, > > IPPROTO_AH = 51, > > IPPROTO_ICMPV6 = 58, > > IPPROTO_NONE = 59, > > IPPROTO_DSTOPTS = 60, > > IPPROTO_MTP = 92, > > IPPROTO_ENCAP = 98, > > IPPROTO_PIM = 103, > > IPPROTO_COMP = 108, > > IPPROTO_SCTP = 132, > > IPPROTO_RAW = 255, > > IPPROTO_MAX > }; > > > >typedef uint16_t in_port_t; > > >enum > { > IPPORT_ECHO = 7, > IPPORT_DISCARD = 9, > IPPORT_SYSTAT = 11, > IPPORT_DAYTIME = 13, > IPPORT_NETSTAT = 15, > IPPORT_FTP = 21, > IPPORT_TELNET = 23, > IPPORT_SMTP = 25, > IPPORT_TIMESERVER = 37, > IPPORT_NAMESERVER = 42, > IPPORT_WHOIS = 43, > IPPORT_MTP = 57, > > IPPORT_TFTP = 69, > IPPORT_RJE = 77, > IPPORT_FINGER = 79, > IPPORT_TTYLINK = 87, > IPPORT_SUPDUP = 95, > > > IPPORT_EXECSERVER = 512, > IPPORT_LOGINSERVER = 513, > IPPORT_CMDSERVER = 514, > IPPORT_EFSSERVER = 520, > > > IPPORT_BIFFUDP = 512, > IPPORT_WHOSERVER = 513, > IPPORT_ROUTESERVER = 520, > > > IPPORT_RESERVED = 1024, > > > IPPORT_USERRESERVED = 5000 > }; > > > >typedef uint32_t in_addr_t; >struct in_addr > { > in_addr_t s_addr; > }; ># 193 "/usr/include/netinet/in.h" 3 4 >struct in6_addr > { > union > { > uint8_t u6_addr8[16]; > uint16_t u6_addr16[8]; > uint32_t u6_addr32[4]; > } in6_u; > > > > }; > >extern const struct in6_addr in6addr_any; >extern const struct in6_addr in6addr_loopback; ># 219 "/usr/include/netinet/in.h" 3 4 >struct sockaddr_in > { > sa_family_t sin_family; > in_port_t sin_port; > struct in_addr sin_addr; > > > unsigned char sin_zero[sizeof (struct sockaddr) - > (sizeof (unsigned short int)) - > sizeof (in_port_t) - > sizeof (struct in_addr)]; > }; > > >struct sockaddr_in6 > { > sa_family_t sin6_family; > in_port_t sin6_port; > uint32_t sin6_flowinfo; > struct in6_addr sin6_addr; > uint32_t sin6_scope_id; > }; > > > >struct ip_mreq > { > > struct in_addr imr_multiaddr; > > > struct in_addr imr_interface; > }; > >struct ip_mreq_source > { > > struct in_addr imr_multiaddr; > > > struct in_addr imr_interface; > > > struct in_addr imr_sourceaddr; > }; > > >struct ipv6_mreq > { > > struct in6_addr ipv6mr_multiaddr; > > > unsigned int ipv6mr_interface; > }; > > > >struct group_req > { > > uint32_t gr_interface; > > > struct sockaddr_storage gr_group; > }; > >struct group_source_req > { > > uint32_t gsr_interface; > > > struct sockaddr_storage gsr_group; > > > struct sockaddr_storage gsr_source; > }; > > > >struct ip_msfilter > { > > struct in_addr imsf_multiaddr; > > > struct in_addr imsf_interface; > > > uint32_t imsf_fmode; > > > uint32_t imsf_numsrc; > > struct in_addr imsf_slist[1]; > }; > > > > > >struct group_filter > { > > uint32_t gf_interface; > > > struct sockaddr_storage gf_group; > > > uint32_t gf_fmode; > > > uint32_t gf_numsrc; > > struct sockaddr_storage gf_slist[1]; >}; ># 345 "/usr/include/netinet/in.h" 3 4 ># 1 "/usr/include/bits/in.h" 1 3 4 ># 82 "/usr/include/bits/in.h" 3 4 >struct ip_opts > { > struct in_addr ip_dst; > char ip_opts[40]; > }; > > >struct ip_mreqn > { > struct in_addr imr_multiaddr; > struct in_addr imr_address; > int imr_ifindex; > }; > > >struct in_pktinfo > { > int ipi_ifindex; > struct in_addr ipi_spec_dst; > struct in_addr ipi_addr; > }; ># 346 "/usr/include/netinet/in.h" 2 3 4 ># 354 "/usr/include/netinet/in.h" 3 4 >extern uint32_t ntohl (uint32_t __netlong) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); >extern uint16_t ntohs (uint16_t __netshort) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); >extern uint32_t htonl (uint32_t __hostlong) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); >extern uint16_t htons (uint16_t __hostshort) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > ># 1 "/usr/include/bits/byteswap.h" 1 3 4 ># 366 "/usr/include/netinet/in.h" 2 3 4 ># 428 "/usr/include/netinet/in.h" 3 4 >extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) __attribute__ ((__nothrow__)); > > >extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) > __attribute__ ((__nothrow__)); ># 456 "/usr/include/netinet/in.h" 3 4 >struct in6_pktinfo > { > struct in6_addr ipi6_addr; > unsigned int ipi6_ifindex; > }; > > >struct ip6_mtuinfo > { > struct sockaddr_in6 ip6m_addr; > uint32_t ip6m_mtu; > }; ># 551 "/usr/include/netinet/in.h" 3 4 > ># 29 "/usr/include/netdb.h" 2 3 4 > > > > ># 1 "/usr/include/rpc/netdb.h" 1 3 4 ># 42 "/usr/include/rpc/netdb.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 43 "/usr/include/rpc/netdb.h" 2 3 4 > > > >struct rpcent >{ > char *r_name; > char **r_aliases; > int r_number; >}; > >extern void setrpcent (int __stayopen) __attribute__ ((__nothrow__)); >extern void endrpcent (void) __attribute__ ((__nothrow__)); >extern struct rpcent *getrpcbyname (__const char *__name) __attribute__ ((__nothrow__)); >extern struct rpcent *getrpcbynumber (int __number) __attribute__ ((__nothrow__)); >extern struct rpcent *getrpcent (void) __attribute__ ((__nothrow__)); > > >extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf, > char *__buffer, size_t __buflen, > struct rpcent **__result) __attribute__ ((__nothrow__)); > >extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf, > char *__buffer, size_t __buflen, > struct rpcent **__result) __attribute__ ((__nothrow__)); > >extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer, > size_t __buflen, struct rpcent **__result) __attribute__ ((__nothrow__)); > > > ># 34 "/usr/include/netdb.h" 2 3 4 ># 43 "/usr/include/netdb.h" 3 4 ># 1 "/usr/include/bits/netdb.h" 1 3 4 ># 27 "/usr/include/bits/netdb.h" 3 4 >struct netent >{ > char *n_name; > char **n_aliases; > int n_addrtype; > uint32_t n_net; >}; ># 44 "/usr/include/netdb.h" 2 3 4 ># 54 "/usr/include/netdb.h" 3 4 > > > > > > > >extern int *__h_errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 88 "/usr/include/netdb.h" 3 4 >extern void herror (__const char *__str) __attribute__ ((__nothrow__)); > > >extern __const char *hstrerror (int __err_num) __attribute__ ((__nothrow__)); > > > > >struct hostent >{ > char *h_name; > char **h_aliases; > int h_addrtype; > int h_length; > char **h_addr_list; > >}; > > > > > > >extern void sethostent (int __stay_open); > > > > > >extern void endhostent (void); > > > > > > >extern struct hostent *gethostent (void); > > > > > > >extern struct hostent *gethostbyaddr (__const void *__addr, __socklen_t __len, > int __type); > > > > > >extern struct hostent *gethostbyname (__const char *__name); ># 149 "/usr/include/netdb.h" 3 4 >extern struct hostent *gethostbyname2 (__const char *__name, int __af); ># 161 "/usr/include/netdb.h" 3 4 >extern int gethostent_r (struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len, > int __type, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyname_r (__const char *__restrict __name, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); > >extern int gethostbyname2_r (__const char *__restrict __name, int __af, > struct hostent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct hostent **__restrict __result, > int *__restrict __h_errnop); ># 192 "/usr/include/netdb.h" 3 4 >extern void setnetent (int __stay_open); > > > > > >extern void endnetent (void); > > > > > > >extern struct netent *getnetent (void); > > > > > > >extern struct netent *getnetbyaddr (uint32_t __net, int __type); > > > > > >extern struct netent *getnetbyname (__const char *__name); ># 231 "/usr/include/netdb.h" 3 4 >extern int getnetent_r (struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > >extern int getnetbyaddr_r (uint32_t __net, int __type, > struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > >extern int getnetbyname_r (__const char *__restrict __name, > struct netent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct netent **__restrict __result, > int *__restrict __h_errnop); > > > > >struct servent >{ > char *s_name; > char **s_aliases; > int s_port; > char *s_proto; >}; > > > > > > >extern void setservent (int __stay_open); > > > > > >extern void endservent (void); > > > > > > >extern struct servent *getservent (void); > > > > > > >extern struct servent *getservbyname (__const char *__name, > __const char *__proto); > > > > > > >extern struct servent *getservbyport (int __port, __const char *__proto); ># 303 "/usr/include/netdb.h" 3 4 >extern int getservent_r (struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > >extern int getservbyname_r (__const char *__restrict __name, > __const char *__restrict __proto, > struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > >extern int getservbyport_r (int __port, __const char *__restrict __proto, > struct servent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct servent **__restrict __result); > > > > >struct protoent >{ > char *p_name; > char **p_aliases; > int p_proto; >}; > > > > > > >extern void setprotoent (int __stay_open); > > > > > >extern void endprotoent (void); > > > > > > >extern struct protoent *getprotoent (void); > > > > > >extern struct protoent *getprotobyname (__const char *__name); > > > > > >extern struct protoent *getprotobynumber (int __proto); ># 369 "/usr/include/netdb.h" 3 4 >extern int getprotoent_r (struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); > >extern int getprotobyname_r (__const char *__restrict __name, > struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); > >extern int getprotobynumber_r (int __proto, > struct protoent *__restrict __result_buf, > char *__restrict __buf, size_t __buflen, > struct protoent **__restrict __result); ># 390 "/usr/include/netdb.h" 3 4 >extern int setnetgrent (__const char *__netgroup); > > > > > > > >extern void endnetgrent (void); ># 407 "/usr/include/netdb.h" 3 4 >extern int getnetgrent (char **__restrict __hostp, > char **__restrict __userp, > char **__restrict __domainp); ># 418 "/usr/include/netdb.h" 3 4 >extern int innetgr (__const char *__netgroup, __const char *__host, > __const char *__user, __const char *domain); > > > > > > > >extern int getnetgrent_r (char **__restrict __hostp, > char **__restrict __userp, > char **__restrict __domainp, > char *__restrict __buffer, size_t __buflen); ># 446 "/usr/include/netdb.h" 3 4 >extern int rcmd (char **__restrict __ahost, unsigned short int __rport, > __const char *__restrict __locuser, > __const char *__restrict __remuser, > __const char *__restrict __cmd, int *__restrict __fd2p); ># 458 "/usr/include/netdb.h" 3 4 >extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport, > __const char *__restrict __locuser, > __const char *__restrict __remuser, > __const char *__restrict __cmd, int *__restrict __fd2p, > sa_family_t __af); ># 474 "/usr/include/netdb.h" 3 4 >extern int rexec (char **__restrict __ahost, int __rport, > __const char *__restrict __name, > __const char *__restrict __pass, > __const char *__restrict __cmd, int *__restrict __fd2p); ># 486 "/usr/include/netdb.h" 3 4 >extern int rexec_af (char **__restrict __ahost, int __rport, > __const char *__restrict __name, > __const char *__restrict __pass, > __const char *__restrict __cmd, int *__restrict __fd2p, > sa_family_t __af); ># 500 "/usr/include/netdb.h" 3 4 >extern int ruserok (__const char *__rhost, int __suser, > __const char *__remuser, __const char *__locuser); ># 510 "/usr/include/netdb.h" 3 4 >extern int ruserok_af (__const char *__rhost, int __suser, > __const char *__remuser, __const char *__locuser, > sa_family_t __af); ># 522 "/usr/include/netdb.h" 3 4 >extern int rresvport (int *__alport); ># 531 "/usr/include/netdb.h" 3 4 >extern int rresvport_af (int *__alport, sa_family_t __af); > > > > > > >struct addrinfo >{ > int ai_flags; > int ai_family; > int ai_socktype; > int ai_protocol; > socklen_t ai_addrlen; > struct sockaddr *ai_addr; > char *ai_canonname; > struct addrinfo *ai_next; >}; ># 631 "/usr/include/netdb.h" 3 4 >extern int getaddrinfo (__const char *__restrict __name, > __const char *__restrict __service, > __const struct addrinfo *__restrict __req, > struct addrinfo **__restrict __pai); > > >extern void freeaddrinfo (struct addrinfo *__ai) __attribute__ ((__nothrow__)); > > >extern __const char *gai_strerror (int __ecode) __attribute__ ((__nothrow__)); > > > > > >extern int getnameinfo (__const struct sockaddr *__restrict __sa, > socklen_t __salen, char *__restrict __host, > socklen_t __hostlen, char *__restrict __serv, > socklen_t __servlen, unsigned int __flags); ># 682 "/usr/include/netdb.h" 3 4 > ># 37 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/netinet/tcp.h" 1 3 4 ># 89 "/usr/include/netinet/tcp.h" 3 4 >struct tcphdr > { > u_int16_t source; > u_int16_t dest; > u_int32_t seq; > u_int32_t ack_seq; ># 106 "/usr/include/netinet/tcp.h" 3 4 > u_int16_t doff:4; > u_int16_t res1:4; > u_int16_t res2:2; > u_int16_t urg:1; > u_int16_t ack:1; > u_int16_t psh:1; > u_int16_t rst:1; > u_int16_t syn:1; > u_int16_t fin:1; > > > > u_int16_t window; > u_int16_t check; > u_int16_t urg_ptr; >}; > > >enum >{ > TCP_ESTABLISHED = 1, > TCP_SYN_SENT, > TCP_SYN_RECV, > TCP_FIN_WAIT1, > TCP_FIN_WAIT2, > TCP_TIME_WAIT, > TCP_CLOSE, > TCP_CLOSE_WAIT, > TCP_LAST_ACK, > TCP_LISTEN, > TCP_CLOSING >}; ># 176 "/usr/include/netinet/tcp.h" 3 4 >enum tcp_ca_state >{ > TCP_CA_Open = 0, > TCP_CA_Disorder = 1, > TCP_CA_CWR = 2, > TCP_CA_Recovery = 3, > TCP_CA_Loss = 4 >}; > >struct tcp_info >{ > u_int8_t tcpi_state; > u_int8_t tcpi_ca_state; > u_int8_t tcpi_retransmits; > u_int8_t tcpi_probes; > u_int8_t tcpi_backoff; > u_int8_t tcpi_options; > u_int8_t tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4; > > u_int32_t tcpi_rto; > u_int32_t tcpi_ato; > u_int32_t tcpi_snd_mss; > u_int32_t tcpi_rcv_mss; > > u_int32_t tcpi_unacked; > u_int32_t tcpi_sacked; > u_int32_t tcpi_lost; > u_int32_t tcpi_retrans; > u_int32_t tcpi_fackets; > > > u_int32_t tcpi_last_data_sent; > u_int32_t tcpi_last_ack_sent; > u_int32_t tcpi_last_data_recv; > u_int32_t tcpi_last_ack_recv; > > > u_int32_t tcpi_pmtu; > u_int32_t tcpi_rcv_ssthresh; > u_int32_t tcpi_rtt; > u_int32_t tcpi_rttvar; > u_int32_t tcpi_snd_ssthresh; > u_int32_t tcpi_snd_cwnd; > u_int32_t tcpi_advmss; > u_int32_t tcpi_reordering; >}; ># 39 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/netinet/in_systm.h" 1 3 4 ># 26 "/usr/include/netinet/in_systm.h" 3 4 > ># 35 "/usr/include/netinet/in_systm.h" 3 4 >typedef u_int16_t n_short; >typedef u_int32_t n_long; >typedef u_int32_t n_time; > > ># 40 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/netinet/ip.h" 1 3 4 ># 27 "/usr/include/netinet/ip.h" 3 4 > > >struct timestamp > { > u_int8_t len; > u_int8_t ptr; > > > > > unsigned int overflow:4; > unsigned int flags:4; > > > > u_int32_t data[9]; > }; > >struct iphdr > { > > > > > unsigned int version:4; > unsigned int ihl:4; > > > > u_int8_t tos; > u_int16_t tot_len; > u_int16_t id; > u_int16_t frag_off; > u_int8_t ttl; > u_int8_t protocol; > u_int16_t check; > u_int32_t saddr; > u_int32_t daddr; > > }; ># 108 "/usr/include/netinet/ip.h" 3 4 >struct ip > { > > > > > > unsigned int ip_v:4; > unsigned int ip_hl:4; > > u_int8_t ip_tos; > u_short ip_len; > u_short ip_id; > u_short ip_off; > > > > > u_int8_t ip_ttl; > u_int8_t ip_p; > u_short ip_sum; > struct in_addr ip_src, ip_dst; > }; > > > > >struct ip_timestamp > { > u_int8_t ipt_code; > u_int8_t ipt_len; > u_int8_t ipt_ptr; > > > > > > unsigned int ipt_oflw:4; > unsigned int ipt_flg:4; > > u_int32_t data[9]; > }; ># 247 "/usr/include/netinet/ip.h" 3 4 > ># 41 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/net/if.h" 1 3 4 ># 34 "/usr/include/net/if.h" 3 4 >struct if_nameindex > { > unsigned int if_index; > char *if_name; > }; > > > > >enum > { > IFF_UP = 0x1, > > IFF_BROADCAST = 0x2, > > IFF_DEBUG = 0x4, > > IFF_LOOPBACK = 0x8, > > IFF_POINTOPOINT = 0x10, > > IFF_NOTRAILERS = 0x20, > > IFF_RUNNING = 0x40, > > IFF_NOARP = 0x80, > > IFF_PROMISC = 0x100, > > > > IFF_ALLMULTI = 0x200, > > > IFF_MASTER = 0x400, > > IFF_SLAVE = 0x800, > > > IFF_MULTICAST = 0x1000, > > > IFF_PORTSEL = 0x2000, > > IFF_AUTOMEDIA = 0x4000, > > IFF_DYNAMIC = 0x8000 > > }; > > > > > > >struct ifaddr > { > struct sockaddr ifa_addr; > union > { > struct sockaddr ifu_broadaddr; > struct sockaddr ifu_dstaddr; > } ifa_ifu; > struct iface *ifa_ifp; > struct ifaddr *ifa_next; > }; ># 112 "/usr/include/net/if.h" 3 4 >struct ifmap > { > unsigned long int mem_start; > unsigned long int mem_end; > unsigned short int base_addr; > unsigned char irq; > unsigned char dma; > unsigned char port; > > }; > > > > > >struct ifreq > { > > > union > { > char ifrn_name[16]; > } ifr_ifrn; > > union > { > struct sockaddr ifru_addr; > struct sockaddr ifru_dstaddr; > struct sockaddr ifru_broadaddr; > struct sockaddr ifru_netmask; > struct sockaddr ifru_hwaddr; > short int ifru_flags; > int ifru_ivalue; > int ifru_mtu; > struct ifmap ifru_map; > char ifru_slave[16]; > char ifru_newname[16]; > __caddr_t ifru_data; > } ifr_ifru; > }; ># 177 "/usr/include/net/if.h" 3 4 >struct ifconf > { > int ifc_len; > union > { > __caddr_t ifcu_buf; > struct ifreq *ifcu_req; > } ifc_ifcu; > }; > > > > > > > > >extern unsigned int if_nametoindex (__const char *__ifname) __attribute__ ((__nothrow__)); >extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __attribute__ ((__nothrow__)); > > >extern struct if_nameindex *if_nameindex (void) __attribute__ ((__nothrow__)); > > >extern void if_freenameindex (struct if_nameindex *__ptr) __attribute__ ((__nothrow__)); > > ># 42 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/arpa/inet.h" 1 3 4 ># 31 "/usr/include/arpa/inet.h" 3 4 > > > > >extern in_addr_t inet_addr (__const char *__cp) __attribute__ ((__nothrow__)); > > >extern in_addr_t inet_lnaof (struct in_addr __in) __attribute__ ((__nothrow__)); > > > >extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) > __attribute__ ((__nothrow__)); > > >extern in_addr_t inet_netof (struct in_addr __in) __attribute__ ((__nothrow__)); > > > >extern in_addr_t inet_network (__const char *__cp) __attribute__ ((__nothrow__)); > > > >extern char *inet_ntoa (struct in_addr __in) __attribute__ ((__nothrow__)); > > > > >extern int inet_pton (int __af, __const char *__restrict __cp, > void *__restrict __buf) __attribute__ ((__nothrow__)); > > > > >extern __const char *inet_ntop (int __af, __const void *__restrict __cp, > char *__restrict __buf, socklen_t __len) > __attribute__ ((__nothrow__)); > > > > > > >extern int inet_aton (__const char *__cp, struct in_addr *__inp) __attribute__ ((__nothrow__)); > > > >extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern char *inet_net_ntop (int __af, __const void *__cp, int __bits, > char *__buf, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern int inet_net_pton (int __af, __const char *__cp, > void *__buf, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern unsigned int inet_nsap_addr (__const char *__cp, > unsigned char *__buf, int __len) __attribute__ ((__nothrow__)); > > > >extern char *inet_nsap_ntoa (int __len, __const unsigned char *__cp, > char *__buf) __attribute__ ((__nothrow__)); > > > ># 43 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/arpa/nameser.h" 1 3 4 ># 58 "/usr/include/arpa/nameser.h" 3 4 ># 1 "/usr/include/sys/bitypes.h" 1 3 4 ># 59 "/usr/include/arpa/nameser.h" 2 3 4 ># 96 "/usr/include/arpa/nameser.h" 3 4 >typedef enum __ns_sect { > ns_s_qd = 0, > ns_s_zn = 0, > ns_s_an = 1, > ns_s_pr = 1, > ns_s_ns = 2, > ns_s_ud = 2, > ns_s_ar = 3, > ns_s_max = 4 >} ns_sect; > > > > > > >typedef struct __ns_msg { > const u_char *_msg, *_eom; > u_int16_t _id, _flags, _counts[ns_s_max]; > const u_char *_sections[ns_s_max]; > ns_sect _sect; > int _rrnum; > const u_char *_ptr; >} ns_msg; > > >struct _ns_flagdata { int mask, shift; }; >extern struct _ns_flagdata _ns_flagdata[]; ># 139 "/usr/include/arpa/nameser.h" 3 4 >typedef struct __ns_rr { > char name[1025]; > u_int16_t type; > u_int16_t rr_class; > u_int32_t ttl; > u_int16_t rdlength; > const u_char * rdata; >} ns_rr; ># 161 "/usr/include/arpa/nameser.h" 3 4 >typedef enum __ns_flag { > ns_f_qr, > ns_f_opcode, > ns_f_aa, > ns_f_tc, > ns_f_rd, > ns_f_ra, > ns_f_z, > ns_f_ad, > ns_f_cd, > ns_f_rcode, > ns_f_max >} ns_flag; > > > > >typedef enum __ns_opcode { > ns_o_query = 0, > ns_o_iquery = 1, > ns_o_status = 2, > > ns_o_notify = 4, > ns_o_update = 5, > ns_o_max = 6 >} ns_opcode; > > > > >typedef enum __ns_rcode { > ns_r_noerror = 0, > ns_r_formerr = 1, > ns_r_servfail = 2, > ns_r_nxdomain = 3, > ns_r_notimpl = 4, > ns_r_refused = 5, > > ns_r_yxdomain = 6, > ns_r_yxrrset = 7, > ns_r_nxrrset = 8, > ns_r_notauth = 9, > ns_r_notzone = 10, > ns_r_max = 11, > > ns_r_badsig = 16, > ns_r_badkey = 17, > ns_r_badtime = 18 >} ns_rcode; > > >typedef enum __ns_update_operation { > ns_uop_delete = 0, > ns_uop_add = 1, > ns_uop_max = 2 >} ns_update_operation; > > > > >struct ns_tsig_key { > char name[1025], alg[1025]; > unsigned char *data; > int len; >}; >typedef struct ns_tsig_key ns_tsig_key; > > > > >struct ns_tcp_tsig_state { > int counter; > struct dst_key *key; > void *ctx; > unsigned char sig[512]; > int siglen; >}; >typedef struct ns_tcp_tsig_state ns_tcp_tsig_state; ># 251 "/usr/include/arpa/nameser.h" 3 4 >typedef enum __ns_type { > ns_t_invalid = 0, > ns_t_a = 1, > ns_t_ns = 2, > ns_t_md = 3, > ns_t_mf = 4, > ns_t_cname = 5, > ns_t_soa = 6, > ns_t_mb = 7, > ns_t_mg = 8, > ns_t_mr = 9, > ns_t_null = 10, > ns_t_wks = 11, > ns_t_ptr = 12, > ns_t_hinfo = 13, > ns_t_minfo = 14, > ns_t_mx = 15, > ns_t_txt = 16, > ns_t_rp = 17, > ns_t_afsdb = 18, > ns_t_x25 = 19, > ns_t_isdn = 20, > ns_t_rt = 21, > ns_t_nsap = 22, > ns_t_nsap_ptr = 23, > ns_t_sig = 24, > ns_t_key = 25, > ns_t_px = 26, > ns_t_gpos = 27, > ns_t_aaaa = 28, > ns_t_loc = 29, > ns_t_nxt = 30, > ns_t_eid = 31, > ns_t_nimloc = 32, > ns_t_srv = 33, > ns_t_atma = 34, > ns_t_naptr = 35, > ns_t_kx = 36, > ns_t_cert = 37, > ns_t_a6 = 38, > ns_t_dname = 39, > ns_t_sink = 40, > ns_t_opt = 41, > ns_t_tsig = 250, > ns_t_ixfr = 251, > ns_t_axfr = 252, > ns_t_mailb = 253, > ns_t_maila = 254, > ns_t_any = 255, > ns_t_zxfr = 256, > ns_t_max = 65536 >} ns_type; ># 318 "/usr/include/arpa/nameser.h" 3 4 >typedef enum __ns_class { > ns_c_invalid = 0, > ns_c_in = 1, > ns_c_2 = 2, > ns_c_chaos = 3, > ns_c_hs = 4, > > ns_c_none = 254, > ns_c_any = 255, > ns_c_max = 65536 >} ns_class; > > > >typedef enum __ns_key_types { > ns_kt_rsa = 1, > ns_kt_dh = 2, > ns_kt_dsa = 3, > ns_kt_private = 254 >} ns_key_types; > >typedef enum __ns_cert_types { > cert_t_pkix = 1, > cert_t_spki = 2, > cert_t_pgp = 3, > cert_t_url = 253, > cert_t_oid = 254 >} ns_cert_types; ># 501 "/usr/include/arpa/nameser.h" 3 4 > >u_int __ns_get16 (const u_char *) __attribute__ ((__nothrow__)); >u_long __ns_get32 (const u_char *) __attribute__ ((__nothrow__)); >void __ns_put16 (u_int, u_char *) __attribute__ ((__nothrow__)); >void __ns_put32 (u_long, u_char *) __attribute__ ((__nothrow__)); >int __ns_initparse (const u_char *, int, ns_msg *) __attribute__ ((__nothrow__)); >int __ns_skiprr (const u_char *, const u_char *, ns_sect, int) > __attribute__ ((__nothrow__)); >int __ns_parserr (ns_msg *, ns_sect, int, ns_rr *) __attribute__ ((__nothrow__)); >int __ns_sprintrr (const ns_msg *, const ns_rr *, > const char *, const char *, char *, size_t) > __attribute__ ((__nothrow__)); >int __ns_sprintrrf (const u_char *, size_t, const char *, > ns_class, ns_type, u_long, const u_char *, > size_t, const char *, const char *, > char *, size_t) __attribute__ ((__nothrow__)); >int __ns_format_ttl (u_long, char *, size_t) __attribute__ ((__nothrow__)); >int __ns_parse_ttl (const char *, u_long *) __attribute__ ((__nothrow__)); >u_int32_t __ns_datetosecs (const char *cp, int *errp) __attribute__ ((__nothrow__)); >int __ns_name_ntol (const u_char *, u_char *, size_t) __attribute__ ((__nothrow__)); >int __ns_name_ntop (const u_char *, char *, size_t) __attribute__ ((__nothrow__)); >int __ns_name_pton (const char *, u_char *, size_t) __attribute__ ((__nothrow__)); >int __ns_name_unpack (const u_char *, const u_char *, > const u_char *, u_char *, size_t) __attribute__ ((__nothrow__)); >int __ns_name_pack (const u_char *, u_char *, int, > const u_char **, const u_char **) __attribute__ ((__nothrow__)); >int __ns_name_uncompress (const u_char *, const u_char *, > const u_char *, char *, size_t) __attribute__ ((__nothrow__)); >int __ns_name_compress (const char *, u_char *, size_t, > const u_char **, const u_char **) __attribute__ ((__nothrow__)); >int __ns_name_skip (const u_char **, const u_char *) __attribute__ ((__nothrow__)); >void __ns_name_rollback (const u_char *, const u_char **, > const u_char **) __attribute__ ((__nothrow__)); >int __ns_sign (u_char *, int *, int, int, void *, > const u_char *, int, u_char *, int *, time_t) __attribute__ ((__nothrow__)); >int __ns_sign_tcp (u_char *, int *, int, int, > ns_tcp_tsig_state *, int) __attribute__ ((__nothrow__)); >int __ns_sign_tcp_init (void *, const u_char *, int, > ns_tcp_tsig_state *) __attribute__ ((__nothrow__)); >u_char *__ns_find_tsig (u_char *, u_char *) __attribute__ ((__nothrow__)); >int __ns_verify (u_char *, int *, void *, const u_char *, int, > u_char *, int *, time_t *, int) __attribute__ ((__nothrow__)); >int __ns_verify_tcp (u_char *, int *, ns_tcp_tsig_state *, int) > __attribute__ ((__nothrow__)); >int __ns_verify_tcp_init (void *, const u_char *, int, > ns_tcp_tsig_state *) __attribute__ ((__nothrow__)); >int __ns_samedomain (const char *, const char *) __attribute__ ((__nothrow__)); >int __ns_subdomain (const char *, const char *) __attribute__ ((__nothrow__)); >int __ns_makecanon (const char *, char *, size_t) __attribute__ ((__nothrow__)); >int __ns_samename (const char *, const char *) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/arpa/nameser_compat.h" 1 3 4 ># 48 "/usr/include/arpa/nameser_compat.h" 3 4 >typedef struct { > unsigned id :16; > > > unsigned qr: 1; > unsigned opcode: 4; > unsigned aa: 1; > unsigned tc: 1; > unsigned rd: 1; > > unsigned ra: 1; > unsigned unused :1; > unsigned ad: 1; > unsigned cd: 1; > unsigned rcode :4; ># 79 "/usr/include/arpa/nameser_compat.h" 3 4 > unsigned qdcount :16; > unsigned ancount :16; > unsigned nscount :16; > unsigned arcount :16; >} HEADER; ># 555 "/usr/include/arpa/nameser.h" 2 3 4 ># 44 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/pwd.h" 1 3 4 ># 28 "/usr/include/pwd.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 34 "/usr/include/pwd.h" 2 3 4 ># 50 "/usr/include/pwd.h" 3 4 >struct passwd >{ > char *pw_name; > char *pw_passwd; > __uid_t pw_uid; > __gid_t pw_gid; > char *pw_gecos; > char *pw_dir; > char *pw_shell; >}; ># 73 "/usr/include/pwd.h" 3 4 >extern void setpwent (void); > > > > > >extern void endpwent (void); > > > > > >extern struct passwd *getpwent (void); ># 111 "/usr/include/pwd.h" 3 4 >extern struct passwd *getpwuid (__uid_t __uid); > > > > > >extern struct passwd *getpwnam (__const char *__name); ># 140 "/usr/include/pwd.h" 3 4 >extern int getpwent_r (struct passwd *__restrict __resultbuf, > char *__restrict __buffer, size_t __buflen, > struct passwd **__restrict __result); > > >extern int getpwuid_r (__uid_t __uid, > struct passwd *__restrict __resultbuf, > char *__restrict __buffer, size_t __buflen, > struct passwd **__restrict __result); > >extern int getpwnam_r (__const char *__restrict __name, > struct passwd *__restrict __resultbuf, > char *__restrict __buffer, size_t __buflen, > struct passwd **__restrict __result); ># 184 "/usr/include/pwd.h" 3 4 > ># 45 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/grp.h" 1 3 4 ># 28 "/usr/include/grp.h" 3 4 > > > > > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 34 "/usr/include/grp.h" 2 3 4 ># 43 "/usr/include/grp.h" 3 4 >struct group > { > char *gr_name; > char *gr_passwd; > __gid_t gr_gid; > char **gr_mem; > }; ># 63 "/usr/include/grp.h" 3 4 >extern void setgrent (void); > > > > > >extern void endgrent (void); > > > > > >extern struct group *getgrent (void); ># 103 "/usr/include/grp.h" 3 4 >extern struct group *getgrgid (__gid_t __gid); > > > > > >extern struct group *getgrnam (__const char *__name); ># 142 "/usr/include/grp.h" 3 4 >extern int getgrgid_r (__gid_t __gid, struct group *__restrict __resultbuf, > char *__restrict __buffer, size_t __buflen, > struct group **__restrict __result); > > > > > >extern int getgrnam_r (__const char *__restrict __name, > struct group *__restrict __resultbuf, > char *__restrict __buffer, size_t __buflen, > struct group **__restrict __result); ># 175 "/usr/include/grp.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 176 "/usr/include/grp.h" 2 3 4 > > >extern int setgroups (size_t __n, __const __gid_t *__groups) __attribute__ ((__nothrow__)); ># 188 "/usr/include/grp.h" 3 4 >extern int getgrouplist (__const char *__user, __gid_t __group, > __gid_t *__groups, int *__ngroups); ># 199 "/usr/include/grp.h" 3 4 >extern int initgroups (__const char *__user, __gid_t __group); > > > > ># 46 "/helios/release/h-2.1.6/basehdrs.h" 2 > > > ># 1 "/usr/include/sys/ioctl.h" 1 3 4 ># 24 "/usr/include/sys/ioctl.h" 3 4 > > > ># 1 "/usr/include/bits/ioctls.h" 1 3 4 ># 24 "/usr/include/bits/ioctls.h" 3 4 ># 1 "/usr/include/asm/ioctls.h" 1 3 4 > > > ># 1 "/usr/include/asm/ioctl.h" 1 3 4 ># 41 "/usr/include/asm/ioctl.h" 3 4 >extern unsigned int __invalid_size_argument_for_IOC; ># 5 "/usr/include/asm/ioctls.h" 2 3 4 ># 25 "/usr/include/bits/ioctls.h" 2 3 4 ># 28 "/usr/include/sys/ioctl.h" 2 3 4 > > ># 1 "/usr/include/bits/ioctl-types.h" 1 3 4 > > > > ># 1 "/usr/include/termios.h" 1 3 4 ># 36 "/usr/include/termios.h" 3 4 > > > > ># 1 "/usr/include/bits/termios.h" 1 3 4 ># 23 "/usr/include/bits/termios.h" 3 4 >typedef unsigned char cc_t; >typedef unsigned int speed_t; >typedef unsigned int tcflag_t; ># 34 "/usr/include/bits/termios.h" 3 4 >struct termios { > tcflag_t c_iflag; > tcflag_t c_oflag; > tcflag_t c_cflag; > tcflag_t c_lflag; > cc_t c_line; > cc_t c_cc[32]; > speed_t c_ispeed; > speed_t c_ospeed; > > >}; ># 223 "/usr/include/bits/termios.h" 3 4 >struct sgttyb { > char sg_ispeed; > char sg_ospeed; > char sg_erase; > char sg_kill; > short sg_flags; >}; > >struct tchars { > char t_intrc; > char t_quitc; > char t_startc; > char t_stopc; > char t_eofc; > char t_brkc; >}; > >struct ltchars { > char t_suspc; > char t_dsuspc; > char t_rprntc; > char t_flushc; > char t_werasc; > char t_lnextc; >}; ># 258 "/usr/include/bits/termios.h" 3 4 >struct winsize { > unsigned short ws_row; > unsigned short ws_col; > unsigned short ws_xpixel; > unsigned short ws_ypixel; >}; > > >struct termio { > unsigned short c_iflag; > unsigned short c_oflag; > unsigned short c_cflag; > unsigned short c_lflag; > unsigned char c_line; > unsigned char c_cc[10]; >}; ># 41 "/usr/include/termios.h" 2 3 4 ># 49 "/usr/include/termios.h" 3 4 >extern speed_t cfgetospeed (__const struct termios *__termios_p) __attribute__ ((__nothrow__)); > > >extern speed_t cfgetispeed (__const struct termios *__termios_p) __attribute__ ((__nothrow__)); > > >extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __attribute__ ((__nothrow__)); > > >extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __attribute__ ((__nothrow__)); > > > >extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __attribute__ ((__nothrow__)); > > > > >extern int tcgetattr (int __fd, struct termios *__termios_p) __attribute__ ((__nothrow__)); > > > >extern int tcsetattr (int __fd, int __optional_actions, > __const struct termios *__termios_p) __attribute__ ((__nothrow__)); > > > > >extern void cfmakeraw (struct termios *__termios_p) __attribute__ ((__nothrow__)); > > > >extern int tcsendbreak (int __fd, int __duration) __attribute__ ((__nothrow__)); > > > > > >extern int tcdrain (int __fd); > > > >extern int tcflush (int __fd, int __queue_selector) __attribute__ ((__nothrow__)); > > > >extern int tcflow (int __fd, int __action) __attribute__ ((__nothrow__)); > > > > >extern __pid_t tcgetsid (int __fd) __attribute__ ((__nothrow__)); > > > > ># 1 "/usr/include/sys/ttydefaults.h" 1 3 4 ># 106 "/usr/include/termios.h" 2 3 4 > > > ># 5 "/usr/include/bits/ioctl-types.h" 2 3 4 ># 31 "/usr/include/sys/ioctl.h" 2 3 4 > > > > > > ># 1 "/usr/include/sys/ttydefaults.h" 1 3 4 ># 38 "/usr/include/sys/ioctl.h" 2 3 4 > > > > >extern int ioctl (int __fd, unsigned long int __request, ...) __attribute__ ((__nothrow__)); > > ># 50 "/helios/release/h-2.1.6/basehdrs.h" 2 > > > ># 1 "/usr/include/setjmp.h" 1 3 4 ># 28 "/usr/include/setjmp.h" 3 4 > > > ># 1 "/usr/include/bits/sigset.h" 1 3 4 ># 32 "/usr/include/setjmp.h" 2 3 4 > > > > >typedef struct __jmp_buf_tag > { > > > > > __jmp_buf __jmpbuf; > int __mask_was_saved; > __sigset_t __saved_mask; > } jmp_buf[1]; > > > > >extern int setjmp (jmp_buf __env) __attribute__ ((__nothrow__)); > > > > > > > >extern int __sigsetjmp (struct __jmp_buf_tag __env[1], int __savemask) __attribute__ ((__nothrow__)); > > > > >extern int _setjmp (struct __jmp_buf_tag __env[1]) __attribute__ ((__nothrow__)); ># 76 "/usr/include/setjmp.h" 3 4 > > > > >extern void longjmp (struct __jmp_buf_tag __env[1], int __val) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > > >extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > > > > > >typedef struct __jmp_buf_tag sigjmp_buf[1]; ># 108 "/usr/include/setjmp.h" 3 4 >extern void siglongjmp (sigjmp_buf __env, int __val) > __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > ># 54 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/errno.h" 1 3 4 ># 32 "/usr/include/errno.h" 3 4 > > > > ># 1 "/usr/include/bits/errno.h" 1 3 4 ># 25 "/usr/include/bits/errno.h" 3 4 ># 1 "/usr/include/linux/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm-generic/errno.h" 1 3 4 > > > ># 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 ># 5 "/usr/include/asm-generic/errno.h" 2 3 4 ># 5 "/usr/include/asm/errno.h" 2 3 4 ># 5 "/usr/include/linux/errno.h" 2 3 4 ># 26 "/usr/include/bits/errno.h" 2 3 4 ># 43 "/usr/include/bits/errno.h" 3 4 >extern int *__errno_location (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); ># 37 "/usr/include/errno.h" 2 3 4 ># 59 "/usr/include/errno.h" 3 4 > ># 56 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/ctype.h" 1 3 4 ># 30 "/usr/include/ctype.h" 3 4 > ># 48 "/usr/include/ctype.h" 3 4 >enum >{ > _ISupper = (1 << (0)), > _ISlower = (1 << (1)), > _ISalpha = (1 << (2)), > _ISdigit = (1 << (3)), > _ISxdigit = (1 << (4)), > _ISspace = (1 << (5)), > _ISprint = (1 << (6)), > _ISgraph = (1 << (7)), > _ISblank = (1 << (8)), > _IScntrl = (1 << (9)), > _ISpunct = (1 << (10)), > _ISalnum = (1 << (11)) >}; ># 81 "/usr/include/ctype.h" 3 4 >extern __const unsigned short int **__ctype_b_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_tolower_loc (void) > __attribute__ ((__const)); >extern __const __int32_t **__ctype_toupper_loc (void) > __attribute__ ((__const)); ># 96 "/usr/include/ctype.h" 3 4 > > > > > > >extern int isalnum (int) __attribute__ ((__nothrow__)); >extern int isalpha (int) __attribute__ ((__nothrow__)); >extern int iscntrl (int) __attribute__ ((__nothrow__)); >extern int isdigit (int) __attribute__ ((__nothrow__)); >extern int islower (int) __attribute__ ((__nothrow__)); >extern int isgraph (int) __attribute__ ((__nothrow__)); >extern int isprint (int) __attribute__ ((__nothrow__)); >extern int ispunct (int) __attribute__ ((__nothrow__)); >extern int isspace (int) __attribute__ ((__nothrow__)); >extern int isupper (int) __attribute__ ((__nothrow__)); >extern int isxdigit (int) __attribute__ ((__nothrow__)); > > > >extern int tolower (int __c) __attribute__ ((__nothrow__)); > > >extern int toupper (int __c) __attribute__ ((__nothrow__)); > > ># 142 "/usr/include/ctype.h" 3 4 >extern int isascii (int __c) __attribute__ ((__nothrow__)); > > > >extern int toascii (int __c) __attribute__ ((__nothrow__)); > > > >extern int _toupper (int) __attribute__ ((__nothrow__)); >extern int _tolower (int) __attribute__ ((__nothrow__)); ># 190 "/usr/include/ctype.h" 3 4 >extern __inline int >__attribute__ ((__nothrow__)) tolower (int __c) >{ > return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c; >} > >extern __inline int >__attribute__ ((__nothrow__)) toupper (int __c) >{ > return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c; >} ># 323 "/usr/include/ctype.h" 3 4 > ># 58 "/helios/release/h-2.1.6/basehdrs.h" 2 > > ># 1 "/usr/include/strings.h" 1 3 4 ># 61 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/limits.h" 1 3 4 ># 63 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/locale.h" 1 3 4 ># 29 "/usr/include/locale.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 30 "/usr/include/locale.h" 2 3 4 ># 1 "/usr/include/bits/locale.h" 1 3 4 ># 27 "/usr/include/bits/locale.h" 3 4 >enum >{ > __LC_CTYPE = 0, > __LC_NUMERIC = 1, > __LC_TIME = 2, > __LC_COLLATE = 3, > __LC_MONETARY = 4, > __LC_MESSAGES = 5, > __LC_ALL = 6, > __LC_PAPER = 7, > __LC_NAME = 8, > __LC_ADDRESS = 9, > __LC_TELEPHONE = 10, > __LC_MEASUREMENT = 11, > __LC_IDENTIFICATION = 12 >}; ># 31 "/usr/include/locale.h" 2 3 4 > > ># 52 "/usr/include/locale.h" 3 4 >struct lconv >{ > > > char *decimal_point; > char *thousands_sep; > > > > > > char *grouping; > > > > > > char *int_curr_symbol; > char *currency_symbol; > char *mon_decimal_point; > char *mon_thousands_sep; > char *mon_grouping; > char *positive_sign; > char *negative_sign; > char int_frac_digits; > char frac_digits; > > char p_cs_precedes; > > char p_sep_by_space; > > char n_cs_precedes; > > char n_sep_by_space; > > > > > > > char p_sign_posn; > char n_sign_posn; ># 112 "/usr/include/locale.h" 3 4 > char __int_p_cs_precedes; > char __int_p_sep_by_space; > char __int_n_cs_precedes; > char __int_n_sep_by_space; > char __int_p_sign_posn; > char __int_n_sign_posn; > >}; > > > > > >extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__)); > > >extern struct lconv *localeconv (void) __attribute__ ((__nothrow__)); > > ># 208 "/usr/include/locale.h" 3 4 > ># 65 "/helios/release/h-2.1.6/basehdrs.h" 2 > ># 1 "/usr/include/stdlib.h" 1 3 4 ># 33 "/usr/include/stdlib.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 326 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 3 4 >typedef long int wchar_t; ># 34 "/usr/include/stdlib.h" 2 3 4 > > ># 96 "/usr/include/stdlib.h" 3 4 > > >typedef struct > { > int quot; > int rem; > } div_t; > > > >typedef struct > { > long int quot; > long int rem; > } ldiv_t; > > > ># 140 "/usr/include/stdlib.h" 3 4 >extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ; > > > > >extern double atof (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern int atoi (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int atol (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ extern long long int atoll (__const char *__nptr) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern double strtod (__const char *__restrict __nptr, > char **__restrict __endptr) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 182 "/usr/include/stdlib.h" 3 4 > > >extern long int strtol (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern unsigned long int strtoul (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int strtoq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtouq (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >__extension__ >extern long long int strtoll (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >__extension__ >extern unsigned long long int strtoull (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > ># 279 "/usr/include/stdlib.h" 3 4 >extern double __strtod_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; >extern float __strtof_internal (__const char *__restrict __nptr, > char **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; >extern long double __strtold_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > >extern long int __strtol_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern unsigned long int __strtoul_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >__extension__ >extern long long int __strtoll_internal (__const char *__restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >__extension__ >extern unsigned long long int __strtoull_internal (__const char * > __restrict __nptr, > char **__restrict __endptr, > int __base, int __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > > > > >extern __inline double >__attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr) >{ > return __strtod_internal (__nptr, __endptr, 0); >} >extern __inline long int >__attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtol_internal (__nptr, __endptr, __base, 0); >} >extern __inline unsigned long int >__attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoul_internal (__nptr, __endptr, __base, 0); >} > ># 364 "/usr/include/stdlib.h" 3 4 >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoll_internal (__nptr, __endptr, __base, 0); >} >__extension__ extern __inline unsigned long long int >__attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base) > >{ > return __strtoull_internal (__nptr, __endptr, __base, 0); >} > > > > >extern __inline double >__attribute__ ((__nothrow__)) atof (__const char *__nptr) >{ > return strtod (__nptr, (char **) ((void *)0)); >} >extern __inline int >__attribute__ ((__nothrow__)) atoi (__const char *__nptr) >{ > return (int) strtol (__nptr, (char **) ((void *)0), 10); >} >extern __inline long int >__attribute__ ((__nothrow__)) atol (__const char *__nptr) >{ > return strtol (__nptr, (char **) ((void *)0), 10); >} > > > > >__extension__ extern __inline long long int >__attribute__ ((__nothrow__)) atoll (__const char *__nptr) >{ > return strtoll (__nptr, (char **) ((void *)0), 10); >} > ># 429 "/usr/include/stdlib.h" 3 4 >extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ; > > >extern long int a64l (__const char *__s) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; ># 445 "/usr/include/stdlib.h" 3 4 >extern long int random (void) __attribute__ ((__nothrow__)); > > >extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > > >extern char *initstate (unsigned int __seed, char *__statebuf, > size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > > >extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > > >struct random_data > { > int32_t *fptr; > int32_t *rptr; > int32_t *state; > int rand_type; > int rand_deg; > int rand_sep; > int32_t *end_ptr; > }; > >extern int random_r (struct random_data *__restrict __buf, > int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int srandom_r (unsigned int __seed, struct random_data *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, > size_t __statelen, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4))); > >extern int setstate_r (char *__restrict __statebuf, > struct random_data *__restrict __buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > >extern int rand (void) __attribute__ ((__nothrow__)); > >extern void srand (unsigned int __seed) __attribute__ ((__nothrow__)); > > > > >extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__)); > > > > > > > >extern double drand48 (void) __attribute__ ((__nothrow__)); >extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int lrand48 (void) __attribute__ ((__nothrow__)); >extern long int nrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int mrand48 (void) __attribute__ ((__nothrow__)); >extern long int jrand48 (unsigned short int __xsubi[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern void srand48 (long int __seedval) __attribute__ ((__nothrow__)); >extern unsigned short int *seed48 (unsigned short int __seed16v[3]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); >extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >struct drand48_data > { > unsigned short int __x[3]; > unsigned short int __old_x[3]; > unsigned short int __c; > unsigned short int __init; > unsigned long long int __a; > }; > > >extern int drand48_r (struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int erand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int lrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int nrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int mrand48_r (struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); >extern int jrand48_r (unsigned short int __xsubi[3], > struct drand48_data *__restrict __buffer, > long int *__restrict __result) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern int srand48_r (long int __seedval, struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > >extern int seed48_r (unsigned short int __seed16v[3], > struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > >extern int lcong48_r (unsigned short int __param[7], > struct drand48_data *__buffer) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); ># 597 "/usr/include/stdlib.h" 3 4 > > > >extern void *realloc (void *__ptr, size_t __size) > __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__)); > >extern void free (void *__ptr) __attribute__ ((__nothrow__)); > > > > >extern void cfree (void *__ptr) __attribute__ ((__nothrow__)); > > > ># 1 "/usr/include/alloca.h" 1 3 4 ># 25 "/usr/include/alloca.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 26 "/usr/include/alloca.h" 2 3 4 > > > > > > > >extern void *alloca (size_t __size) __attribute__ ((__nothrow__)); > > > > > > ># 613 "/usr/include/stdlib.h" 2 3 4 > > > > >extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; ># 626 "/usr/include/stdlib.h" 3 4 > > >extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > > > >extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__)); > ># 658 "/usr/include/stdlib.h" 3 4 > > >extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > >extern char *__secure_getenv (__const char *__name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int setenv (__const char *__name, __const char *__value, int __replace) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); > > >extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__)); > > > > > > >extern int clearenv (void) __attribute__ ((__nothrow__)); ># 698 "/usr/include/stdlib.h" 3 4 >extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 712 "/usr/include/stdlib.h" 3 4 >extern int mkstemp (char *__template) __asm__ ("" "mkstemp64") > __attribute__ ((__nonnull__ (1))) ; ># 729 "/usr/include/stdlib.h" 3 4 >extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > > > > >extern int system (__const char *__command) ; > ># 757 "/usr/include/stdlib.h" 3 4 >extern char *realpath (__const char *__restrict __name, > char *__restrict __resolved) __attribute__ ((__nothrow__)) ; > > > > > > >typedef int (*__compar_fn_t) (__const void *, __const void *); > > > > > > > > > >extern void *bsearch (__const void *__key, __const void *__base, > size_t __nmemb, size_t __size, __compar_fn_t __compar) > __attribute__ ((__nonnull__ (1, 2, 5))) ; > > > >extern void qsort (void *__base, size_t __nmemb, size_t __size, > __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); > > > >extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > > > > > > > > > > > > >extern div_t div (int __numer, int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; >extern ldiv_t ldiv (long int __numer, long int __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ; > ># 822 "/usr/include/stdlib.h" 3 4 >extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; > > > > >extern char *gcvt (double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; > > > > >extern char *qecvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qfcvt (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ; >extern char *qgcvt (long double __value, int __ndigit, char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ; > > > > >extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, > int *__restrict __sign, char *__restrict __buf, > size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > >extern int qecvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); >extern int qfcvt_r (long double __value, int __ndigit, > int *__restrict __decpt, int *__restrict __sign, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5))); > > > > > > > >extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int mbtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ; > > >extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ; > > > >extern size_t mbstowcs (wchar_t *__restrict __pwcs, > __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)); > >extern size_t wcstombs (char *__restrict __s, > __const wchar_t *__restrict __pwcs, size_t __n) > __attribute__ ((__nothrow__)); > ># 910 "/usr/include/stdlib.h" 3 4 >extern int getsubopt (char **__restrict __optionp, > char *__const *__restrict __tokens, > char **__restrict __valuep) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2, 3))) ; > > > > > >extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 935 "/usr/include/stdlib.h" 3 4 >extern int grantpt (int __fd) __attribute__ ((__nothrow__)); > > > >extern int unlockpt (int __fd) __attribute__ ((__nothrow__)); > > > > >extern char *ptsname (int __fd) __attribute__ ((__nothrow__)) ; ># 962 "/usr/include/stdlib.h" 3 4 >extern int getloadavg (double __loadavg[], int __nelem) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 978 "/usr/include/stdlib.h" 3 4 > ># 67 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 152 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 3 4 >typedef int ptrdiff_t; ># 68 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/usr/include/search.h" 1 3 4 ># 26 "/usr/include/search.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 27 "/usr/include/search.h" 2 3 4 > > ># 45 "/usr/include/search.h" 3 4 >extern void insque (void *__elem, void *__prev) __attribute__ ((__nothrow__)); > > >extern void remque (void *__elem) __attribute__ ((__nothrow__)); ># 63 "/usr/include/search.h" 3 4 >typedef enum > { > FIND, > ENTER > } >ACTION; > >typedef struct entry > { > char *key; > void *data; > } >ENTRY; > > >struct _ENTRY; ># 88 "/usr/include/search.h" 3 4 >extern ENTRY *hsearch (ENTRY __item, ACTION __action) __attribute__ ((__nothrow__)); > > >extern int hcreate (size_t __nel) __attribute__ ((__nothrow__)); > > >extern void hdestroy (void) __attribute__ ((__nothrow__)); ># 119 "/usr/include/search.h" 3 4 >typedef enum >{ > preorder, > postorder, > endorder, > leaf >} >VISIT; > > > >extern void *tsearch (__const void *__key, void **__rootp, > __compar_fn_t __compar); > > > >extern void *tfind (__const void *__key, void *__const *__rootp, > __compar_fn_t __compar); > > >extern void *tdelete (__const void *__restrict __key, > void **__restrict __rootp, > __compar_fn_t __compar); > > > >typedef void (*__action_fn_t) (__const void *__nodep, VISIT __value, > int __level); > > > > >extern void twalk (__const void *__root, __action_fn_t __action); ># 165 "/usr/include/search.h" 3 4 >extern void *lfind (__const void *__key, __const void *__base, > size_t *__nmemb, size_t __size, __compar_fn_t __compar); > > > >extern void *lsearch (__const void *__key, void *__base, > size_t *__nmemb, size_t __size, __compar_fn_t __compar); > > ># 69 "/helios/release/h-2.1.6/basehdrs.h" 2 > > ># 1 "/usr/include/unistd.h" 1 3 4 ># 28 "/usr/include/unistd.h" 3 4 > ># 171 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/bits/posix_opt.h" 1 3 4 ># 172 "/usr/include/unistd.h" 2 3 4 > > > ># 1 "/usr/include/bits/environments.h" 1 3 4 ># 23 "/usr/include/bits/environments.h" 3 4 ># 1 "/usr/include/bits/wordsize.h" 1 3 4 ># 24 "/usr/include/bits/environments.h" 2 3 4 ># 176 "/usr/include/unistd.h" 2 3 4 ># 195 "/usr/include/unistd.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 196 "/usr/include/unistd.h" 2 3 4 ># 256 "/usr/include/unistd.h" 3 4 >extern int access (__const char *__name, int __type) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 302 "/usr/include/unistd.h" 3 4 >extern __off64_t lseek (int __fd, __off64_t __offset, int __whence) __asm__ ("" "lseek64") __attribute__ ((__nothrow__)); ># 318 "/usr/include/unistd.h" 3 4 >extern int close (int __fd); > > > > > > >extern ssize_t read (int __fd, void *__buf, size_t __nbytes) ; > > > > > >extern ssize_t write (int __fd, __const void *__buf, size_t __n) ; ># 353 "/usr/include/unistd.h" 3 4 >extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pread64") ; > > >extern ssize_t pwrite (int __fd, __const void *__buf, size_t __nbytes, __off64_t __offset) __asm__ ("" "pwrite64") ; ># 382 "/usr/include/unistd.h" 3 4 >extern int pipe (int __pipedes[2]) __attribute__ ((__nothrow__)) ; ># 391 "/usr/include/unistd.h" 3 4 >extern unsigned int alarm (unsigned int __seconds) __attribute__ ((__nothrow__)); ># 403 "/usr/include/unistd.h" 3 4 >extern unsigned int sleep (unsigned int __seconds); > > > > > > >extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) > __attribute__ ((__nothrow__)); > > > > > > >extern int usleep (__useconds_t __useconds); ># 427 "/usr/include/unistd.h" 3 4 >extern int pause (void); > > > >extern int chown (__const char *__file, __uid_t __owner, __gid_t __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __attribute__ ((__nothrow__)) ; > > > > >extern int lchown (__const char *__file, __uid_t __owner, __gid_t __group) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 455 "/usr/include/unistd.h" 3 4 >extern int chdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern int fchdir (int __fd) __attribute__ ((__nothrow__)) ; ># 469 "/usr/include/unistd.h" 3 4 >extern char *getcwd (char *__buf, size_t __size) __attribute__ ((__nothrow__)) ; ># 482 "/usr/include/unistd.h" 3 4 >extern char *getwd (char *__buf) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) ; > > > > >extern int dup (int __fd) __attribute__ ((__nothrow__)) ; > > >extern int dup2 (int __fd, int __fd2) __attribute__ ((__nothrow__)); > > >extern char **__environ; > > > > > > > >extern int execve (__const char *__path, char *__const __argv[], > char *__const __envp[]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 514 "/usr/include/unistd.h" 3 4 >extern int execv (__const char *__path, char *__const __argv[]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execle (__const char *__path, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execl (__const char *__path, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern int execvp (__const char *__file, char *__const __argv[]) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int execlp (__const char *__file, __const char *__arg, ...) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > >extern int nice (int __inc) __attribute__ ((__nothrow__)) ; > > > > >extern void _exit (int __status) __attribute__ ((__noreturn__)); > > > > > ># 1 "/usr/include/bits/confname.h" 1 3 4 ># 26 "/usr/include/bits/confname.h" 3 4 >enum > { > _PC_LINK_MAX, > > _PC_MAX_CANON, > > _PC_MAX_INPUT, > > _PC_NAME_MAX, > > _PC_PATH_MAX, > > _PC_PIPE_BUF, > > _PC_CHOWN_RESTRICTED, > > _PC_NO_TRUNC, > > _PC_VDISABLE, > > _PC_SYNC_IO, > > _PC_ASYNC_IO, > > _PC_PRIO_IO, > > _PC_SOCK_MAXBUF, > > _PC_FILESIZEBITS, > > _PC_REC_INCR_XFER_SIZE, > > _PC_REC_MAX_XFER_SIZE, > > _PC_REC_MIN_XFER_SIZE, > > _PC_REC_XFER_ALIGN, > > _PC_ALLOC_SIZE_MIN, > > _PC_SYMLINK_MAX, > > _PC_2_SYMLINKS > > }; > > >enum > { > _SC_ARG_MAX, > > _SC_CHILD_MAX, > > _SC_CLK_TCK, > > _SC_NGROUPS_MAX, > > _SC_OPEN_MAX, > > _SC_STREAM_MAX, > > _SC_TZNAME_MAX, > > _SC_JOB_CONTROL, > > _SC_SAVED_IDS, > > _SC_REALTIME_SIGNALS, > > _SC_PRIORITY_SCHEDULING, > > _SC_TIMERS, > > _SC_ASYNCHRONOUS_IO, > > _SC_PRIORITIZED_IO, > > _SC_SYNCHRONIZED_IO, > > _SC_FSYNC, > > _SC_MAPPED_FILES, > > _SC_MEMLOCK, > > _SC_MEMLOCK_RANGE, > > _SC_MEMORY_PROTECTION, > > _SC_MESSAGE_PASSING, > > _SC_SEMAPHORES, > > _SC_SHARED_MEMORY_OBJECTS, > > _SC_AIO_LISTIO_MAX, > > _SC_AIO_MAX, > > _SC_AIO_PRIO_DELTA_MAX, > > _SC_DELAYTIMER_MAX, > > _SC_MQ_OPEN_MAX, > > _SC_MQ_PRIO_MAX, > > _SC_VERSION, > > _SC_PAGESIZE, > > > _SC_RTSIG_MAX, > > _SC_SEM_NSEMS_MAX, > > _SC_SEM_VALUE_MAX, > > _SC_SIGQUEUE_MAX, > > _SC_TIMER_MAX, > > > > > _SC_BC_BASE_MAX, > > _SC_BC_DIM_MAX, > > _SC_BC_SCALE_MAX, > > _SC_BC_STRING_MAX, > > _SC_COLL_WEIGHTS_MAX, > > _SC_EQUIV_CLASS_MAX, > > _SC_EXPR_NEST_MAX, > > _SC_LINE_MAX, > > _SC_RE_DUP_MAX, > > _SC_CHARCLASS_NAME_MAX, > > > _SC_2_VERSION, > > _SC_2_C_BIND, > > _SC_2_C_DEV, > > _SC_2_FORT_DEV, > > _SC_2_FORT_RUN, > > _SC_2_SW_DEV, > > _SC_2_LOCALEDEF, > > > _SC_PII, > > _SC_PII_XTI, > > _SC_PII_SOCKET, > > _SC_PII_INTERNET, > > _SC_PII_OSI, > > _SC_POLL, > > _SC_SELECT, > > _SC_UIO_MAXIOV, > > _SC_IOV_MAX = _SC_UIO_MAXIOV, > > _SC_PII_INTERNET_STREAM, > > _SC_PII_INTERNET_DGRAM, > > _SC_PII_OSI_COTS, > > _SC_PII_OSI_CLTS, > > _SC_PII_OSI_M, > > _SC_T_IOV_MAX, > > > > _SC_THREADS, > > _SC_THREAD_SAFE_FUNCTIONS, > > _SC_GETGR_R_SIZE_MAX, > > _SC_GETPW_R_SIZE_MAX, > > _SC_LOGIN_NAME_MAX, > > _SC_TTY_NAME_MAX, > > _SC_THREAD_DESTRUCTOR_ITERATIONS, > > _SC_THREAD_KEYS_MAX, > > _SC_THREAD_STACK_MIN, > > _SC_THREAD_THREADS_MAX, > > _SC_THREAD_ATTR_STACKADDR, > > _SC_THREAD_ATTR_STACKSIZE, > > _SC_THREAD_PRIORITY_SCHEDULING, > > _SC_THREAD_PRIO_INHERIT, > > _SC_THREAD_PRIO_PROTECT, > > _SC_THREAD_PROCESS_SHARED, > > > _SC_NPROCESSORS_CONF, > > _SC_NPROCESSORS_ONLN, > > _SC_PHYS_PAGES, > > _SC_AVPHYS_PAGES, > > _SC_ATEXIT_MAX, > > _SC_PASS_MAX, > > > _SC_XOPEN_VERSION, > > _SC_XOPEN_XCU_VERSION, > > _SC_XOPEN_UNIX, > > _SC_XOPEN_CRYPT, > > _SC_XOPEN_ENH_I18N, > > _SC_XOPEN_SHM, > > > _SC_2_CHAR_TERM, > > _SC_2_C_VERSION, > > _SC_2_UPE, > > > _SC_XOPEN_XPG2, > > _SC_XOPEN_XPG3, > > _SC_XOPEN_XPG4, > > > _SC_CHAR_BIT, > > _SC_CHAR_MAX, > > _SC_CHAR_MIN, > > _SC_INT_MAX, > > _SC_INT_MIN, > > _SC_LONG_BIT, > > _SC_WORD_BIT, > > _SC_MB_LEN_MAX, > > _SC_NZERO, > > _SC_SSIZE_MAX, > > _SC_SCHAR_MAX, > > _SC_SCHAR_MIN, > > _SC_SHRT_MAX, > > _SC_SHRT_MIN, > > _SC_UCHAR_MAX, > > _SC_UINT_MAX, > > _SC_ULONG_MAX, > > _SC_USHRT_MAX, > > > _SC_NL_ARGMAX, > > _SC_NL_LANGMAX, > > _SC_NL_MSGMAX, > > _SC_NL_NMAX, > > _SC_NL_SETMAX, > > _SC_NL_TEXTMAX, > > > _SC_XBS5_ILP32_OFF32, > > _SC_XBS5_ILP32_OFFBIG, > > _SC_XBS5_LP64_OFF64, > > _SC_XBS5_LPBIG_OFFBIG, > > > _SC_XOPEN_LEGACY, > > _SC_XOPEN_REALTIME, > > _SC_XOPEN_REALTIME_THREADS, > > > _SC_ADVISORY_INFO, > > _SC_BARRIERS, > > _SC_BASE, > > _SC_C_LANG_SUPPORT, > > _SC_C_LANG_SUPPORT_R, > > _SC_CLOCK_SELECTION, > > _SC_CPUTIME, > > _SC_THREAD_CPUTIME, > > _SC_DEVICE_IO, > > _SC_DEVICE_SPECIFIC, > > _SC_DEVICE_SPECIFIC_R, > > _SC_FD_MGMT, > > _SC_FIFO, > > _SC_PIPE, > > _SC_FILE_ATTRIBUTES, > > _SC_FILE_LOCKING, > > _SC_FILE_SYSTEM, > > _SC_MONOTONIC_CLOCK, > > _SC_MULTI_PROCESS, > > _SC_SINGLE_PROCESS, > > _SC_NETWORKING, > > _SC_READER_WRITER_LOCKS, > > _SC_SPIN_LOCKS, > > _SC_REGEXP, > > _SC_REGEX_VERSION, > > _SC_SHELL, > > _SC_SIGNALS, > > _SC_SPAWN, > > _SC_SPORADIC_SERVER, > > _SC_THREAD_SPORADIC_SERVER, > > _SC_SYSTEM_DATABASE, > > _SC_SYSTEM_DATABASE_R, > > _SC_TIMEOUTS, > > _SC_TYPED_MEMORY_OBJECTS, > > _SC_USER_GROUPS, > > _SC_USER_GROUPS_R, > > _SC_2_PBS, > > _SC_2_PBS_ACCOUNTING, > > _SC_2_PBS_LOCATE, > > _SC_2_PBS_MESSAGE, > > _SC_2_PBS_TRACK, > > _SC_SYMLOOP_MAX, > > _SC_STREAMS, > > _SC_2_PBS_CHECKPOINT, > > > _SC_V6_ILP32_OFF32, > > _SC_V6_ILP32_OFFBIG, > > _SC_V6_LP64_OFF64, > > _SC_V6_LPBIG_OFFBIG, > > > _SC_HOST_NAME_MAX, > > _SC_TRACE, > > _SC_TRACE_EVENT_FILTER, > > _SC_TRACE_INHERIT, > > _SC_TRACE_LOG, > > > _SC_LEVEL1_ICACHE_SIZE, > > _SC_LEVEL1_ICACHE_ASSOC, > > _SC_LEVEL1_ICACHE_LINESIZE, > > _SC_LEVEL1_DCACHE_SIZE, > > _SC_LEVEL1_DCACHE_ASSOC, > > _SC_LEVEL1_DCACHE_LINESIZE, > > _SC_LEVEL2_CACHE_SIZE, > > _SC_LEVEL2_CACHE_ASSOC, > > _SC_LEVEL2_CACHE_LINESIZE, > > _SC_LEVEL3_CACHE_SIZE, > > _SC_LEVEL3_CACHE_ASSOC, > > _SC_LEVEL3_CACHE_LINESIZE, > > _SC_LEVEL4_CACHE_SIZE, > > _SC_LEVEL4_CACHE_ASSOC, > > _SC_LEVEL4_CACHE_LINESIZE, > > > > _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, > > _SC_RAW_SOCKETS > > }; > > >enum > { > _CS_PATH, > > > _CS_V6_WIDTH_RESTRICTED_ENVS, > > > _CS_GNU_LIBC_VERSION, > > _CS_GNU_LIBPTHREAD_VERSION, > > > _CS_LFS_CFLAGS = 1000, > > _CS_LFS_LDFLAGS, > > _CS_LFS_LIBS, > > _CS_LFS_LINTFLAGS, > > _CS_LFS64_CFLAGS, > > _CS_LFS64_LDFLAGS, > > _CS_LFS64_LIBS, > > _CS_LFS64_LINTFLAGS, > > > _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, > > _CS_XBS5_ILP32_OFF32_LDFLAGS, > > _CS_XBS5_ILP32_OFF32_LIBS, > > _CS_XBS5_ILP32_OFF32_LINTFLAGS, > > _CS_XBS5_ILP32_OFFBIG_CFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LDFLAGS, > > _CS_XBS5_ILP32_OFFBIG_LIBS, > > _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, > > _CS_XBS5_LP64_OFF64_CFLAGS, > > _CS_XBS5_LP64_OFF64_LDFLAGS, > > _CS_XBS5_LP64_OFF64_LIBS, > > _CS_XBS5_LP64_OFF64_LINTFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_CFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, > > _CS_XBS5_LPBIG_OFFBIG_LIBS, > > _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, > > > _CS_POSIX_V6_ILP32_OFF32_CFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFF32_LIBS, > > _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_ILP32_OFFBIG_LIBS, > > _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, > > _CS_POSIX_V6_LP64_OFF64_CFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LDFLAGS, > > _CS_POSIX_V6_LP64_OFF64_LIBS, > > _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, > > _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS > > }; ># 553 "/usr/include/unistd.h" 2 3 4 > > >extern long int pathconf (__const char *__path, int __name) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > >extern long int fpathconf (int __fd, int __name) __attribute__ ((__nothrow__)); > > >extern long int sysconf (int __name) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > >extern size_t confstr (int __name, char *__buf, size_t __len) __attribute__ ((__nothrow__)); > > > > >extern __pid_t getpid (void) __attribute__ ((__nothrow__)); > > >extern __pid_t getppid (void) __attribute__ ((__nothrow__)); > > > > >extern __pid_t getpgrp (void) __attribute__ ((__nothrow__)); ># 589 "/usr/include/unistd.h" 3 4 >extern __pid_t __getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); > >extern __pid_t getpgid (__pid_t __pid) __attribute__ ((__nothrow__)); > > > > > > >extern int setpgid (__pid_t __pid, __pid_t __pgid) __attribute__ ((__nothrow__)); ># 615 "/usr/include/unistd.h" 3 4 >extern int setpgrp (void) __attribute__ ((__nothrow__)); ># 632 "/usr/include/unistd.h" 3 4 >extern __pid_t setsid (void) __attribute__ ((__nothrow__)); > > > >extern __pid_t getsid (__pid_t __pid) __attribute__ ((__nothrow__)); > > > >extern __uid_t getuid (void) __attribute__ ((__nothrow__)); > > >extern __uid_t geteuid (void) __attribute__ ((__nothrow__)); > > >extern __gid_t getgid (void) __attribute__ ((__nothrow__)); > > >extern __gid_t getegid (void) __attribute__ ((__nothrow__)); > > > > >extern int getgroups (int __size, __gid_t __list[]) __attribute__ ((__nothrow__)) ; ># 665 "/usr/include/unistd.h" 3 4 >extern int setuid (__uid_t __uid) __attribute__ ((__nothrow__)); > > > > >extern int setreuid (__uid_t __ruid, __uid_t __euid) __attribute__ ((__nothrow__)); > > > > >extern int seteuid (__uid_t __uid) __attribute__ ((__nothrow__)); > > > > > > >extern int setgid (__gid_t __gid) __attribute__ ((__nothrow__)); > > > > >extern int setregid (__gid_t __rgid, __gid_t __egid) __attribute__ ((__nothrow__)); > > > > >extern int setegid (__gid_t __gid) __attribute__ ((__nothrow__)); ># 721 "/usr/include/unistd.h" 3 4 >extern __pid_t fork (void) __attribute__ ((__nothrow__)); > > > > > > >extern __pid_t vfork (void) __attribute__ ((__nothrow__)); > > > > > >extern char *ttyname (int __fd) __attribute__ ((__nothrow__)); > > > >extern int ttyname_r (int __fd, char *__buf, size_t __buflen) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))) ; > > > >extern int isatty (int __fd) __attribute__ ((__nothrow__)); > > > > > >extern int ttyslot (void) __attribute__ ((__nothrow__)); > > > > >extern int link (__const char *__from, __const char *__to) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; ># 767 "/usr/include/unistd.h" 3 4 >extern int symlink (__const char *__from, __const char *__to) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; > > > > >extern ssize_t readlink (__const char *__restrict __path, > char *__restrict __buf, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))) ; ># 790 "/usr/include/unistd.h" 3 4 >extern int unlink (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 799 "/usr/include/unistd.h" 3 4 >extern int rmdir (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern __pid_t tcgetpgrp (int __fd) __attribute__ ((__nothrow__)); > > >extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __attribute__ ((__nothrow__)); > > > > > > >extern char *getlogin (void); > > > > > > > >extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))); > > > > >extern int setlogin (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 835 "/usr/include/unistd.h" 3 4 ># 1 "/usr/include/getopt.h" 1 3 4 ># 59 "/usr/include/getopt.h" 3 4 >extern char *optarg; ># 73 "/usr/include/getopt.h" 3 4 >extern int optind; > > > > >extern int opterr; > > > >extern int optopt; ># 152 "/usr/include/getopt.h" 3 4 >extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) > __attribute__ ((__nothrow__)); ># 836 "/usr/include/unistd.h" 2 3 4 > > > > > > > >extern int gethostname (char *__name, size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern int sethostname (__const char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern int sethostid (long int __id) __attribute__ ((__nothrow__)) ; > > > > > >extern int getdomainname (char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; >extern int setdomainname (__const char *__name, size_t __len) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > >extern int vhangup (void) __attribute__ ((__nothrow__)); > > >extern int revoke (__const char *__file) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > > > > > >extern int profil (unsigned short int *__sample_buffer, size_t __size, > size_t __offset, unsigned int __scale) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > >extern int acct (__const char *__name) __attribute__ ((__nothrow__)); > > > >extern char *getusershell (void) __attribute__ ((__nothrow__)); >extern void endusershell (void) __attribute__ ((__nothrow__)); >extern void setusershell (void) __attribute__ ((__nothrow__)); > > > > > >extern int daemon (int __nochdir, int __noclose) __attribute__ ((__nothrow__)) ; > > > > > > >extern int chroot (__const char *__path) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; > > > >extern char *getpass (__const char *__prompt) __attribute__ ((__nonnull__ (1))); ># 921 "/usr/include/unistd.h" 3 4 >extern int fsync (int __fd); > > > > > > >extern long int gethostid (void); > > >extern void sync (void) __attribute__ ((__nothrow__)); > > > > >extern int getpagesize (void) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > > > >extern int getdtablesize (void) __attribute__ ((__nothrow__)); ># 950 "/usr/include/unistd.h" 3 4 >extern int truncate (__const char *__file, __off64_t __length) __asm__ ("" "truncate64") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ; ># 971 "/usr/include/unistd.h" 3 4 >extern int ftruncate (int __fd, __off64_t __length) __asm__ ("" "ftruncate64") __attribute__ ((__nothrow__)) ; ># 988 "/usr/include/unistd.h" 3 4 >extern int brk (void *__addr) __attribute__ ((__nothrow__)) ; > > > > > >extern void *sbrk (intptr_t __delta) __attribute__ ((__nothrow__)); ># 1009 "/usr/include/unistd.h" 3 4 >extern long int syscall (long int __sysno, ...) __attribute__ ((__nothrow__)); ># 1063 "/usr/include/unistd.h" 3 4 >extern int fdatasync (int __fildes) __attribute__ ((__nothrow__)); > > > > > > > >extern char *crypt (__const char *__key, __const char *__salt) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > >extern void encrypt (char *__block, int __edflag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > > > > >extern void swab (__const void *__restrict __from, void *__restrict __to, > ssize_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > > > > > > >extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); ># 1101 "/usr/include/unistd.h" 3 4 > ># 72 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 88 "/helios/release/h-2.1.6/basehdrs.h" ># 1 "/helios/release/h-2.1.6/types.h" 1 ># 14 "/helios/release/h-2.1.6/types.h" >typedef void *Ptr; > >typedef int Boolean; ># 29 "/helios/release/h-2.1.6/types.h" >typedef unsigned char *utf8str; ># 74 "/helios/release/h-2.1.6/types.h" ># 1 "/usr/include/inttypes.h" 1 3 4 ># 35 "/usr/include/inttypes.h" 3 4 >typedef long int __gwchar_t; ># 274 "/usr/include/inttypes.h" 3 4 > ># 288 "/usr/include/inttypes.h" 3 4 >typedef struct > { > long long int quot; > long long int rem; > } imaxdiv_t; > > > > > >extern intmax_t imaxabs (intmax_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern imaxdiv_t imaxdiv (intmax_t __numer, intmax_t __denom) > __attribute__ ((__nothrow__)) __attribute__ ((__const__)); > > >extern intmax_t strtoimax (__const char *__restrict __nptr, > char **__restrict __endptr, int __base) __attribute__ ((__nothrow__)); > > >extern uintmax_t strtoumax (__const char *__restrict __nptr, > char ** __restrict __endptr, int __base) __attribute__ ((__nothrow__)); > > >extern intmax_t wcstoimax (__const __gwchar_t *__restrict __nptr, > __gwchar_t **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)); > > >extern uintmax_t wcstoumax (__const __gwchar_t *__restrict __nptr, > __gwchar_t ** __restrict __endptr, int __base) > __attribute__ ((__nothrow__)); ># 396 "/usr/include/inttypes.h" 3 4 >extern __inline intmax_t >__attribute__ ((__nothrow__)) strtoimax (__const char *__restrict nptr, char **__restrict endptr, int base) > >{ > return __strtoll_internal (nptr, endptr, base, 0); >} ># 414 "/usr/include/inttypes.h" 3 4 >extern __inline uintmax_t >__attribute__ ((__nothrow__)) strtoumax (__const char *__restrict nptr, char **__restrict endptr, int base) > >{ > return __strtoull_internal (nptr, endptr, base, 0); >} > > > >__extension__ >extern long long int __wcstoll_internal (__const __gwchar_t * > __restrict __nptr, > __gwchar_t **__restrict __endptr, > int __base, int __group) __attribute__ ((__nothrow__)); > > >extern __inline intmax_t >__attribute__ ((__nothrow__)) wcstoimax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base) > >{ > return __wcstoll_internal (nptr, endptr, base, 0); >} > > > > >__extension__ >extern unsigned long long int __wcstoull_internal (__const __gwchar_t * > __restrict __nptr, > __gwchar_t ** > __restrict __endptr, > int __base, > int __group) __attribute__ ((__nothrow__)); > > >extern __inline uintmax_t >__attribute__ ((__nothrow__)) wcstoumax (__const __gwchar_t *__restrict nptr, __gwchar_t **__restrict endptr, int base) > >{ > return __wcstoull_internal (nptr, endptr, base, 0); >} > > > > > ># 75 "/helios/release/h-2.1.6/types.h" 2 > > > > > >typedef int8_t int8; >typedef int16_t int16; >typedef int32_t int32; > >typedef int64_t int64; >typedef uint8_t uint8; >typedef uint16_t uint16; >typedef uint32_t uint32; >typedef uint64_t uint64; ># 103 "/helios/release/h-2.1.6/types.h" >typedef uint64 FreeSpace; ># 89 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/queue.h" 1 ># 18 "/helios/release/h-2.1.6/queue.h" >typedef struct Queue { > struct Queue *q_forw; > struct Queue *q_back; >} Queue, *QueuePtr; ># 90 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/relqueue.h" 1 ># 22 "/helios/release/h-2.1.6/relqueue.h" >typedef struct RelQueue { > ptrdiff_t q_forw; > ptrdiff_t q_back; >} RelQueue, *RelQueuePtr; ># 91 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/debug.h" 1 ># 92 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/errbase.h" 1 ># 19 "/helios/release/h-2.1.6/errbase.h" >typedef enum SubsystemErr { > UnixErr = 100000, > PCSErr = 100001, > LibVersionErr = 100002 >} SubsystemErr; > > > > > > > >typedef enum HeliosErrbase { > ErrbaseHellib = 200000, > ErrbaseCurlib = 210000, > ErrbaseCodecs = 220000, > ErrbasePwdlib = 230000, > ErrbaseLicense = 240000, > ErrbaseSfio = 250000, > ErrbaseTiff = 260000, > ErrbaseIflib = 270000, > ErrbaseOpi = 280000, > ErrbaseCom = 290000, > ErrbaseOI = 300000, > ErrbasePrintlib = 310000, > ErrbasePdflib = 320000, > ErrbaseSfdisc = 330000, > ErrbaseURLIO = 340000, > ErrbaseSched = 350000, > ErrbaseCCLLib = 360000, > ErrbaseEvents = 370000, > ErrbaseAuth = 380000, > ErrbaseNotify = 390000, > ErrbaseAppl = 400000, > ErrbaseHelRpc = 410000, > ErrbaseSystem = 0x10000000 >} HeliosErrbase; ># 66 "/helios/release/h-2.1.6/errbase.h" >typedef int HelError; ># 93 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/exitcodes.h" 1 ># 39 "/helios/release/h-2.1.6/exitcodes.h" >enum HeliosExitCode { > ExitCode_OK = 0, > > ExitCode_FirstFatal = 32, > ExitCode_InitLibs = ExitCode_FirstFatal, > ExitCode_ProgResources, > ExitCode_Expired, > ExitCode_Corrupted, > ExitCode_LicenseErr, > ExitCode_BadInstallation, > ExitCode_Usage, > ExitCode_InvalidArgs, > ExitCode_BadConfiguration, > ExitCode_BadPreferences, > ExitCode_NotAuthorized, > ExitCode_BadLogin, > ExitCode_Interrupted, > ExitCode_Network, > ExitCode_Unspecified, > > > ExitCode_FirstRestart = 96, > ExitCode_NoMemory = ExitCode_FirstRestart, > ExitCode_MissingService, > ExitCode_NetworkRestart, > > > ExitCode_LastRestart = 126, > > > > > ExitCode_ExecFailed = 127, > > > > > > > ExitCode_Last = 255 >}; ># 94 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/productbase.h" 1 ># 95 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/byteorder.h" 1 ># 96 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 1 "/helios/release/h-2.1.6/vercheck.h" 1 ># 21 "/helios/release/h-2.1.6/vercheck.h" >typedef struct VersionVar { > char *version; > struct VersionVar *selfRef; >} VersionVar, *VersionVarPtr; ># 96 "/helios/release/h-2.1.6/basehdrs.h" 2 ># 16 "../h/oieps.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 1 > > > > > > ># 1 "/helios/release/libs/sched-5.0.3/h/compat.h" 1 ># 28 "/helios/release/libs/sched-5.0.3/h/compat.h" > time_t win2unixtime(uint64 bozoSecs); ># 39 "/helios/release/libs/sched-5.0.3/h/compat.h" > int HELsystem(const char *s); > > unsigned HELsleep(unsigned secs); > > int HELusleep(unsigned int micro); > > int HELpause(void); > > > > > >extern char *HELoptarg; > >extern int HELoptind; > >extern int HELopterr; > >extern int HELoptopt; > >extern int HELoptreset; > > int HELgetopt(int argc, char *const argv[], const char * optstring); ># 70 "/helios/release/libs/sched-5.0.3/h/compat.h" >int maxGroups(void); ># 147 "/helios/release/libs/sched-5.0.3/h/compat.h" ># 1 "/usr/include/crypt.h" 1 3 4 ># 30 "/usr/include/crypt.h" 3 4 > > > >extern char *crypt (__const char *__key, __const char *__salt) > __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); > > >extern void setkey (__const char *__key) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); > > > >extern void encrypt (char *__block, int __edflag) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); ># 73 "/usr/include/crypt.h" 3 4 > ># 148 "/helios/release/libs/sched-5.0.3/h/compat.h" 2 ># 266 "/helios/release/libs/sched-5.0.3/h/compat.h" > size_t strlcpy(char *dst, const char *src, size_t size); > size_t strlcat(char *dst, const char *src, size_t size); > > > > > int GetUTF8Args (int *argc, char ***argv); ># 797 "/helios/release/libs/sched-5.0.3/h/compat.h" > int SetBlockingMode(int socket, Boolean blocking); ># 8 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/iosched.h" 1 ># 23 "/helios/release/libs/sched-5.0.3/h/iosched.h" >typedef struct { > pid_t pid; > int termSig; > Boolean coreDump; > Boolean stopped; > int status; > > struct rusage ru; > >} ProcInfo, *ProcInfoPtr; > > > > > > > >typedef enum ForkState { > beforeFork, > afterForkParent, > afterForkChild, > forkFailed >} ForkState; > >typedef void (*ForkProcPtr)(Ptr arg, ForkState state, pid_t childPid); > >typedef void (*ChildProcPtr)(Ptr arg, ProcInfoPtr pi); >typedef void (*IOProcPtr)(Ptr arg, int fd); >typedef void (*SignalProcPtr)(int sig); ># 65 "/helios/release/libs/sched-5.0.3/h/iosched.h" >typedef struct { > uint32 valid; ># 77 "/helios/release/libs/sched-5.0.3/h/iosched.h" > uint32 flags; > > > > > > int fdstdin; > int fdstdout; > int fdstderr; > char *workdir; > uid_t uid; > gid_t gid; > char **argv; > char **envOptions; > > > > >} SpawnInfo, *SpawnInfoPtr; > > int InitSched(int majorVersion, int minorVersion, char *ebuf, int ebufsize); > void ExitSched(void); > int ResizeSchedTable(void); > > > > int registerInput(int fd, IOProcPtr infunc, Ptr inarg); > int registerOutput(int fd, IOProcPtr outfunc, Ptr outarg); > int enableSched(int fd); > int disableSched(int fd); > int registerChild(pid_t pid, ChildProcPtr func, Ptr arg); > pid_t spawnProcess(SpawnInfoPtr spip, const char *cmdLine); > int iosched(int waittime); > unsigned msleep(unsigned milli); > SignalProcPtr catchSignal(int sig, SignalProcPtr func); > void enableSignals(void); > void disableSignals(void); > int buildStatus(ProcInfoPtr pi); > int daemonify(void); > void disassociate(void); > void ioYield(void); > >int allocPty(char *slavename); >int setupSlave(char *slavename, int width, int height); >int registerFork(ForkProcPtr func, Ptr arg); >int unRegisterFork(ForkProcPtr func, Ptr arg); >pid_t ioFork(void); > > int availableProcessors(void); ># 141 "/helios/release/libs/sched-5.0.3/h/iosched.h" > int AIOPipe(int *pRead, int *pWrite, int32 flags); ># 153 "/helios/release/libs/sched-5.0.3/h/iosched.h" >typedef struct AIOReadParams *AIOReadParamsPtr; >typedef Boolean (*AIOReadCallback)(AIOReadParamsPtr aiorpp); > >typedef struct AIOReadParams { > > > > > > int fd; > uint8 *buffer; > size_t length; > AIOReadCallback callback; > Ptr uData; > > > > > > size_t avail; > int err; >} AIOReadParams; > > int AIORead(AIOReadParamsPtr aiorpp); > > > > > void AIOCancelRead(AIOReadParamsPtr aiorpp); ># 191 "/helios/release/libs/sched-5.0.3/h/iosched.h" >typedef struct AIOWriteParams *AIOWriteParamsPtr; >typedef Boolean (*AIOWriteCallback)(AIOWriteParamsPtr aiowpp); > >typedef struct AIOWriteParams { > > > > > > int fd; > uint8 *buffer; > size_t length; > AIOWriteCallback callback; > Ptr uData; > > > > > > size_t avail; > int err; >} AIOWriteParams; > > int AIOWrite(AIOWriteParamsPtr aiowpp); > > > > > void AIOCancelWrite(AIOWriteParamsPtr aiowpp); ># 9 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/timer.h" 1 ># 22 "/helios/release/libs/sched-5.0.3/h/timer.h" >struct Timer; > > > > > >typedef void (*TimerProcPtr)(struct Timer *); > >typedef struct Timer { > struct Timer *next; > long delay; > long delta; > TimerProcPtr func; > Ptr userData; >} Timer, *TimerPtr; > > void startTimer(TimerPtr tp); > Boolean stopTimer(TimerPtr tp); > Boolean restartTimer(TimerPtr tp); > void stopAllTimers(void); ># 10 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/mmap.h" 1 ># 34 "/helios/release/libs/sched-5.0.3/h/mmap.h" > int MemMap(off_t *len, uint32 flags, int fd, off_t *off, void **base, void **mem); > int MemUnmap(void *base, off_t size); ># 11 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/delayed.h" 1 ># 28 "/helios/release/libs/sched-5.0.3/h/delayed.h" >struct DelayedCall; > >typedef void (*DelayedProcPtr)(struct DelayedCall *); > >typedef struct DelayedCall { > Queue link; > DelayedProcPtr func; > Ptr userData; >} DelayedCall, *DelayedCallPtr; > > void registerDelayedCall(DelayedCallPtr dp); > Boolean unRegisterDelayedCall(DelayedCallPtr dp); > Boolean runDelayedCallQueue(void); ># 12 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/fsinfo.h" 1 ># 24 "/helios/release/libs/sched-5.0.3/h/fsinfo.h" >typedef struct { > uint64 blockSize; > > > > > uint64 freeBlocks; > uint64 totalBlocks; > uint64 freeFiles; > uint64 totalFiles; > > > > uint64 freeBlocksNoQuota; > uint64 totalBlocksNoQuota; > uint64 freeFilesNoQuota; > uint64 totalFilesNoQuota; > > uint32 flags; > > > >} FSInfo, *FSInfoPtr; > > > > > > > int GetFSInfo(int fd, char *path, uint32 flags, FSInfoPtr result); > int SetQuotaBlockSize(int32 bsize); ># 13 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" 1 ># 40 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" >typedef struct SharedMutex { ># 65 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" > volatile int pid; >} SharedMutex, *SharedMutexPtr; > > int InitializeSharedMutex(SharedMutexPtr sp); > int DestroySharedMutex(SharedMutexPtr sp); > int AquireSharedMutex(SharedMutexPtr sp); > int ReleaseSharedMutex(SharedMutexPtr sp); ># 81 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" >typedef struct SharedArenaHeader { > SharedMutex mutex; > uint32 magic; ># 93 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" > uint32 version; > > ptrdiff_t freeList; > ptrdiff_t allocList; >} SharedArenaHeader, *SharedArenaHeaderPtr; > > > > > > > >typedef struct SharedChunkHeader { > ptrdiff_t next; > ptrdiff_t name; > size_t chunkSize; > size_t userSize; > int refs; >} SharedChunkHeader, *SharedChunkHeaderPtr; ># 121 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" >typedef struct SharedArena { > SharedArenaHeaderPtr header; > void *base; > off_t len; > char *path; > int fd; > size_t size; >} SharedArena, *SharedArenaPtr; > > > > int OpenSharedArena(char *path, int flags, mode_t perms, size_t size, > SharedArenaPtr *sap); > int CloseSharedArena(SharedArenaPtr sap); ># 143 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" >int ForkSharedArena(SharedArenaPtr sap); ># 157 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" > int AllocateSharedChunk(SharedArenaPtr sap, char *name, size_t *size, > Ptr *chunk, Boolean *alloced); > int FreeSharedChunk(SharedArenaPtr sap, Ptr chunk); ># 175 "/helios/release/libs/sched-5.0.3/h/sharedarena.h" > int CopySharedChunk(SharedArenaPtr sap, Ptr chunk, SharedMutexPtr smp, > Ptr *newChunk, Ptr *newBase); > > > > > > >typedef enum ShareErr { > BadSharedArenaVersionErr = ErrbaseSched, > BadSharedArenaMagicErr, > NoSpaceInArenaErr, > BadChunkPtrErr, > NoNamedChunkErr >} ShareErr; ># 14 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 1 "/helios/release/libs/sched-5.0.3/h/sharedlocks.h" 1 ># 18 "/helios/release/libs/sched-5.0.3/h/sharedlocks.h" >typedef struct OplockHolder { > pid_t pid; >} OplockHolder, *OplockHolderPtr; > >typedef struct SharedFileEntry { > RelQueue link; > dev_t dev; > ino_t ino; > uint32 mode; ># 52 "/helios/release/libs/sched-5.0.3/h/sharedlocks.h" > uint32 maxopen; > uint32 openCnt; > char filename[32]; > RelQueue locks; >} SharedFileEntry, *SharedFileEntryPtr; > > > > > > >typedef struct SharedFileRangeLock { > RelQueue link; > pid_t pid; > int32 owner; > int32 fid; > off_t start; > off_t end; > uint32 mode; >} SharedFileRangeLock, *SharedFileRangeLockPtr; > > > > > >typedef struct SharedFileLockHeader { > SharedMutex mutex; > uint32 version; > > RelQueue freefile; > RelQueue freelocks; > int32 nhash; > RelQueue hash[1]; >} SharedFileLockHeader, *SharedFileLockHeaderPtr; > >typedef struct SharedFileLockTable { > SharedArenaPtr sap; > SharedFileLockHeaderPtr shp; >} SharedFileLockTable, *SharedFileLockTablePtr; > > size_t CalcSharedFileLockTableSize(int sessions, int maxfiles, > int maxlocks); > > > > > > > int AllocateSharedFileLockTable(SharedArenaPtr sap, char *tableName, > int sessions, int maxfiles, int maxlocks, SharedFileLockTablePtr *slp); > int FreeSharedFileLockTable(SharedFileLockTablePtr slp); > > > > > > int CleanSharedFileLockTable(SharedFileLockTablePtr slp, pid_t pid); > > > > > > > int OpenSharedFile(SharedFileLockTablePtr slp, int32 owner, > int32 fid, struct stat *sp, uint32 newMode, uint32 maxopen, > char *filename, uint32 *currModeP); > int CloseSharedFile(SharedFileLockTablePtr slp, int32 owner, > int32 fid, struct stat *sp); > > > > > > int GetOplockHolders(SharedFileLockTablePtr slp, struct stat *sp, > OplockHolderPtr ohbase, uint32 maxCnt, uint32 *hcntp); > > > > > > > int SharedFileInfo(SharedFileLockTablePtr slp, struct stat *sp, > uint32 *mode, uint32 *cnt, char *filename, size_t filenameLen); > Boolean SharedFileIsOpen(SharedFileLockTablePtr slp, struct stat *sp); > > > > > > int LockSharedFileRange(SharedFileLockTablePtr slp, int32 owner, > int32 fid, struct stat *sp, off_t start, off_t len, uint32 mode); > int UnlockSharedFileRange(SharedFileLockTablePtr slp, int32 owner, > int32 fid, struct stat *sp, off_t start, off_t len); ># 154 "/helios/release/libs/sched-5.0.3/h/sharedlocks.h" > int TestSharedFileRange(SharedFileLockTablePtr slp, int32 owner, > int32 fid, struct stat *sp, off_t start, off_t *len, uint32 mode); > > > > > > int SetSharedFileMode(SharedFileLockTablePtr slp, int32 owner, > int32 fid, struct stat *sp, uint32 newMode); > >typedef enum ShareLockErr { > DenyConflictErr = ErrbaseSched + 100, > NoMoreLocksErr, > RangeLockedErr, > RangeOverlapsErr, > RangeNotLockedErr, > FileNotOpenErr, > BadLockTableVersionErr, > OplockViolationErr >} ShareLockErr; ># 14 "/helios/release/libs/sched-5.0.3/h/schedlib.h" 2 ># 17 "../h/oieps.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 1 ># 14 "/helios/release/libs/hellib-5.0.0/h/hellib.h" ># 1 "/helios/release/libs/hellib-5.0.0/h/widechar.h" 1 ># 36 "/helios/release/libs/hellib-5.0.0/h/widechar.h" ># 1 "/usr/include/wchar.h" 1 3 4 ># 37 "/usr/include/wchar.h" 3 4 ># 1 "/helios/release/libs/sfio-4.0.8/h/stdio.h" 1 3 4 ># 38 "/usr/include/wchar.h" 2 3 4 ># 48 "/usr/include/wchar.h" 3 4 ># 1 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 1 3 4 ># 355 "/usr/lib/gcc/ppc64-redhat-linux/4.1.1/include/stddef.h" 3 4 >typedef unsigned int wint_t; ># 49 "/usr/include/wchar.h" 2 3 4 ># 76 "/usr/include/wchar.h" 3 4 >typedef struct >{ > int __count; > union > { > wint_t __wch; > char __wchb[4]; > } __value; >} __mbstate_t; ># 93 "/usr/include/wchar.h" 3 4 > > >typedef __mbstate_t mbstate_t; > ># 118 "/usr/include/wchar.h" 3 4 > > > > > >struct tm; > > > > > > > > > >extern wchar_t *wcscpy (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src) __attribute__ ((__nothrow__)); > >extern wchar_t *wcsncpy (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)); > > >extern wchar_t *wcscat (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src) __attribute__ ((__nothrow__)); > >extern wchar_t *wcsncat (wchar_t *__restrict __dest, > __const wchar_t *__restrict __src, size_t __n) > __attribute__ ((__nothrow__)); > > >extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > ># 175 "/usr/include/wchar.h" 3 4 > > > >extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __attribute__ ((__nothrow__)); > > > >extern size_t wcsxfrm (wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__)); > ># 205 "/usr/include/wchar.h" 3 4 > > >extern wchar_t *wcschr (__const wchar_t *__wcs, wchar_t __wc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern wchar_t *wcsrchr (__const wchar_t *__wcs, wchar_t __wc) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > ># 221 "/usr/include/wchar.h" 3 4 > > > >extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > >extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern wchar_t *wcstok (wchar_t *__restrict __s, > __const wchar_t *__restrict __delim, > wchar_t **__restrict __ptr) __attribute__ ((__nothrow__)); > > >extern size_t wcslen (__const wchar_t *__s) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > > >extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); ># 259 "/usr/include/wchar.h" 3 4 > > >extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern int wmemcmp (__const wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) > __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > >extern wchar_t *wmemcpy (wchar_t *__restrict __s1, > __const wchar_t *__restrict __s2, size_t __n) __attribute__ ((__nothrow__)); > > > >extern wchar_t *wmemmove (wchar_t *__s1, __const wchar_t *__s2, size_t __n) > __attribute__ ((__nothrow__)); > > >extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __attribute__ ((__nothrow__)); > ># 291 "/usr/include/wchar.h" 3 4 > > > >extern wint_t btowc (int __c) __attribute__ ((__nothrow__)); > > > >extern int wctob (wint_t __c) __attribute__ ((__nothrow__)); > > > >extern int mbsinit (__const mbstate_t *__ps) __attribute__ ((__nothrow__)) __attribute__ ((__pure__)); > > > >extern size_t mbrtowc (wchar_t *__restrict __pwc, > __const char *__restrict __s, size_t __n, > mbstate_t *__p) __attribute__ ((__nothrow__)); > > >extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > >extern size_t __mbrlen (__const char *__restrict __s, size_t __n, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); >extern size_t mbrlen (__const char *__restrict __s, size_t __n, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > ># 328 "/usr/include/wchar.h" 3 4 >extern wint_t __btowc_alias (int __c) __asm ("btowc"); >extern __inline wint_t >__attribute__ ((__nothrow__)) btowc (int __c) >{ return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' > ? (wint_t) __c : __btowc_alias (__c)); } > >extern int __wctob_alias (wint_t __c) __asm ("wctob"); >extern __inline int >__attribute__ ((__nothrow__)) wctob (wint_t __wc) >{ return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' > ? (int) __wc : __wctob_alias (__wc)); } > > >extern __inline size_t >__attribute__ ((__nothrow__)) mbrlen (__const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) > >{ return (__ps != ((void *)0) > ? mbrtowc (((void *)0), __s, __n, __ps) : __mbrlen (__s, __n, ((void *)0))); } > > > > > >extern size_t mbsrtowcs (wchar_t *__restrict __dst, > __const char **__restrict __src, size_t __len, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > > > >extern size_t wcsrtombs (char *__restrict __dst, > __const wchar_t **__restrict __src, size_t __len, > mbstate_t *__restrict __ps) __attribute__ ((__nothrow__)); > ># 382 "/usr/include/wchar.h" 3 4 >extern int wcwidth (wchar_t __c) __attribute__ ((__nothrow__)); > > > >extern int wcswidth (__const wchar_t *__s, size_t __n) __attribute__ ((__nothrow__)); > > > > > > >extern double wcstod (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr) __attribute__ ((__nothrow__)); ># 407 "/usr/include/wchar.h" 3 4 >extern long int wcstol (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) __attribute__ ((__nothrow__)); > > > >extern unsigned long int wcstoul (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __base) > __attribute__ ((__nothrow__)); ># 431 "/usr/include/wchar.h" 3 4 > ># 502 "/usr/include/wchar.h" 3 4 >extern double __wcstod_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)); >extern float __wcstof_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, int __group) > __attribute__ ((__nothrow__)); >extern long double __wcstold_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __group) __attribute__ ((__nothrow__)); > > > >extern long int __wcstol_internal (__const wchar_t *__restrict __nptr, > wchar_t **__restrict __endptr, > int __base, int __group) __attribute__ ((__nothrow__)); > > > > >extern unsigned long int __wcstoul_internal (__const wchar_t *__restrict __npt, > wchar_t **__restrict __endptr, > int __base, int __group) __attribute__ ((__nothrow__)); ># 549 "/usr/include/wchar.h" 3 4 > > >extern __inline double >__attribute__ ((__nothrow__)) wcstod (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) > >{ return __wcstod_internal (__nptr, __endptr, 0); } >extern __inline long int >__attribute__ ((__nothrow__)) wcstol (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) > >{ return __wcstol_internal (__nptr, __endptr, __base, 0); } >extern __inline unsigned long int >__attribute__ ((__nothrow__)) wcstoul (__const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) > >{ return __wcstoul_internal (__nptr, __endptr, __base, 0); } > ># 611 "/usr/include/wchar.h" 3 4 > > > >extern int fwide (Sfio_t *__fp, int __mode) __attribute__ ((__nothrow__)); > > > > > > >extern int fwprintf (Sfio_t *__restrict __stream, > __const wchar_t *__restrict __format, ...) > ; > > > > >extern int wprintf (__const wchar_t *__restrict __format, ...) > ; > >extern int swprintf (wchar_t *__restrict __s, size_t __n, > __const wchar_t *__restrict __format, ...) > __attribute__ ((__nothrow__)) ; > > > > > >extern int vfwprintf (Sfio_t *__restrict __s, > __const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > > > >extern int vwprintf (__const wchar_t *__restrict __format, > __gnuc_va_list __arg) > ; > > >extern int vswprintf (wchar_t *__restrict __s, size_t __n, > __const wchar_t *__restrict __format, > __gnuc_va_list __arg) > __attribute__ ((__nothrow__)) ; > > > > > > >extern int fwscanf (Sfio_t *__restrict __stream, > __const wchar_t *__restrict __format, ...) > ; > > > > >extern int wscanf (__const wchar_t *__restrict __format, ...) > ; > >extern int swscanf (__const wchar_t *__restrict __s, > __const wchar_t *__restrict __format, ...) > __attribute__ ((__nothrow__)) ; > > ># 707 "/usr/include/wchar.h" 3 4 > > > > > >extern wint_t fgetwc (Sfio_t *__stream); >extern wint_t getwc (Sfio_t *__stream); > > > > > >extern wint_t getwchar (void); > > > > > > >extern wint_t fputwc (wchar_t __wc, Sfio_t *__stream); >extern wint_t putwc (wchar_t __wc, Sfio_t *__stream); > > > > > >extern wint_t putwchar (wchar_t __wc); > > > > > > > >extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, > Sfio_t *__restrict __stream); > > > > > >extern int fputws (__const wchar_t *__restrict __ws, > Sfio_t *__restrict __stream); > > > > > > >extern wint_t ungetwc (wint_t __wc, Sfio_t *__stream); > ># 818 "/usr/include/wchar.h" 3 4 > > > > >extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, > __const wchar_t *__restrict __format, > __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); > ># 846 "/usr/include/wchar.h" 3 4 ># 1 "/usr/include/wctype.h" 1 3 4 ># 63 "/usr/include/wctype.h" 3 4 > > > >typedef unsigned long int wctype_t; > ># 85 "/usr/include/wctype.h" 3 4 >enum >{ > __ISwupper = 0, > __ISwlower = 1, > __ISwalpha = 2, > __ISwdigit = 3, > __ISwxdigit = 4, > __ISwspace = 5, > __ISwprint = 6, > __ISwgraph = 7, > __ISwblank = 8, > __ISwcntrl = 9, > __ISwpunct = 10, > __ISwalnum = 11, > > _ISwupper = (1 << (__ISwupper)), > _ISwlower = (1 << (__ISwlower)), > _ISwalpha = (1 << (__ISwalpha)), > _ISwdigit = (1 << (__ISwdigit)), > _ISwxdigit = (1 << (__ISwxdigit)), > _ISwspace = (1 << (__ISwspace)), > _ISwprint = (1 << (__ISwprint)), > _ISwgraph = (1 << (__ISwgraph)), > _ISwblank = (1 << (__ISwblank)), > _ISwcntrl = (1 << (__ISwcntrl)), > _ISwpunct = (1 << (__ISwpunct)), > _ISwalnum = (1 << (__ISwalnum)) >}; > > > > > > > > > > > > >extern int iswalnum (wint_t __wc) __attribute__ ((__nothrow__)); > > > > > >extern int iswalpha (wint_t __wc) __attribute__ ((__nothrow__)); > > >extern int iswcntrl (wint_t __wc) __attribute__ ((__nothrow__)); > > > >extern int iswdigit (wint_t __wc) __attribute__ ((__nothrow__)); > > > >extern int iswgraph (wint_t __wc) __attribute__ ((__nothrow__)); > > > > >extern int iswlower (wint_t __wc) __attribute__ ((__nothrow__)); > > >extern int iswprint (wint_t __wc) __attribute__ ((__nothrow__)); > > > > >extern int iswpunct (wint_t __wc) __attribute__ ((__nothrow__)); > > > > >extern int iswspace (wint_t __wc) __attribute__ ((__nothrow__)); > > > > >extern int iswupper (wint_t __wc) __attribute__ ((__nothrow__)); > > > > >extern int iswxdigit (wint_t __wc) __attribute__ ((__nothrow__)); ># 185 "/usr/include/wctype.h" 3 4 >extern wctype_t wctype (__const char *__property) __attribute__ ((__nothrow__)); > > > >extern int iswctype (wint_t __wc, wctype_t __desc) __attribute__ ((__nothrow__)); > > > > > > > > > > >typedef __const __int32_t *wctrans_t; > > > > > > > >extern wint_t towlower (wint_t __wc) __attribute__ ((__nothrow__)); > > >extern wint_t towupper (wint_t __wc) __attribute__ ((__nothrow__)); > > > ># 847 "/usr/include/wchar.h" 2 3 4 ># 858 "/usr/include/wchar.h" 3 4 > ># 37 "/helios/release/libs/hellib-5.0.0/h/widechar.h" 2 ># 55 "/helios/release/libs/hellib-5.0.0/h/widechar.h" > wchar_t *wstrdup(wchar_t *string); ># 15 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/helerr.h" 1 ># 14 "/helios/release/libs/hellib-5.0.0/h/helerr.h" >typedef enum HeliosErr { > FirstHellibErr=200000, > > UnknownErr, > SyntaxErr, > KeyNExistErr, > EOFErr, > FailedErr, > WrongArgErr, > SecNExistErr, > NotSuppErr, > PrgExpiredErr, > > OpenErr=200100, > CreateErr, > RenameErr, > ReadErr, > SeekErr, > WriteErr, > NotExistErr, > FileMagicErr, > CloseErr, > IOErr, > PermissionErr, > > NoMemErr=200200, > IllFormatErr, > > NotDoneErr=200300, > AbortedErr, > EscapedErr, > > NotImpErr=200400, > IllModeErr, > NotInitErr, > DefLangUsedErr, > ResourceNotFoundErr, > > BufferTooSmallErr=200500, > IncompleteCharErr, > InvalidByteErr, > > NoMoreMatchesErr=200600, > > UnknownFactoryErr = 200700, > UnknownInterfaceErr, > DuplicateFactoryErr, > NoMoreItemsErr, > DynLoadErr, > NoAggregationErr, > > SockIOCtlErr = 200800, > SockOpenErr >} HeliosErr; ># 16 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/combase.h" 1 ># 54 "/helios/release/libs/hellib-5.0.0/h/combase.h" >typedef struct Interface { struct BASEVTBL *v; } Interface, *InterfacePtr; struct BASEVTBL { int (*queryInterface)(InterfacePtr this, const char *iid, InterfacePtr *ip); uint32 (*addRef)(InterfacePtr this); uint32 (*release)(InterfacePtr this); char *iid; }; ># 75 "/helios/release/libs/hellib-5.0.0/h/combase.h" >typedef struct StringEnum { struct STRENUMVTBL *v; } StringEnum, *StringEnumPtr; struct STRENUMVTBL { int (*queryInterface)(InterfacePtr this, const char *iid, InterfacePtr *ip); uint32 (*addRef)(InterfacePtr this); uint32 (*release)(InterfacePtr this); int (*next)(StringEnumPtr this, int cnt, char **elems, int *actCnt); int (*skip)(StringEnumPtr this, int cnt, int *actCnt); int (*reset)(StringEnumPtr this); int (*clone)(StringEnumPtr this, StringEnumPtr *ep); char *iid; }; ># 98 "/helios/release/libs/hellib-5.0.0/h/combase.h" >typedef struct Factory { struct FACTORYVTBL *v; } Factory, *FactoryPtr; struct FACTORYVTBL { int (*queryInterface)(InterfacePtr this, const char *iid, InterfacePtr *ip); uint32 (*addRef)(InterfacePtr this); uint32 (*release)(InterfacePtr this); int (*factoryCreateInstance)(FactoryPtr this, InterfacePtr outer, const char *iid, InterfacePtr *ip); int (*lockFactory)(FactoryPtr this, Boolean lock); int (*enumInterfaces)(FactoryPtr this, StringEnumPtr *ep); char *iid; }; ># 111 "/helios/release/libs/hellib-5.0.0/h/combase.h" >int InitComponents(void); > > > > > > > int CreateInstance(const char *fid, InterfacePtr outer, const char *iid, > InterfacePtr *ip); > > > > > > int FindFactory(const char *fid, FactoryPtr *fp); > > > > > > int FindAnyFactorySupporting(const char *iid, FactoryPtr *fp); > > > > > > int EnumFactories(const char *iid, StringEnumPtr *ep); > > > > > > > > int EnumSupportedInterfaces(const char *fid, StringEnumPtr *ep); > > > > > > >typedef struct KnownFactory *KnownFactoryPtr; > int RegisterFactory(char *fid, FactoryPtr fp, KnownFactoryPtr *cookie); > int UnregisterFactory(KnownFactoryPtr cookie); > > > > > void UnloadFactories(void); ># 172 "/helios/release/libs/hellib-5.0.0/h/combase.h" > int AddComponentDirectory(char *path); > > > > int RescanComponentDirectories(void); ># 185 "/helios/release/libs/hellib-5.0.0/h/combase.h" >typedef int (*GetFactoryFunc)(const char *path, const char *fid, > const char *iid, FactoryPtr *fp); > > > > > > > >typedef Boolean (*MayUnloadFunc)(void); ># 17 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/ckalloc.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/ckalloc.h" >typedef void (*MemErrProcPtr)(char *p); > > void SetMemErrProc(MemErrProcPtr NewFunc); > Ptr CkAlloc(unsigned int nelems, int nbytes); > void CkFree(Ptr *p); > int MkAlloc(size_t size, Ptr *ptr); > void MkFree(Ptr *ptr); > >extern MemErrProcPtr OutOfMemFunc; ># 18 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/strdup.h" 1 ># 23 "/helios/release/libs/hellib-5.0.0/h/strdup.h" > Ptr StrDup(char *old_string); > > > > > > > > void >StringFree(char *pcString); > char * >StringDup(char *pcString); ># 45 "/helios/release/libs/hellib-5.0.0/h/strdup.h" > void >StringArrayFree(char **ppcStringList); > char ** >StringArrayDup(char **ppcStringList); > char ** >StringArrayArg(char *pcArg); ># 19 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/strutil.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/strutil.h" >typedef struct { > char *env_name; > char *env_default; > char *env_suffix; >} EnvVarType; > > void StrCpTil(char *d, char *s, char *b); > Boolean PrefixStr(char *h, char *l); > Boolean PrefixWCStr(wchar_t *stem, wchar_t *s); > char *LastN(char *p, int n); > char *FindPath(const char *filename, EnvVarType *env, > int env_count, char *buffer, int bufLen); > int GetProductDir(char *productName, char **productDir); > Boolean IsProductInstalled(char *productName); > char *Basename(const char *filename); > char *Dirname(const char *filename, char *dir); > uint32 hashpjw(u_char *s); > time_t parsedate(char *p, int usegmt); > int expireCheck(char *expires); > char *ParseNextField(char *buf, char **context); > void dump(Ptr, int); > int OpenMainExecutable(const char *nameHint, int *fd); > int OpenSharedLibrary(const char *nameHint, int *fd); > Boolean CheckPathForLinks(char* directory); > Boolean IsAbsolutePath(char* path); > int MakeAbsolutePath(char* orig, char* path, size_t pathlen); > > struct passwd *getpwgecos(char *gecos); > > int decodeHex(u_char *d, u_char *s, int cnt); > void encodeHex(u_char *d, u_char *s, int cnt); ># 20 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/strcmpic.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/strcmpic.h" >typedef enum { > SYSTEM_LOWER = 0, > ISO_LOWER, > PC_LOWER, > MAC_LOWER >} LCfunc; > > int StrCmpIcF(char *s1, char *s2, LCfunc lcf); > int StrNCmpIcF(char *s1, char *s2, unsigned int n, LCfunc lcf); > char *StrCcat(char *s1, int c); > void Quote(char *p); > >extern u_char PClower_tab[]; >extern u_char MAClower_tab[]; ># 21 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/countmsg.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/countmsg.h" > void CountMsg(char *src, int *cntLines, int *lmax); ># 22 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/strlist.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/strlist.h" >typedef struct StrItem { > Queue strLink; > char *strVal; > short striFlags; ># 53 "/helios/release/libs/hellib-5.0.0/h/strlist.h" > Ptr strUdata; >} StrItem, *StrItemPtr; > >typedef struct strlist { > Queue strHead; > int strNitems; > int strMaxLen; > short strFlags; ># 76 "/helios/release/libs/hellib-5.0.0/h/strlist.h" >} Strlist, *StrlistPtr; > >typedef int (*StrCmpFunc)(char *, char *); >typedef int (*UserCmpFunc)(StrItem *, StrItem *); >typedef int (*StrTraverseFunc)(StrItem *, Ptr); > > Strlist *CreateStrlist(int flags); > void DestroyStrlist(Strlist *s); > StrItem *CreateStrItem(char *val, Ptr *udata, int flags); > void DestroyStrItem(StrItem *si); > int AddStrItem(Strlist *s, StrItem *si, StrCmpFunc); > int ExtAddStrItem(Strlist *s, StrItem *si, UserCmpFunc); > void RemoveStrItem(Strlist *s, StrItem *si); > StrItem *GetNthItem(Strlist *s, int n); > StrItem *FindStrItem(Strlist *s, char *val, int *ip); > Strlist *BuildVStrlist(int flags, StrCmpFunc ipp, ...); > Strlist *BuildAStrlist(int flags, StrCmpFunc ipp, char **array); > Strlist *BuildLStrlist(int flags, StrCmpFunc ipp, char *line, > int xchar); > Strlist *Build0Strlist(int flags, StrCmpFunc ipp, char *cline); > > Strlist *DupStrlist(Strlist *src); > Strlist *MergeStrlist(Strlist *dest_slp, Strlist *add_slp); > void TraverseStrlist(Strlist *slp, StrTraverseFunc ipp, Ptr arg); > char *SetStrItem(StrItem *sip, char *txt); ># 23 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/getdir.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/getdir.h" >typedef int (*DirFilterFunc)(char *, struct stat *); > > Strlist *GetDir(char *dir, int all, char *dirmrk, DirFilterFunc filter, int flags); ># 24 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/messages.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/messages.h" >extern char global_noStr[]; > > > > > >typedef char *catd_type; > > int InitMessages(char *resname, catd_type *catd); > void ExitMessages(catd_type catd); > char *GetMsg(catd_type catd, int set_num, int msg_num); ># 25 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/profile.h" 1 ># 23 "/helios/release/libs/hellib-5.0.0/h/profile.h" > int WritePrivateProfileStrlist(char *filename, > char *section, > Strlist *slp); > int ReadPrivateProfileStrlist (char *filename, > char *section, > char *key, > Strlist *slp); > int AllocProfileStrlist(Strlist **slpp); > void FreeProfileStrlist(Strlist **slpp); > int GetProfileString(Strlist *slp, char *key, char *default_str, char **buf); > int PutProfileString(Strlist *slp, char *key, char *default_str, char *value); ># 26 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/strtoken.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/strtoken.h" > char *StrToken(char *base, char *src, char *delim); > void FreeToken(char *src); > char *StrNToken(char *base, char *src, uint32 len, char *delim); > void FreeNToken(char *src, uint32 len); > > > > >typedef struct opaque_Tokenizer *Tokenizer; ># 46 "/helios/release/libs/hellib-5.0.0/h/strtoken.h" > Tokenizer NewTokenizer(char *src, ssize_t srcLength, uint32 flags); ># 73 "/helios/release/libs/hellib-5.0.0/h/strtoken.h" > char *ParseToken(Tokenizer t, char *delimiters, uint32 flags, size_t *tokenLength); > > > > > void FreeTokenizer(Tokenizer t); ># 27 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/trc.h" 1 ># 39 "/helios/release/libs/hellib-5.0.0/h/trc.h" >typedef struct { > uint32 len; > uint8 *chr; >} Pstring_t; > >typedef struct { > uint8 lowval; > uint8 hival; > uint32 solve; > uint32 stop; > uint32 off; >} TrcState_t; > >typedef struct { > Pstring_t imap; > Pstring_t omap; > Pstring_t cmap; > char *name; >} TrcEntry_t; > >typedef struct { > TrcState_t *states; > int topstate; > uint32 *transs; > int toptrans; > uint32 *solves; > int topsolve; > TrcEntry_t *entries; > int topentry; >} TrcMach_t; > >typedef int (*TrcIfunc)(int); >typedef int (*TrcOfunc)(void *, int, int); > > void TrcInitCompiler(int, int, int, int); > TrcMach_t *TrcBuildMach(TrcEntry_t *, int, int); > void TrcDestroyMach(TrcMach_t *); > int TrcWriteMap(char *, TrcMach_t *, TrcMach_t *); > int TrcReadMap(char *, TrcMach_t **, TrcMach_t **); > int TrcTrMem(TrcMach_t *, uint8 *, uint8 **, int *, int); > int TrcTrStream(TrcMach_t *, TrcOfunc, TrcIfunc, int); > TrcMach_t *TrcCombineMap(TrcMach_t *, TrcMach_t *); > void TrcReleaseMap(TrcMach_t *); > void TrcError(char *); ># 28 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/resource.h" 1 ># 60 "/helios/release/libs/hellib-5.0.0/h/resource.h" >typedef struct TypeSizeValue { > uint32 flags; > uint32 size; > uint32 base_offset; > int32 offset; > void *value; > char type[31 +1]; > char data_start; >} TypeSizeValue; > >typedef struct ResourceValue { > uint32 flags; > uint32 size; > void *value; > char type[31 +1]; >} ResourceValue; > > > >typedef struct { > Queue link; > Sfio_t *f; > off_t mmap_size; > off_t size; > off_t res_offset; > void *base; > uint8 *resource; > char old_filename[4096 +1]; > char tmp_filename[4096 +1]; >} *ResourceHandle; > >typedef struct { > Strlist *resource_slp; > char language_name[31 +1]; >} LanguageResourcesType; ># 104 "/helios/release/libs/hellib-5.0.0/h/resource.h" > int OpenResource(char *filename, char *mode, ResourceHandle *resh); > int OpenResourceFromFd(int fd, ResourceHandle *resh); > int CloseResource(ResourceHandle resh); > > int HELGetResource(char *res_name, uint32 flags, ResourceValue **res_pptr); > int GetSingleResource(ResourceHandle resh, char *res_name, uint32 flags, ResourceValue **res_pptr); > > void HELFreeResource(ResourceValue *res_ptr); > > int AllocResourceStrlist(Strlist **slpp); > void FreeResourceStrlist(Strlist **slpp); > int ReadResourceStrlist(ResourceHandle resh, char *resname, uint32 flags, Strlist *slp); > int WriteResourceStrlist(ResourceHandle resh, Strlist *slp); > int PutResource(Strlist *slp, char *name, char *type, > uint32 size, Ptr value, uint32 flags); > int RemoveLanguage(ResourceHandle resh, char *language); > > int AllocResourceTocStrlist(Strlist **slpp); > void FreeResourceTocStrlist(Strlist **slpp); > int TocResourceStrlist(ResourceHandle resh, char *language, Strlist *slp); > int TocLanguageStrlist(ResourceHandle resh, Strlist *slp); > int AllocTocLanguageStrlist(Strlist **slpp); > void FreeTocLanguageStrlist(Strlist **slpp); > > int Language2LanguageName(ResourceHandle resh, char *language, char *language_name); > void SetLanguageName(char *name); > > int ReadAllResources(ResourceHandle resh, Strlist *slp); ># 29 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/inithel.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/inithel.h" > int InitHellib(int majorVersion, int minorVersion, char *ebuf, int ebuflen); > void ExitHellib(void); ># 30 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/strerr.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/strerr.h" >typedef const char *(*StrErrFuncPtr)(int errnum); >typedef struct RegisteredErrorFunc *RegisteredErrorFuncPtr; > > int ErrRegister(int range_low, int range_high, StrErrFuncPtr func, > RegisteredErrorFuncPtr *cookie); > int ErrUnRegister(RegisteredErrorFuncPtr cookie); > const char *StrError(HelError errnum); ># 31 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/fileutil.h" 1 ># 23 "/helios/release/libs/hellib-5.0.0/h/fileutil.h" > int MoveFile(char *src, char *dst); > int CreateFullPath(char *path, Boolean mightBeFile, uid_t uid, gid_t gid, mode_t mode); > > > > > > int SetRLimitNoFile(uint32 limit, uint32 *real); ># 32 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/lang.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/lang.h" >typedef int (*RegLangProcPtr)(Ptr); > int SetLang(char *language); > char *GetLang(void); > int RegisterLangChangeFunc(RegLangProcPtr fun, Ptr arg); > int UnRegisterLangChangeFunc(RegLangProcPtr fun, Ptr arg); ># 33 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/argparse.h" 1 ># 22 "/helios/release/libs/hellib-5.0.0/h/argparse.h" >typedef enum ArgType { > ARGT_FLAG, > ARGT_FLAGS, > ARGT_INT, > ARGT_STR, > ARGT_STRD, > ARGT_PROC, > ARGT_INDEX = 0x8000 >} ArgType; > >typedef struct Arg { > char *a_key; > ArgType a_type; > Ptr a_val; > Ptr a_addr; >} Arg, *ArgPtr; ># 52 "/helios/release/libs/hellib-5.0.0/h/argparse.h" > int ReadArgsStrlist (char *filename, > char *section, > char *key, > Strlist *slp); ># 72 "/helios/release/libs/hellib-5.0.0/h/argparse.h" > int WriteArgsStrlist(char *filename, > char *section, > Strlist *slp); > > > > > > int AppendArgsStrlist(char *filename, StrlistPtr slp); > > > > > > int AllocArgsStrlist(Strlist **slpp); > > > > > > void FreeArgsStrlist(Strlist **slpp); ># 103 "/helios/release/libs/hellib-5.0.0/h/argparse.h" > int GetArgsString(Strlist *slp, char *section, char *key, > char *default_str, char **buf); ># 113 "/helios/release/libs/hellib-5.0.0/h/argparse.h" > int PutArgsString(Strlist *slp, char *section, char *key, > char *default_str, char *value); > > > > > > > > int AddArgsString(Strlist *slp, char *section, char *key, char *value); > > > > > > int ArgParse(char *progname, ArgPtr arglist, int flags, char *confname); > > > > > > int ArgDecode(Strlist *section_slp, int flags, char *progname, ArgPtr arglist); > > > > > > int DeleteArgsEntry(Strlist *slp, char *section, char *key); ># 150 "/helios/release/libs/hellib-5.0.0/h/argparse.h" > int GetArgsFlag(Strlist *slp, char *section, char *key, Boolean *value); > > > > > > > int PutArgsFlag(Strlist *slp, char *section, char *key, Boolean value); ># 34 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/argflags.h" 1 ># 24 "/helios/release/libs/hellib-5.0.0/h/argflags.h" >typedef struct { > char *flagName; > u_long flagValue; >} ArgFlag, *ArgFlagPtr; > > u_long ParseFlags(u_long defValue, ArgFlagPtr flags, char *s); > void PrintFlags(char *s, u_long value, ArgFlagPtr flags); ># 35 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/trace.h" 1 ># 29 "/helios/release/libs/hellib-5.0.0/h/trace.h" >typedef struct unused_TraceHandle *TraceHandle; ># 36 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/ntrace.h" 1 ># 74 "/helios/release/libs/hellib-5.0.0/h/ntrace.h" >typedef struct nTraceDebugFlags { > char *name; > uint64 val; > >} nTraceDebugFlags, *nTraceDebugFlagsPtr; > >typedef struct nTraceHandle { > uint64 level; > uint64 lastUsed; > int line; > const char *file; > const char *func; >} nTraceHandle, *nTraceHandlePtr; ># 107 "/helios/release/libs/hellib-5.0.0/h/ntrace.h" > extern nTraceHandlePtr gl_trcHandleP; > > int setNTraceFP(nTraceHandlePtr thp, Sfio_t *fp); > int setNTraceFile(nTraceHandlePtr thp, char *name); > int setNTraceLevel(nTraceHandlePtr thp, char *level); > int setNTraceOpts(nTraceHandlePtr thp, char *opts); > Sfio_t *getNTraceFP(nTraceHandlePtr thp); > nTraceHandlePtr allocNTraceHandle(char *name, nTraceDebugFlags *dfp); > void destroyNTraceHandle(nTraceHandlePtr thp); > int tprintf(char *form, ...); > int tvprintf(char *form, va_list args); > int tvsprintf(char *buf, int size, char *form, va_list args); > void tdump(char *titel, void*data, int len); > > > > > > void SlogTrace(int level, const char *fmt, ...); > > > > > > > >int initHellibNTrace(void); >void exitHellibNTrace(void); ># 37 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/readsl.h" 1 ># 22 "/helios/release/libs/hellib-5.0.0/h/readsl.h" >typedef int (*BusyNoticeFuncPtr)(int curVal, int endVal, Ptr arg); > > int BuildSyslogFileSL(Strlist **slpp, BusyNoticeFuncPtr bnf, Ptr arg, int *cntp, size_t *sizep); > void FreeSyslogFileSL(Strlist **file_slpp); > int BuildSyslogLineSL(Strlist *file_slp, BusyNoticeFuncPtr bnf, size_t size, Ptr arg, Strlist **slpp); > void FreeSyslogLineSL(Strlist **slpp); ># 38 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/slog.h" 1 ># 72 "/helios/release/libs/hellib-5.0.0/h/slog.h" >typedef void (*SlogOutputFunction)(int level, char *message); > > void OpenSlog(char *ident, int logopt, int facility); > void CloseSlog(void); > void SetSlogMask(int maskprio); > void SetSlogMode(int mode); > void SetSlogModeFunction(int mode, SlogOutputFunction func_ptr); > void Slog(int level, const char *fmt, ...); > int MapFacilityName(char *facility); > > void SlogM(int level, char *slogLines[]); > void SyslogM(int level, char *slogLines[]); ># 39 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/syslogreader.h" 1 ># 24 "/helios/release/libs/hellib-5.0.0/h/syslogreader.h" >typedef struct { > Queue link; > time_t date; > char *filename; > uint32 flen; > char *hostname; > uint32 hlen; > char *msg; > uint32 mlen; > char buf[2]; >} SlogEntry, *SlogEntryPtr; > >typedef struct opaque_slogReaderContext *SlogReaderContext; ># 45 "/helios/release/libs/hellib-5.0.0/h/syslogreader.h" > int InitSlogReader(SlogReaderContext *slrp); > > > > void ExitSlogReader(SlogReaderContext slrp); ># 64 "/helios/release/libs/hellib-5.0.0/h/syslogreader.h" > int SyslogRead(SlogReaderContext slrp, QueuePtr slogLines, uint32 *numEntries); > > > > Boolean SyslogChanged(SlogReaderContext slrp, Boolean updateSlrp); > > > > > void SyslogSeek(SlogReaderContext slrp, time_t date); > > > > void FreeSyslogEntry(SlogReaderContext slrp, SlogEntryPtr slogEntryp); ># 40 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/treesearch.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/treesearch.h" >typedef enum { > treePreOrder = 0x01, > treePostOrder = 0x02, > treeEndOrder = 0x04, > treeLeaf = 0x08 >} TreeWalkOrder; > > > > >typedef int (*TreeCompareFunc)(const void *elem1, const void *elem2); >typedef void (*TreeDeleteFunc)(void *elem); >typedef int (*TreeWalkFunc)(TreeWalkOrder order, void *elem, void *arg); > > void *TreeFind(const void *keyElem, void *treeRoot, TreeCompareFunc compFunc); > int TreeSearch(const void *keyElem, void **treeRootPtr, TreeCompareFunc compFunc, void **foundElem); > int TreeWalk(void *treeRoot, TreeWalkOrder interest, int flags, TreeWalkFunc walkFunc, void *arg); > int TreeDelete(const void *keyElem, void **treeRootPtr, TreeCompareFunc compFunc, TreeDeleteFunc delFunc); > int TreeMoveElem(const void *keyElem, void **srcTreeRootPtr, void **dstTreeRootPtr, TreeCompareFunc compFunc, TreeDeleteFunc delFunc); > int TreeMove(void **srcTreeRootPtr, void **dstTreeRootPtr, TreeCompareFunc compFunc, TreeDeleteFunc delFunc); > void TreeDestroy(void **treeRootPtr, TreeDeleteFunc delFunc); ># 41 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/ipacl.h" 1 ># 15 "/helios/release/libs/hellib-5.0.0/h/ipacl.h" >typedef enum { > AllowHost, > DenyHost, > AllowDomain, > DenyDomain >} IPAccessType; > >typedef struct { > Queue link; > IPAccessType type; > union { > struct { > uint32 addr; > uint32 mask; > } s; > struct { > char *domainName; > int len; > } d; > } u; >} IPAccessEntry, *IPAccessEntryPtr; ># 61 "/helios/release/libs/hellib-5.0.0/h/ipacl.h" > int ReadIPAccessList(char *fname, QueuePtr head); > Boolean IPAccessDenied(QueuePtr list, uint32 addr); > void DestroyIPAccessList(QueuePtr head); ># 42 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/unicode.h" 1 ># 104 "/helios/release/libs/hellib-5.0.0/h/unicode.h" >typedef struct UnicodeConversionInterface { struct UNICODECONVERSIONVTBL *v; } UnicodeConversionInterface, *UnicodeConversionInterfacePtr; struct UNICODECONVERSIONVTBL { int (*queryInterface)(InterfacePtr this, const char *iid, InterfacePtr *ip); uint32 (*addRef)(InterfacePtr this); uint32 (*release)(InterfacePtr this); int (*getScriptName)(UnicodeConversionInterfacePtr this, char **scriptName); int (*getFlags)(UnicodeConversionInterfacePtr this, uint32 *flags); int (*script2Unicode)(UnicodeConversionInterfacePtr this, wchar_t *uniBuf, size_t *uniLen, u_char *scriptBuf, size_t scriptLen); int (*unicode2Script)(UnicodeConversionInterfacePtr this, u_char *scriptBuf, size_t *scriptLen, wchar_t *uniBuf, size_t uniLen); int (*script2UnicodeZ)(UnicodeConversionInterfacePtr this, wchar_t *uniBuf, size_t uniLen, u_char *scriptBuf); int (*unicode2ScriptZ)(UnicodeConversionInterfacePtr this, u_char *scriptBuf, size_t scriptLen, wchar_t *uniBuf); int (*script2UnicodeC)(UnicodeConversionInterfacePtr this, wchar_t *unicode, u_char *script, size_t scriptLen); int (*unicode2ScriptC)(UnicodeConversionInterfacePtr this, u_char *script, wchar_t unicode); char *iid; }; > > int FindUnicodeConversion(char *scriptName, > UnicodeConversionInterfacePtr *up); ># 130 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeInit(void); > > > > > > > int Mac2Unicode(wchar_t *uniBuf, size_t *uniLen, u_char *macBuf, size_t macLen); > int Unicode2Mac(u_char *macBuf, size_t *macLen, wchar_t *uniBuf, size_t uniLen); > int Mac2UnicodeZ(wchar_t *uniBuf, size_t uniLen, u_char *macBuf); > int Unicode2MacZ(u_char *macBuf, size_t macLen, wchar_t *uniBuf); > int Mac2UnicodeC(wchar_t *unicode, u_char *script, size_t scriptLen); > int Unicode2MacC(u_char *script, wchar_t unicode); > > > > > > > > int PC2Unicode(wchar_t *uniBuf, size_t *uniLen, u_char *pcBuf, size_t pcLen); > int Unicode2PC(u_char *pcBuf, size_t *pcLen, wchar_t *uniBuf, size_t uniLen); > int PC2UnicodeZ(wchar_t *uniBuf, size_t uniLen, u_char *pcBuf); > int Unicode2PCZ(u_char *pcBuf, size_t pcLen, wchar_t *uniBuf); > int PC2UnicodeC(wchar_t *unicode, u_char *script, size_t scriptLen); > int Unicode2PCC(u_char *script, wchar_t unicode); > > > > > > int IsPC(wchar_t unicode); ># 171 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int IsPC83(wchar_t unicode); > > > > > int IsPC83Lower(wchar_t unicode); > > > > > int IsPC83Upper(wchar_t unicode); > > > > > > > > int Iso2Unicode(wchar_t *uniBuf, size_t *uniLen, u_char *isoBuf, size_t isoLen); > int Unicode2Iso(u_char *isoBuf, size_t *isoLen, wchar_t *uniBuf, size_t uniLen); > int Iso2UnicodeZ(wchar_t *uniBuf, size_t uniLen, u_char *isoBuf); > int Unicode2IsoZ(u_char *isoBuf, size_t isoLen, wchar_t *uniBuf); > int Iso2UnicodeC(wchar_t *unicode, u_char *script, size_t scriptLen); > int Unicode2IsoC(u_char *script, wchar_t unicode); > > > > > > > > int UTF82Unicode(wchar_t *uniBuf, size_t *uniLen, u_char *utfBuf, size_t utfLen); > int Unicode2UTF8(u_char *utfBuf, size_t *utfLen, wchar_t *uniBuf, size_t uniLen); > int UTF82UnicodeZ(wchar_t *uniBuf, size_t uniLen, u_char *utfBuf); > int Unicode2UTF8Z(u_char *utfBuf, size_t utfLen, wchar_t *uniBuf); > int UTF82UnicodeC(wchar_t *unicode, u_char *script, size_t scriptLen); > int Unicode2UTF8C(u_char *script, wchar_t unicode); > > > > > > > > int HeliosUTF82Unicode(wchar_t *uniBuf, size_t *uniLen, u_char *utfBuf, size_t utfLen); > int Unicode2HeliosUTF8(u_char *utfBuf, size_t *utfLen, wchar_t *uniBuf, size_t uniLen); > int Unicode2HeliosUTF8Z(u_char *utfBuf, size_t utflen, wchar_t *uniBuf); > int HeliosUTF82UnicodeZ(wchar_t *uniBuf, size_t unilen, u_char *utfBuf); > int HeliosUTF82UnicodeC(wchar_t *unicode, u_char *script, size_t scriptLen); > int Unicode2HeliosUTF8C(u_char *script, wchar_t unicode); ># 233 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeStrCaseCmp(wchar_t *s1, wchar_t *s2); > int UnicodeStrNCaseCmp(wchar_t *s1, wchar_t *s2, size_t len); > > > > >extern wchar_t *ustringToLower; >extern wchar_t *ustringToUpper; ># 249 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > wchar_t UnicodeComposeChar(wchar_t base, wchar_t comb); ># 264 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeToCompositeUnicode(wchar_t *src, size_t srcLen, wchar_t *dstBuf, size_t *dstLenPtr); ># 278 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeToCompositeUnicodeZ(wchar_t *src, wchar_t *dstBuf, size_t destBufLen); ># 287 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > void UTF8ToCompositeUTF8Z(utf8str src, utf8str dst); ># 302 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeDecomposeChar(wchar_t uc, wchar_t *dstBuf, size_t dstLen); ># 314 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeToDecompositeUnicode(wchar_t *src, size_t srcLen, wchar_t *dstBuf, size_t *dstLenPtr); ># 327 "/helios/release/libs/hellib-5.0.0/h/unicode.h" > int UnicodeToDecompositeUnicodeZ(wchar_t *src, wchar_t *dstBuf, size_t dstLen); ># 43 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/gentab.h" 1 ># 15 "/helios/release/libs/hellib-5.0.0/h/gentab.h" >typedef struct TabFile { > Queue tabHead; > Queue ordHead; > char *tabFile; > time_t lastTabRead; >} TabFile, *TabFilePtr; > >typedef struct TabEntry { > Queue link; > Queue nameHead; > Queue fieldHead; >} TabEntry, *TabEntryPtr; > >typedef struct TabOrder { > Queue link; > > > > char *line; > TabEntryPtr entry; >} TabOrder, *TabOrderPtr; > >typedef struct TabName { > Queue link; > char *name; >} TabName, *TabNamePtr; > >typedef enum TabFieldType { > TabFieldFlag, > TabFieldString, > TabFieldNum >} TabFieldType; > >typedef struct TabField { > Queue link; > TabFieldType fieldType; > char *fieldName; > char *fieldValue; >} TabField, *TabFieldPtr; > > TabFilePtr openTab(char *name); > void closeTab(TabFilePtr ta); > void checkTab(TabFilePtr ta); > TabEntryPtr findTabEntry(TabFilePtr ta, char *entry); > TabFieldPtr findTabField(TabEntryPtr te, char *field); ># 44 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/prefdpi.h" 1 ># 117 "/helios/release/libs/hellib-5.0.0/h/prefdpi.h" >typedef enum { > prefValNone = (2 + 1), > prefValAny, > > prefValPtr, > > prefValDbl, > > prefValU64, > prefValS64, > prefValU32, > prefValS32, > prefValBool, > prefValStr, > prefValStrlist, > > prefValUlist, > > prefValKey > > >} PrefValueType; > >typedef struct { > uint32 len; > void *ptr; >} PrefVoidData, *PrefVoidDataPtr; > > > > >typedef union { > PrefVoidData s; > double dbl; > uint64 u64; > int64 s64; > char *key; > char *str; > char **strlist; > uint32 *ulist; > uint32 u32; > int32 s32; > int boolval; >} PrefValue; > > > > >typedef struct { > Queue link; > PrefValue val; > PrefValueType typ; >} PrefEntry, *PrefEntryPtr; > > > > >struct PrefNode { > struct PrefNode *next; > > struct PrefNode *down; > char *key; > int flags; > PrefEntry ent; > > > > > > > >}; > >typedef struct PrefNode PrefNode, *PrefNodePtr; ># 392 "/helios/release/libs/hellib-5.0.0/h/prefdpi.h" > PrefNodePtr PrefGetnode(PrefNodePtr *rootpp, int flags, ...); > PrefEntryPtr PrefGetent(PrefNodePtr *rootpp, int flags, ...); > PrefNodePtr PrefSetent(PrefNodePtr *rootpp, int flags, PrefValueType type, ...); > PrefNodePtr PrefSetentD(PrefNodePtr *rootpp, int flags, PrefValueType type, ...); > PrefNodePtr PrefSetval(PrefNodePtr *rootpp, int flags, PrefValueType type, ...); > void *PrefGetval(PrefNodePtr *rootpp, int flags, PrefValueType type, ...); > void *PrefGetvalD(PrefNodePtr *rootpp, int flags, PrefValueType type, char *key); > void PrefDelnode(PrefNodePtr *rootpp, ...); > void PrefDelent(PrefNodePtr *rootpp, ...); > void PrefDelval(PrefNodePtr *rootpp, PrefValueType type, ...); > void PrefDelnodeD(PrefNodePtr *rootpp, char *key); > PrefNodePtr PrefGetnodeV(PrefNodePtr *rootpp, int flags, va_list); > PrefNodePtr PrefSetentV(PrefNodePtr *rootpp, int flags, PrefValueType type, va_list); > void PrefDelentV(PrefNodePtr *rootpp, va_list); > void PrefDelsubnodes(PrefNodePtr rootpp); > PrefNodePtr PrefGetnodeD(PrefNodePtr *rootpp, int flags, char *key); > PrefNodePtr PrefEnumentD(PrefNodePtr rootpp, PrefNodePtr lastpp, char *keystr, size_t len); > int PrefGetfile(char *filename, PrefNodePtr *rootpp, int flags); > int PrefSetfile(char *filename, PrefNodePtr rootpp, int flags); > int PrefGetdump(char *filename, PrefNodePtr *rootpp, int flags); > int PrefSetdump(char *filename, PrefNodePtr rootpp, int flags); > void PrefDestroy(PrefNodePtr rootpp); > char *PrefDequoteD(char *quoted, char *unquoted); > char *PrefEnquoteD(char *unquoted, char *quoted); > char *PrefFirstToken(char *key); > char *PrefNextToken(char *key); > void PrefEndToken(char *key); > PrefNodePtr PrefCleantree(PrefNodePtr rootpp); > void ArgsFromPreferencesFile(char *productLoc, ArgPtr args, int argFlags, ...); > void ArgsFromPreferences(PrefNodePtr *rootpp, ArgPtr args, int argFlags, ...); > void ArgsFromPreferencesV(PrefNodePtr *rootpp, ArgPtr args, int argFlags, va_list va); ># 45 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/genfactory.h" 1 ># 18 "/helios/release/libs/hellib-5.0.0/h/genfactory.h" >typedef int (*CreateInstanceFunc)(Ptr udata, InterfacePtr outer, > const char *iid, InterfacePtr *ip); > >typedef struct { > const char *iid; > CreateInstanceFunc createInstance; >} InterfaceTable, *InterfaceTablePtr; > > > > > > > > int CreateGenericFactory(Ptr udata, InterfaceTablePtr tp, uint32 *globRefCnt, > const char *iid, FactoryPtr *fp); ># 46 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/wildmatch.h" 1 ># 38 "/helios/release/libs/hellib-5.0.0/h/wildmatch.h" >typedef struct MatchContext *MatchContextPtr; > > int OpenMatch(char *pattern, MatchContextPtr *context); > > > > > > int NextMatch(MatchContextPtr context, char **result); > int CloseMatch(MatchContextPtr context); > > > > > > Boolean WildMatch(char *text, char *p); > > > > >typedef struct WMatchContext *WMatchContextPtr; ># 69 "/helios/release/libs/hellib-5.0.0/h/wildmatch.h" > int WOpenMatch(wchar_t *pattern, uint32 flags, UnicodeConversionInterfacePtr up, WMatchContextPtr *context); > int WNextMatch(WMatchContextPtr context, wchar_t **result); > int WCloseMatch(WMatchContextPtr context); > Boolean WWildMatch(wchar_t *text, wchar_t *p, uint32 flags); ># 47 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/crc.h" 1 ># 22 "/helios/release/libs/hellib-5.0.0/h/crc.h" > extern const uint32 crc_32_tab[]; > > > > uint32 Crc32File(Sfio_t *fin, off_t cnt); ># 48 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/dynstrings.h" 1 ># 23 "/helios/release/libs/hellib-5.0.0/h/dynstrings.h" >typedef struct opaque_DynStrings *DynStrings; > > > > > > DynStrings CreateDynStrings(void); > > > > > > HelError AppendToDynStrings(DynStrings dyns, const char *fmt, ...); > HelError AppendToDynStringsV(DynStrings dyns, const char *fmt, va_list ap); > > > > > int GetDynStringsCount(DynStrings dyns); ># 51 "/helios/release/libs/hellib-5.0.0/h/dynstrings.h" > char **GetDynStringsArray(DynStrings dyns); > > > > > void DestroyDynStrings(DynStrings dyns); ># 49 "/helios/release/libs/hellib-5.0.0/h/hellib.h" 2 ># 18 "../h/oieps.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/dldpi.h" 1 ># 54 "/helios/release/libs/hellib-5.0.0/h/dldpi.h" >typedef enum { > dlModUnknown = 0x00, > dlModCorrupt = 0x01, > dlModOldversion = 0x02, > dlModNotuse = 0x04, > dlModOpen = 0x08, > dlModLoaded = 0x10, > dlModRegistered = 0x20, > dlModInuse = 0x40, > dlModLocal = 0x80 >} DlRegistrationType; > >typedef enum { > dlSearchPaths = 0x01, > dlSearchDefault = 0x02, > dlSearchEnviron = 0x04 >} DlSearchType; > >typedef enum { > dlEventShutdown = 0x01 >} DlEventType; > > >typedef int (*DlRegFunc)(char *, void *, char *); >typedef int (*DlUnRegFunc)(char *, void *); >typedef int (*DlCallbackFunc)(void *); > > > > > > >typedef struct { > Queue link; > char *name; > char *dpimagic; > DlRegFunc modinit; > DlUnRegFunc modexit; > int type; >} DlModChain, *DlModChainPtr; > >typedef struct { > int type; > char *name; > char *dpimagic; > DlRegFunc modinit; > DlUnRegFunc modexit; >} DlModreg, *DlModregPtr; > > > > >typedef struct { > int type; > char *name; > char *txt; > void *sect; >} DlModtoc, *DlModtocPtr; > >typedef struct Dldpi { > char *dpimagic; > char *dpimodname; > int dpimajor; > int dpiminor; > char *dpimodtxt; > int dpimodmajor; > int dpimodminor; > > int (*dpiinitFunc)(struct Dldpi *, char *); > void (*dpiexitFunc)(struct Dldpi *); > void (*dpinotyFunc)(struct Dldpi *, DlEventType); > > > > > > DlModtocPtr dpimodtoc; > void *dpiUdata; >} Dldpi, *DldpiPtr; > >typedef int (*DlInitFunc)(struct Dldpi *, char *); >typedef void (*DlExitFunc)(struct Dldpi *); >typedef void (*DlNotyFunc)(struct Dldpi *, DlEventType); > >typedef struct { > Queue link; > char *path; > void *handle; > DldpiPtr desc; > DlRegistrationType flags; >} DlChain, *DlChainPtr; > >typedef struct { > Queue link; > DldpiPtr dpi; > DlModtocPtr toc; > DlModChainPtr mod; >} DlModuse, *DlModusePtr; > >typedef struct { > char *envname; > char *envdefault; > char *dirext; >} DlSearchPath, *DlSearchPathPtr; > >extern DlChain DlPluginsHead; >extern DlModChain DlModregsHead; >extern DlModuse DlModusedHead; > > int DlLocate(char *, int, int, DlSearchType, char *, DlSearchPathPtr, DlCallbackFunc); > void DlDislocate(DlChainPtr); > void DlNotify(DlChainPtr, DlEventType); > int DlRegister(DlModregPtr, int, int); > void DlUnregister(DlModregPtr, int); > int DlModRegister(DldpiPtr, DlModtocPtr, char *); > void DlModUnregister(DlModusePtr, int); > void DlBreakPoint(char *fname); ># 19 "../h/oieps.h" 2 ># 1 "/helios/release/libs/hellib-5.0.0/h/prefdpi.h" 1 ># 20 "../h/oieps.h" 2 ># 1 "/helios/release/etalk-4.0.6/h/macfile.h" 1 ># 16 "/helios/release/etalk-4.0.6/h/macfile.h" >typedef struct { > uint32 fi_magic; > uint32 fi_serno; > uint16 fi_version; > uint16 fi_attr; > uint16 fi_open_max; > uint16 fi_flags; > > uint32 fi_backup_cleared; > uint32 fi_id; > uint32 fi_create_time; > uint32 fi_backup_time; > uint8 fi_fndr[32]; >} FileInfo; > >typedef struct { > FileInfo fi; > uint8 fi_shortfilename[12 + 1 + 3]; > uint8 fi_macfilename[32 + 1 + 3]; > uint8 fi_comnt[199 + 1]; >} XFileInfo; ># 168 "/helios/release/etalk-4.0.6/h/macfile.h" >typedef struct { > > uint8 fdType[4]; > uint8 fdCreator[4]; > uint16 fdFlags; > uint16 fdLocation[2]; > uint16 fdFldr; > > uint16 fdIconID; > uint16 fdUnused[4]; > uint16 fdComment; > uint32 fdPutAway; >} fileFinderInfo; > >typedef struct { > uint16 frRect[4]; > uint16 frFlags; > uint16 frLocation[2]; > uint16 frView; > > uint16 frScroll[2]; > uint32 frOpenChain; > uint16 frUnused; > uint16 frComment; > uint16 frPutAway; >} dirFinderInfo; > >typedef union { > dirFinderInfo dir; > fileFinderInfo file; >} FinderInfo; ># 21 "../h/oieps.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OI.h" 1 ># 36 "/helios/release/libs/oi-8.0.0/h/OI.h" >typedef struct { > uint32 len; > uint8 *data; >} OIPstring, *OIPstringPtr; > > > > > > > >typedef struct { > int fstype; > int fspec; > int fcreator; > int ftype; > int fext; >} OIKey, *OIKeyPtr; > >typedef struct { > > > > > uint32 fileid; > >} OIFileID, *OIFileIDPtr; > >typedef struct { > int fstype; > int fspec; > char *fname; > OIFileID fid; >} OIAlias, *OIAliasPtr; > > > > >typedef struct { > time_t gentime; > uint32 genpid; > uint32 gennum; > OIFileID fid; > char *host; > OIKey spec; > char *filename; >} OIRefID, *OIRefIDPtr; > > > > > >typedef enum { > oiCsAny = -1, > oiCsNone = 0, > oiCsSpot, > oiCsBilevel, > oiCsGrayscale, > oiCsIndex, > oiCsRgb, > oiCsHsv, > oiCsHls, > oiCsCmy, > oiCsCmyk, > oiCsMulti, > oiCsDuo, > oiCsYcbcr, > oiCsLab, > oiCsXyz, > oiCsLuv, > oiCsYxy, > oiCsYcc, > oiCsLast >} OIColorSpace; > > > > >typedef size_t OIsize; >typedef off_t OIoffset; > >typedef enum { > oiGoalNone = 0, > oiGoalInfo, > oiGoalPreFlight, > oiGoalConvert, > oiGoalLayout, > oiGoalDisplay, > oiGoalPrint, > oiGoalLast >} OIGoal; ># 135 "/helios/release/libs/oi-8.0.0/h/OI.h" >typedef enum { > oiPhaseNone = 0, > oiPhaseThumbnail, > oiPhaseScreen, > oiPhasePrintable, > oiPhaseLast >} OIPhase; ># 150 "/helios/release/libs/oi-8.0.0/h/OI.h" >typedef struct { > char *execpath; > char *user; > char *printername; > char *spooldir; > char *profilepath; > OIGoal goal; > OIPhase phase; >} OIPib, *OIPibPtr; > > > > > > > >typedef struct { > uint32 flags; > > OIColorSpace incs; > OIColorSpace outcs; > uint32 ininkset; > uint32 outinkset; > uint16 inbpc; > uint16 outbpc; >} OIMgrCaps, *OIMgrCapsPtr; ># 185 "/helios/release/libs/oi-8.0.0/h/OI.h" ># 1 "/helios/release/libs/oi-8.0.0/h/oi_defines.h" 1 ># 19 "/helios/release/libs/oi-8.0.0/h/oi_defines.h" >typedef enum { > > > > oiCompNone = 0, > oiCompCompress, > oiCompCcittrle, > oiCompCcittg3, > oiCompCcittg4, > oiCompJpeg, > oiCompJp2, > oiCompJbig2, > > > > oiCompPbits, > oiCompNext, > oiCompThunder, > oiCompBertline, > oiCompPixar, > > > > oiCompFlate, > oiCompRle, > oiCompLast > >} OIGfxComp; ># 186 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIendian.h" 1 ># 25 "/helios/release/libs/oi-8.0.0/h/OIendian.h" >extern uint16 _oi_s_swap(uint16); >extern uint32 _oi_l_swap(uint32); ># 187 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIerrno.h" 1 ># 141 "/helios/release/libs/oi-8.0.0/h/OIerrno.h" >typedef void *OIMark; > > > > > > int32 OIerrno(char **additionalText, char **mgrname); > void OIseterr(int32 errnum, char *additionalText); > void OIperror(char *prependedText); > void OIperr2mark(OIMark mark, char *prependedText); > void OIseterrvf(int32 errnum, char *fmt, va_list ap); > void OIperrorvf(char *fmt, va_list ap); > void OIperr2markvf(OIMark mark, char *fmt, va_list ap); > int OIerrcnt(void); > int OIerrinx(int32 errnum); > void OIclrerr(void); > void OIrewerr(void); > void OIseterrf(int32 errnum, char *fmt, ...); > void OIperrorf(char *fmt, ...); > void OIperr2markf(OIMark mark, char *fmt, ...); > OIMark OImarkerr(void); > void OIclr2errmark(OIMark); >typedef char *(*OIMerrFunc)(int32 errnum, char *additionalText); ># 188 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIregister.h" 1 ># 39 "/helios/release/libs/oi-8.0.0/h/OIregister.h" >typedef enum { > oiMgrNone = 0, > oiMgrFstype = 1, > oiMgrFspec = 2, > oiMgrItoc = 3, > oiMgrImage = 4, > oiMgrAdjust = 5, > oiMgrColor = 6, > oiMgrRip = 7, > oiMgrMisc = 8, > oiMgrLast = 9, > oiMgrMax = 0x7fffffff >} OIMgrTypeV1; ># 62 "/helios/release/libs/oi-8.0.0/h/OIregister.h" >typedef struct { > OIMgrTypeV1 mgrtype; > int mgrvers; > int mgrprec; > int mgrqual; > void *mgrdesc; >} OIMgrsV1, *OIMgrsV1Ptr; > > > > > > > >typedef struct { > OIPstring fscope; > OIPstring fstype; > OIPstring fspec; > OIPstring fcreator; > OIPstring ftype; > OIPstring fext; > OIMgrsV1Ptr fmgrs; >} OIMgrKeyV1; ># 96 "/helios/release/libs/oi-8.0.0/h/OIregister.h" >typedef OIMgrTypeV1 OIMgrType; >typedef OIMgrKeyV1 OIMgrKey, *OIMgrKeyPtr; >typedef OIMgrsV1 OIMgrs, *OIMgrsPtr; ># 178 "/helios/release/libs/oi-8.0.0/h/OIregister.h" >typedef int (*OIMinitFunc)(OIKeyPtr, char *); >typedef void (*OIMexitFunc)(OIKeyPtr); > void OIschedule(void); > int OIname2mgrtype(OIPstringPtr mgrname); > OIPstringPtr OImgrtype2name(int mgrtype); ># 189 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfs.h" 1 ># 85 "/helios/release/libs/oi-8.0.0/h/OIfs.h" >typedef void *OIFsPtr; > > > > >typedef struct { > Queue link; > uint32 oflags; > int omode; > char *fname; > OIoffset pos; > OIoffset len; > int keycnt; > void *keylst; > OIFsPtr handle; >} OIRfile, *OIRfilePtr; ># 122 "/helios/release/libs/oi-8.0.0/h/OIfs.h" >extern OIPstring OIfstypeStrUnix; > > > > >typedef struct { > int fstype; ># 170 "/helios/release/libs/oi-8.0.0/h/OIfs.h" > mode_t mode; > > > > uid_t uid; > gid_t gid; > nlink_t nlink; > ino_t ino; > dev_t dev; > dev_t rdev; > > > > time_t atime; > time_t mtime; > time_t ctime; > OIoffset size; > OIsize blksize; > uint64 blocks; > uint64 freeblocks; > uint64 freefiles; > uint32 flags; > > > > >} OIStat, *OIStatPtr; > > > > >typedef int (*OIsearchCallbackFunc)(char **names); > > > > > > OIRfilePtr OIRopen(char *path, OIKeyPtr kp, uint32 flags, ...); > int OIRclose(OIRfilePtr fp); > int OIRread(OIRfilePtr fp, void *buf, OIsize len, OIsize *amount); > int OIRwrite(OIRfilePtr fp, void *buf, OIsize len, OIsize *amount); > int OIRseek(OIRfilePtr fp, OIoffset off, int whence, OIoffset *pos); > int OIRfstat(OIRfilePtr fp, OIStatPtr statp, uint32 *flsetp); > int OIRfsetf(OIRfilePtr fp, OIStatPtr statp, uint32 *flsetp); > int OIRstat(char *path, OIKeyPtr kp, uint32 flags, OIStatPtr statp, uint32 *flsetp); > int OIRsetf(char *path, OIKeyPtr kp, uint32 flags, OIStatPtr statp, uint32 *flsetp); > char **OIRglob(char *path, OIKeyPtr kp, uint32 flags); > int OIRunlink(char *path, OIKeyPtr kp, uint32 flags); > int OIRrename(char *src, char *dst, OIKeyPtr kp, uint32 flags); > int OIRbasename(char *path, char *base, OIKeyPtr kp, uint32 flags); > int OIRdirname(char *path, char *dir, OIKeyPtr kp, uint32 flags); > > int OIkeyfromRfile(OIRfilePtr rp, OIKeyPtr kp); > int OIname2fs(OIPstringPtr fstype); > OIPstringPtr OIfs2name(int fstype); > void *OIRfile2mem(OIRfilePtr fp, OIoffset off, OIoffset *len); > int OIRfreeMem(void *mem); > int OIunixFdFromRfile(OIRfilePtr fp, OIoffset *nsize); > int OIParseAttributes(char *option, OIPstringPtr *attrp); > int OIRaddAttribute(OIPstringPtr *attrp, char *key, char *value); > int OIRgetAttribute(OIPstringPtr attr, char *key, char **value); > int OIRcntAttribute(OIPstringPtr attr); > int OIRinxAttribute(OIPstringPtr attr, int inx, char **key, char **value); > int OIRdelAttribute(OIPstringPtr *attrp, char *key); ># 263 "/helios/release/libs/oi-8.0.0/h/OIfs.h" >typedef int (*OIfsBasenameFunc)(char *path, char *base); >typedef int (*OIfsDirnameFunc)(char *path, char *dir); >typedef int (*OIfsMkDirhierFunc)(char *path); >typedef char **(*OIfsGlobFunc)(char *path); >typedef OIFsPtr (*OIfsOpenFunc)(char *path, uint32 *flags, mode_t mode, OIFileIDPtr fid, OIsearchCallbackFunc sfunc, OIPstringPtr attributes); >typedef int (*OIfsReadFunc)(OIFsPtr handle, void *buf, OIsize len, OIsize *amount); >typedef int (*OIfsWriteFunc)(OIFsPtr handle, void *buf, OIsize len, OIsize *amount); >typedef int (*OIfsCloseFunc)(OIFsPtr handle, uint32 flags); >typedef int (*OIfsSeekFunc)(OIFsPtr handle, OIoffset off, int whence, OIoffset *pos); >typedef int (*OIfsFstatFunc)(OIFsPtr handle, OIStatPtr statp, uint32 *flsetp); >typedef int (*OIfsFsetfFunc)(OIFsPtr handle, OIStatPtr statp, uint32 *flsetp); >typedef int (*OIfsRenameFunc)(char *src, char *dst); >typedef int (*OIfsUnlinkFunc)(char *path); >typedef int (*OIfsStatFunc)(char *path, OIStatPtr statp, uint32 *flsetp); >typedef int (*OIfsSetfFunc)(char *path, OIStatPtr statp, uint32 *flsetp); > >typedef struct { > OIfsBasenameFunc basenameFunc; > OIfsDirnameFunc dirnameFunc; > OIfsMkDirhierFunc mkdirhierFunc; > OIfsGlobFunc globFunc; > OIfsOpenFunc openFunc; > OIfsReadFunc readFunc; > OIfsWriteFunc writeFunc; > OIfsCloseFunc closeFunc; > OIfsSeekFunc seekFunc; > OIfsFstatFunc fstatFunc; > OIfsFsetfFunc fsetfFunc; > OIfsRenameFunc renameFunc; > OIfsUnlinkFunc unlinkFunc; > OIfsStatFunc statFunc; > OIfsSetfFunc setfFunc; > OIMinitFunc initFunc; > OIMexitFunc exitFunc; > OIMerrFunc errFunc; >} OIfsMgr, *OIfsMgrPtr; ># 190 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" 1 ># 62 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" >extern OIPstring OIfspecStrNative; >extern OIPstring OIfspecStrEtherShare; >extern OIPstring OIfspecStrPCShare; > > > > >typedef void *OIFspecPtr; > > > > >typedef struct { > int fdtype; > int fdcreator; > uint16 fdlabel; > OIFileID fdid; > uint32 fdflags; ># 98 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" > char *fdcomment; >} OIFinfo, *OIFinfoPtr; ># 111 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" >typedef enum { > oiRegNone = 0, > oiRegBin = 1, > oiRegAlias = 2, > oiRegMrsrc = 3, > oiRegLast = 4 >} OIRegType; ># 142 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" >typedef struct { > Queue link; > OIoffset roff; > OIoffset rlen; >} OIExtent, *OIExtentPtr; > >typedef struct { > Queue link; > OIRegType rtype; > uint32 rid; > uint32 rflags; ># 161 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" > OIoffset rpos; > OIoffset rbase; > OIoffset rlen; > uint32 rorder; > OIRfilePtr rfp; > OIExtent rext; > void *udata; > uint32 fcnt; > uint32 fmode; > void *filter; >} OIRegion, *OIRegionPtr; > > > > >typedef struct { > Queue link; > uint32 oflags; > int omode; > char *fname; > int keycnt; > void *keylst; > void *rfiles; > OIFspecPtr handle; > OIRegion regs; > OIFinfo finfo; >} OILfile, *OILfilePtr; > >typedef enum { > oiFilterPush = 1, > oiFilterPop, > oiFilterFlush, > oiFilterAbort, > oiFilterSizeChg >} OIFilterException; > >typedef struct OIFilter { > int (*exceptFunc)(struct OIFilter *filter, OIFilterException excpt, OILfilePtr fp, uint32 rid, void *rdata); > int (*readFunc)(struct OIFilter *filter, OILfilePtr fp, uint32 rid, void *buf, OIsize len, OIsize *amount, void *rdata); > int (*writeFunc)(struct OIFilter *filter, OILfilePtr fp, uint32 rid, void *buf, OIsize len, OIsize *amount, void *rdata); > int (*seekFunc)(struct OIFilter *filter, OILfilePtr fp, uint32 rid, OIoffset nseek, int whence, OIoffset *noff, void *rdata); > void *handle; >} OIFilter, *OIFilterPtr; > >typedef struct { > OIRegionPtr regp; > OIoffset oldrpos; > OIoffset newrpos; > OIoffset rlen; >} OIRpos, *OIRposPtr; > > > > > > char **OILglob(char *path, OIKeyPtr kp, uint32 flags); > int OILbasename(char *path, char *base, OIKeyPtr kp, uint32 flags); > int OILdirname(char *path, char *dir, OIKeyPtr kp, uint32 flags); > int OILmergename(char *dir, char *component, char *path, OIKeyPtr kp, uint32 flags); > int OILsearchname(char *dir, char *name, char *path, OIKeyPtr kp, uint32 flags); > OILfilePtr OILopen(char *path, OIKeyPtr kp, uint32 flags, ...); > int OILread(OILfilePtr fp, uint32 rid, void *buf, OIsize len, OIsize *amount, void *rdata); > int OILwrite(OILfilePtr fp, uint32 rid, void *buf, OIsize len, OIsize *amount, void *rdata); > int OILseek(OILfilePtr fp, uint32 rid, OIoffset nseek, int whence, OIoffset *noff, void *rdata); > int OILflush(OILfilePtr fp, uint32 rid, void *rdata); > int OILclose(OILfilePtr fp); > int OILfstat(OILfilePtr fp, uint32 rid, OIStatPtr statp, uint32 *flset, void *rdata); > int OILfsetf(OILfilePtr fp, uint32 rid, OIStatPtr statp, uint32 *flset, void *rdata); > int OILsetFinfo(OILfilePtr fp, OIFinfoPtr finfo, uint32 flset); > OIFinfoPtr OILgetFinfo(OIRegionPtr); > int OILstat(char *path, OIKeyPtr kp, uint32 flags, OIStatPtr statp, uint32 *flset); > int OILsetf(char *path, OIKeyPtr kp, uint32 flags, OIStatPtr statp, uint32 *flset); > int OILunlink(char *path, OIKeyPtr kp, uint32 flags); > int OILrename(char *src, char *dst, OIKeyPtr kp, uint32 flags); > int OILpushFilter(OILfilePtr fp, uint32 rid, OIFilterPtr filter); > int OILpopFilter(OILfilePtr fp, uint32 rid, int filternum); > Boolean OILisPrefixName(char *prefix, char *name, OIKeyPtr kp, uint32 flags); > int OILstripname(char *name, char *sub, char *stripped, OIKeyPtr kp, uint32 flags); > void *OILfile2mem(OILfilePtr fp, uint32 rid, void *rdata, OIoffset off, OIoffset *len); > int OILfreeMem(void *mem); > int OILtmpnam(char *path, OIKeyPtr kp, char *tmppath); > > > > > OIRegionPtr OIaddNewRegion(OIRegionPtr reghead, OIRfilePtr rp, OIRegType rtype, ...); > int OIdelRegion(OIRegionPtr reghead, uint32 rid, uint32 flags); > int OIshrinkRegion(OIRegionPtr regp, OIoffset nsize); > OIRegionPtr OIsplitRegion(OIRegionPtr regp, OIoffset nsize, uint32 rorder, void *udata); > int OIseekExtent(OIExtentPtr exthead, OIoffset nseek, OIoffset *cnt, OIoffset *noff); > int OIaddNewExtent(OIRegionPtr regp, OIoffset nseek, OIoffset *cnt, OIoffset *noff); > OIExtentPtr OIinsExtent(OIRegionPtr regp, OIoffset nseek, OIoffset cnt); > int OIdelExtent(OIRegionPtr regp, OIoffset nseek, OIoffset cnt); > OIRegionPtr OIregionFromLfile(OILfilePtr fp, uint32 rid); > int OIname2fspec(OIPstringPtr fspec); > OIPstringPtr OIfspec2name(int fspec); > int OIname2regtype(OIPstringPtr regtype); > OIPstringPtr OIregtype2name(int regtype); > int OIkeyfromLfile(OILfilePtr fp, OIKeyPtr keyp); > int OIcalcRegionPos(OIRegionPtr reghead, OIRfilePtr rp, OIRposPtr *); > int OIfpos2rpos(OIRposPtr parray, int cnt, OIRegionPtr regp, OIoffset fpos, OIoffset *rpos); > int OIunixFdFromRegion(OILfilePtr fp, uint32 rid, OIoffset *noff, OIoffset *nsize); ># 291 "/helios/release/libs/oi-8.0.0/h/OIfspec.h" >typedef char **(*OIfspecGlobFunc)(char *path, OIKeyPtr keyp, uint32 flags); >typedef int (*OIfspecDirnameFunc)(char *path, char *dir, OIKeyPtr keyp, uint32 flags); >typedef int (*OIfspecBasenameFunc)(char *path, char *base, OIKeyPtr keyp, uint32 flags); >typedef int (*OIfspecMergenameFunc)(char *dir, char *component, char *path, OIKeyPtr keyp, uint32 flags); >typedef OIFspecPtr (*OIfspecOpenFunc)(OIRegionPtr reghead, char *path, OIKeyPtr ekey, uint32 *flags, mode_t mode, OIFileIDPtr fid, OIsearchCallbackFunc sfunc, va_list); >typedef int (*OIfspecReadFunc)(OIFspecPtr handle, OIRegionPtr regp, void *buf, OIsize len, OIsize *amount, void *rdata); >typedef int (*OIfspecWriteFunc)(OIFspecPtr handle, OIRegionPtr regp, void *buf, OIsize len, OIsize *amount, void *rdata); >typedef int (*OIfspecSeekFunc)(OIFspecPtr handle, OIRegionPtr regp, OIoffset nseek, int whence, OIoffset *noff, void *rdata); >typedef int (*OIfspecFlushFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIRegionPtr regp, void *rdata); >typedef int (*OIfspecCloseFunc)(OIFspecPtr handle, OIRegionPtr reghead, uint32 flags); >typedef int (*OIfspecUpdregionFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIRegionPtr regp); >typedef int (*OIfspecAddextentFunc)(OIFspecPtr handle, OIRegionPtr regp, OIoffset cnt, OIoffset *noff); >typedef int (*OIfspecFstatFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIRegionPtr regp, OIStatPtr statp, uint32 *flset, void *rdata); >typedef int (*OIfspecFsetfFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIRegionPtr regp, OIStatPtr statp, uint32 *flset, void *rdata); >typedef int (*OIfspecReadFinfoFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIFinfoPtr finfo); >typedef int (*OIfspecWriteFinfoFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIFinfoPtr finfo); >typedef int (*OIfspecSetFinfoFunc)(OIFspecPtr handle, OIRegionPtr reghead, OIFinfoPtr newfinfo, OIFinfoPtr oldfinfo, uint32 flset); >typedef int (*OIfspecStatFunc)(char *path, OIKeyPtr kp, uint32 flags, OIStatPtr statp, uint32 *flset); >typedef int (*OIfspecSetfFunc)(char *path, OIKeyPtr kp, uint32 flags, OIStatPtr statp, uint32 *flset); >typedef int (*OIfspecRenameFunc)(char *src, char *dst, OIKeyPtr kp, uint32 flags); >typedef int (*OIfspecUnlinkFunc)(char *path, OIKeyPtr kp, uint32 flags); > >typedef struct { > OIfspecBasenameFunc basenameFunc; > OIfspecDirnameFunc dirnameFunc; > OIfspecMergenameFunc mergenameFunc; > OIfspecGlobFunc globFunc; > OIfspecOpenFunc openFunc; > OIfspecReadFunc readFunc; > OIfspecWriteFunc writeFunc; > OIfspecSeekFunc seekFunc; > OIfspecFlushFunc flushFunc; > OIfspecCloseFunc closeFunc; > OIfspecUpdregionFunc updRegionFunc; > OIfspecAddextentFunc addExtentFunc; > OIfspecFstatFunc fstatFunc; > OIfspecFsetfFunc fsetfFunc; > OIfspecReadFinfoFunc readFinfoFunc; > OIfspecWriteFinfoFunc writeFinfoFunc; > OIfspecSetFinfoFunc setFinfoFunc; > OIfspecStatFunc statFunc; > OIfspecSetfFunc setfFunc; > OIfspecRenameFunc renameFunc; > OIfspecUnlinkFunc unlinkFunc; > OIMinitFunc initFunc; > OIMexitFunc exitFunc; > OIMerrFunc errFunc; >} OIfspecMgr, *OIfspecMgrPtr; ># 191 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfcreator.h" 1 ># 36 "/helios/release/libs/oi-8.0.0/h/OIfcreator.h" >extern OIPstring OIfcreatorStrUnix; >extern OIPstring OIfcreatorStrAps; > > > > > > int OIname2fcreator(OIPstringPtr); > OIPstringPtr OIfcreator2name(int); > int OIsetFcreatorMapping(int fcreator, char *mapping); > char *OImapFcreator(int fcreator, Boolean usedb); ># 192 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIftype.h" 1 ># 52 "/helios/release/libs/oi-8.0.0/h/OIftype.h" >extern OIPstring OIftypeStrTiff; >extern OIPstring OIftypeStrEpsf; >extern OIPstring OIftypeStrSct; >extern OIPstring OIftypeStrJpeg; >extern OIPstring OIftypeStrJp2; >extern OIPstring OIftypeStrJbig2; >extern OIPstring OIftypeStrAps; >extern OIPstring OIftypeStrPict; >extern OIPstring OIftypeStrMacIcon; >extern OIPstring OIftypeStrAdobePath; >extern OIPstring OIftypeStrBmp; >extern OIPstring OIftypeStrPng; >extern OIPstring OIftypeStrXppv; ># 86 "/helios/release/libs/oi-8.0.0/h/OIftype.h" >extern OIPstring OIsuffixStrTiff; >extern OIPstring OIsuffixStrTiff2; >extern OIPstring OIsuffixStrEpsf; >extern OIPstring OIsuffixStrEpsf2; >extern OIPstring OIsuffixStrSct; >extern OIPstring OIsuffixStrJpeg; >extern OIPstring OIsuffixStrJpeg2; >extern OIPstring OIsuffixStrJp2; >extern OIPstring OIsuffixStrJp22; >extern OIPstring OIsuffixStrJp23; >extern OIPstring OIsuffixStrJbig2; >extern OIPstring OIsuffixStrJbig22; >extern OIPstring OIsuffixStrAps; >extern OIPstring OIsuffixStrPict; >extern OIPstring OIsuffixStrPict2; >extern OIPstring OIsuffixStrBmp; >extern OIPstring OIsuffixStrPng; >extern OIPstring OIsuffixStrXppv; > > > > > int OIname2ftype(OIPstringPtr); > OIPstringPtr OIftype2name(int); > int OIsetFtypeMapping(int fcreator, int ftype, int fext, char *mapping); > char *OImapFtype(int fcreator, int ftype, int fext); > char *OIenumFtype(int fcreator, int ftype, int *fext, void **first); > char *OIftype2suffix(int ftype, int fext); ># 193 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfext.h" 1 ># 41 "/helios/release/libs/oi-8.0.0/h/OIfext.h" >extern OIPstring OIfextStrEpsfdcs1; >extern OIPstring OIfextStrEpsfdcs2; >extern OIPstring OIfextStrEpsfbin; >extern OIPstring OIfextStrEpsfdcs1bin; >extern OIPstring OIfextStrEpsfdcs2bin; >extern OIPstring OIfextStrAps20; >extern OIPstring OIfextStrAps25; >extern OIPstring OIfextStrAps30; ># 72 "/helios/release/libs/oi-8.0.0/h/OIfext.h" > int OIname2fext(OIPstringPtr); > OIPstringPtr OIfext2name(int); ># 194 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfscope.h" 1 ># 59 "/helios/release/libs/oi-8.0.0/h/OIfscope.h" > int OIname2fscope(OIPstringPtr); > OIPstringPtr OIfscope2name(int); ># 195 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIprefs.h" 1 ># 121 "/helios/release/libs/oi-8.0.0/h/OIprefs.h" > int OIsetGlobalPref(int flags, PrefValueType type, ...); > void *OIgetGlobalPref(int flags, PrefValueType type, ...); > > > > int OIsetPrivatPref(int flags, PrefValueType type, ...); > void *OIgetPrivatPref(int flags, PrefValueType type, ...); ># 196 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OImrsrc.h" 1 ># 34 "/helios/release/libs/oi-8.0.0/h/OImrsrc.h" >typedef enum { > oiResCompressed = 0x01, > oiResChanged = 0x02, > oiResPreload = 0x04, > oiResProtected = 0x08, > oiResLocked = 0x10, > oiResPurgable = 0x20, > oiResSysHeap = 0x40, > oiResSysRef = 0x80 >} OIMrsrcAttr; > >typedef struct { > uint8 type[4]; > int16 id; > uint16 attr; > uint32 mode; > > > > > > > > OIPstringPtr name; >} OIMrsrccb, *OIMrsrccbPtr; > > int OIMrsrcOpen(OIRegionPtr regp, Boolean docreate); > void OIMrsrcClose(OIRegionPtr regp); > int OIMrsrcFlush(OIRegionPtr regp); > int OIMrsrcRead(OIRegionPtr regp, void *buf, OIsize len, OIsize *amount, OIMrsrccbPtr mrsrc); > int OIMrsrcWrite(OIRegionPtr regp, void *buf, OIsize len, OIsize *amount, OIMrsrccbPtr mrsrc); > int OIMrsrcSeek(OIRegionPtr regp, OIoffset nseek, int whence, OIoffset *noff, OIMrsrccbPtr mrsrc); > int OIMrsrcFstat(OIRegionPtr regp, OIStatPtr statp, uint32 *flset, OIMrsrccbPtr mrsrc); > int OIMrsrcFsetf(OIRegionPtr regp, OIStatPtr statp, uint32 *flset, OIMrsrccbPtr mrsrc); ># 197 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIrsrcblk.h" 1 ># 23 "/helios/release/libs/oi-8.0.0/h/OIrsrcblk.h" >typedef void *OIRsrcBlkPtr; > >typedef struct { > Queue link; > int16 id; > uint32 type; > > > > > OIPstringPtr name; > OIPstringPtr data; >} OI_MRsrcInfo, *OI_MRsrcInfoPtr; ># 52 "/helios/release/libs/oi-8.0.0/h/OIrsrcblk.h" >typedef struct { > time_t modDate; > uint8 useType[4]; > uint8 resType[4]; > int16 resID; > int16 rgnCode; >} OIPnotItem, *OIPnotItemPtr; > >typedef struct { > time_t modDate; > int16 version; > uint8 resType[4]; > int16 resID; > int16 numResItems; > OIPnotItem resItem[1]; >} OIPnot, *OIPnotPtr; ># 101 "/helios/release/libs/oi-8.0.0/h/OIrsrcblk.h" > OIRsrcBlkPtr OIopenRsrcBlk(uint8 *mem, OIsize len); > int OIcloseRsrcBlk(OIRsrcBlkPtr handle, uint8 **memp, OIsize *lenp); > int OIgetBlkRsrc(OIRsrcBlkPtr handle, uint8* type, int16 id, OIPstringPtr rsrcdata, OIPstringPtr rsrcname); > int OIgetBlkRsrcByName(OIRsrcBlkPtr handle, uint8 *type, OIPstringPtr rsrcname, OIPstringPtr rsrcdata); > int OIaddBlkRsrc(OIRsrcBlkPtr handle, uint8* type, int16 id, OIPstringPtr rsrcdata, OIPstringPtr rsrcname); > int OIdelBlkRsrc(OIRsrcBlkPtr handle, uint8* type, int16 id); > int OIgetMultiBlkRsrc(OIRsrcBlkPtr handle, uint8* type, int16 minid, int16 maxid, Queue *rsrcinfo); > int OIaddMultiBlkRsrc(OIRsrcBlkPtr handle, uint8* type, Queue *rsrcinfo); > void OIdeleteMultiRsrcElem(OI_MRsrcInfoPtr actinfo); > Boolean OIcheckBlkRsrc(OIRsrcBlkPtr handle, uint8* type, int16 minid, int16 maxid); > > > void OIPrintPrsrcInfo(OIRsrcBlkPtr handle); ># 198 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" 1 ># 206 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef void *OIInkPtr; > > >typedef enum { > > OI_INK_SPOT = 0x00000001, > > OI_INK_SEPARATION = 0x00000002, > > > > > OI_INK_MINISHIGHCOLOR = 0x00000004, > > > > > > > OI_INK_CUSTOMORDER = 0x00000008, > > OI_INK_MASK = 0x00000010, > > OI_INK_ALPHA = 0x00000020 >} OIGfxInkFlags; ># 240 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef struct { > char *inkName; > uint32 flags; > OIColorSpace inkCs; > double *cvals; > double opacity; > OIInkPtr udata; > OIPstringPtr ref; >} OIGfxInk, *OIGfxInkPtr; ># 266 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef void *(*OIcsdDupFunc)(void *); >typedef void (*OIcsdFreeFunc)(void *); ># 281 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef enum { > OI_CSD_DITHINFO = 0x00000001, > OI_CSD_GRAYRESPONSE = 0x00000002, > OI_CSD_DOTRANGE = 0x00000004, > OI_CSD_WHITEPOINT = 0x00000008, > OI_CSD_PRIMARYCHROMAS = 0x00000010, > OI_CSD_REFBLACKWHITE = 0x00000020, > OI_CSD_TRANSFERFUNCTION = 0x00000040, > OI_CSD_TRANSFERRANGE = 0x00000080, > OI_CSD_ILLUMINANT = 0x00000100 >} OIGfxCsdFlset; > > > > > > >typedef enum >{ > oiDithNone = 0, > oiDithOrder, > oiDithRandom, > oiDithLast >} OIGfxDithTechniq; > > >typedef void *(*OIdithdupFunc)(void *); >typedef void (*OIdithfreeFunc)(void *); > > > > > >typedef struct { > OIGfxDithTechniq techniq; > void *info; > OIdithdupFunc dupFunc; > OIdithfreeFunc freeFunc; >} OIGfxDithInfo, *OIGfxDithInfoPtr; > > >typedef struct { > > uint32 flset; > > > > > > double *grayResponse; > > OIGfxDithInfoPtr dithInfo; >} OIGfxBW, *OIGfxBWPtr; > > >typedef struct { > > uint32 flset; > > > > > > > > uint16 dotRange[2]; > > OIGfxDithInfoPtr dithInfo; >} OIGfxCMYK, *OIGfxCMYKPtr; > > >typedef struct { > > uint32 flset; > > > > > double whitePoint[2]; > > > > > > double primaryChromas[6]; > > > > > > > > double *refBlackWhite; > > > > > > > > uint16 *transferFunction; > > > > > > > uint16 *transferRange; > > OIGfxDithInfoPtr dithInfo; >} OIGfxColorimetric, *OIGfxColorimetricPtr; > > > > > > >typedef struct { > > uint32 flset; > > uint16 horizSampling; > uint16 vertSampling; > > int positioning; > > double lumaRed; > double lumaGreen; > double lumaBlue; > > > > > > double primaryChromas[6]; > > > > > double whitePoint[2]; > > > > > > > > double *refBlackWhite; > > OIGfxDithInfoPtr dithInfo; >} OIGfxYCbCr, *OIGfxYCbCrPtr; ># 443 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef enum { > oiIlluminantUnknown = 0, > oiIlluminantD50, > oiIlluminantD55, > oiIlluminantDLH, > oiIlluminantD65, > oiIlluminantLast >} OIGfxIlluminant; > > >typedef struct { > > uint32 flset; > > OIGfxIlluminant illuminant; >} OIGfxCIE, *OIGfxCIEPtr; ># 481 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef uint8 *(*OIiccMapFunc)(void *iccref); >typedef uint8 *(*OIiccUnmapFunc)(void *iccref, uint8 *profile); >typedef void *(*OIiccDupFunc)(void *iccref); >typedef int (*OIiccFreeFunc)(void *iccref); >typedef int (*OIiccDelFunc)(void *iccref); ># 519 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef struct { > Queue link; > uint32 flags; > char *iccpath; > char *reqicctime; > char *profileid; > void *iccref; > OIiccMapFunc mapFunc; > OIiccDupFunc dupFunc; > OIiccFreeFunc freeFunc; > OIiccUnmapFunc unmapFunc; > OIiccDelFunc delFunc; > uint32 length; > uint32 refcnt; > uint8 *profile; >} OIGfxIcc, *OIGfxIccPtr; > > > > > > >typedef enum { > OI_GFXI_COLORSPACE = 0x00000001, > OI_GFXI_CSD = 0x00000002, > OI_GFXV_TINT = 0x00000004, > OI_GFXI_FLAGS = 0x00000008, > OI_GFXI_ROWS = 0x00000010, > OI_GFXI_COLS = 0x00000020, > OI_GFXI_INKS = 0x00000040, > OI_GFXI_XRES = 0x00000080, > OI_GFXI_YRES = 0x00000100, > OI_GFXI_CHNL = 0x00000200, > OI_GFXI_BPC = 0x00000400, > OI_GFXI_COMP = 0x00000800, > OI_GFXI_DEPTH = 0x00001000, > OI_GFXI_ICC = 0x00002000, > OI_GFXI_SPU = 0x00004000, > OI_GFXI_TILE = 0x00008000, > OI_GFXI_ATTR = 0x00010000, > OI_GFXV_FLAGS = 0x00020000, > OI_GFXV_RAMP = 0x00040000, > OI_GFXV_POS = 0x00080000, > OI_GFXV_RASTER = 0x00100000, > OI_GFXI_ORSRC = 0x00200000, > OI_GFXI_QUALITY = 0x00400000 >} OIGfxInfoFlset; ># 587 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef struct { > char *tintName; > double tint; >} OIGfxTint, *OIGfxTintPtr; > > >typedef enum { > > > > > OI_VAL_OVERPRINT = 0x00000001, > > > > > OI_VAL_TRANSPARENT = 0x00000002, > > > > OI_VAL_PROCESS = 0x00000004, > > > > OI_VAL_PUREBLACK = 0x00000008, > > > > OI_VAL_PUREWHITE = 0x00000010, > > > > OI_VAL_PUREGRAYS = 0x00000020, > > > > OI_VAL_PURECMY = 0x00000040 >} OIGfxValFlags; > > >typedef enum { > OI_TINT_SPOT = 0x00000001, > OI_TINT_SEPARATION = 0x00000002, > OI_TINT_REGISTRATION = 0x00000004 >} OIGfxValTintFlags; > > >typedef struct { > > uint32 flags; > > > uint8 *ramp; > uint16 rampBpc; > > > uint32 fgTintFlags; > uint32 fgTintSet; > char *fgTintColor; > OIGfxTint fgTints[31]; > double fgOverallTint; > uint32 bgTintFlags; > uint32 bgTintSet; > char *bgTintColor; > OIGfxTint bgTints[31]; > double bgOverallTint; > > long xDimension; > long yDimension; > double cropRectX; > double cropRectY; > double cropRectWide; > double cropRectHigh; > > > double positionLLx; > double positionLLy; > double positionULx; > double positionULy; > double positionURx; > double positionURy; > double positionLRx; > double positionLRy; >} OIGfxVal, *OIGfxValPtr; > >typedef enum { > > OI_GFX_MINISLOWCOLOR = 0x00000001, > > OI_GFX_MINISHIGHCOLOR = 0x00000002, > > OI_GFX_USEPLANAR = 0x00000010, > > OI_GFX_TILED = 0x00000020, > > OI_GFX_FULLINKSET = 0x00000040, > > OI_GFX_BLANKCOLOR = 0x00000080, > > OI_GFX_ISSEEKABLE = 0x00000100, > > OI_GFX_MAYCROP = 0x00000200, > > OI_GFX_MASKAPPLIED = 0x00000400, > > > > > > > > OI_GFX_ICCCOLORS = 0x00001000, > > OI_GFX_SEPARATIONFILE = 0x00002000, > > OI_GFX_SELFSEPARATING = 0x00010000, > > OI_GFX_RDONLY = 0x01000000, > > OI_GFX_MODIFIED = 0x10000000, > > OI_GFX_LINEARRD = 0x20000000, > > OI_GFX_MAYNEEDBUF = 0x40000000 >} OIGfxInfoFlags; ># 722 "/helios/release/libs/oi-8.0.0/h/OIgfx.h" >typedef struct { > > uint32 flset; > OIColorSpace colorSpace; > void *csd; > OIcsdDupFunc dupCsdFunc; > OIcsdFreeFunc freeCsdFunc; > OIGfxIcc icch; > > OIsize spu; > > uint32 flags; > OIGfxComp comp; > > OIPstringPtr attributes; > uint32 rows; > uint32 cols; > uint32 tileHeight; > uint32 tileWidth; > uint32 depth; > uint32 inkSet; > OIGfxInk inks[31]; > double yres; > double xres; > uint16 channels; > uint16 bpc; > OIGfxValPtr valuator; > uint32 extensions; > Queue oResources; > double quality; >} OIGfxInfo, *OIGfxInfoPtr; > > > > > > >typedef enum { > OI_TAGRESUNIT_NONE = 0, > OI_TAGRESUNIT_INCH = 1, > OI_TAGRESUNIT_CM = 2 >} OITagResInfoUnit; > > >typedef struct { > > uint8 resunit; > double xres; > double yres; >} OITagResInfo, *OITagResInfoPtr; > > > > > >extern uint8 OIGFXbitcount[256]; > > > > > > void >OItprintfGfxFlset( > uint32 uiFlset); > > void >OItprintfGfxFlags( > Boolean bValid, > uint32 uiFlags); > > void >OItprintfInkFlags( > uint32 uiFlags); > > void >OItprintfGfxInks( > OIGfxInfoPtr psGfx); > > const char * >OIIlluminant2String( > OIGfxIlluminant eIlluminant); > > void >OItprintfGfxCsd( > OIGfxInfoPtr psGfx); > > void >OItprintfIccFlags( > uint32 uiFlags); > > void >OItprintfGfxAttr( > OIGfxInfoPtr psGfx); > > void >OItprintfGfxValFlags( > Boolean bValid, > OIGfxValPtr psVal); > > void >OItprintfValTintFlags( > Boolean bValid, > Boolean bForeground, > OIGfxValPtr psVal); > > const char * >OIRsrcType2String( > uint32 uiRsrcType); > > void >OItprintfGfx( > OIGfxInfoPtr psGfx); > > const char * >OIMgrType2String( > OIMgrType eMgrType); > > void >OItprintfColorManagerFlags( > uint32 uiFlags); > > void >OItprintfAdjustManagerFlags( > uint32 uiFlags); > > void >OItprintfTagUpdateInfoFlags( > uint32 uiFlags); > > > > > > int >OIgfxAddInk( > OIGfxInfoPtr gfx, > char *name, > uint32 flags, > OIInkPtr udata, > OIPstringPtr ref); > > OIGfxInkPtr >OIgfxGetInk( > OIGfxInfoPtr gp, > uint32 ifl); > > uint32 >OIgfxGetIfl( > OIGfxInfoPtr gp, > char *name); > > int >OIifl2num( > uint32 ifl); > > int >OIifl2pos( > uint32 inkset, > uint32 ifl, > int **inkpos); > > char * >OIdefIfl2name( > OIColorSpace cs, > uint32 ifl); > > OIGfxInfoPtr >OInewGfx(void); > > void >OIfreeGfx( > OIGfxInfoPtr gfx); > > void >OIgfxFreeCsd( > OIGfxInfoPtr gfx); > > void >OIclrGfx( > OIGfxInfoPtr gfx); > > int >OIgfxSetInks( > OIGfxInfoPtr gfx, > OIGfxInfoPtr from, > uint32 frominkset); > > void >OIgfxDelInks( > OIGfxInfoPtr gfx, > uint32 inkset); > > int >OIcopyGfx( > OIGfxInfoPtr src, > OIGfxInfoPtr dst); > > int >OIgfxCopyInks( > OIGfxInfoPtr src, > uint32 srcinks, > OIGfxInfoPtr dst); > > OIGfxInfoPtr >OIdupGfx( > OIGfxInfoPtr gfx); > > uint32 >OIgfxDefInks( > OIColorSpace cs); > > int >OIgfxSetDefInks( > OIGfxInfoPtr gfx); > > int >OIgfxDupCsd( > OIGfxInfoPtr src, > OIGfxInfoPtr dst, > Boolean dofree); > > > int >OIname2cs( > OIPstringPtr cs); > OIPstringPtr >OIcs2name( > int cs); > int >OIname2dith( > OIPstringPtr dith); > OIPstringPtr >OIdith2name( > int dith); > int >OIname2comp( > OIPstringPtr comp); > OIPstringPtr >OIcomp2name( > int comp); > > > int >OIString2Comp( > OIGfxComp *peComp, > const char *pccString); > const char * >OIComp2String( > OIGfxComp eComp); > int >OIString2ColorSpace( > OIColorSpace *peColorSpace, > const char *pccString); > const char * >OIColorSpace2String( > OIColorSpace eColorSpace); > const char * >OIRenderingIntent2String( > uint32 uiRenderingIntent); > const char * >OIRenderingQuality2String( > uint32 uiRenderingQuality); > > double * >OIgfxDupCvals( > double *cvals, > OIColorSpace cs); > int >OIgfxCmpInks( > OIGfxInfoPtr gfxs, > OIGfxInfoPtr gfxd); > > uint32 >OIgfxSpotIfl( > OIGfxInfoPtr gfx); > > uint32 >OIgfxSeparationIfl( > OIGfxInfoPtr gfx); > > int >OIgfxAddAttribute( > OIGfxInfoPtr gfx, > char *key, > char *value); > > int >OIgfxGetAttribute( > OIGfxInfoPtr gfx, > char *key, > char **value); > > int >OIgfxCntAttribute( > OIGfxInfoPtr gfx); > > int >OIgfxInxAttribute( > OIGfxInfoPtr gfx, > int inx, > char **key, > char **value); > > int >OIgfxDelAttribute( > OIGfxInfoPtr gfx, > char *key); > > int >OIgfxCopyResources( > Queue *srcRec, > Queue *dstRec, > Boolean withoutMasks); > > int >OIgfxResourcesContainPath( > Queue *gfxinfo); > > int >OIgfxDeleteResources( > Queue *gfxRec); > > int >OIaddColorAlias( > char *colorname, > char *aliasname); > > int >OIgetColorAlias( > char *colorname, > char **aliasname); > > int >OIcntColorAlias(void); > > int >OIinxColorAlias( > int inx, > char **colorname, > char **aliasname); > > int >OIdelColorAlias( > char *colorname); > > int >OIname2illuminant( > OIPstringPtr cs); > > OIPstringPtr >OIilluminant2name( > int cs); > > int >OIpopCnt( > uint32 w); > > int >OIgfxCorrectPhotoshopResolution( > OIRsrcBlkPtr prsrc, > OITagResInfoPtr resinfo); > > > > > > int >OIvalAddTint( > OIGfxValPtr gp, > char *name, > Boolean bgtint); > > OIGfxTintPtr >OIvalGetTint( > OIGfxValPtr gp, > uint32 ifl, > Boolean bgtint); > > uint32 >OIvalGetTfl( > OIGfxValPtr gp, > char *name, > Boolean bgtint); > > int >OIvalDelTints( > OIGfxValPtr gp, > uint32 tintset, > Boolean bgtint); > > void >OIclrVal( > OIGfxValPtr gp); > > void >OIfreeVal( > OIGfxValPtr gp); > > OIGfxValPtr >OInewVal(void); > > OIGfxValPtr >OIdupGfxVal( > OIGfxInfoPtr gfx, > OIGfxValPtr gp); > > Boolean >OIvalDefTint( > OIGfxValPtr val, > Boolean bgtint); > > > > > > OIGfxIccPtr >OIgfxAddnewICCprofile( > OIGfxInfoPtr gfx); > > OIGfxIccPtr >OIgfxAddICCprofile( > OIGfxInfoPtr gfx, > OIGfxIccPtr icc); > > int >OIdelICCprofile( > OIGfxIccPtr icc); > > int >OImapICCprofile( > OIGfxIccPtr icc); > > int >OIunmapICCprofile( > OIGfxIccPtr icc); > > int >OIgfxDelICC( > OIGfxInfoPtr icc); > > int >OIgfxDupICC( > OIGfxInfoPtr src, > OIGfxInfoPtr dst, > Boolean dofree); > > int >OIgetICCtime( > OIGfxIccPtr icc, > char *reqicctime); > > Boolean >OIverifyICCtimes( > OIGfxIccPtr icc, > char *reqicctime); > > Boolean >OIcheckICCprofile( > void *profile); > > int >OIgetICCdataspace( > OIGfxIccPtr profile); > > void >OIparseICCprofileId( > OIGfxIccPtr icc); > > Boolean >OIvalidDefaultICCProfile( > OIGfxIccPtr icc, OIColorSpace cs); > > > const char * >CMSpace2String( > uint32 uiCMSpace); > char * >CMColorSpaceSignature2String( > char *pcBuffer, > uint32 uiColorSpaceSignature); > > > OIColorSpace >CMColorSpaceSignature2OIColorSpace( > int *piNumChannels, > uint32 uiColorSpaceSignature); > > > > > > OIGfxIccPtr >OInewICCprofileFromMem( > uint8 *profile); > > OIGfxIccPtr >OInewICCprofileFromUnix( > char *filename, > OIoffset off); > > OIGfxIccPtr >OInewICCprofileFromUnixFd( > char *filename, > OIoffset off, > int fd); > > OIGfxIccPtr >OInewICCprofileFromLfile( > char *filename, > OILfilePtr fp, > uint32 rid, > OIoffset off); > > int >OIgetICCprofilePath( > char *name, > char *path); > > void >OIsetICCrenderingIntent( > uint32 *flags, > uint32 val); > > void >OIsetICCrenderingQuality( > uint32 *flags, > uint32 val); > > uint32 >OIgetICCrenderingIntent( > uint32 flags); > > uint32 >OIgetICCrenderingQuality( > uint32 flags); > > int >OImissingICCprofileIsErr( > char *msg, > OIMark mark); > > int >OIreadICCprofileRepository( > char *repository); > > int >OIsyncICCprofileRepository( > char *repository); > > > > > > int >OIGetResolutionFromExifResource( > OIPstringPtr exifdata, > OIGfxInfoPtr gfxinfo); > > int >OISetExifResolution( > OIPstringPtr exifdata, > OITagResInfoPtr resinfo); > > int >OIGetColorSpaceFromExifResource( > OIPstringPtr exifdata, > uint16 *exifColorSpace); > > > int >OIParseExif( > OIPstringPtr exifdata, > Sfio_t *f); > > > > > > int >OIgfxInkInfoFromRsrc( > OILfilePtr fp, > uint32 rid, > OIGfxInfoPtr gfx, > uint32 inkset, > int chnl); > > int >OIgfxInkInfoFromRsrcblk( > OIRsrcBlkPtr rp, > OIGfxInfoPtr gfx, > uint32 inkset, > int chnl); > > int >OIgfxAddInkInfoToRsrc( > OILfilePtr fp, > uint32 rid, > OIGfxInfoPtr gfx, > uint32 inkset); > > int >OIgfxAddInkInfoToRsrcblk( > OIRsrcBlkPtr rp, > OIGfxInfoPtr gfx, > uint32 inkset); ># 199 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIhints.h" 1 ># 18 "/helios/release/libs/oi-8.0.0/h/OIhints.h" >typedef struct { > uint32 version; > > uint32 flags; > > > > double xres; > double yres; > OIGfxIccPtr ref_iccp; > OIGfxIccPtr emb_iccp; >} OIHint, *OIHintPtr; ># 200 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIitoc.h" 1 ># 26 "/helios/release/libs/oi-8.0.0/h/OIitoc.h" >typedef void *OIImagePtr; >typedef void *OIItocPtr; >typedef void *OIObjPtr; > >typedef enum { > oiAccNone = 0, > oiAccRaster, > oiAccPS, > oiAccUnspec, > oiAccAdobeMask, > oiAccLast >} OIObjAccess; > > > > > > > >typedef enum { > oiObjNone = 0, > oiObjImage = 1, > oiObjIcon = 2, > oiObjMask = 3, > oiObjTrailer = 4, > oiObjPlate = 5, > oiObjLast = 6 >} OIObjType; > > > > > > > >typedef enum { > oiQalNone = 0, > oiQalScreen = 1, > oiQalProof = 2, > oiQalPrint = 3, > oiQalLast = 4 >} OIObjQual; > > > > > >typedef enum { > oiKnownObjectNone = 0, > oiMacScreenPreview, > oiMacScreenMask, > oiMacIcon, > oiAdobePathRsrc, > oiKnownObjectLast >} OIKnownObjType; > >typedef void (*OIrdataFreeFunc)(void *); > >typedef struct { > Queue link; > uint32 oid; > uint32 flags; > > > > > > > > OIObjType otype; > OIObjQual oqual; > OIObjAccess oaccess; > OIGfxInfo oinfo; > Queue oattributes; > int fscope; > int ftype; > int fext; > OILfilePtr rfp; > uint32 rid; > void *rdata; > OIrdataFreeFunc rdatafreeFunc; > OIPstringPtr ref; > OIImagePtr handle; > OIHintPtr hints; > OIObjPtr itocudata; > OIObjPtr imageudata; > void *key; > int ffcnt; > void *ffiles; > > > > uint8 *curln[31]; > uint8 *curlp[31]; > uint32 currow; > uint32 curinks; > uint32 curxoff; > uint32 curxlen; > > > > OIoffset curpsoff; > > > > OIoffset curunoff; >} OIObject, *OIObjectPtr; > > > > > > >typedef struct { > Queue link; ># 152 "/helios/release/libs/oi-8.0.0/h/OIitoc.h" > uint32 action; > union { > OIColorSpace cs; > uint32 content; > > > > } contentinfo; > void *elem; > int result; >} OITagOrder, *OITagOrderPtr; ># 204 "/helios/release/libs/oi-8.0.0/h/OIitoc.h" > OIObjectPtr OIaddNewObject(OIObjectPtr, OIObjType, OIObjQual, OIObjAccess, uint32); > int OIdelObject(OIObjectPtr, OIObjectPtr, uint32); > int OIobjAddFile(OIObjectPtr, OILfilePtr); > int OIobjDelFile(OIObjectPtr, OILfilePtr, uint32); > OIPstringPtr OIobjtype2name(int otype); > int OIname2objtype(OIPstringPtr otype); > OIPstringPtr OIobjqual2name(int oqual); > int OIname2objqual(OIPstringPtr oqual); > OIPstringPtr OIobjacc2name(int oacc); > int OIname2objacc(OIPstringPtr oacc); > int OIgetKnownObjects(OIObjectPtr objhead, OILfilePtr fp, uint32 oid); > OIObjectPtr OIaddKnownObject(OIObjectPtr objhead, OIKnownObjType type, int ftype, OILfilePtr fp, uint32 rid, uint32 oid); > int OIclrKnownObject(OIObjectPtr objp); > OIObjectPtr OIgetObjhead(OIObjectPtr op); > int OItagOpenDefaults(char *srcpath, OIKeyPtr srckp, char *dstpath, OIKeyPtr dstkp, OILfilePtr *srcfp, OILfilePtr *dstfp); > int OItagUpdateInfo(OILfilePtr srcfp, uint32 infoflags, char *pathname); > int OItagNewInfo(char *path, OIKeyPtr kp, char *pathname); ># 253 "/helios/release/libs/oi-8.0.0/h/OIitoc.h" >typedef OIItocPtr (*OIitocOpenFunc)(OIObjectPtr objhead, OILfilePtr, OIRegionPtr, void *rdata, char *, void *, int, uint32, OIKeyPtr, va_list); >typedef int (*OIitocGetinfoFunc)(OIItocPtr, OIObjectPtr, int *, int *, int *, uint32 *, char **); >typedef int (*OIitocSetinfoFunc)(OIItocPtr, OIObjectPtr, int, int, int); >typedef OIObjectPtr (*OIitocAddNewObjectFunc)(OIItocPtr handle, OIObjectPtr objhead, OIObjType, OIObjQual, OIObjAccess, uint32 flags, OIPstringPtr ref, uint32 oid); >typedef int (*OIitocClrObjectFunc)(OIItocPtr, OIObjectPtr obj); >typedef int (*OIitocCloseFunc)(OIItocPtr, OIObjectPtr, uint32); >typedef int (*OIitocTagFunc)(char *srcpath, OIKeyPtr srckp, char *dstpath, OIKeyPtr dstkp, OIPstringPtr attributes, Queue *orders); > >typedef struct { > OIitocOpenFunc openFunc; > OIitocGetinfoFunc getInfoFunc; > OIitocSetinfoFunc setInfoFunc; > OIitocAddNewObjectFunc addnewObjFunc; > OIitocClrObjectFunc clrObjFunc; > OIitocCloseFunc closeFunc; > OIitocTagFunc tagFunc; > OIMinitFunc initFunc; > OIMexitFunc exitFunc; > OIMerrFunc errFunc; >} OIitocMgr, *OIitocMgrPtr; ># 201 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIimage.h" 1 ># 30 "/helios/release/libs/oi-8.0.0/h/OIimage.h" >typedef struct { > Queue link; > void *mgr; > uint32 flags; > > > >} OISelection, *OISelectionPtr; > > int OIgetManagerSelection(uint32 flags, PrefNodePtr rootpp, OISelectionPtr selectionroot); > int OIdupManagerSelection(OISelectionPtr src, OISelectionPtr dst); > void OIfreeManagerSelection(OISelectionPtr selectionroot); > > > > >typedef void *OIUniPtr; > > OIUniPtr >OIUcreateUniobj( > OIObjectPtr psSrcObj, > OIObjAccess eAccess, > uint32 uiZeroColors, > OIGfxInfoPtr psDstGfx, > uint32 uiFlset, > OISelectionPtr psSelection); > OIsize >OIUscanlineSize( > OIUniPtr pvUniObj); > int >OIUreadScanline( > OIUniPtr pvUniObj, > uint32 uiYOffset, > uint8 *pucBuffer, > uint8 **ppucBuffer, > uint32 uiXOffset, > uint32 uiXLength, > OIsize *piAmount); > int >OIUpublishGfx( > OIUniPtr pvUniObj, > OIGfxInfoPtr psGfx); > OIGfxInfoPtr >OIUdelUniobj( > OIUniPtr pvUniObj); > > int >OIapplyRamp( > uint8 *buf, > uint16 bpc, > uint32 cols, > OIGfxValPtr gp); ># 90 "/helios/release/libs/oi-8.0.0/h/OIimage.h" >extern uint8 OInbit[8]; > > > > > void OIunrollScanline(uint32 srcinkset, uint32 dstinkset, uint32 zeroinkset, int minishigh, uint32 cols, uint16 bpc, uint8 *ibuf, int ipix, uint8 *obuf); > void OIunrollVScanline(uint32 srcinkset, uint32 dstinkset, uint32 zeroinkset, int minishigh, uint32 cols, uint16 bpc, uint8 *ibuf[], int ipix, uint8 *obuf); ># 124 "/helios/release/libs/oi-8.0.0/h/OIimage.h" >typedef OIImagePtr (*OIimageOpenFunc)(OIItocPtr itochandle, OIObjectPtr objp, uint32 flags); >typedef int (*OIimageCloseFunc)(OIImagePtr handle, OIObjectPtr bjp); >typedef int (*OIimageSetGfxFunc)(OIImagePtr handle, OIObjectPtr objp, OIGfxInfoPtr oldgfx, uint32 flset); >typedef int (*OIimageReadScanlineFunc)(OIImagePtr handle, uint32 yoff, uint8 *buf, uint8 **bufp, uint32 curinkset, uint32 xoff, uint32 xlen, OIsize *amount); >typedef int (*OIimageWriteScanlineFunc)(OIImagePtr handle, uint32 yoff, uint8 *buf, uint32 inkset, OIsize *amount); >typedef int (*OIimageReadTileFunc)(OIImagePtr handle, uint32 *x, uint32 *y, uint32 *w, uint32*h, uint8 *buf, uint32 curinkset, OIsize *amount); >typedef int (*OIimageWriteTileFunc)(OIImagePtr handle, uint32 x, uint32 y, uint8 *buf, uint32 curinkset, OIsize *amount); >typedef int (*OIimageReadPSFunc)(OIImagePtr handle, uint8 *buf, OIoffset pos, OIsize len, OIsize *amount); >typedef int (*OIimageWritePSFunc)(OIImagePtr handle, uint8 *buf, OIsize len, OIsize *amount); >typedef int (*OIimageReadUnspecFunc)(OIImagePtr handle, uint8 *buf, OIoffset pos, OIsize len, OIsize *amount); >typedef int (*OIimageWriteUnspecFunc)(OIImagePtr handle, uint8 *buf, OIsize len, OIsize *amount); > >typedef struct { > OIimageOpenFunc openFunc; > OIimageCloseFunc closeFunc; > OIimageSetGfxFunc setGfxFunc; > OIimageReadScanlineFunc readScanlineFunc; > OIimageWriteScanlineFunc writeScanlineFunc; > OIimageReadTileFunc readTileFunc; > OIimageWriteTileFunc writeTileFunc; > OIimageReadPSFunc readPsFunc; > OIimageWritePSFunc writePsFunc; > OIimageReadUnspecFunc readUnspecFunc; > OIimageWriteUnspecFunc writeUnspecFunc; > OIMinitFunc initFunc; > OIMexitFunc exitFunc; > OIMerrFunc errFunc; >} OIimageMgr, *OIimageMgrPtr; ># 202 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIcolor.h" 1 ># 25 "/helios/release/libs/oi-8.0.0/h/OIcolor.h" >typedef struct { > uint16 gray; >} OICmGrayColor; > >typedef struct { > uint16 red; > uint16 green; > uint16 blue; >} OICmRgbColor; > >typedef struct { > uint16 hue; > uint16 saturation; > uint16 value; >} OICmHsvColor; > >typedef struct { > uint16 hue; > uint16 lightness; > uint16 saturation; >} OICmHlsColor; > >typedef struct { > uint16 x; > uint16 y; > uint16 z; >} OICmXyzColor; > >typedef struct { > uint16 L; > uint16 a; > uint16 b; >} OICmLabColor; > >typedef struct { > uint16 L; > uint16 u; > uint16 v; >} OICmLuvColor; > >typedef struct { > uint16 capY; > uint16 x; > uint16 y; >} OICmYxyColor; > >typedef struct { > uint16 cyan; > uint16 magenta; > uint16 yellow; > uint16 black; >} OICmCmykColor; > >typedef struct { > uint16 cyan; > uint16 magenta; > uint16 yellow; >} OICmCmyColor; > >typedef struct { > uint16 y; > uint16 cb; > uint16 cr; >} OICmYcbcrColor; > >typedef struct { > uint16 y; > uint16 c1; > uint16 c2; >} OICmYccColor; > >typedef struct { > uint16 chnls; > uint16 vals[1]; > > > >} OICmMultiChannelColor; > >typedef union { > OICmGrayColor graycolor; > OICmRgbColor rgbcolor; > OICmHsvColor hsvcolor; > OICmHlsColor hlscolor; > OICmXyzColor xyzcolor; > OICmLabColor labcolor; > OICmLuvColor luvcolor; > OICmYxyColor yxycolor; > OICmCmykColor cmykcolor; > OICmCmyColor cmycolor; > OICmYcbcrColor ycbcrcolor; > OICmYccColor ycccolor; > OICmMultiChannelColor multicolor; >} OICmColorVal, *OICmColorValPtr; > >typedef struct { > OIColorSpace cs; > OICmColorVal val; >} OICmColor, *OICmColorPtr; > >typedef enum { > oiCmTranslateInit = 1, > oiCmTranslateTrans, > oiCmTranslateExit >} OICmTranslateMode; ># 169 "/helios/release/libs/oi-8.0.0/h/OIcolor.h" >typedef struct { > char *colorid; > OICmColorVal val; >} OIColorEntry, *OIColorEntryPtr; > >typedef struct { > Queue link; > char *vendor; > char *tableName; > char **tablePrefix; > char **tableSuffix; > uint32 flags; > > > > > uint8 spaceID; > int tableid; > OIColorSpace cs; > uint32 numOfColors; > OIColorEntryPtr colors; >} OIColorTable, *OIColorTablePtr; > >typedef struct { > Queue link; > int poolid; > Queue tables; >} OIColorPool, *OIColorPoolPtr; > > int OIwriteColorTable(char *path, OIColorTablePtr ref); > int OIreadColorTable(char *path, OIColorTablePtr *ref); > void OIfreeColorTable(OIColorTablePtr ref); > int OIlookupColorTable(OIColorTablePtr ref, char *colorid, OICmColorPtr color); > int OIaddColorTableToPool(OIColorTablePtr ref, QueuePtr poollist, int poolid); > void OIfreeColorPool(QueuePtr poollist, int poolid); > int OIlookupColorPool(QueuePtr poollist, int poolid, int tableid, char *colorid, OICmColorPtr color); > > > > > > > >typedef int (*OIspaceIDFunc)(void *udata, OICmTranslateMode transmode, uint8 mode, uint8 *colorbox, int *poolid, int *tableid, char *colorid); > int OIregisterSpaceID(uint8 spaceid, OIspaceIDFunc transfunc, void *udata); > void OIunregisterSpaceID(uint8 spaceid); > int OImapSpaceID(uint8 spaceid, uint8 *colorbox, int *poolid, int *tableid, char *colorid); > > > > > > OIPstringPtr OIctabid2name(int colortableid); > int OIname2ctabid(OIPstringPtr colortableid); > OIPstringPtr OIcpoolid2name(int colorpoolid); > int OIname2cpoolid(OIPstringPtr colorpoolid); > int OIunpackCmColorD(OICmColorPtr cmcolor, int num, ...); > int OIunpackCmColor8(OICmColorPtr cmcolor, int num, ...); > int OIpackCmColorD(OICmColorPtr cmcolor, int num, ...); > int OIpackCmColor8(OICmColorPtr cmcolor, int num, ...); > > > > >typedef int (*OIcolorPickerFunc)(void *udata, OICmTranslateMode transmode, int poolid, int tableid, uint8 *colorid, OICmColorPtr color); > int OIregisterColorPicker(int poolid, int tableid, OIcolorPickerFunc transfunc, void *udata); > void OIunregisterColorPicker(int poolid, int tableid); > int OIcolorPicker(int poolid, int tableid, char *colorid, OICmColorPtr color); > int OIcolornamePicker(char *colorname, OICmColorPtr color); > > > > > > > >typedef struct { > > uint8 *planes[8]; > uint32 width; > uint32 height; > uint32 rowBytes; > uint32 elementOffset; > uint32 pixelSize; > OIColorSpace colorSpace; >} OICmMap, *OICmMapPtr; > >typedef int >(*OIcolorMultiCalcFunc)( > void *pvData, > OICmTranslateMode eTransMode, > OICmColorPtr psInColor, > OICmColorPtr psOutColor, > OIGfxInfoPtr psInGfx, > OIGfxInfoPtr psOutGfx, > void **ppvHandle); >typedef int >(*OIcolorMultiFreeFunc)( > void *pvData, > OIColorSpace eInColorSpace, > OIColorSpace eOutColorSpace, > void **ppvHandle); > > int >OIregisterColorMultiCalculator( > OIColorSpace eInColorSpace, > OIColorSpace eOutColorSpace, > OIcolorMultiCalcFunc pfCalcFunc, > OIcolorMultiFreeFunc pfFreeFunc, > void *pvData); > int >OIcolorMultiCalculator( > OICmColorPtr psInColor, > OICmColorPtr psOutColor, > OIGfxInfoPtr psInGfx, > OIGfxInfoPtr psOutGfx, > void **ppvHandle); > int >OIcolorMultiCalcFreeHandle( > OIColorSpace eInColorSpace, > OIColorSpace eOutColorSpace, > void **ppvHandle); > int >OIcolorCalculator( > OICmColorPtr psInColor, > OICmColorPtr psOutColor, > OIGfxInfoPtr psInGfx, > OIGfxInfoPtr psOutGfx); > >typedef int >(*OIcolorMultiImageCalcFunc)( > void *pvData, > OICmTranslateMode eTransMode, > OICmMapPtr psInMap, > OICmMapPtr psOutMap, > OIGfxInfoPtr psInGfx, > OIGfxInfoPtr psOutGfx, > void **ppvHandle); >typedef int >(*OIcolorMultiImageFreeFunc)( > void *pvData, > OIColorSpace eInColorSpace, > OIColorSpace eOutColorSpace, > void **ppvHandle); > > int >OIregisterColorMultiImageCalculator( > OIColorSpace eInColorSpace, > OIColorSpace eOutColorSpace, > OIcolorMultiImageCalcFunc pfCalcFunc, > OIcolorMultiImageFreeFunc pfFreeFunc, > void *pvData); > int >OIcolorMultiImageCalculator( > OICmMapPtr psInMap, > OICmMapPtr psOutMap, > OIGfxInfoPtr psInGfx, > OIGfxInfoPtr psOutGfx, > void **ppvHandle); > int >OIcolorMultiImageCalcFreeHandle( > OIColorSpace eInColorSpace, > OIColorSpace eOutColorSpace, > void **ppvHandle); > int >OIcolorImageCalculator( > OICmMapPtr psInMap, > OICmMapPtr psOutMap, > OIGfxInfoPtr psInGfx, > OIGfxInfoPtr psOutGfx); ># 384 "/helios/release/libs/oi-8.0.0/h/OIcolor.h" >typedef void *OIColorPtr; > > > > >typedef OIColorPtr (*OIcolorOpenFunc)( > OIGfxInfoPtr srcgfx, > uint32 srcinkset, > OIGfxInfoPtr targetgfx, > OIObjAccess acc, > OIsize spu > ); >typedef int (*OIcolorCloseFunc)( > OIColorPtr handle > ); >typedef int (*OIcolorReadScanlineFunc)( > OIUniPtr unip, > OIColorPtr handle, > uint32 yoff, > uint8 *buf, > uint8 **bufp, > uint32 xoff, > uint32 xlen, > OIsize *amount > ); >typedef int (*OIcolorReadTileFunc)( > OIUniPtr unip, > OIColorPtr handle, > uint32 *x, > uint32 *y, > uint32 *w, > uint32 *h, > uint8 *buf, > OIsize *amount > ); >typedef int (*OIcolorReadPSFunc)( > OIUniPtr unip, > OIColorPtr handle, > uint8 *buf, > OIoffset pos, > OIsize len, > OIsize *amount > ); > > >typedef struct { > uint32 flags; > OIMgrCapsPtr caps; > OIcolorOpenFunc openFunc; > OIcolorCloseFunc closeFunc; > OIcolorReadScanlineFunc readScanlineFunc; > OIcolorReadTileFunc readTileFunc; > OIcolorReadPSFunc readPsFunc; > OIMinitFunc initFunc; > OIMexitFunc exitFunc; > OIMerrFunc errFunc; >} OIcolorMgr, *OIcolorMgrPtr; ># 203 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OImisc.h" 1 ># 22 "/helios/release/libs/oi-8.0.0/h/OImisc.h" >typedef void *OIMiscPtr; ># 34 "/helios/release/libs/oi-8.0.0/h/OImisc.h" >typedef struct { > OIMinitFunc initFunc; > OIMexitFunc exitFunc; > OIMerrFunc errFunc; >} OImiscMgr, *OImiscMgrPtr; ># 204 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIsfio.h" 1 ># 22 "/helios/release/libs/oi-8.0.0/h/OIsfio.h" > Sfdisc_t *OInewLfileDisc(OILfilePtr rfp, uint32 rid, void *rdata); > int OIdelLfileDisc(Sfdisc_t *disc); > Sfio_t *OIsfioFromLfile(OILfilePtr rfp, uint32 rid, void *rdata); ># 205 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OImasks.h" 1 ># 22 "/helios/release/libs/oi-8.0.0/h/OImasks.h" >typedef enum { > oiMopNone = 0, > oiMopNewpath = 1, > oiMopClosepath = 2, > oiMopMoveto = 3, > oiMopLineto = 4, > oiMopCurveto = 5, > oiMopPolyto = 6, > oiMopRpolyto = 7, > oiMopLast = 8 >} OIMaskOp; > >typedef struct { > OIMaskOp op; > > > > > int opcnt; > double xy[1]; > > > >} OIMask, *OIMaskPtr; > >typedef struct { > int16 recttop; > int16 rectleft; > int16 rectbottom; > int16 rectright; > int cliplen; > int16 *clip; >} OIImageRegion, *OIImageRegionPtr; > > OIMaskPtr OInewMask(void); > void OIdelMask(OIMaskPtr mask); > OIMaskPtr OIaddMaskOp(OIMaskPtr mask, OIMaskOp op); > OIMaskPtr OIaddMaskVals(OIMaskPtr mask, int opcnt, ...); > int OIcntMask(OIMaskPtr mask); > OIsize OImaskLen(OIMaskPtr mask); > OIMaskPtr OImaskOp(OIMaskPtr mask, int opindex); > int OImaskRect(OIMaskPtr mask, double mrect[4]); > > > > > OIMaskPtr OImaskFromRsrcblk(OIRsrcBlkPtr rp); > int OIrsrcblkFromMask(OIMaskPtr mask, OIRsrcBlkPtr rp); > OIMaskPtr OImaskFromPathRsrc(OILfilePtr fp, uint32 rid, void *rdata); > int OIpathRsrcFromMask(OIMaskPtr mask, OILfilePtr fp, uint32 rid, void *rdata); > OIMaskPtr OImaskFromResources(Queue* Resources, OI_MRsrcInfoPtr *clipentry, OI_MRsrcInfoPtr *pathentry); ># 86 "/helios/release/libs/oi-8.0.0/h/OImasks.h" > int OIimageRegionFromMask(OIMaskPtr mask, OIImageRegionPtr iregp); > Boolean OIpointInImageRegion(OIImageRegionPtr iregp, int x, int y); > void OIGenImageRegionLine(OIImageRegionPtr iregp, int y, void **lasty, uint8* line, uint32 len); ># 206 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfilter.h" 1 ># 22 "/helios/release/libs/oi-8.0.0/h/OIfilter.h" > int OIdelAscii85Filter(OIFilterPtr filter); > int OInewAscii85Filter(OIFilterPtr filter, uint32 flags); > int OIdelHexFilter(OIFilterPtr filter); > int OInewHexFilter(OIFilterPtr filter, uint32 flags); > int OIdelSubregionFilter(OIFilterPtr filter); > int OInewSubregionFilter(OIFilterPtr filter, OIoffset off, OIsize len); ># 207 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIprint.h" 1 ># 18 "/helios/release/libs/oi-8.0.0/h/OIprint.h" >typedef struct { > Queue link; > OIColorSpace cs; > int fcreator; > int ftype; > int fext; > uint32 flags; > > > > > char *iccpath; >} OIIccInfoParamBlk, *OIIccInfoParamBlkPtr; > >typedef struct { > Queue link; > char *inkName; > double screenFrequency; > double screenAngle; > char *screenProc; > char *transferProc; >} OIScreeningInfo, *OIScreeningInfoPtr; > >typedef enum { > oiParsePs, > oiCopyPs, > oiSkipPs >} OIPsParseType; > >typedef enum { > oiExecOpNone = 0, > oiExecOpKeepComment, > oiExecOpStartSkip, > oiExecOpEndSkip, > oiExecOpCopy, > oiExecOpParse, > oiExecOpNewState, > oiExecOpEndState, > oiExecOpResetState, > oiExecOpNotify >} OIExecOpType; > >typedef enum { > oiUnknownPrinter = 0, > oiRawPrinter, > oiPostScriptPrinter >} OIPrinterType; > >typedef struct { > char **baseProduct; > OIPrinterType printerType; > > > > > char *plateColor; > OIGfxInk ink; > char *pageNo; > uint32 ordinalPageNo; > > > > > Boolean colorDevice; > Boolean cmykExtension; > Boolean automaticSeparation; > Boolean languageLevel2; > OIColorSpace deviceSpace; > double printerResolution; > double halftoneResolution; > double halftoneFrequency; > QueuePtr screenInfo; > > > > int documentColorCnt; > OIGfxInkPtr documentColors; >} OIJobState, *OIJobStatePtr; > >typedef struct { > > > > OIPsParseType psState; > void *psArg; > Queue markStk; >} OIParseState, *OIParseStatePtr; > >typedef struct { > > > > > PrefNodePtr prefroot; > char *printername; > char *programname; > char *fileCreator; > char *fileType; > char *fileCs; > uint32 *fixedParams; > int psLevel; > Boolean opiEnabled; > Boolean printDraft; > Boolean resolveAll; > Boolean imageIDsearch; > Boolean temporaryTagging; > Boolean ignoreUntagged; > Boolean ignoreMissingLowRes; > Boolean compatCheck; > Boolean downSampling; > Boolean fastDownsampling; > Boolean fixedSampling; > Boolean scitexApr; > double resolution; > double LWresolution; > double MCresolution; > double CTresolution; > double maxLowResolution; > Boolean pureBlack; > Boolean pureWhite; > Boolean pureGrays; > Boolean pureCMY; > Boolean spotToProcess; > Boolean preserveDeviceN; > Boolean customColorTinting; > int renderingQuality; > char *preferredCMM; > char *layoutSuffix; > char *signature; > char **processInks; > OIColorSpace processColorspace; > OIColorSpace compositeColorspace; > > > > > > OIGfxComp compressPrint; > double compressQuality; > > > > > > > > OIGfxComp icMethodBilevel; > double icQualityBilevel; > OIGfxComp icMethodGrayscale; > double icQualityGrayscale; > OIGfxComp icMethodRGB; > double icQualityRGB; > OIGfxComp icMethodCMYK; > double icQualityCMYK; > OIGfxComp icMethodCIELab; > double icQualityCIELab; > OIGfxComp icMethodOther; > double icQualityOther; > uint32 forced; > > > > OIGfxIccPtr defaultPrinterProfile; > OIGfxIccPtr defaultProofProfile; > Queue iccInfo; > OISelectionPtr managerSelections; > uint8 printRenderingIntents[oiCsLast][oiCsLast]; > uint8 proofRenderingIntents[oiCsLast][oiCsLast]; > > > > uint32 icsColorsSeen; > uint32 icsColorsMatched; > uint32 icsColorsExpected; > Boolean icsBBvalid; > uint32 icsBBllx; > uint32 icsBBlly; > uint32 icsBBurx; > uint32 icsBBury; > Boolean icsSkipObject; > > > > Boolean aprPSimage; > Boolean aprCTformat; > > > > > double opiLevel; > char *imageFilename; > char *imageReferenceID; > char *realFilename; > Sfio_t *opiFp; > double previewQuality; > uint32 previewXDimensions; > uint32 previewYDimensions; > double imageXDimensions; > double imageYDimensions; > double imageCropLeft; > double imageCropTop; > double imageCropRight; > double imageCropBottom; > double imagePositionLLx; > double imagePositionLLy; > double imagePositionULx; > double imagePositionULy; > double imagePositionURx; > double imagePositionURy; > double imagePositionLRx; > double imagePositionLRy; > double imageXResolution; > double imageYResolution; > Boolean inLayout; > Boolean embeddedFile; > Boolean transparent; > Boolean distilled; > Boolean skipObject; > Boolean resolvingHires; > Boolean sepDictIncluded; > OIGfxValPtr valuator; > > > > > OIGfxIccPtr imageProfile; > OIGfxIccPtr printerProfile; > OIGfxIccPtr proofProfile; > OIGfxIccPtr customPrinterProfile; > > > > uint32 imagingX; > uint32 imagingY; > double imagingXres; > double imagingYres; > uint16 imagingBpc; > uint16 imagingChnl; > OIColorSpace imagingCs; > uint32 imagingFlags; > > > > char *psFileName; > OIJobStatePtr jobState; > OIParseStatePtr parseState; > void *imageList; > > > > uint32 extensions; >} OIPrintState, *OIPrintStatePtr; > > int OIaddExecOps(QueuePtr execStk, OIExecOpType op, ...); > void OIclrExecOps(QueuePtr execStk); > int OIpushPrintMark(QueuePtr markStk, void *mark); > void *OItopPrintMark(QueuePtr markStk); > int OIcntPrintMarks(QueuePtr markStk, void *mark); > int OIpop2PrintMark(QueuePtr markStk, void *mark); > void OIclrPrintMarks(QueuePtr markStk); > int OIinsertFilePool(QueuePtr pool, char *id, char *type, Sfio_t *fp); > int OIsearchFilePool(QueuePtr pool, char *id, char *type, Sfio_t **fp); > void OIdelFilePool(QueuePtr pool, char *id, char *type); ># 208 "/helios/release/libs/oi-8.0.0/h/OI.h" 2 > > > > >typedef enum { > oiSrvFilesuffix, > oiSrvFiletype >} OISrvEventType; > > > > >typedef enum { > oiDscInit = 1, > oiDscExit, > oiDscAbort, > oiDscStartJob, > oiDscEndJob, > oiDscPushFile, > oiDscPopFile, > oiDscException >} OIDscEventType; > >typedef enum { > oiDscNoErr = 0, > oiDscIgnore, > oiDscFail, > oiDscFatal >} OIDscErrType; > > > > >typedef OIDscErrType (*OIDscNotifyFunc)(OIDscEventType event, OIPrintStatePtr printstatep, QueuePtr execElems, void *arg); >typedef OIDscErrType (*OIDscActionFunc)(int dscArgc, char **dscArgv, OIPrintStatePtr printstatep, QueuePtr execElems, void *arg); > > > > > >typedef struct { > Queue link; > char *opireference; > OIRefID refid; >} OIOpiPreflightImage, *OIOpiPreflightImagePtr; > >typedef int (*OIOpiPreflightCheckFunc)(OIPrintStatePtr printstatep, QueuePtr imagelist, void *arg); > > > > > > >typedef enum { > oiPrintJobInit = 1, > oiPrintJobPreCheckPs, > oiPrintJobResolvePs, > oiPrintJobPreCheckData, > oiPrintJobResolveData, > oiPrintJobExit >} OIPrintJobFilterEventType; > >typedef void *OIPrintFilterPtr; > > int OIprintFilterRead(OIPrintFilterPtr filterPtr, void *buf, OIsize len, OIsize *amount); > int OIprintFilterSeek(OIPrintFilterPtr filterPtr, OIoffset off, int whence, OIoffset *pos); > >typedef int (*OIPrintFilterReadFunc)(void *buf, OIsize len, OIsize *amount, OIPrintFilterPtr filterPtr, void *arg); >typedef int (*OIPrintFilterSeekFunc)(OIoffset off, int whence, OIoffset *pos, OIPrintFilterPtr filterPtr, void *arg); >typedef int (*OIPrintFilterNotifyFunc)(OIPrintJobFilterEventType event, void *arg); > > > > > >typedef enum { > oiOpiCheckInit = 100, > oiOpiCheckPreCheck, > oiOpiCheckResolve, > oiOpiCheckExit >} OIOpiCheckFilterEventType; > >typedef enum { > > > > oiOpiImageFound, > oiOpiImageIgnored, > > > > > > oiOpiImageHiresFound, > oiOpiImageMissingLores, > oiOpiImageMissingHires, > oiOpiImageMissingHiresOfLores, > oiOpiImageMissing, > > > > oiOpiImageIncluded >} OIOpiCheckStatus; > >typedef int (*OIOpiCheckImageFunc)(OIPrintStatePtr printstatep, OIOpiCheckStatus oldstatus, OIOpiCheckStatus *newstatus, void *arg); >typedef int (*OIOpiCheckNotifyFunc)(OIOpiCheckFilterEventType event, void *arg); > > > > > >typedef void *OIOpiDataFilterPtr; > >typedef enum { > oiOpiDataInit = 200, > oiOpiDataStartImage, > oiOpiDataEndImage, > oiOpiDataExit >} OIOpiDataFilterEventType; > >typedef int (*OIOpiDataPreReadFunc)(void *buf, OIsize len, OIsize *amount, OIPrintFilterPtr filterPtr, void *arg, OIPrintStatePtr printstatep); >typedef int (*OIOpiDataPostReadFunc)(void *buf, OIsize len, OIsize *amount, OIPrintFilterPtr filterPtr, void *arg, OIPrintStatePtr printstatep); >typedef int (*OIOpiDataNotifyFunc)(OIOpiDataFilterEventType event, void *arg); > > int OIopiDataFilterPreRead(OIOpiDataFilterPtr filterPtr, void *buf, OIsize len, OIsize *amount); > int OIopiDataFilterPostRead(OIOpiDataFilterPtr filterPtr, void *buf, OIsize len, OIsize *amount); > > > > > >typedef enum { > oiOpiDataPreImageDisc = 1, > oiOpiDataImageDisc, > oiOpiDataPostImageDisc >} OIOpiDataDiscType; > >typedef Sfdisc_t *(*OIOpiDataNewDiscFunc)(OIOpiDataDiscType type, OIPrintStatePtr printstatep, void *arg); >typedef int (*OIOpiDataDelDiscFunc)(Sfdisc_t *disc, void *arg); > > > > > int InitOIlib(int majorVersion, int minorVersion, char *ebuf, int ebuflen); > void ExitOIlib(void); > > int OIparseFilename(char *, OIKeyPtr, char *); > int OIgenRefID(OIFileIDPtr fid, OIKeyPtr keyp, char *host, char *path, char *id); > int OIextractRefID(OIRefIDPtr refp, char *id); > int OImakeKey(OIKeyPtr keyp, char *fs, char *fspec, char *fcreator, char *ftype, char *fext); > int OImakePKey(OIKeyPtr keyp, OIPstringPtr fs, OIPstringPtr fspec, OIPstringPtr fcreator, OIPstringPtr ftype, OIPstringPtr fext); > void *OIaccessHandle(void *, char *, OIMgrType); > char **OIdupPaths(char **paths); > void OIfreePaths(char **); > OIPibPtr OIgetPib(void); > OIPstringPtr OIc2pstring(OIPstring *, char *); > char *OIp2cstring(OIPstringPtr); > OIPstringPtr OInewPstring(OIPstringPtr, uint32); > void OIdelPstring(OIPstringPtr); > int OIpstrcmp(OIPstringPtr, OIPstringPtr); > int OIpstrcmpic(OIPstringPtr, OIPstringPtr); > OIPstringPtr OIpstrdup(OIPstringPtr); > OIPstringPtr OIpstrcat(OIPstringPtr, OIPstringPtr); > OIPstringPtr OIpstrcpy(OIPstringPtr, OIPstringPtr); > uint8 *OIpstrchr(OIPstringPtr, int); > uint8 *OIpstrrchr(OIPstringPtr, int); > OIAliasPtr OInewAlias(int fstype, int fspec, char *fname, OIFileIDPtr fid); > OIAliasPtr OIdupAlias(OIAliasPtr alias); > void OIfreeAlias(OIAliasPtr alias); > int OIname2goal(OIPstringPtr); > OIPstringPtr OIgoal2name(int); > int OIname2phase(OIPstringPtr); > OIPstringPtr OIphase2name(int); > int OIregisterSrvEvent(OISrvEventType type, char *name); > int OIunregisterSrvEvent(OISrvEventType type, char *name); > int OIregisterOpiPreflightFilter(OIOpiPreflightCheckFunc cfunc, void *arg); > int OIunregisterOpiPreflightFilter(OIOpiPreflightCheckFunc cfunc); > int OIregisterPrintFilter(OIPrintFilterReadFunc rfunc, OIPrintFilterSeekFunc sfunc, OIPrintFilterNotifyFunc nfunc, void *arg); > int OIunregisterPrintFilter(OIPrintFilterReadFunc rfunc, OIPrintFilterSeekFunc sfunc, OIPrintFilterNotifyFunc nfunc); > int OIregisterOpiCheckFilter(OIOpiCheckImageFunc cfunc, OIOpiCheckNotifyFunc nfunc, void *arg); > int OIunregisterOpiCheckFilter(OIOpiCheckImageFunc cfunc, OIOpiCheckNotifyFunc nfunc); > int OIregisterOpiDataFilter(OIOpiDataPreReadFunc prerfunc, OIOpiDataPostReadFunc postrfunc, OIOpiDataNotifyFunc nfunc, void *arg); > int OIunregisterOpiDataFilter(OIOpiDataPreReadFunc prerfunc, OIOpiDataPostReadFunc postrfunc, OIOpiDataNotifyFunc nfunc); > int OIregisterOpiDataDisc(OIOpiDataNewDiscFunc nfunc, OIOpiDataDelDiscFunc dfunc, void *arg); > int OIunregisterOpiDataDisc(OIOpiDataNewDiscFunc nfunc, OIOpiDataDelDiscFunc dfunc); > int OIregisterDscEvent(char *comment, uint32 flags, OIDscActionFunc afunc, OIDscNotifyFunc nfunc, void *arg, Boolean override); > int OIunregisterDscEvent(char *comment); ># 22 "../h/oieps.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 1 ># 14 "/helios/release/libs/codecs-1.0.9/h/codecs.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/zlib.h" 1 ># 34 "/helios/release/libs/codecs-1.0.9/h/zlib.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/zconf.h" 1 ># 220 "/helios/release/libs/codecs-1.0.9/h/zconf.h" >typedef unsigned char Byte; > >typedef unsigned int uInt; >typedef unsigned int uLong; > > > > > > typedef Byte Bytef; > >typedef char charf; >typedef int intf; >typedef uInt uIntf; >typedef uLong uLongf; > > > typedef void *voidpf; > typedef void *voidp; ># 35 "/helios/release/libs/codecs-1.0.9/h/zlib.h" 2 ># 63 "/helios/release/libs/codecs-1.0.9/h/zlib.h" >typedef voidpf (*alloc_func) (voidpf opaque, uInt items, uInt size); >typedef void (*free_func) (voidpf opaque, voidpf address); > >struct internal_state; > >typedef struct z_stream_s { > Bytef *next_in; > uInt avail_in; > uLong total_in; > > Bytef *next_out; > uInt avail_out; > uLong total_out; > > char *msg; > struct internal_state *state; > > alloc_func zalloc; > free_func zfree; > voidpf opaque; > > int data_type; > uLong adler; > uLong reserved; >} z_stream; > >typedef z_stream *z_streamp; ># 171 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > const char * zlibVersion (void); ># 201 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflate (z_streamp strm, int flush); ># 279 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflateEnd (z_streamp strm); ># 314 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int inflate (z_streamp strm, int flush); ># 383 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int inflateEnd (z_streamp strm); ># 444 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength); ># 480 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflateCopy (z_streamp dest, z_streamp source); ># 498 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflateReset (z_streamp strm); ># 509 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflateParams (z_streamp strm, int level, int strategy); ># 553 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int inflateSetDictionary (z_streamp strm, const Bytef *dictionary, uInt dictLength); ># 572 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int inflateSync (z_streamp strm); ># 587 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int inflateReset (z_streamp strm); ># 608 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); ># 623 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int compress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level); ># 638 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); ># 657 "/helios/release/libs/codecs-1.0.9/h/zlib.h" >typedef voidp gzFile; > > gzFile gzopen (const char *path, const char *mode); ># 675 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > gzFile gzdopen (int fd, const char *mode); ># 688 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int gzsetparams (gzFile file, int level, int strategy); > > > > > > > > int gzread (gzFile file, voidp buf, unsigned len); > > > > > > > > int gzwrite (gzFile file, const voidp buf, unsigned len); > > > > > > > > int gzprintf (gzFile file, const char *format, ...); > > > > > > > int gzputs (gzFile file, const char *s); > > > > > > > char * gzgets (gzFile file, char *buf, int len); ># 735 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int gzputc (gzFile file, int c); > > > > > > int gzgetc (gzFile file); > > > > > > int gzflush (gzFile file, int flush); ># 757 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > off_t gzseek (gzFile file, off_t offset, int whence); ># 775 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int gzrewind (gzFile file); > > > > > > > off_t gztell (gzFile file); ># 791 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int gzeof (gzFile file); > > > > > > int gzclose (gzFile file); > > > > > > > const char * gzerror (gzFile file, int *errnum); ># 821 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > uLong adler32 (uLong adler, const Bytef *buf, uInt len); ># 838 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > uLong crc32 (uLong crc, const Bytef *buf, uInt len); ># 860 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > int deflateInit_ (z_streamp strm, int level, const char *version, int stream_size); > > int inflateInit_ (z_streamp strm, const char *version, int stream_size); > > int deflateInit2_ (z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy, const char *version, int stream_size); > > > > int inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size); ># 882 "/helios/release/libs/codecs-1.0.9/h/zlib.h" > struct internal_state {int dummy;}; > > > const char * zError (int err); > int inflateSyncPoint (z_streamp z); > const uLongf * get_crc_table (void); ># 15 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" 1 ># 28 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/jconfig.h" 1 ># 29 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" 1 ># 59 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" >typedef unsigned char JSAMPLE; ># 99 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" >typedef short JCOEF; ># 110 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" >typedef unsigned char JOCTET; ># 134 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" >typedef uint8 UINT8; > > > >typedef uint16 UINT16; > > > >typedef int16 INT16; > > > >typedef int32 INT32; ># 155 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" >typedef unsigned int JDIMENSION; ># 212 "/helios/release/libs/codecs-1.0.9/h/jmorecfg.h" >typedef int boolean; ># 31 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" 2 ># 70 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" >typedef JSAMPLE *JSAMPROW; >typedef JSAMPROW *JSAMPARRAY; >typedef JSAMPARRAY *JSAMPIMAGE; > >typedef JCOEF JBLOCK[64]; >typedef JBLOCK *JBLOCKROW; >typedef JBLOCKROW *JBLOCKARRAY; >typedef JBLOCKARRAY *JBLOCKIMAGE; > >typedef JCOEF *JCOEFPTR; > > > > > > > >typedef struct { > > > > > UINT16 quantval[64]; > > > > > > boolean sent_table; >} JQUANT_TBL; > > > > >typedef struct { > > UINT8 bits[17]; > > UINT8 huffval[256]; > > > > > > boolean sent_table; >} JHUFF_TBL; > > > > >typedef struct { > > > > int component_id; > int component_index; > int h_samp_factor; > int v_samp_factor; > int quant_tbl_no; > > > > > int dc_tbl_no; > int ac_tbl_no; ># 143 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > JDIMENSION width_in_blocks; > JDIMENSION height_in_blocks; > > > > > > > int DCT_scaled_size; > > > > > > > JDIMENSION downsampled_width; > JDIMENSION downsampled_height; > > > > > boolean component_needed; > > > > int MCU_width; > int MCU_height; > int MCU_blocks; > int MCU_sample_width; > int last_col_width; > int last_row_height; > > > > > > JQUANT_TBL * quant_table; > > > void * dct_table; >} jpeg_component_info; > > > > >typedef struct { > int comps_in_scan; > int component_index[4]; > int Ss, Se; > int Ah, Al; >} jpeg_scan_info; > > > >typedef struct jpeg_marker_struct * jpeg_saved_marker_ptr; > >struct jpeg_marker_struct { > jpeg_saved_marker_ptr next; > UINT8 marker; > unsigned int original_length; > unsigned int data_length; > JOCTET * data; > >}; > > > >typedef enum { > JCS_UNKNOWN, > JCS_GRAYSCALE, > JCS_RGB, > JCS_YCbCr, > JCS_CMYK, > JCS_YCCK >} J_COLOR_SPACE; > > > >typedef enum { > JDCT_ISLOW, > JDCT_IFAST, > JDCT_FLOAT >} J_DCT_METHOD; ># 236 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" >typedef enum { > JDITHER_NONE, > JDITHER_ORDERED, > JDITHER_FS >} J_DITHER_MODE; ># 257 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" >struct jpeg_common_struct { > struct jpeg_error_mgr * err; struct jpeg_memory_mgr * mem; struct jpeg_progress_mgr * progress; void * client_data; boolean is_decompressor; int global_state; > > > > >}; > >typedef struct jpeg_common_struct * j_common_ptr; >typedef struct jpeg_compress_struct * j_compress_ptr; >typedef struct jpeg_decompress_struct * j_decompress_ptr; > > > > >struct jpeg_compress_struct { > struct jpeg_error_mgr * err; struct jpeg_memory_mgr * mem; struct jpeg_progress_mgr * progress; void * client_data; boolean is_decompressor; int global_state; > > > struct jpeg_destination_mgr * dest; > > > > > > > JDIMENSION image_width; > JDIMENSION image_height; > int input_components; > J_COLOR_SPACE in_color_space; > > double input_gamma; ># 298 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > int data_precision; > > int num_components; > J_COLOR_SPACE jpeg_color_space; > > jpeg_component_info * comp_info; > > > JQUANT_TBL * quant_tbl_ptrs[4]; > > > JHUFF_TBL * dc_huff_tbl_ptrs[4]; > JHUFF_TBL * ac_huff_tbl_ptrs[4]; > > > UINT8 arith_dc_L[16]; > UINT8 arith_dc_U[16]; > UINT8 arith_ac_K[16]; > > int num_scans; > const jpeg_scan_info * scan_info; > > > > > > boolean raw_data_in; > boolean arith_code; > boolean optimize_coding; > boolean CCIR601_sampling; > int smoothing_factor; > J_DCT_METHOD dct_method; > > > > > > > unsigned int restart_interval; > int restart_in_rows; > > > > boolean write_JFIF_header; > UINT8 JFIF_major_version; > UINT8 JFIF_minor_version; > > > > > UINT8 density_unit; > UINT16 X_density; > UINT16 Y_density; > boolean write_Adobe_marker; > > > > > > > JDIMENSION next_scanline; ># 367 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > boolean progressive_mode; > int max_h_samp_factor; > int max_v_samp_factor; > > JDIMENSION total_iMCU_rows; ># 382 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > int comps_in_scan; > jpeg_component_info * cur_comp_info[4]; > > > JDIMENSION MCUs_per_row; > JDIMENSION MCU_rows_in_scan; > > int blocks_in_MCU; > int MCU_membership[10]; > > > > int Ss, Se, Ah, Al; > > > > > struct jpeg_comp_master * master; > struct jpeg_c_main_controller * main; > struct jpeg_c_prep_controller * prep; > struct jpeg_c_coef_controller * coef; > struct jpeg_marker_writer * marker; > struct jpeg_color_converter * cconvert; > struct jpeg_downsampler * downsample; > struct jpeg_forward_dct * fdct; > struct jpeg_entropy_encoder * entropy; > jpeg_scan_info * script_space; > int script_space_size; > void *udata; >}; > > > > >struct jpeg_decompress_struct { > struct jpeg_error_mgr * err; struct jpeg_memory_mgr * mem; struct jpeg_progress_mgr * progress; void * client_data; boolean is_decompressor; int global_state; > > > struct jpeg_source_mgr * src; > > > > > JDIMENSION image_width; > JDIMENSION image_height; > int num_components; > J_COLOR_SPACE jpeg_color_space; > > > > > > > J_COLOR_SPACE out_color_space; > > unsigned int scale_num, scale_denom; > > double output_gamma; > > boolean buffered_image; > boolean raw_data_out; > > J_DCT_METHOD dct_method; > boolean do_fancy_upsampling; > boolean do_block_smoothing; > > boolean quantize_colors; > > J_DITHER_MODE dither_mode; > boolean two_pass_quantize; > int desired_number_of_colors; > > boolean enable_1pass_quant; > boolean enable_external_quant; > boolean enable_2pass_quant; > > > > > > > > JDIMENSION output_width; > JDIMENSION output_height; > int out_color_components; > int output_components; > > > > int rec_outbuf_height; ># 483 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > int actual_number_of_colors; > JSAMPARRAY colormap; ># 494 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > JDIMENSION output_scanline; > > > > > int input_scan_number; > JDIMENSION input_iMCU_row; > > > > > > int output_scan_number; > JDIMENSION output_iMCU_row; ># 516 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > int (*coef_bits)[64]; ># 527 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > JQUANT_TBL * quant_tbl_ptrs[4]; > > > JHUFF_TBL * dc_huff_tbl_ptrs[4]; > JHUFF_TBL * ac_huff_tbl_ptrs[4]; > > > > > > > int data_precision; > > jpeg_component_info * comp_info; > > > boolean progressive_mode; > boolean arith_code; > > UINT8 arith_dc_L[16]; > UINT8 arith_dc_U[16]; > UINT8 arith_ac_K[16]; > > unsigned int restart_interval; > > > > > boolean saw_JFIF_marker; > > UINT8 JFIF_major_version; > UINT8 JFIF_minor_version; > UINT8 density_unit; > UINT16 X_density; > UINT16 Y_density; > boolean saw_Adobe_marker; > UINT8 Adobe_transform; > > boolean CCIR601_sampling; > > > > > > jpeg_saved_marker_ptr marker_list; ># 580 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > int max_h_samp_factor; > int max_v_samp_factor; > > int min_DCT_scaled_size; > > JDIMENSION total_iMCU_rows; ># 594 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > JSAMPLE * sample_range_limit; > > > > > > > int comps_in_scan; > jpeg_component_info * cur_comp_info[4]; > > > JDIMENSION MCUs_per_row; > JDIMENSION MCU_rows_in_scan; > > int blocks_in_MCU; > int MCU_membership[10]; > > > > int Ss, Se, Ah, Al; > > > > > > int unread_marker; > > > > > struct jpeg_decomp_master * master; > struct jpeg_d_main_controller * main; > struct jpeg_d_coef_controller * coef; > struct jpeg_d_post_controller * post; > struct jpeg_input_controller * inputctl; > struct jpeg_marker_reader * marker; > struct jpeg_entropy_decoder * entropy; > struct jpeg_inverse_dct * idct; > struct jpeg_upsampler * upsample; > struct jpeg_color_deconverter * cconvert; > struct jpeg_color_quantizer * cquantize; > void *udata; >}; ># 649 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" >struct jpeg_error_mgr { > > void (*error_exit) (j_common_ptr cinfo); > > void (*emit_message) (j_common_ptr cinfo, int msg_level); > > void (*output_message) (j_common_ptr cinfo); > > void (*format_message) (j_common_ptr cinfo, char * buffer); > > > void (*reset_error_mgr) (j_common_ptr cinfo); > > > > > int msg_code; > > union { > int i[8]; > char s[80]; > } msg_parm; > > > > int trace_level; > > > > > > > > long num_warnings; ># 694 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > const char * const * jpeg_message_table; > int last_jpeg_message; > > > > const char * const * addon_message_table; > int first_addon_message; > int last_addon_message; >}; > > > > >struct jpeg_progress_mgr { > void (*progress_monitor) (j_common_ptr cinfo); > > long pass_counter; > long pass_limit; > int completed_passes; > int total_passes; >}; > > > > >struct jpeg_destination_mgr { > JOCTET * next_output_byte; > size_t free_in_buffer; > > void (*init_destination) (j_compress_ptr cinfo); > boolean (*empty_output_buffer) (j_compress_ptr cinfo); > void (*term_destination) (j_compress_ptr cinfo); >}; > > > > >struct jpeg_source_mgr { > const JOCTET * next_input_byte; > size_t bytes_in_buffer; > > void (*init_source) (j_decompress_ptr cinfo); > boolean (*fill_input_buffer) (j_decompress_ptr cinfo); > void (*skip_input_data) (j_decompress_ptr cinfo, long num_bytes); > boolean (*resync_to_restart) (j_decompress_ptr cinfo, int desired); > void (*term_source) (j_decompress_ptr cinfo); >}; ># 758 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" >typedef struct jvirt_sarray_control * jvirt_sarray_ptr; >typedef struct jvirt_barray_control * jvirt_barray_ptr; > > >struct jpeg_memory_mgr { > > void * (*alloc_small) (j_common_ptr cinfo, int pool_id, size_t sizeofobject); > > void * (*alloc_large) (j_common_ptr cinfo, int pool_id, size_t sizeofobject); > > JSAMPARRAY (*alloc_sarray) (j_common_ptr cinfo, int pool_id, JDIMENSION samplesperrow, JDIMENSION numrows); > > > JBLOCKARRAY (*alloc_barray) (j_common_ptr cinfo, int pool_id, JDIMENSION blocksperrow, JDIMENSION numrows); > > > jvirt_sarray_ptr (*request_virt_sarray) (j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess); > > > > > > jvirt_barray_ptr (*request_virt_barray) (j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess); > > > > > > void (*realize_virt_arrays) (j_common_ptr cinfo); > JSAMPARRAY (*access_virt_sarray) (j_common_ptr cinfo, jvirt_sarray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable); > > > > > JBLOCKARRAY (*access_virt_barray) (j_common_ptr cinfo, jvirt_barray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable); > > > > > void (*free_pool) (j_common_ptr cinfo, int pool_id); > void (*self_destruct) (j_common_ptr cinfo); > > > > > > > long max_memory_to_use; > > > long max_alloc_chunk; >}; > > > > > >typedef boolean (*jpeg_marker_parser_method) (j_decompress_ptr cinfo); ># 890 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > >extern struct jpeg_error_mgr * jpeg_std_error > (struct jpeg_error_mgr * err); ># 907 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > >extern void jpeg_CreateCompress (j_compress_ptr cinfo, int version, size_t structsize); > > >extern void jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize); > > > >extern void jpeg_destroy_compress (j_compress_ptr cinfo); > >extern void jpeg_destroy_decompress (j_decompress_ptr cinfo); > > > > >extern void jpeg_stdio_dest (j_compress_ptr cinfo, Sfio_t * outfile); > >extern void jpeg_stdio_src (j_decompress_ptr cinfo, Sfio_t * infile); > > > >extern void jpeg_set_defaults (j_compress_ptr cinfo); > > >extern void jpeg_set_colorspace (j_compress_ptr cinfo, J_COLOR_SPACE colorspace); > > >extern void jpeg_default_colorspace (j_compress_ptr cinfo); > >extern void jpeg_set_quality (j_compress_ptr cinfo, int quality, boolean force_baseline); > > >extern void jpeg_set_linear_quality (j_compress_ptr cinfo, int scale_factor, boolean force_baseline); > > > >extern void jpeg_add_quant_table (j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline); > > > > >extern int jpeg_quality_scaling (int quality); > >extern void jpeg_simple_progression (j_compress_ptr cinfo); > >extern void jpeg_suppress_tables (j_compress_ptr cinfo, boolean suppress); > > >extern JQUANT_TBL * jpeg_alloc_quant_table (j_common_ptr cinfo); > >extern JHUFF_TBL * jpeg_alloc_huff_table (j_common_ptr cinfo); > > > >extern void jpeg_start_compress (j_compress_ptr cinfo, boolean write_all_tables); > > >extern JDIMENSION jpeg_write_scanlines (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines); > > > >extern void jpeg_finish_compress (j_compress_ptr cinfo); > > > >extern JDIMENSION jpeg_write_raw_data (j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines); > > > > > >extern void jpeg_write_marker > (j_compress_ptr cinfo, int marker, const JOCTET * dataptr, unsigned int datalen); > > > >extern void jpeg_write_m_header > (j_compress_ptr cinfo, int marker, unsigned int datalen); > >extern void jpeg_write_m_byte > (j_compress_ptr cinfo, int val); > > > >extern void jpeg_write_tables (j_compress_ptr cinfo); > > > >extern int jpeg_read_header (j_decompress_ptr cinfo, boolean require_image); ># 1008 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > >extern boolean jpeg_start_decompress (j_decompress_ptr cinfo); > >extern JDIMENSION jpeg_read_scanlines (j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines); > > > >extern boolean jpeg_finish_decompress (j_decompress_ptr cinfo); > > > >extern JDIMENSION jpeg_read_raw_data (j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines); > > > > > >extern boolean jpeg_has_multiple_scans (j_decompress_ptr cinfo); > >extern boolean jpeg_start_output (j_decompress_ptr cinfo, int scan_number); > > >extern boolean jpeg_finish_output (j_decompress_ptr cinfo); > >extern boolean jpeg_input_complete (j_decompress_ptr cinfo); > >extern void jpeg_new_colormap (j_decompress_ptr cinfo); > >extern int jpeg_consume_input (j_decompress_ptr cinfo); ># 1045 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > >extern void jpeg_calc_output_dimensions (j_decompress_ptr cinfo); > > > >extern void jpeg_save_markers > (j_decompress_ptr cinfo, int marker_code, unsigned int length_limit); > > > > >extern void jpeg_set_marker_processor > (j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine); > > > > >extern jvirt_barray_ptr * jpeg_read_coefficients (j_decompress_ptr cinfo); > >extern void jpeg_write_coefficients (j_compress_ptr cinfo, jvirt_barray_ptr * coef_arrays); > > >extern void jpeg_copy_critical_parameters (j_decompress_ptr srcinfo, j_compress_ptr dstinfo); ># 1076 "/helios/release/libs/codecs-1.0.9/h/jpeglib.h" > >extern void jpeg_abort_compress (j_compress_ptr cinfo); > >extern void jpeg_abort_decompress (j_decompress_ptr cinfo); > > > > > >extern void jpeg_abort (j_common_ptr cinfo); > >extern void jpeg_destroy (j_common_ptr cinfo); > > > >extern boolean jpeg_resync_to_restart (j_decompress_ptr cinfo, int desired); ># 17 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jerror.h" 1 ># 33 "/helios/release/libs/codecs-1.0.9/h/jerror.h" >typedef enum { > > > > > >JMSG_NOMESSAGE , > > >JERR_ARITH_NOTIMPL , > >JERR_BAD_ALIGN_TYPE , >JERR_BAD_ALLOC_CHUNK , >JERR_BAD_BUFFER_MODE , >JERR_BAD_COMPONENT_ID , >JERR_BAD_DCT_COEF , >JERR_BAD_DCTSIZE , >JERR_BAD_HUFF_TABLE , >JERR_BAD_IN_COLORSPACE , >JERR_BAD_J_COLORSPACE , >JERR_BAD_LENGTH , >JERR_BAD_LIB_VERSION , > >JERR_BAD_MCU_SIZE , >JERR_BAD_POOL_ID , >JERR_BAD_PRECISION , >JERR_BAD_PROGRESSION , > >JERR_BAD_PROG_SCRIPT , > >JERR_BAD_SAMPLING , >JERR_BAD_SCAN_SCRIPT , >JERR_BAD_STATE , >JERR_BAD_STRUCT_SIZE , > >JERR_BAD_VIRTUAL_ACCESS , >JERR_BUFFER_SIZE , >JERR_CANT_SUSPEND , >JERR_CCIR601_NOTIMPL , >JERR_COMPONENT_COUNT , >JERR_CONVERSION_NOTIMPL , >JERR_DAC_INDEX , >JERR_DAC_VALUE , >JERR_DHT_INDEX , >JERR_DQT_INDEX , >JERR_EMPTY_IMAGE , >JERR_EMS_READ , >JERR_EMS_WRITE , >JERR_EOI_EXPECTED , >JERR_FILE_READ , >JERR_FILE_WRITE , >JERR_FRACT_SAMPLE_NOTIMPL , >JERR_HUFF_CLEN_OVERFLOW , >JERR_HUFF_MISSING_CODE , >JERR_IMAGE_TOO_BIG , >JERR_INPUT_EMPTY , >JERR_INPUT_EOF , >JERR_MISMATCHED_QUANT_TABLE , > >JERR_MISSING_DATA , >JERR_MODE_CHANGE , >JERR_NOTIMPL , >JERR_NOT_COMPILED , >JERR_NO_BACKING_STORE , >JERR_NO_HUFF_TABLE , >JERR_NO_IMAGE , >JERR_NO_QUANT_TABLE , >JERR_NO_SOI , >JERR_OUT_OF_MEMORY , >JERR_QUANT_COMPONENTS , > >JERR_QUANT_FEW_COLORS , >JERR_QUANT_MANY_COLORS , >JERR_SOF_DUPLICATE , >JERR_SOF_NO_SOS , >JERR_SOF_UNSUPPORTED , >JERR_SOI_DUPLICATE , >JERR_SOS_NO_SOF , >JERR_TFILE_CREATE , >JERR_TFILE_READ , >JERR_TFILE_SEEK , >JERR_TFILE_WRITE , > >JERR_TOO_LITTLE_DATA , >JERR_UNKNOWN_MARKER , >JERR_VIRTUAL_BUG , >JERR_WIDTH_OVERFLOW , >JERR_XMS_READ , >JERR_XMS_WRITE , >JMSG_COPYRIGHT , >JMSG_VERSION , >JTRC_16BIT_TABLES , > >JTRC_ADOBE , > >JTRC_APP0 , >JTRC_APP14 , >JTRC_DAC , >JTRC_DHT , >JTRC_DQT , >JTRC_DRI , >JTRC_EMS_CLOSE , >JTRC_EMS_OPEN , >JTRC_EOI , >JTRC_HUFFBITS , >JTRC_JFIF , >JTRC_JFIF_BADTHUMBNAILSIZE , > >JTRC_JFIF_EXTENSION , > >JTRC_JFIF_THUMBNAIL , >JTRC_MISC_MARKER , >JTRC_PARMLESS_MARKER , >JTRC_QUANTVALS , >JTRC_QUANT_3_NCOLORS , >JTRC_QUANT_NCOLORS , >JTRC_QUANT_SELECTED , >JTRC_RECOVERY_ACTION , >JTRC_RST , >JTRC_SMOOTH_NOTIMPL , > >JTRC_SOF , >JTRC_SOF_COMPONENT , >JTRC_SOI , >JTRC_SOS , >JTRC_SOS_COMPONENT , >JTRC_SOS_PARAMS , >JTRC_TFILE_CLOSE , >JTRC_TFILE_OPEN , >JTRC_THUMB_JPEG , > >JTRC_THUMB_PALETTE , > >JTRC_THUMB_RGB , > >JTRC_UNKNOWN_IDS , > >JTRC_XMS_CLOSE , >JTRC_XMS_OPEN , >JWRN_ADOBE_XFORM , >JWRN_BOGUS_PROGRESSION , > >JWRN_EXTRANEOUS_DATA , > >JWRN_HIT_MARKER , >JWRN_HUFF_BAD_CODE , >JWRN_JFIF_MAJOR , >JWRN_JPEG_EOF , >JWRN_MUST_RESYNC , > >JWRN_NOT_SEQUENTIAL , >JWRN_TOO_MUCH_DATA , > > > > JMSG_LASTMSGCODE >} J_MESSAGE_CODE; ># 18 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 1 ># 65 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_config.h" 1 ># 66 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_types.h" 1 ># 67 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_version.h" 1 ># 111 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_version.h" >const char *jas_getversion(void); ># 68 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_init.h" 1 ># 75 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_init.h" >int jas_init(void); > >void jas_cleanup(void); ># 70 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_cm.h" 1 ># 72 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_cm.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_icc.h" 1 ># 67 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_icc.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" 1 ># 164 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >typedef void jas_stream_obj_t; > > > > > >typedef struct { > > > int (*read_)(jas_stream_obj_t *obj, char *buf, int cnt); > > > int (*write_)(jas_stream_obj_t *obj, char *buf, int cnt); > > > long (*seek_)(jas_stream_obj_t *obj, long offset, int origin); > > > int (*close_)(jas_stream_obj_t *obj); > >} jas_stream_ops_t; > > > > > >typedef struct { > > > int openmode_; > > > int bufmode_; > > > int flags_; > > > unsigned char *bufbase_; > > > > unsigned char *bufstart_; > > > int bufsize_; > > > unsigned char *ptr_; > > > > int cnt_; > > > unsigned char tinybuf_[16 + 1]; > > > jas_stream_ops_t *ops_; > > > jas_stream_obj_t *obj_; > > > long rwcnt_; > > > long rwlimit_; > >} jas_stream_t; ># 242 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >typedef struct { > int fd; > int flags; > char pathname[4096]; >} jas_stream_fileobj_t; ># 255 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >typedef struct { > > > unsigned char *buf_; > > > int bufsize_; > > > int_fast32_t len_; > > > int_fast32_t pos_; > > > int growable_; > > > int myalloc_; > >} jas_stream_memobj_t; > > > > > > >jas_stream_t *jas_stream_fopen(const char *filename, const char *mode); > > >jas_stream_t *jas_stream_memopen(char *buf, int bufsize); > > >jas_stream_t *jas_stream_fdopen(int fd, const char *mode); > > >jas_stream_t *jas_stream_reopen(const char *path, const char *mode, Sfio_t *fp); > > >jas_stream_t *jas_stream_tmpfile(void); > > >int jas_stream_close(jas_stream_t *stream); ># 320 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >int jas_stream_setrwlimit(jas_stream_t *stream, long rwlimit); > > > > > > >long jas_stream_setrwcount(jas_stream_t *stream, long rwcnt); ># 348 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >int jas_stream_read(jas_stream_t *stream, void *buf, int cnt); > > >int jas_stream_write(jas_stream_t *stream, const void *buf, int cnt); > > >int jas_stream_printf(jas_stream_t *stream, const char *fmt, ...); > > >int jas_stream_puts(jas_stream_t *stream, const char *s); > > >char *jas_stream_gets(jas_stream_t *stream, char *buf, int bufsize); ># 369 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >int jas_stream_ungetc(jas_stream_t *stream, int c); > > > > > > >int jas_stream_isseekable(jas_stream_t *stream); > > >long jas_stream_seek(jas_stream_t *stream, long offset, int origin); > > >long jas_stream_tell(jas_stream_t *stream); > > >int jas_stream_rewind(jas_stream_t *stream); > > > > > > >int jas_stream_flush(jas_stream_t *stream); > > > > > > >int jas_stream_copy(jas_stream_t *dst, jas_stream_t *src, int n); > > >int jas_stream_display(jas_stream_t *stream, Sfio_t *fp, int n); > > >int jas_stream_gobble(jas_stream_t *stream, int n); > > >int jas_stream_pad(jas_stream_t *stream, int n, int c); > > > >long jas_stream_length(jas_stream_t *stream); ># 446 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_stream.h" >int jas_stream_fillbuf(jas_stream_t *stream, int getflag); >int jas_stream_flushbuf(jas_stream_t *stream, int c); >int jas_stream_getc_func(jas_stream_t *stream); >int jas_stream_putc_func(jas_stream_t *stream, int c); ># 68 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_icc.h" 2 ># 213 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_icc.h" >typedef uint_fast8_t jas_iccuint8_t; >typedef uint_fast16_t jas_iccuint16_t; >typedef uint_fast32_t jas_iccuint32_t; >typedef int_fast32_t jas_iccsint32_t; >typedef int_fast32_t jas_iccs15fixed16_t; >typedef uint_fast32_t jas_iccu16fixed16_t; >typedef uint_fast64_t jas_iccuint64_t; >typedef uint_fast32_t jas_iccsig_t; > >typedef jas_iccsig_t jas_icctagsig_t; >typedef jas_iccsig_t jas_icctagtype_t; >typedef jas_iccsig_t jas_iccattrname_t; > > >typedef struct { > jas_iccuint16_t year; > jas_iccuint16_t month; > jas_iccuint16_t day; > jas_iccuint16_t hour; > jas_iccuint16_t min; > jas_iccuint16_t sec; >} jas_icctime_t; > > >typedef struct { > jas_iccs15fixed16_t x; > jas_iccs15fixed16_t y; > jas_iccs15fixed16_t z; >} jas_iccxyz_t; > > >typedef struct { > jas_iccuint32_t numents; > jas_iccuint16_t *ents; >} jas_icccurv_t; > > >typedef struct { > jas_iccuint32_t asclen; > char *ascdata; > jas_iccuint32_t uclangcode; > jas_iccuint32_t uclen; > unsigned char *ucdata; > jas_iccuint16_t sccode; > jas_iccuint8_t maclen; > unsigned char macdata[69]; >} jas_icctxtdesc_t; > > >typedef struct { > char *string; >} jas_icctxt_t; > >typedef struct { > jas_iccuint8_t numinchans; > jas_iccuint8_t numoutchans; > jas_iccsint32_t e[3][3]; > jas_iccuint8_t clutlen; > jas_iccuint8_t *clut; > jas_iccuint16_t numintabents; > jas_iccuint8_t **intabs; > jas_iccuint8_t *intabsbuf; > jas_iccuint16_t numouttabents; > jas_iccuint8_t **outtabs; > jas_iccuint8_t *outtabsbuf; >} jas_icclut8_t; > >typedef struct { > jas_iccuint8_t numinchans; > jas_iccuint8_t numoutchans; > jas_iccsint32_t e[3][3]; > jas_iccuint8_t clutlen; > jas_iccuint16_t *clut; > jas_iccuint16_t numintabents; > jas_iccuint16_t **intabs; > jas_iccuint16_t *intabsbuf; > jas_iccuint16_t numouttabents; > jas_iccuint16_t **outtabs; > jas_iccuint16_t *outtabsbuf; >} jas_icclut16_t; > >struct jas_iccattrval_s; > >typedef struct { > void (*destroy)(struct jas_iccattrval_s *); > int (*copy)(struct jas_iccattrval_s *, struct jas_iccattrval_s *); > int (*input)(struct jas_iccattrval_s *, jas_stream_t *, int); > int (*output)(struct jas_iccattrval_s *, jas_stream_t *); > int (*getsize)(struct jas_iccattrval_s *); > void (*dump)(struct jas_iccattrval_s *, Sfio_t *); >} jas_iccattrvalops_t; > > >typedef struct jas_iccattrval_s { > int refcnt; > jas_iccsig_t type; > jas_iccattrvalops_t *ops; > union { > jas_iccxyz_t xyz; > jas_icccurv_t curv; > jas_icctxtdesc_t txtdesc; > jas_icctxt_t txt; > jas_icclut8_t lut8; > jas_icclut16_t lut16; > } data; >} jas_iccattrval_t; > > >typedef struct { > jas_iccuint32_t size; > jas_iccsig_t cmmtype; > jas_iccuint32_t version; > jas_iccsig_t clas; > jas_iccsig_t colorspc; > jas_iccsig_t refcolorspc; > jas_icctime_t ctime; > jas_iccsig_t magic; > jas_iccsig_t platform; > jas_iccuint32_t flags; > jas_iccsig_t maker; > jas_iccsig_t model; > jas_iccuint64_t attr; > jas_iccsig_t intent; > jas_iccxyz_t illum; > jas_iccsig_t creator; >} jas_icchdr_t; > >typedef struct { > jas_iccsig_t name; > jas_iccattrval_t *val; >} jas_iccattr_t; > >typedef struct { > int numattrs; > int maxattrs; > jas_iccattr_t *attrs; >} jas_iccattrtab_t; > >typedef struct jas_icctagtabent_s { > jas_iccuint32_t tag; > jas_iccuint32_t off; > jas_iccuint32_t len; > void *data; > struct jas_icctagtabent_s *first; >} jas_icctagtabent_t; > >typedef struct { > jas_iccuint32_t numents; > jas_icctagtabent_t *ents; >} jas_icctagtab_t; > > >typedef struct { > jas_icchdr_t hdr; > jas_icctagtab_t tagtab; > jas_iccattrtab_t *attrtab; >} jas_iccprof_t; > >typedef struct { > jas_iccuint32_t type; > jas_iccattrvalops_t ops; >} jas_iccattrvalinfo_t; > >jas_iccprof_t *jas_iccprof_load(jas_stream_t *in); >int jas_iccprof_save(jas_iccprof_t *prof, jas_stream_t *out); >void jas_iccprof_destroy(jas_iccprof_t *prof); >jas_iccattrval_t *jas_iccprof_getattr(jas_iccprof_t *prof, > jas_iccattrname_t name); >int jas_iccprof_setattr(jas_iccprof_t *prof, jas_iccattrname_t name, > jas_iccattrval_t *val); >void jas_iccprof_dump(jas_iccprof_t *prof, Sfio_t *out); >jas_iccprof_t *jas_iccprof_copy(jas_iccprof_t *prof); >int jas_iccprof_gethdr(jas_iccprof_t *prof, jas_icchdr_t *hdr); >int jas_iccprof_sethdr(jas_iccprof_t *prof, jas_icchdr_t *hdr); > >void jas_iccattrval_destroy(jas_iccattrval_t *attrval); >void jas_iccattrval_dump(jas_iccattrval_t *attrval, Sfio_t *out); >int jas_iccattrval_allowmodify(jas_iccattrval_t **attrval); >jas_iccattrval_t *jas_iccattrval_clone(jas_iccattrval_t *attrval); >jas_iccattrval_t *jas_iccattrval_create(jas_iccuint32_t type); > >void jas_iccattrtab_dump(jas_iccattrtab_t *attrtab, Sfio_t *out); > >extern unsigned char jas_iccprofdata_srgb[]; >extern int jas_iccprofdata_srgblen; >extern unsigned char jas_iccprofdata_sgray[]; >extern int jas_iccprofdata_sgraylen; >jas_iccprof_t *jas_iccprof_createfrombuf(unsigned char *buf, int len); >jas_iccprof_t *jas_iccprof_createfromclrspc(int clrspc); ># 73 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_cm.h" 2 > > > > > >typedef int jas_clrspc_t; ># 152 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_cm.h" >typedef double jas_cmreal_t; > >struct jas_cmpxform_s; > >typedef struct { > long *buf; > int prec; > int sgnd; > int width; > int height; >} jas_cmcmptfmt_t; > >typedef struct { > int numcmpts; > jas_cmcmptfmt_t *cmptfmts; >} jas_cmpixmap_t; > >typedef struct { > void (*destroy)(struct jas_cmpxform_s *pxform); > int (*apply)(struct jas_cmpxform_s *pxform, jas_cmreal_t *in, jas_cmreal_t *out, int cnt); > void (*dump)(struct jas_cmpxform_s *pxform); >} jas_cmpxformops_t; > >typedef struct { > jas_cmreal_t *data; > int size; >} jas_cmshapmatlut_t; > >typedef struct { > int mono; > int order; > int useluts; > int usemat; > jas_cmshapmatlut_t luts[3]; > jas_cmreal_t mat[3][4]; >} jas_cmshapmat_t; > >typedef struct { > int order; >} jas_cmshaplut_t; > >typedef struct { > int inclrspc; > int outclrspc; >} jas_cmclrspcconv_t; > > > >typedef struct jas_cmpxform_s { > int refcnt; > jas_cmpxformops_t *ops; > int numinchans; > int numoutchans; > union { > double dummy; > jas_cmshapmat_t shapmat; > jas_cmshaplut_t shaplut; > jas_cmclrspcconv_t clrspcconv; > } data; >} jas_cmpxform_t; > >typedef struct { > int numpxforms; > int maxpxforms; > jas_cmpxform_t **pxforms; >} jas_cmpxformseq_t; > >typedef struct { > int numinchans; > int numoutchans; > jas_cmpxformseq_t *pxformseq; >} jas_cmxform_t; > > > > > > >typedef struct { > int clrspc; > int numchans; > int refclrspc; > int numrefchans; > jas_iccprof_t *iccprof; > jas_cmpxformseq_t *pxformseqs[13]; >} jas_cmprof_t; > > > > >void jas_cmprof_destroy(jas_cmprof_t *prof); ># 258 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_cm.h" >jas_cmxform_t *jas_cmxform_create(jas_cmprof_t *inprof, jas_cmprof_t *outprof, > jas_cmprof_t *proofprof, int op, int intent, int optimize); > >void jas_cmxform_destroy(jas_cmxform_t *xform); > > >int jas_cmxform_apply(jas_cmxform_t *xform, jas_cmpixmap_t *in, > jas_cmpixmap_t *out); > >int jas_cxform_optimize(jas_cmxform_t *xform, int optimize); > >int jas_clrspc_numchans(int clrspc); >jas_cmprof_t *jas_cmprof_createfromiccprof(jas_iccprof_t *iccprof); >jas_cmprof_t *jas_cmprof_createfromclrspc(int clrspc); >jas_iccprof_t *jas_iccprof_createfromcmprof(jas_cmprof_t *prof); > > >jas_cmprof_t *jas_cmprof_copy(jas_cmprof_t *prof); ># 71 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_fix.h" 1 ># 73 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_debug.h" 1 ># 79 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_debug.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_debug.h" 1 ># 80 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_debug.h" 2 ># 99 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_debug.h" >int jas_getdbglevel(void); > > >int jas_setdbglevel(int dbglevel); > > >int jas_eprintf(const char *fmt, ...); > > >int jas_memdump(Sfio_t *out, void *data, size_t len); ># 74 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_getopt.h" 1 ># 94 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_getopt.h" >typedef struct { > > int id; > > > char *name; > > > int flags; > > >} jas_opt_t; > > > > > > >extern int jas_optind; > > >extern char *jas_optarg; > > >extern int jas_opterr; > > > > > > >int jas_getopt(int argc, char **argv, jas_opt_t *opts); ># 75 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" 1 ># 79 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_seq.h" 1 ># 98 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_seq.h" >typedef int_fast32_t jas_seqent_t; > > >typedef int_fast32_t jas_matent_t; > > > >typedef struct { > > > int flags_; > > > int_fast32_t xstart_; > > > int_fast32_t ystart_; > > > int_fast32_t xend_; > > > int_fast32_t yend_; > > > int_fast32_t numrows_; > > > int_fast32_t numcols_; > > > jas_seqent_t **rows_; > > > int_fast32_t maxrows_; > > > jas_seqent_t *data_; > > > int_fast32_t datasize_; > >} jas_matrix_t; > >typedef jas_matrix_t jas_seq2d_t; >typedef jas_matrix_t jas_seq_t; ># 186 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_seq.h" >jas_matrix_t *jas_matrix_create(int numrows, int numcols); > > >void jas_matrix_destroy(jas_matrix_t *matrix); > > >int jas_matrix_resize(jas_matrix_t *matrix, int numrows, int numcols); > >int jas_matrix_output(jas_matrix_t *matrix, Sfio_t *out); > > >void jas_matrix_bindsub(jas_matrix_t *mat0, jas_matrix_t *mat1, int r0, int c0, > int r1, int c1); ># 209 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_seq.h" >void jas_matrix_clip(jas_matrix_t *matrix, jas_seqent_t minval, > jas_seqent_t maxval); > > >void jas_matrix_asl(jas_matrix_t *matrix, int n); > > >void jas_matrix_asr(jas_matrix_t *matrix, int n); > > >void jas_matrix_divpow2(jas_matrix_t *matrix, int n); > > >void jas_matrix_setall(jas_matrix_t *matrix, jas_seqent_t val); ># 233 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_seq.h" >int jas_matrix_cmp(jas_matrix_t *mat0, jas_matrix_t *mat1); > >jas_matrix_t *jas_matrix_copy(jas_matrix_t *x); > > > > > >jas_seq2d_t *jas_seq2d_copy(jas_seq2d_t *x); > >jas_matrix_t *jas_seq2d_create(int xstart, int ystart, int xend, int yend); ># 271 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_seq.h" >void jas_seq2d_bindsub(jas_matrix_t *s, jas_matrix_t *s1, int xstart, > int ystart, int xend, int yend); ># 80 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" 2 ># 131 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" >typedef int_fast32_t jas_image_coord_t; > > >typedef int_fast16_t jas_image_colorspc_t; > > >typedef int_fast32_t jas_image_cmpttype_t; > > >typedef int_fast16_t jas_image_smpltype_t; > > > > > > > >typedef struct { > > jas_image_coord_t tlx_; > > > jas_image_coord_t tly_; > > > jas_image_coord_t hstep_; > > > jas_image_coord_t vstep_; > > > jas_image_coord_t width_; > > > jas_image_coord_t height_; > > > > > > int prec_; > > > > > int sgnd_; > > > > jas_stream_t *stream_; > > > int cps_; > > > jas_image_cmpttype_t type_; > > >} jas_image_cmpt_t; > > > >typedef struct { > > jas_image_coord_t tlx_; > > > jas_image_coord_t tly_; > > > jas_image_coord_t brx_; > > > > jas_image_coord_t bry_; > > > > int numcmpts_; > > > int maxcmpts_; > > > > jas_image_cmpt_t **cmpts_; > > > jas_clrspc_t clrspc_; > > jas_cmprof_t *cmprof_; > > Boolean inmem_; >} jas_image_t; > > > > > >typedef struct { > > jas_image_coord_t tlx; > > > jas_image_coord_t tly; > > > jas_image_coord_t hstep; > > > jas_image_coord_t vstep; > > > jas_image_coord_t width; > > > jas_image_coord_t height; > > > > > > int prec; > > > int sgnd; > > > >} jas_image_cmptparm_t; ># 271 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" >typedef struct { > > jas_image_t *(*decode)(jas_stream_t *in, char *opts); > > > int (*encode)(jas_image_t *image, jas_stream_t *out, char *opts); > > > int (*validate)(jas_stream_t *in); > > >} jas_image_fmtops_t; > > > >typedef struct { > > int id; > > > char *name; > > > char *ext; > > > char *desc; > > > jas_image_fmtops_t ops; > > >} jas_image_fmtinfo_t; > > > > > > >jas_image_t *jas_image_create(int numcmpts, > jas_image_cmptparm_t *cmptparms, jas_clrspc_t clrspc); > > >jas_image_t *jas_image_create0(void); > > >jas_image_t *jas_image_copy(jas_image_t *image); > > >void jas_image_destroy(jas_image_t *image); ># 413 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" >uint_fast32_t jas_image_rawsize(jas_image_t *image); > > >jas_image_t *jas_image_decode(jas_stream_t *in, int fmt, char *optstr); > > >int jas_image_encode(jas_image_t *image, jas_stream_t *out, int fmt, > char *optstr); > > > > >int jas_image_readcmpt(jas_image_t *image, int cmptno, > jas_image_coord_t x, jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height, > jas_matrix_t *data); > > >int jas_image_writecmpt(jas_image_t *image, int cmptno, > jas_image_coord_t x, jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height, > jas_matrix_t *data); > > >void jas_image_delcmpt(jas_image_t *image, int cmptno); > > >int jas_image_addcmpt(jas_image_t *image, int cmptno, > jas_image_cmptparm_t *cmptparm); > > >int jas_image_copycmpt(jas_image_t *dstimage, int dstcmptno, > jas_image_t *srcimage, int srccmptno); ># 453 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" >int jas_image_depalettize(jas_image_t *image, int cmptno, int numlutents, > int_fast32_t *lutents, int dtype, int newcmptno); > >int jas_image_readcmptsample(jas_image_t *image, int cmptno, int x, int y); >void jas_image_writecmptsample(jas_image_t *image, int cmptno, int x, int y, > int_fast32_t v); > >int jas_image_getcmptbytype(jas_image_t *image, int ctype); > > > > > > >void jas_image_clearfmts(void); > > >int jas_image_addfmt(int id, char *name, char *ext, char *desc, > jas_image_fmtops_t *ops); > > >int jas_image_strtofmt(char *s); > > >char *jas_image_fmttostr(int fmt); > > >jas_image_fmtinfo_t *jas_image_lookupfmtbyid(int id); > > >jas_image_fmtinfo_t *jas_image_lookupfmtbyname(const char *name); > > >int jas_image_fmtfromname(char *filename); > > >int jas_image_getfmt(jas_stream_t *in); > > > >int jas_image_ishomosamp(jas_image_t *image); >int jas_image_sampcmpt(jas_image_t *image, int cmptno, int newcmptno, > jas_image_coord_t ho, jas_image_coord_t vo, jas_image_coord_t hs, > jas_image_coord_t vs, int sgnd, int prec); >int jas_image_writecmpt2(jas_image_t *image, int cmptno, jas_image_coord_t x, > jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height, > long *buf); >int jas_image_readcmpt2(jas_image_t *image, int cmptno, jas_image_coord_t x, > jas_image_coord_t y, jas_image_coord_t width, jas_image_coord_t height, > long *buf); > > >jas_image_t *jas_image_chclrspc(jas_image_t *image, jas_cmprof_t *outprof, > int intent); >void jas_image_dump(jas_image_t *image, Sfio_t *out); ># 550 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_image.h" >jas_image_t *jp2_decode(jas_stream_t *in, char *optstr); >int jp2_encode(jas_image_t *image, jas_stream_t *out, char *optstr); >int jp2_validate(jas_stream_t *in); > > > > >jas_image_t *jpc_decode(jas_stream_t *in, char *optstr); >int jpc_encode(jas_image_t *image, jas_stream_t *out, char *optstr); >int jpc_validate(jas_stream_t *in); ># 76 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_math.h" 1 ># 78 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_malloc.h" 1 ># 104 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_malloc.h" >void *jas_malloc(size_t size); > > >void jas_free(void *ptr); > > >void *jas_realloc(void *ptr, size_t size); > > >void *jas_calloc(size_t nmemb, size_t size); ># 79 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 > > ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_string.h" 1 ># 88 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_string.h" >char *jas_strdup(const char *); ># 82 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_tvp.h" 1 ># 87 "/helios/release/libs/codecs-1.0.9/h/jasper/jas_tvp.h" >typedef struct { > > int id; > > > char *name; > > >} jas_taginfo_t; > > > >typedef struct { > > char *buf; > > > char *tag; > > > char *val; > > > char *pos; > > >} jas_tvparser_t; > > > > > > >jas_taginfo_t *jas_taginfos_lookup(jas_taginfo_t *taginfos, const char *name); > > > > > >jas_taginfo_t *jas_taginfo_nonull(jas_taginfo_t *taginfo); > > > > > > >jas_tvparser_t *jas_tvparser_create(const char *s); > > >void jas_tvparser_destroy(jas_tvparser_t *tvparser); > > >int jas_tvparser_next(jas_tvparser_t *tvparser); > > >char *jas_tvparser_gettag(jas_tvparser_t *tvparser); > > >char *jas_tvparser_getval(jas_tvparser_t *tvparser); ># 83 "/helios/release/libs/codecs-1.0.9/h/jasper/jasper.h" 2 ># 20 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 > ># 1 "/helios/release/libs/codecs-1.0.9/h/gencodec.h" 1 ># 19 "/helios/release/libs/codecs-1.0.9/h/gencodec.h" >typedef struct genStream *genStreamPtr; > >typedef void (*genFreeFunc)(genStreamPtr gens); >typedef int (*genProcFunc)(genStreamPtr gens); >typedef int (*genSetEOIFunc)(genStreamPtr gens); > >typedef struct genStream { > char *next_in; > size_t avail_in; > char *next_out; > size_t avail_out; > uint32 status; > > > genProcFunc procFunc; > genSetEOIFunc eoiFunc; > genFreeFunc freeFunc; >} genStream; ># 22 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/ahxcodec.h" 1 ># 36 "/helios/release/libs/codecs-1.0.9/h/ahxcodec.h" >typedef struct ahxParams { > uint32 flags; > int16 maxLineLength; > char linePrefix; >} ahxParams, *ahxParamsPtr; > > > >typedef enum ahxErr { > ahxErr_first = ErrbaseCodecs + 0, > > ahxErrInitTrace, > ahxErrDecBadState, > ahxErrDecBadInput, > ahxErrEncBadState, > > ahxErr_last >} ahxErr; > > int ahxDecodeInit(genStreamPtr *gensp, ahxParamsPtr params); > int ahxEncodeInit(genStreamPtr *gensp, ahxParamsPtr params); ># 23 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/a85codec.h" 1 ># 23 "/helios/release/libs/codecs-1.0.9/h/a85codec.h" >typedef struct a85Params { > uint32 flags; > int16 maxLineLength; >} a85Params, *a85ParamsPtr; > > > >typedef enum a85Err { > a85Err_first = ErrbaseCodecs + 100, > > a85ErrInitTrace, > a85ErrDecBadState, > a85ErrDecBadInput, > a85ErrEncBadState, > > a85Err_last >} a85Err; > > int a85DecodeInit(genStreamPtr *gensp, a85ParamsPtr params); > int a85EncodeInit(genStreamPtr *gensp, a85ParamsPtr params); ># 24 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/lzwcodec.h" 1 ># 18 "/helios/release/libs/codecs-1.0.9/h/lzwcodec.h" >typedef struct lzwParams { > uint32 flags; > int earlyChange; >} lzwParams, *lzwParamsPtr; > > > >typedef enum lzwErr { > lzwErr_first = ErrbaseCodecs + 200, > > lzwErrInitTrace, > lzwErrIllParam, > lzwErrDecBadState, > lzwErrDecBadInput, > lzwErrEncBadState, > > lzwErr_last >} lzwErr; > > int lzwDecodeInit(genStreamPtr *gensp, lzwParamsPtr params); > int lzwEncodeInit(genStreamPtr *gensp, lzwParamsPtr params); ># 25 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/faxcodec.h" 1 ># 30 "/helios/release/libs/codecs-1.0.9/h/faxcodec.h" >typedef struct faxParams { > uint32 flags; > > int K; > Boolean EndOfLine; > Boolean EncodedByteAlign; > uint32 Columns; > uint32 Rows; > Boolean EndOfBlock; > Boolean BlackIsOne; >} faxParams, *faxParamsPtr; > > > >typedef enum faxErr { > faxErr_first = ErrbaseCodecs + 300, > > faxErrInitTrace, > faxErrDecBadState, > faxErrDecG32notimpl, > faxErrDecExtnotimpl, > faxErrDecBadinput, > faxErrEncBadState, > faxErrEncUnexpectedEOI, > > faxErr_last >} faxErr; > > int faxDecodeInit(genStreamPtr *gensp, faxParamsPtr params); > int faxEncodeInit(genStreamPtr *gensp, faxParamsPtr params); ># 26 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/rlecodec.h" 1 ># 18 "/helios/release/libs/codecs-1.0.9/h/rlecodec.h" >typedef struct rleParams { > uint32 flags; >} rleParams, *rleParamsPtr; > > > >typedef enum rleErr { > rleErr_first = ErrbaseCodecs + 400, > > rleErrInitTrace, > rleErrDecBadState, > rleErrEncBadState, > rleErrEncNotImpl, > > rleErr_last >} rleErr; > > int rleDecodeInit(genStreamPtr *gensp, rleParamsPtr params); > int rleEncodeInit(genStreamPtr *gensp, rleParamsPtr params); ># 27 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/predcodec.h" 1 ># 18 "/helios/release/libs/codecs-1.0.9/h/predcodec.h" >typedef struct predParams { > uint32 flags; > > > > > uint16 Method; > > > > > > > > uint8 Colors; > uint8 Bpc; > uint32 Columns; >} predParams, *predParamsPtr; > > > >typedef enum predErr { > predErr_first = ErrbaseCodecs + 500, > > predErrInitTrace, > predErrDecBadState, > predErrDecUnknownMethod, > predErrDecUnknownPNGFilter, > predErrDecBadBpc, > predErrDecBadColors, > predErrDecBadColumns, > predErrEncNotImpl, > > predErr_last >} predErr; > > int predDecodeInit(genStreamPtr *gensp, predParamsPtr params); > int predEncodeInit(genStreamPtr *gensp, predParamsPtr params); ># 28 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jp2codec.h" 1 ># 24 "/helios/release/libs/codecs-1.0.9/h/jp2codec.h" >typedef enum jp2Err { > jp2Err_first = ErrbaseCodecs + 600, > > jp2ErrDecInit, > jp2ErrDecNoCodestream, > jp2ErrDecBadBox, > jp2ErrDecBadMarkerSegment, > jp2ErrDecNoIhdrBox, > jp2ErrDecNoColrBox, > jp2ErrDecInvalidCmapBox, > jp2ErrDecInvalidCompression, > jp2ErrDecUnsupportedColorspaceBI, > jp2ErrDecNoOutput, > jp2ErrDecNoInput, > > jp2DecEoc, > > jp2ErrEncInvalidParams, > jp2ErrEncFailed, > jp2ErrEncWriteFailed, > jp2ErrEncUnsupportedColorspace, > jp2ErrEncUnsupportedColorspaceBI, > jp2Err_last >} jp2Err; > >typedef enum jp2ColorSpace { > jp2GRAY = (((3) << 8) | (1)), > jp2RGB = (((4) << 8) | (1)), > jp2YCBCR = (((5) << 8) | (1)), > jp2LAB = (((2) << 8) | (1)), > jp2CMYK = (((6) << 8) | (1)), > jp2BI = (((7) << 8) | (1)), > jp2UnknownColorSpace = 0x4000 >} jp2ColorSpace; > >typedef struct jp2LABEP { > uint32 rl, ol, ra, oa, rb, ob; ># 71 "/helios/release/libs/codecs-1.0.9/h/jp2codec.h" > uint16 ilId; > uint16 ilSpecificTemperature; > >} jp2LABEP; ># 118 "/helios/release/libs/codecs-1.0.9/h/jp2codec.h" >typedef struct jp2Params { > uint32 flags; > > > uint32 width, height; > jp2ColorSpace colorspace; > uint16 numComponents; > uint8 bitsPerComponent; > double xRes, yRes; > float rate; > jp2LABEP labEP; > > > > > uint32 tileWidth, tileHeight; > > > uint8 *iccProfile; > uint32 iccLength; >} jp2Params, *jp2ParamsPtr; > >typedef jp2Params jp2HeaderInfo; > > > int jp2DecodeInit(genStreamPtr *gensp, jp2ParamsPtr params); > > > int jp2EncodeInit(genStreamPtr *gensp, jp2ParamsPtr params); ># 157 "/helios/release/libs/codecs-1.0.9/h/jp2codec.h" > int jp2DecodeHeaderInfo(Sfio_t* f, jp2HeaderInfo *info); > > > > > > > > int jp2Modify(Sfio_t *fpsrc, Sfio_t *fpdst, float xRes, float yRes, char *iccProfile, uint32 iccLength, uint32 flags); > > > void jp2ReleaseIccProfile(jp2HeaderInfo *info); > > > int jp2_check_sig(uint8 *sig, int num); ># 29 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 ># 1 "/helios/release/libs/codecs-1.0.9/h/jbig2codec.h" 1 ># 19 "/helios/release/libs/codecs-1.0.9/h/jbig2codec.h" >typedef struct jbig2Globals >{ > struct jb2SegmentListElement *elements; >} jbig2Globals; > > >typedef struct jbig2PageInfo >{ > uint32 width, height; > uint32 xRes, yRes; > uint32 numPages; >} jbig2PageInfo; > > >typedef struct jbig2Params >{ ># 47 "/helios/release/libs/codecs-1.0.9/h/jbig2codec.h" > uint32 flags; > > > > > > > > uint32 pageNum; > > > > jbig2Globals *globals; > > > > jbig2PageInfo *pageInfo; >} jbig2Params, *jbig2ParamsPtr; > > > > >typedef enum jbig2Err { > jbig2Err_first = ErrbaseCodecs + 700, > > jbig2ErrDecBadState, > jbig2ErrDecBadInput, > jbig2ErrDecInsufficientInput, > jbig2ErrDecInvalidFileHeader, > jbig2ErrDecInvalidParams, > jbig2ErrDecReferenceNotDecoded, > jbig2ErrDecWrite, > jbig2ErrDecNotSupported, > > jbig2Err_last >} jbig2Err; > > int jbig2DecodeInit(genStreamPtr *gensp, jbig2ParamsPtr params); > > > jbig2Globals *jbig2CreateGlobals(); > > > void jbig2FreeGlobals(jbig2Globals *globals); > > > void jbig2CopyScanline(uint8 *dline, uint32 dx, uint32 dw, uint8 *sbuffer, uint32 sw); > > > int jbig2_check_sig(uint8 *in); ># 30 "/helios/release/libs/codecs-1.0.9/h/codecs.h" 2 > > int InitCodecs(int majorVersion, int minorVersion, char *ebuf, int ebuflen); > void ExitCodecs(void); ># 24 "../h/oieps.h" 2 ># 1 "/helios/release/libs/sfdisc-4.0.9/h/sfdisc.h" 1 ># 16 "/helios/release/libs/sfdisc-4.0.9/h/sfdisc.h" > int InitSfdisc(int majorVersion, int minorVersion, char *ebuf, int ebuflen); > void ExitSfdisc(void); > > Sfdisc_t* dcNewSkable(Sfio_t *f); > int dcDelSkable(Sfdisc_t *disc); > > Sfdisc_t* dcNewTee(Sfio_t *tee); > int dcDelTee(Sfdisc_t *disc); > > > > Sfdisc_t* dcNewFilter(char *program); > int dcDelFilter(Sfdisc_t *disc); > > > Sfdisc_t* dcNewSubStream(Sfio_t *f, off_t offset, off_t extent); > int dcDelSubStream(Sfdisc_t *disc); > > Sfdisc_t* dcNewCompress(void); > int dcDelCompress(Sfdisc_t *disc); > > Sfdisc_t* dcNewGzip(int clevel); > int dcDelGzip(Sfdisc_t *disc); > > Sfdisc_t* dcNewUnion(Sfio_t **f, int n); > int dcDelUnion(Sfdisc_t *disc); > >typedef enum dcEncodDir { > dcDecoding = 1, > dcEncoding >} dcEncodDir; > >typedef enum jpegCs { > jpegCsUnknown, > jpegCsGray, > jpegCsRGB, > jpegCsYCbCr, > jpegCsCMYK, > jpegCsYCCR >} jpegCs; > > > > >typedef struct jpegParams { > uint32 flags; > uint32 columns; > uint32 rows; > uint16 colors; > uint16 bitsPerComponent; > jpegCs colorspace; > int16 quality; > int16 scaleFactor; > Boolean forceBaseline; >} jpegParams; > > > > > > >typedef struct flateParams { > uint32 flags; > int clevel; > uint32 *crc; > off_t *usize; > off_t *csize; >} flateParams; > > Sfdisc_t* dcNewAhx(dcEncodDir encDir, int ioMode, Boolean doWarnings, > ahxParams *ahxp); > int dcDelAhx(Sfdisc_t* disc); > > Sfdisc_t* dcNewA85(dcEncodDir encDir, int ioMode, Boolean doWarnings, > a85Params *a85p); > int dcDelA85(Sfdisc_t* disc); > > Sfdisc_t* dcNewJpeg(dcEncodDir encDir, int ioMode, Boolean doWarnings, > jpegParams *jp); > int dcDelJpeg(Sfdisc_t* sf_disc); > > Sfdisc_t* dcNewLzw(dcEncodDir encDir, int ioMode, Boolean doWarnings, > lzwParams *lzwp); > int dcDelLzw(Sfdisc_t* disc); > > Sfdisc_t* dcNewFlate(dcEncodDir encDir, int ioMode, Boolean doWarnings, > flateParams *fp); > int dcDelFlate(Sfdisc_t* disc); > > > Sfdisc_t* dcNewFax(dcEncodDir encDir, int ioMode, Boolean doWarnings, > faxParams *fp); > int dcDelFax(Sfdisc_t* disc); > > > Sfdisc_t* dcNewRunLength(dcEncodDir encDir, int ioMode, Boolean doWarnings, > rleParams *fp); > int dcDelRunLength(Sfdisc_t* disc); > > > Sfdisc_t* dcNewPredictor(dcEncodDir encDir, int ioMode, Boolean doWarnings, > predParams *fp); > int dcDelPredictor(Sfdisc_t* disc); > > > Sfdisc_t* dcNewJp2(dcEncodDir encDir, int ioMode, Boolean doWarnings, > jp2Params *fp); > int dcDelJp2(Sfdisc_t* disc); > > > Sfdisc_t* dcNewJbig2(dcEncodDir encDir, int ioMode, Boolean doWarnings, > jbig2Params *fp); > int dcDelJbig2(Sfdisc_t* disc); ># 25 "../h/oieps.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 1 ># 14 "/helios/release/libs/printlib-2.0.9/h/printlib.h" ># 1 "/helios/release/libs/printlib-2.0.9/h/printliberr.h" 1 ># 14 "/helios/release/libs/printlib-2.0.9/h/printliberr.h" > int InitPrintlib(int majorVersion, int minorVersion, char *ebuf, int ebuflen); > void ExitPrintlib(void); ># 15 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/obj-linuxppc/printlibMsg.h" 1 ># 75 "/helios/release/libs/printlib-2.0.9/h/obj-linuxppc/printlibMsg.h" >typedef enum PrintlibErrors { > _noErr = 0, > _first = ErrbasePrintlib, > PrintlibUnknownErr, > NoPrintcapEntryErr, > NoSpooldirErr, > PpdMissingReqObjErr, > PpdMissingUiObjErr, > PpdMissingKeyObjErr, > PpdMissingGroupObjErr, > PpdUnkbownAttributeErr, > PpdFseekFailedErr, > PpdFreadFailedErr, > PpdSyntaxErr, > PpdErrErr, > PpdInvFilenameErr, > PpdCantOpenFileErr, > PpdSyntaxMissingErr, > PpdSyntaxTransErr, > PpdExpectedEndErr, > PpdUnknownObjectErr, > PpdIllGroupProcErr, > PpdMissingKeywordErr, > PpdGroupProcExpectedErr, > PpdMismatchedOpenUIErr, > PpdMissingUiNameErr, > PpdMissingOrderParamErr, > PpdMissingSectionParamErr, > PpdMissingKeywordParamErr, > PpdMissingKeyErr, > PpdMissingObjectErr, > PpdOutOfMemoryErr, > PpdInvalErr, > PpdNotDoneErr, > PpdNotFoundErr, > PpdNotYetImplementedErr, > PpdLineTooLongErr, > PpdNoMoreEntriesErr, > PpdKeyNameNotFoundErr, > PpdKeyOptionNotFoundErr, > PpdKeyOptionTrnsNotFoundErr, > PpdKeyValueTrnsNotFoundErr, > PpdGroupNameTrnsNotFoundErr, > PpdUINameTrnsNotFoundErr, > LpdStartErr, > LprNoCtrlErr, > LprNoHistErr, > LprNoCapPrinterErr, > LprNoCapValueErr, > LprSetCapErr, > LprSaveCapErr, > LprInvFiletypeErr, > LprEmptyDatafileErr, > LprFileTooLargeErr, > LprInvJobfileErr, > LprTooManyFilesErr, > LprNoPrintFilesErr, > LprFileNotRemovedErr, > LprAbortSignalErr, > LprMaxJobLimitExceeded, > AdscOverFlowErr, > _last >} PrintlibErrors; ># 16 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/privatdsc.h" 1 ># 17 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/printparams.h" 1 ># 18 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/adsc.h" 1 ># 44 "/helios/release/libs/printlib-2.0.9/h/adsc.h" >typedef struct { > Queue link; > int nargs; > char **args; >} ADSCInstance, *ADSCInstancePtr; > >typedef struct { > char *keyword; > uint32 flags; > Queue instances; >} ADSCKeyword, *ADSCKeywordPtr; > >typedef struct { > uint32 hash; > char *fontName; > uint32 flags; >} FontList, *FontListPtr; > >typedef int (*fontCallbackFunc)(TreeWalkOrder order, FontListPtr fp, void *arg); > > int ADSCParse(Sfio_t *f, ADSCKeywordPtr kp, uint32 flags, ADSCKeywordPtr stopcomment); > void ADSCFree(ADSCKeywordPtr kp); > char *ADSCEnquote(char *src, char *dst); > int ADSCUTF8Enquote(char *src, char *dst, size_t dstlen); > > > > > > > > char *ADSCDequote(char *src, char *dst); > int checkSysFonts(char *fontdir); > int readFontFile(Sfio_t *fp, FontListPtr *fontlistrootp, uint32 flags); > int insertFont(char *fontname, uint32 flags, FontListPtr *fontlistrootp); > FontListPtr findFont(char *fontname, FontListPtr fontlistroot); > void deleteFont(char *fontname, FontListPtr *fontlistrootp); > void freeFontList(FontListPtr *fontlistrootp); > uint32 fontMkHash(u_char *s); > int traverseFontList(FontListPtr fontlistroot, int flags, fontCallbackFunc action, void *arg); > int moveFont(char *fontname, FontListPtr *srcfontlistp, FontListPtr *dstfontlistp); > int moveFontList(FontListPtr *srcfontlistp, FontListPtr *dstfontlistp); ># 19 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/iwstatus.h" 1 ># 20 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/printertype.h" 1 ># 21 "/helios/release/libs/printlib-2.0.9/h/printertype.h" >typedef enum { > UnknownPrinter, > LaserWriter, > ImageWriter, > LQImageWriter, > DeskWriter, > EpsonLQ2 >} PrinterType; > > PrinterType classifyPrinter(char *type); ># 21 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/ppdp.h" 1 ># 48 "/helios/release/libs/printlib-2.0.9/h/ppdp.h" >typedef char *PPDKey; >typedef char *PPDGroup; >typedef char *PPDUI; >typedef char *PPDRequest; >typedef char *PPDOpaque; > >typedef enum { > > PPD_VOID_REQ = 0x0, > PPD_REQUEST = 0x1, > PPD_REQUEST_GROUP = 0x2, > PPD_REQUEST_UI = 0x3, > PPD_REQUEST_KEY = 0x4, > PPD_REQUEST_CACHE_VALUE = 0x5, > PPD_REQ_GROUPS = 0x6, > PPD_REQ_UIS = 0x7, > PPD_REQ_KEYS = 0x8, > PPD_ORDER_DEPENDENCY = 0x9, > PPD_ORDER_DEP_SECTION = 0xa, > PPD_REQ_RAW = 0xb, > PPD_REQ_COOKED = 0xc, > > > PPD_GROUP = 0x21, > PPD_GROUP_PROC = 0x22, > PPD_GROUP_NAME = 0x23, > PPD_GROUP_UI = 0x24, > PPD_GROUP_NAME_TRNS = 0x25, > > > PPD_UI = 0x41, > PPD_UI_PROC = 0x42, > PPD_UI_KEY = 0x43, > PPD_UI_NAME = 0x44, > PPD_UI_TYPE = 0x45, > PPD_UI_NAME_TRNS = 0x46, > > > PPD_KEY = 0x61, > PPD_KEY_PROC = 0x62, > PPD_KEY_NAME = 0x63, > PPD_KEY_OPTION = 0x64, > PPD_KEY_OPTION_TRNS = 0x65, > PPD_KEY_VALUE_TRNS = 0x66, > PPD_KEY_VALUE = 0x67, > PPD_QUERY_KEY = 0x68, > PPD_DEFAULT_KEY = 0x69, > PPD_MAIN_KEYWORD = 0x70 >} PPDAttr; > >typedef PPDAttr PPDObject; > >struct _PpdHandle; >struct PpdGroupInfo; >struct PpdKeyInfo; >struct PpdUiInfo; > >typedef int (*PpdGroupFunc)(struct _PpdHandle *ph, struct PpdGroupInfo *, void *); >typedef int (*PpdKeyFunc)(struct _PpdHandle *ph, struct PpdKeyInfo *, void *udata); >typedef int (*PpdUIFunc)(struct _PpdHandle *ph, struct PpdUiInfo *, void *udata); > >typedef struct PpdKeyInfo { > char *name; > char *option; > char *optTrs; > char *value; > char *valTrs; > off_t lOffset; > off_t vOffset; > int vLen; > PpdKeyFunc NotifyProc; > Sfio_t *fPtr; > void *udata; > struct PpdKeyInfo *next; >} PpdKeyInfo; > > >typedef struct _spkey { > char *name; > char *value; > off_t vOffset; > off_t lOffset; > int vLen; > Sfio_t *fPtr; > struct _spkey *next; >} PpdSpKeyInfo; > >typedef struct _order { > char *name; > char *option; > char *section; > char *order; > struct _order *next; >} PpdOrderInfo; > > >typedef struct PpdUiInfo { > char *name; > char *type; > char *trs; > char *group; > PpdKeyInfo *keys; > PpdUIFunc NotifyProc; > void *udata; > struct PpdUiInfo *next; >} PpdUiInfo; > > >typedef struct PpdGroupInfo { > char *name; > char *trs; > PpdUiInfo *uis; > PpdKeyInfo *keys; > PpdGroupFunc NotifyProc; > void *udata; > struct PpdGroupInfo *next; >} PpdGroupInfo; > > >typedef struct PpdRequestInfo { > PpdGroupInfo *group; > PpdUiInfo *ui; > PpdKeyInfo *key; > PpdSpKeyInfo *deflt; > PpdSpKeyInfo *query; > PpdOrderInfo *order; > int flgs; > Boolean raw_mode; >} PpdRequestInfo; > > > > >typedef struct PpdFileInfo { > char *fileName; > char *srchPath; > off_t offset; > Sfio_t *fPtr; > int lnNum; >} PpdFileInfo; > > > >typedef struct _PpdHandle { > Sfio_t *fPtr; > PpdFileInfo PPDFile; > PpdGroupInfo *ginfo; > int gflag; > PpdUiInfo *uinfo; > int uflag; > PpdKeyInfo *kinfo; > int kflag; > int recCount; > int exitFlg; >} *PpdHandle; > > > > > > int PPDCreate( PpdHandle ph, PPDRequest *ppd_req, ... ); > int PPDGet( PpdHandle ph, ... ); > int PPDSend(PpdHandle ph, PPDRequest req); > int PPDInit(char *ppdFile, PpdHandle *ph); > int PPDExit(PpdHandle ph); > void PPDDestroyReq(PpdHandle ph, PPDRequest req); ># 22 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/lprd.h" 1 ># 63 "/helios/release/libs/printlib-2.0.9/h/lprd.h" >typedef struct { > TabFilePtr tbcap; > uint32 flags; >} LprCap, *LprCapPtr; > > > char *LprCapName(void); > > > > > int LprOpenCap(char *capname, uint32 flags, LprCapPtr *capp); ># 86 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSyncCap(LprCapPtr cap); ># 96 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSaveCap(LprCapPtr cap); ># 105 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > void LprCloseCap(LprCapPtr cap); ># 114 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprGetCapStr(LprCapPtr cap, char *pname, char *id, char **str); ># 124 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprGetCapNum(LprCapPtr cap, char *pname, char *id, uint32 *nump); ># 134 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprGetCapFlag(LprCapPtr cap, char *pname, char *id); ># 144 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSetCapStr(LprCapPtr cap, char *pname, char *id, char *str); ># 153 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSetCapNum(LprCapPtr cap, char *pname, char *id, uint32 num); ># 162 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSetCapFlag(LprCapPtr cap, char *pname, char *id); > > > > > > > > void LprDelCapEnt(LprCapPtr cap, char *pname, char *id); > > > > > > void LprDelCapPrinter(LprCapPtr cap, char *pname); > > > > > > int LprEnumCapPrinter(LprCapPtr cap, void **statep, char **pname); ># 197 "/helios/release/libs/printlib-2.0.9/h/lprd.h" >typedef enum { > lprCapFlag = 1, > lprCapNum, > lprCapStr >} LprCapValueType; > > int LprEnumCapEnt(LprCapPtr cap, char *pname, void **statep, char **idp, void **valp, LprCapValueType *valtypep); ># 228 "/helios/release/libs/printlib-2.0.9/h/lprd.h" >typedef struct LprPrinter *LprPrinterPtr; > >typedef enum { > ReadAccessDenied, > WriteAccessDenied, > DeletedFile, > NoFileDelete, > TransferState >} LprFeedbackEvent; > > >typedef int (*LprFeedbackPtr)(LprPrinterPtr lprp, LprFeedbackEvent event,int err, char *object); > >typedef struct LprPrinter { > char *name; > char *spooldir; > char *capname; > char *lockfile; > int lfd; > char *currentcf; > > uint32 status; > > char *statusfile; ># 262 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > LprFeedbackPtr func; >} LprPrinter; > > int LprOpenQueue(char *capname, char *name, char *spooldir, LprPrinterPtr *lprp); ># 276 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprOpenQueueCap(LprCapPtr cap, char *name, char *spooldir, LprPrinterPtr *lprp); > > > > > > void LprCloseQueue(LprPrinterPtr lprp); > > > > > > int LprQueueStatus(LprPrinterPtr lprp); > > > > > > > int LprStartDaemon(LprPrinterPtr lprp); ># 305 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > void LprStopDaemon(LprPrinterPtr lprp); > > > > > > > > void LprResetQueue(LprPrinterPtr lprp); ># 323 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSetStatus(LprPrinterPtr lprp); ># 335 "/helios/release/libs/printlib-2.0.9/h/lprd.h" >typedef struct { > Queue link; > char *line; > > uint32 flags; > >} LprCtrlEntry, *LprCtrlEntryPtr; > > > > > > >typedef struct { > Queue link; > char *jobid; > > char *ctrlfile; > char *jobtitle; > > time_t mtime; > uid_t uid; > gid_t gid; > mode_t mode; > Queue entries; > int fd; >} LprCtrl, *LprCtrlPtr; > > int LprReadCtrl(LprPrinterPtr lprp, char *jobid, int fd, LprCtrlPtr *ctrl); ># 379 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprStatCtrl(LprPrinterPtr lprp, char *jobid, LprCtrlPtr *ctrl); > > > > > int LprWriteCtrl(LprPrinterPtr lprp, LprCtrlPtr ctrl, uint32 flags); ># 396 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > Boolean LprIdIsCurrent(LprPrinterPtr lprp, char *id); > > > > > > Boolean LprCtrlIsCurrent(LprPrinterPtr lprp, LprCtrlPtr ctrl); > > > > > > int LprLockCtrl(LprCtrlPtr ctrl); ># 421 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > Boolean LprUnlockCtrl(LprCtrlPtr ctrl, Boolean DeleteFile); ># 433 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > Boolean LprDelTmpCtrl(LprCtrlPtr ctrl); > > > > > void LprFreeCtrl(LprCtrlPtr ctrl); > > > > > > > int LprAddHistToCtrl(LprPrinterPtr lprp, LprCtrlPtr ctrl, char *histname, char *holdq, char *errorq, uint32 flags); ># 458 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprGetHistFromCtrl(LprPrinterPtr lprp, LprCtrlPtr ctrl, char *histname, char *holdq, char *errorq, uint32 flags); ># 467 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > void LprDelHistFromCtrl(LprPrinterPtr lprp, LprCtrlPtr ctrl, uint32 flags); > > > > > > > int LprCopyJob(LprPrinterPtr from, LprCtrlPtr ctrl, LprPrinterPtr to, uint32 flags); ># 485 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprCopyJobId(LprPrinterPtr from, LprCtrlPtr ctrl, LprPrinterPtr to, uint32 flags, char ** newjobid); > > > > > int LprMoveJob(LprPrinterPtr from, LprCtrlPtr ctrl, LprPrinterPtr to, uint32 flags); ># 504 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprMoveJobId(LprPrinterPtr from, LprCtrlPtr ctrl, LprPrinterPtr to, uint32 flags, char ** newjobid); > > > > > > int LprRemoveJobId(LprPrinterPtr lprp, char *id); ># 520 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprRemoveJobCtrl(LprPrinterPtr lprp, LprCtrlPtr ctrl); > > > > > > > int LprShiftJobId(LprPrinterPtr lprp, char *id, char *predecessor); ># 542 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprShiftJobCtrl(LprPrinterPtr lprp, QueuePtr jobs, LprCtrlPtr ctrl, LprCtrlPtr predecessor); ># 561 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprCountJobs(LprPrinterPtr lprp, uint32 *numJobs); > > > > > int LprEnumJobs(LprPrinterPtr lprp, QueuePtr ctrls, int sortopt); ># 579 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprFastEnumJobs(LprPrinterPtr lprp, QueuePtr ctrls, int sortopt); > > > > > > > void LprFreeJobs(QueuePtr ctrls); ># 598 "/helios/release/libs/printlib-2.0.9/h/lprd.h" >typedef enum { > lprBeforeIO = 1, > lprAfterIO >} LprIOCheckType; > > > > > > >typedef struct { > uint32 flags; ># 623 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > char *person; > > > > > uid_t uid; > > char *class; > > char *jname; > > u_char *title; > Boolean convertTitle; > UnicodeConversionInterfacePtr titleEncoding; > char *fonts[4]; > > > int format; ># 651 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > char *width; > > int indent; > > > int ncopies; > > char **extOptions; > int numExtOptions; > > > int (*checkioFunc)(LprIOCheckType type); > > > > > > >} LprJobOptions, *LprJobOptionsPtr; > > > > >typedef struct { > LprCtrlPtr ctrl; > uint32 maxsize; > > int curjob; > Queue dfiles; >} LprJob, *LprJobPtr; > > > > > > >typedef struct { > Queue link; > uint32 flags; > > > char *path; >} LprJobFile, *LprJobFilePtr; > > > int LprNewJob(LprPrinterPtr lprp, LprJobPtr *jobp); ># 705 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprAddJobFile(LprPrinterPtr lprp, LprJobPtr jobp, LprJobOptionsPtr options, char *path, Sfio_t *fp); ># 714 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprSaveJob(LprPrinterPtr lprp, LprJobPtr jobp); ># 724 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > void LprAbortJob(LprJobPtr jobp); ># 736 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprGenNewCtrl(LprPrinterPtr lprp, char *host, LprCtrlPtr *ctrl); ># 745 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > void LprMakeName(char *fname, char *spooldir, char *prefix, char *alphaid, int numid); > > > > > > > > int LprMakeDfName(char *fname, char *spooldir, char *jobid, int jobnum); ># 765 "/helios/release/libs/printlib-2.0.9/h/lprd.h" >typedef struct { > Queue link; > char *oname; > char *nname; >} LprCopyList, *LprCopyListPtr; > > int LprCopyDf(LprPrinterPtr from, LprPrinterPtr to, char *odf, char *ndf, char *realdf, QueuePtr copylist, Boolean dolink); ># 786 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > int LprAddJobCard(LprJobPtr jobp, int command, char *fmt, ...); ># 797 "/helios/release/libs/printlib-2.0.9/h/lprd.h" > char *LprLLitoa(int64 n, char *istr); > > > > > > > int64 LprLLatoi(char *istr); > > > > > > char *LpdFifoName(void); > > > > > > int UpdateLprStatusFile(LprPrinterPtr lprp, char *msg, int msglen); > > > > > void SendPrinterLogEvent(char *printername); ># 23 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 1 "/helios/release/libs/printlib-2.0.9/h/printutils.h" 1 ># 18 "/helios/release/libs/printlib-2.0.9/h/printutils.h" ># 1 "/helios/release/libs/printlib-2.0.9/h/xoptionquery.h" 1 ># 19 "/helios/release/libs/printlib-2.0.9/h/printutils.h" 2 > > > > int getSpoolDir(char *capname, char *printername, char *spooldir); > char *catArgs(int argc, char **argv); > int insertFontsFromPPD(PpdHandle ppd, FontListPtr *fontlistrootp); > int ConvertStringToHUTF8(u_char *OrigString, u_char **HUTF8String, UnicodeConversionInterfacePtr ucip); > > > int ConvertStringFromHUTF8(u_char *HUTF8String, u_char **ScriptString, int charsize, UnicodeConversionInterfacePtr ucip); > > > > > int ConvertFileTitleToHUTF8(char *Filename, Sfio_t *handle, UnicodeConversionInterfacePtr ucip, u_char **title); > > > > > int hasMoreCRs(Sfio_t *fp); > > > > char* GetSystemCodingName(char *systemName); ># 24 "/helios/release/libs/printlib-2.0.9/h/printlib.h" 2 ># 26 "../h/oieps.h" 2 ># 1 "../../../h/oibase.h" 1 ># 23 "../../../h/oibase.h" >typedef struct { > int32 errnum; > int msgnum; >} MgrErr2MsgNum; > >extern ResourceHandle oiBaseResh; > > > > >extern OIMgrKey oiUnixFsKey[]; >extern OIMgrKey oiNativeFspecKey[]; >extern OIMgrKey oiEsFspecKey[]; >extern OIMgrKey oiPcsFspecKey[]; >extern OIMgrKey oiTiffKey[]; >extern OIMgrKey oiJpegKey[]; >extern OIMgrKey oiSctKey[]; >extern OIMgrKey oiEpsKey[]; >extern OIMgrKey oiApsKey[]; >extern OIMgrKey oiPictKey[]; >extern OIMgrKey oiMacIconKey[]; >extern OIMgrKey oiAdobePathKey[]; > >extern int oiDldpiInit(DldpiPtr, char *); >extern void oiDldpiExit(DldpiPtr); ># 27 "../h/oieps.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" 1 ># 33 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" >typedef struct { > Queue link; > uint32 oflags; > int omode; > int fstype; > int fspec; > int fcreator; > int ftype; > int fext; > OIFinfo finfo; > char *fname; > OIObject objs; > OIObject unusedobjs; > void *ffiles; > void *key; > OIPstringPtr ref; > OIItocPtr handle; > OIStat statinfo; > uint32 statset; > uint32 features; >} OIIfile, *OIIfilePtr; > > > > > ># 1 "/helios/release/libs/oi-8.0.0/h/OIevents.h" 1 ># 31 "/helios/release/libs/oi-8.0.0/h/OIevents.h" >typedef struct { > Queue link; > int refcnt; > uint32 flags; > union { > char *suffix; > char ftype[4]; > } name; > OISrvEventType type; >} OISrvEvent, *OISrvEventPtr; > >typedef struct { > Queue link; > uint32 flags; > > > > > > > > union { > struct { > OIPrintFilterReadFunc readFunc; > OIPrintFilterSeekFunc seekFunc; > OIPrintFilterNotifyFunc notifyFunc; > } p; > struct { > OIOpiCheckImageFunc checkFunc; > OIOpiCheckNotifyFunc notifyFunc; > } c; > struct { > OIOpiDataPreReadFunc preReadFunc; > OIOpiDataPostReadFunc postReadFunc; > OIOpiDataNotifyFunc notifyFunc; > } d; > struct { > OIOpiDataNewDiscFunc newDiscFunc; > OIOpiDataDelDiscFunc delDiscFunc; > } s; > struct { > OIOpiPreflightCheckFunc checkFunc; > } f; > } u; > void *arg; > char *mgrname; > OIMerrFunc mgrfunc; > PrefNodePtr mgrpref; >} OIPrintEvent, *OIPrintEventPtr; > >typedef struct { > Queue link; > uint32 flags; > > > > > uint32 pushRefcnt; > char *comment; > OIDscActionFunc actionFunc; > OIDscNotifyFunc notifyFunc; > void *arg; > char *mgrname; > OIMerrFunc mgrfunc; > PrefNodePtr mgrpref; >} OIDscEvent, *OIDscEventPtr; > >typedef struct { > OIPrintEventPtr *pevents; > int maxsp; > int cursp; > Sfdisc_t *disc; > Sfio_t *sf; >} OIPrintStream, *OIPrintStreamPtr; > >typedef struct { > OIPrintEventPtr *pevents; > OIPrintStatePtr printstatep; > int maxsp; > int cursp; > Sfdisc_t *disc; > Sfio_t *sf; >} OIOpiDataStream, *OIOpiDataStreamPtr; > > void OIfreeEvents(void); > int OIprintEventNotify(OIPrintEventPtr p, int type); > int OIopiCheckImage(QueuePtr peventp, OIPrintStatePtr printstatep, OIOpiCheckStatus oldstatus, OIOpiCheckStatus *newstatus); > int OIopiPreflight(QueuePtr peventp, OIPrintStatePtr printstatep, QueuePtr imagelist); > OIDscErrType OIdscEventNotify(OIDscEventPtr p, OIDscEventType type, OIPrintStatePtr printstatep, QueuePtr execElems); > OIDscErrType OIdscEventAction(OIDscEventPtr p, int dscArgc, char **dscArgv, OIPrintStatePtr printstatep, QueuePtr execElems); > void OIclrDscEvents(uint32 accessmask); > Sfdisc_t *OInewOpiDataDisc(OIPrintEventPtr ep, OIOpiDataDiscType type, OIPrintStatePtr printstatep); > int OIdelOpiDataDisc(OIPrintEventPtr ep, Sfdisc_t *disc); > int OIregisterIntSrvEvent(OISrvEventType type, char *name, uint32 flags); ># 60 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIpaths.h" 1 ># 23 "/helios/release/libs/oi-8.0.0/h/OIpaths.h" >typedef struct { > Queue link; > char *voldir; > char *afpvolname; > char *pcsvolname; > > > char *volfile; > UnicodeConversionInterfacePtr afpcharset; > UnicodeConversionInterfacePtr pcscharset; > uint32 flags; ># 49 "/helios/release/libs/oi-8.0.0/h/OIpaths.h" >} OIHeliosVolume, *OIHeliosVolumePtr; > >typedef struct { > Queue link; > char *path; > OIKey key; >} OISearchDesc, *OISearchDescPtr; > >extern UnicodeConversionInterfacePtr OIMacromanCharset, OIPc850Charset, OIISO8859Charset, OIHUTF8Charset, OIUTF8Charset; > > void OIupdateVols(void); > int OIESmapname(char *esName, char *uxDir, char *uxPath, uint32 *flags); > int OIESstrcmpic(char *esNameA, char *esNameB, UnicodeConversionInterfacePtr upa, UnicodeConversionInterfacePtr upb); > void OIEScanon(char *uxPath, char *esName, UnicodeConversionInterfacePtr up); > void OIESbabel(char *uxPath, char *esName, UnicodeConversionInterfacePtr up); > void OIESdb2ux(char *dbComponent, char *uxComponent, UnicodeConversionInterfacePtr up); > void OIESux2db(char *uxComponent, char *dbComponent, UnicodeConversionInterfacePtr up); > char **OIESmatchWildpath(char *esName); > int OIESnameFromUnix(char *uxPath, char *esName, UnicodeConversionInterfacePtr up); > char *OIESdirname(char *esName, char *esDir); > char *OIESbasename(char *esName); > OIHeliosVolumePtr OIESvolumeRoot(char *uxPath, char *volroot); > int OIESfid2name(char *volroot, OIFileIDPtr fid, char *uxComponent); > int OIESfid2path(char *volroot, OIFileIDPtr fid, char *uxPath); > int OIESfindnames(char *volroot, char *pattern, char ***uxPaths); > int OIESremoveid(char *volroot, OIFileIDPtr fid); > int OIESchangeid(char *volroot, OIFileIDPtr fid, uint32 parent, char *esName); > int OIESaddid(char *volroot, uint32 parent, char *esName, OIFileIDPtr fid); > int OIESsetid(char *volroot, uint32 parent, char *esName, OIFileIDPtr fid); > int OIESmapAppl(uint32 creator, char *esName); > int OIESmkdir(char *volroot, char *uxPath, Boolean docreate); > void OIESupdateSearchableVols(void); > OIHeliosVolumePtr OIESfindESVolume(char *volname); > OIHeliosVolumePtr OIESfindESVoldir(char *voldir); > void OIPCSupdateVols(void); > int OIPCSsplitname(char *name, char *drive, char *server, char *volume, char **path); > int OIPCSstrcmpic(char *pcNameA, char *pcNameB, UnicodeConversionInterfacePtr upa, UnicodeConversionInterfacePtr upb); > char *OIPCSbasename(char *pcName); > char *OIPCSdirname(char *pcName, char *pcDir); > int OIPCSnameFromUnix(char *uxPath, char *pcName, UnicodeConversionInterfacePtr up, UnicodeConversionInterfacePtr upc); > void OIPCScanon(char *uxPath, char *pcName, UnicodeConversionInterfacePtr up); > void OIPCSbabel(char *uxPath, char *pcName, UnicodeConversionInterfacePtr up, UnicodeConversionInterfacePtr upc); > int OIPCSmapname(char *pcName, char *uxDir, char *uxPath, uint32 *flags); > OIHeliosVolumePtr OIPCSvolumeRoot(char *uxPath, char *volroot); > OIHeliosVolumePtr OIPCSfindPCSVoldir(char *voldir); > OIHeliosVolumePtr OIPCSfindPCSVolume(char *volname); > int OIPCSgrabdir(OIHeliosVolumePtr ep, char *uxDir, char *pcName, char *uxPath, uint32 *flags); > char *OIPCSstrcpypc2ux(char *uxDest, char *pcSrc); > char *OIPCSstrcpyux2pc(char *pcDest, char *uxSrc); > int OIPCSfindPCSName(OIHeliosVolumePtr ep, char *pcPath, char *uxPath, uint32 *flags); > char **OIPCSmatchWildpath(char *pcName); > char **OIPCSmatchVolpath(OIHeliosVolumePtr ep, char *pcPath); > int OIstrcmpic(unsigned char *, unsigned char *); > > int OIaddClientOSCharsetMap(char *clientname, char *osname); > int OIcntClientOSCharsetMap(void); > int OIgetClientOSCharsetMap(char *clientname, char **osname, UnicodeConversionInterfacePtr *upc, UnicodeConversionInterfacePtr *upo); > int OIgetOSClientCharsetMap(char *osname, char **clientname, UnicodeConversionInterfacePtr *upc, UnicodeConversionInterfacePtr *upo); > int OIinxClientOSCharsetMap(int inx, char **clientname, char **osname, UnicodeConversionInterfacePtr *upc, UnicodeConversionInterfacePtr *upo); > void OIdelClientOSCharsetMap(char *clientname); > int OIOSClientCharsetstrcmpic(char *pcClientName, char *pcOsName, UnicodeConversionInterfacePtr upo); ># 61 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIadsc.h" 1 ># 44 "/helios/release/libs/oi-8.0.0/h/OIadsc.h" >typedef struct { > Queue link; > int nargs; > char **args; >} OIADSCInstance, *OIADSCInstancePtr; > >typedef struct { > char *keyword; > uint32 flags; > Queue instances; >} OIADSCKeyword, *OIADSCKeywordPtr; > > int OIADSCParse(Sfio_t *f, OIADSCKeywordPtr kp, uint32 flags, OIADSCKeywordPtr stopcomment); > void OIADSCFree(OIADSCKeywordPtr kp); > char *OIADSCEnquote(char *src, char *dst); > char *OIADSCDequote(char *src, char *dst); ># 62 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" 2 ># 1 "/helios/release/libs/oi-8.0.0/h/OIfonts.h" 1 ># 22 "/helios/release/libs/oi-8.0.0/h/OIfonts.h" >typedef enum { > oiFontAccRenderLowres = 0x00000001, > oiFontAccRenderHighres =0x00000002, > oiFontAccPrintLowres = 0x00000004, > oiFontAccPrintHighres = 0x00000008, > oiFontAccLast = 0x40000000 >} OIFontAccess; > >typedef enum { > oiFontTypePostscript = 0x00000001, > oiFontTypeTruetype = 0x00000002, > oiFontTypeLast = 0x40000000 >} OIFontType; ># 49 "/helios/release/libs/oi-8.0.0/h/OIfonts.h" >typedef struct { > uint32 hash; > char *fontname; > OIFontAccess acc; > OIFontType type; > uint32 flags; > uint32 version; > uint32 maxUse; > uint32 inUse; > char *rsrcid; > ResourceValue *rsrc; >} OIFontList, *OIFontListPtr; > >typedef int (*OIFontCallbackFunc)(TreeWalkOrder order, OIFontListPtr fontp, void *arg); > > int OIregisterFont(char *fontname, uint32 version, char *rsrcid, OIFontAccess acc, OIFontType type, uint32 maxuse); > int OIregisterFontsFromList(Sfio_t *accfp); > void OIunregisterFont(char *fontname, OIFontAccess acc, OIFontType type); > void OIunregisterFontsFromList(Sfio_t *accfp); > Boolean OIfontsRegistered(void); > OIFontListPtr OIfindFont(char *fontname, OIFontAccess acc, OIFontType type); > Boolean OIfontUseAllowed(OIFontListPtr fontp); > void OIdeleteFont(OIFontListPtr fontp); > void OIfreeRegisteredFonts(void); > int OIgetFontResource(OIFontListPtr fontp); > void OIreleaseFontResource(OIFontListPtr fontp); > int OItraverseFontList(int flags, OIFontCallbackFunc action, void *arg); > Sfio_t *OIsfioFromFont(OIFontListPtr fontp); ># 63 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" 2 > > > > > > > >typedef struct { > dev_t dev; > ino_t ino; > int fd; > int mode; > > > > > > uint32 flags; >} OIFileLock, *OIFileLockPtr; ># 94 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" >typedef struct { > uint32 flags; ># 106 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" > uint32 dfork; > uint32 rfork; > OIFileLockPtr dlock; > OIFileLockPtr rlock; > OIRfilePtr rrfp; > XFileInfo fi; > char *rsrctouch; > char *dirtouch; > char *voltouch; >} OI_BuildinFile, *OI_BuildinFilePtr; > > > > > > > >typedef struct { > > > > uint32 oflags; > > > > > > char **dcssuffixes; > char **dcscodings; > OIGfxIccPtr printerProfile; > OIGfxIccPtr proofProfile; > char *profilePaths[oiCsLast]; > char *imageProfilePaths[oiCsLast]; > OIColorSpace colorSpace; > char *plateColor; > QueuePtr iccInfo; > > > > > > double compressionQuality; > > > > > > > > OIGfxComp icMethodBilevel; > double icQualityBilevel; > OIGfxComp icMethodGrayscale; > double icQualityGrayscale; > OIGfxComp icMethodRGB; > double icQualityRGB; > OIGfxComp icMethodCMYK; > double icQualityCMYK; > OIGfxComp icMethodCIELab; > double icQualityCIELab; > OIGfxComp icMethodOther; > double icQualityOther; > Boolean pureBlack; > Boolean pureGrays; > Boolean pureWhite; > Boolean pureCMY; > OIPstringPtr attributes; > > > > > uint32 extensions; ># 185 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" > uint8 renderingIntents[oiCsLast][oiCsLast]; > uint8 proofRenderingIntents[oiCsLast][oiCsLast]; > double screenResolution; > double printResolution; > double LWprintResolution; > double MCprintResolution; > double CTprintResolution; > uint32 xPix; > uint32 yPix; > uint32 containResources; >} OIItocHints, *OIItocHintsPtr; > > OIItocHintsPtr OInewItocHints(OIItocHintsPtr old); > ># 1 "/helios/release/libs/oi-8.0.0/h/OIopi.h" 1 ># 33 "/helios/release/libs/oi-8.0.0/h/OIopi.h" >typedef OIObjectPtr OpiObjectList[5][4]; > >typedef struct { > Queue link; > char *pageno; > int refcnt; >} OIImagePageInfo, *OIImagePageInfoPtr; > >typedef struct { > Queue link; > char *color; > Queue pageInfo; >} OIImageInfo, *OIImageInfoPtr; > >typedef struct { > uint32 hash; > char *imageName; > char *realName; > uint32 flags; > int status; > char *imageInfo; > Queue info; >} OIImageList, *OIImageListPtr; > >typedef int (*OIimageCallbackFunc)(TreeWalkOrder order, OIImageListPtr fp, void *arg); > >typedef struct { > Queue link; > OIExecOpType op; > void *arg; >} OIExecOp, *OIExecOpPtr; > >typedef struct { > Queue link; > void *mark; >} OIPrintMark, *OIPrintMarkPtr; > >typedef struct { > Queue link; > Queue options; > char *fname; > time_t mtime; >} OpiInfo, *OpiInfoPtr; > >typedef struct { > Queue link; > char *line; >} OpiInfoOption, *OpiInfoOptionPtr; > >typedef struct { > PrefNodePtr prefroot; > char *program; > char *volroot; > char *fileCreator; > char *fileType; > char *fileCs; > > > > int facility; > char *layoutSuffix; > char **dcsSuffixes; > char **dcsCodings; > char *profileRepository; > char **profileSearchPaths; > char *profilePaths[oiCsLast]; > char *preferredCMM; > int renderingQuality; > int missingIccProfileIsError; > int logMissingIccProfile; > uint8 convertRenderingIntents[oiCsLast][oiCsLast]; > uint8 printRenderingIntents[oiCsLast][oiCsLast]; > uint8 proofRenderingIntents[oiCsLast][oiCsLast]; > char *signature; > double screenResolution; > double printResolution; > OISelection managerSelections; >} OpiCommonParamBlk, *OpiCommonParamBlkPtr; ># 153 "/helios/release/libs/oi-8.0.0/h/OIopi.h" >extern char *OPIdcsSuffixesDefault[]; >extern char *OPIdcsCodingsDefault[]; >extern char *OPIprofilePathsDefault[oiCsLast]; >extern uint8 ConvertRenderingIntents[oiCsLast][oiCsLast]; >extern uint8 PrintRenderingIntents[oiCsLast][oiCsLast]; >extern uint8 ProofRenderingIntents[oiCsLast][oiCsLast]; > > OpiCommonParamBlkPtr getOpiCommonParams(char *confname); > OpiCommonParamBlkPtr getOpiCommonProgramParams(OpiCommonParamBlkPtr defaults, uint32 *fixed, int flags, char *progname); > OpiCommonParamBlkPtr dupOpiCommonParams(OpiCommonParamBlkPtr defaults); > void freeOpiCommonParams(OpiCommonParamBlkPtr params); > int getPreferenceValue(PrefNodePtr *, int, void *, ...); > int getRenderingIntent(PrefNodePtr *, uint8[oiCsLast][oiCsLast], ...); > int evalRenderingIntentList(uint8[oiCsLast][oiCsLast], char **list); > int evalColorAliasList(char **coloraliaslist); > int evalColorAlias(char *coloralias); > OIIccInfoParamBlkPtr evalIccOption(char *option); > int evalProfilePathList(char *plist[oiCsLast], char **profilepathlist); > int evalProfilePath(char *plist[oiCsLast], char *profilepath); > Boolean evaluateGenericProfile(char *profilePath, OIColorSpace cs); > int evalSearchList(char ***dst, char **src); > > int OImainObjects(OIIfilePtr ip, OpiObjectList objectlist); > int OIcollectResources(OIIfilePtr ip, OIGfxInfoPtr origgfx); > Sfio_t *OIfopenStdPsFile(char *path, char *colorname); > Sfio_t *OIfdopenStdPsFile(OIIfilePtr ip, char *colorname); > OIObjectPtr OIpsColorPlateObject(OIIfilePtr ip, char *colorname); > OIImageListPtr OIinsertImage(char *imagename, uint32 flags, char *realname, int status, char *color, char *pageno, OIImageListPtr *imagelistrootp, char *imageinfo); > OIImageListPtr OIfindImage(char *imagename, uint32 flags, OIImageListPtr imagelistroot); > void OIdeleteImage(char *imagename, uint32 flags, OIImageListPtr *imagelistrootp); > void OIfreeImageInfo(QueuePtr infop); > void OIfreeImageList(OIImageListPtr *imagelistrootp); > int OItraverseImageList(OIImageListPtr imagelistroot, int flags, OIimageCallbackFunc action, void *arg); > void OIclrExecOp(OIExecOpPtr execOp); ># 208 "/helios/release/libs/oi-8.0.0/h/OIopi.h" > int OpiStripLayoutPath(char *imagename, OIKeyPtr keyp, char *layoutsuffix, char *hiresname); > int OpiNewHiresPath(char *imagename, char *hiresname, OIKeyPtr keyp, char *layoutsuffix, char *guessedhiresname); > int OpiCheckInclude(OIPrintStatePtr printstatep, uint32 flags, OIImageListPtr *imagelistrootp, QueuePtr filters); > int OpiCheckImage(OIPrintStatePtr printstatep, uint32 flags, OIImageListPtr *imagelistrootp, QueuePtr filters); > int OpiCheckJob(Sfio_t *fp, uint32 flags, OIImageListPtr *imagelistrootp, QueuePtr filters, OIPrintStatePtr printstatep); > int OpiCheckIccProfile(char *profilename, uint32 flags); > int OpiPreflightImage(OIPrintStatePtr printstatep, uint32 flags, QueuePtr imagelist); > int OpiPreflightJob(Sfio_t *f, QueuePtr filters, OIPrintStatePtr printstatep, uint32 flags, QueuePtr imagelist); ># 200 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" 2 ># 213 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" >typedef enum { > oiPrivatHeliosRefID, > oiPrivatAttributes, > oiPrivatICCReference, > oiPrivatICCEmbedded >} OIPrivatRsrcType; ># 228 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" >typedef enum { > oiParamFlags = 0, > oiParamLlevl, > oiParamGoal, > oiParamPhase, > oiParamProfileRepository, > oiParamProfileSearchPaths, > oiParamImageSearchPaths, > oiParamImageSearchVolumes, > oiParamHelDir, > oiParamHelVolList, > oiParamSrvEvents, > oiParamDscEvents, > oiParamPrintEvents, > oiParamICCProfileRepositoryDir, > oiParamWorkingLevel, > oiParamSharedLockTable, > oiParamServicename, > oiParamHostname >} OIParamType; > > > > > >typedef enum { > oiMgrEnableOPI = 0x000, > oiMgrEnableES = 0x100 >} OIEnableMgrType; > > int OIbegin(OIPibPtr pib, OIMgrType workinglevel, int loglevel, uint32 flags); > int OIsetParam(OIParamType param, ...); > void *OIgetParam(OIParamType param); > void OIend(void); > void OIdumpkeypool(void); > > > > > > > > Sfdisc_t *OInewIfileDisc(OIObjectPtr objp); > int OIdelIfileDisc(Sfdisc_t *disc); > Sfio_t *OIsfioFromIfile(OIIfilePtr rfp, OIObjectPtr objp, uint32 flags); ># 300 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" > OIIfilePtr OIIopen(char *path, OIKeyPtr kp, uint32 flags, ...); > int OIIclose(OIIfilePtr fp); > OIObjectPtr OIIcreateObject(OIIfilePtr fp, OIObjType type, OIObjQual qual, OIObjAccess acc, OIPstringPtr ref, uint32 oid, OIGfxInfoPtr gfx); > int OIIremoveObject(OIIfilePtr fp, OIObjectPtr objp); > int OIInewGfx(OIObjectPtr objp, OIGfxInfoPtr gfx, uint32 flset); > int OIIsetGfx(OIObjectPtr objp, OIGfxInfoPtr gfx, uint32 flset); > int OIIreadScanline(OIObjectPtr objp, uint32 yoff, uint8 *buf, uint8 **bufp, uint32 curinkset, uint32 zerocolors, uint32 xoff, uint32 xlen, OIsize *amount); > int OIIreadTile(OIObjectPtr objp, uint32 *x, uint32 *y, uint32 *w, uint32 *h, uint8 *buf, uint32 curinkset, OIsize *amount); > int OIIreadPs(OIObjectPtr objp, uint8 *buf, OIoffset pos, OIsize len, OIsize *amount); > int OIIreadUnspec(OIObjectPtr objp, uint8 *buf, OIoffset pos, OIsize len, OIsize *amount); > OIsize OIIscanlineSize(OIObjectPtr objp, uint32 inkset, uint32 xoff, uint32 xlen); > OIsize OIItileSize(OIObjectPtr objp, uint32 inkset, uint32 x, uint32 y); > int OIIwriteScanline(OIObjectPtr objp, uint32 yoff, uint8 *buf, uint32 curinkset, OIsize *amount); > int OIIwriteTile(OIObjectPtr objp, uint32 ulx, uint32 uly, uint8 *buf, uint32 curinkset, OIsize *amount); > int OIIwritePs(OIObjectPtr objp, uint8 *buf, OIsize len, OIsize *amount); > int OIIwriteUnspec(OIObjectPtr objp, uint8 *buf, OIsize len, OIsize *amount); > int OIgetFileItoc(char *filename, OIIfilePtr *imagehandle); > > int OIgetPrivatFromRsrc(OILfilePtr fp, uint32 rid, OIPrivatRsrcType type, OIPstringPtr *valp); > int OIgetPrivatFromRsrcblk(OIRsrcBlkPtr rp, OIPrivatRsrcType type, OIPstringPtr *valp); > int OIaddPrivatToRsrc(OILfilePtr fp, uint32 rid, OIPrivatRsrcType type, OIPstringPtr val); > int OIaddPrivatToRsrcblk(OIRsrcBlkPtr rp, OIPrivatRsrcType type, OIPstringPtr val); > > > > > int OItagImage(char *srcpath, OIKeyPtr srckey, char *dstpath, OIKeyPtr dstkey, OIKeyPtr icckey, OIPstringPtr attributes, Queue *orders); > > > > void OIclientCleanup(pid_t pid); > void OIclientClose(void); > void OIclientFork(pid_t pid); > void OIflushDesktopCache(pid_t pid); ># 352 "/helios/release/libs/oi-8.0.0/h/OIprivat.h" > OIFileLockPtr OIlockFile(char *path, int fd, struct stat *stp, int mode); > > > > void OIunlockFile(OIFileLockPtr lockdesc); > > > > > > > int OIcheckFileLocks(char *path, struct stat *stp, uint32 checkmode); > > > > > >typedef enum { > oiExportInt8 = 1, > oiExportUint8, > oiExportInt16, > oiExportUint16, > oiExportInt32, > oiExportUint32, > oiExportInt64, > oiExportUint64, > oiExportPtr, > oiExportFunction >} OIExportType; > > int OIexportSym(char *symname, OIExportType type, void *symbol, uint32 flags); > int OIimportSym(char *symname, OIExportType type, void **symbol, uint32 *flags); > > void *OIgetManagerDesc(int mgrtype, char *mgrscope); ># 28 "../h/oieps.h" 2 > ># 1 "../h/oieps_debug.h" 1 ># 30 "../h/oieps.h" 2 ># 1 "../h/oieps_priv.h" 1 ># 16 "../h/oieps_priv.h" >typedef struct { > Boolean log_warnings; > uint32 linethreshold; >} oiepsPreferences; ># 104 "../h/oieps_priv.h" >typedef struct { > uint8 magic[4]; > uint32 eps_start; > uint32 eps_len; > uint32 meta_start; > uint32 meta_len; > uint32 tiff_start; > uint32 tiff_len; > uint16 chksum; >} oiepsBinaryHeader; > > > > >typedef struct { > double cya; > double mag; > double yel; > double blk; >} oiepsCmykValue; > > >typedef struct { > double red; > double green; > double blue; >} oiepsRgbValue; > > >typedef struct { > Boolean valid; > Boolean is_plate_image_data; > int columns; > int rows; > int depth; > int mode; > int pad_channels; > int block_size; ># 150 "../h/oieps_priv.h" > int format; > char data_start[256]; >} oiepsImageData; > > >typedef struct { > Boolean valid; > char *format; > char *type; > char *proof_data; > > char *hr_filename[4]; > char *hr_filetype[4]; > char *path_name; > char *path_type; > int hr_file_count; >} oiepsScitexAPR; > > > >typedef struct { > Boolean valid; > int numberof; > char *profileid; > char *type; > char *bytesorlines; > uint8 *bin_data; > OILfilePtr fp; > uint32 rid; > uint32 filterid; > OIoffset start_offset; > OIoffset end_offset; > OIGfxIccPtr iccp; >} oiepsICCProfile; > > >typedef struct { > Boolean valid; > uint32 len; > OILfilePtr fp; > uint32 rid; > void *rdata; > uint32 filterid; > OIoffset start_offset; > OIoffset end_offset; >} oiepsPhotoShop; > >typedef struct { > Boolean valid; > uint32 len; > OILfilePtr fp; > uint32 rid; > void *rdata; > OIoffset start_offset; > OIoffset end_offset; >} oiepsXML; > >typedef struct { > char *timeref; > char *path; > OIGfxIccPtr iccp; >} oiepsHelIccRef; > > >typedef struct { > char *filetype; > char *location; > char *filename; > OIoffset offset; > OIoffset size; > OILfilePtr plate_fp; > OIIfilePtr plate_fi; > uint32 plate_rid; > uint32 ink_flag; > OIObjectPtr mask_plate_obp; > OIObjectPtr image_plate_obp; > OIObjectPtr bin_image_plate_obp; > OIObjectPtr trail_plate_obp; > uint8 *buf; > uint8 *bufp; > int inkset; >} oiepsPlateFile; > > > >typedef struct { > > uint32 flags; > > > > > > > > oiepsBinaryHeader binary_header; > > double bounding_box_llx; > double bounding_box_lly; > double bounding_box_urx; > double bounding_box_ury; > > uint32 document_process_colors_inkset; > > > Strlist *document_process_colors_slp; > Strlist *document_custom_colors_slp; > Strlist *cmyk_custom_colors_slp; > Strlist *rgb_custom_colors_slp; > Strlist *plate_file_slp; > Strlist *icc_profile_slp; > Strlist *hel_iccref_slp; > Strlist *hel_attr_slp; > oiepsImageData image_data; > oiepsScitexAPR scitex_apr; > oiepsPhotoShop photoshop_res; > oiepsXML xml_res; > OIPstringPtr hdata; > int channel_index[31]; > >} oiepsHeaderData; > > >typedef struct { > Sfio_t *f; >} oiepsObjectUdata; > > > > >extern int oiepsImageInit(OIKeyPtr key, char *plugin_path); >extern void oiepsImageExit(OIKeyPtr key); >extern OIImagePtr oiepsImageOpen(OIItocPtr itoc_handle, OIObjectPtr obp, uint32 flags); >extern int oiepsImageClose(OIImagePtr image_handle, OIObjectPtr obp); >extern int oiepsImageSetGfx(OIImagePtr image, OIObjectPtr objp, OIGfxInfoPtr gfx, uint32 flags); >extern int oiepsImageReadScanline(OIImagePtr image_handle, uint32 scanline, uint8 *buf, uint8 **bufp, uint32 inkset, uint32 xoff, uint32 xlen, OIsize *amount); >extern int oiepsImageWriteScanline(OIImagePtr image_handle, uint32 scanline, uint8 *buf, uint32 inkset, OIsize *amount); >extern int oiepsImageReadPs(OIImagePtr image_handle, uint8 *buf, OIoffset pos, OIsize len, OIsize *amount); >extern int oiepsImageWritePs(OIImagePtr image_handle, uint8 *buf, OIsize len, OIsize *amount); >extern char *oiepsImageErrorFunc(int32 cerrno, char *p); >extern int oiepsItocInit(OIKeyPtr key, char *plugin_path); >extern void oiepsItocExit(OIKeyPtr key); >extern OIItocPtr oiepsItocOpen(OIObjectPtr rop, OILfilePtr fp, OIRegionPtr regp, void *rdata, char *path, void *buf, int len, uint32 flags, OIKeyPtr kp, va_list ap); >extern int oiepsItocClose(OIItocPtr ov, OIObjectPtr rop, uint32 flags); >extern int oiepsItocGetInfo(OIItocPtr ov, OIObjectPtr rop, int *creatorp, int *typep, int *extp, uint32 *features, char **suffix); >extern int oiepsItocSetInfo(OIItocPtr ov, OIObjectPtr rop, int creator, int type, int ext); >extern char *oiepsItocErrorFunc(int32 jerrno, char *p); >extern OIObjectPtr oiepsItocAddNewObject(OIItocPtr handle, OIObjectPtr objhead, OIObjType, OIObjQual, OIObjAccess, uint32 flags, OIPstringPtr ref, uint32 oid); >extern int oiepsItocClearObject(OIItocPtr, OIObjectPtr obj); >extern int oiepsItocIccTag(char *srcpath, OIKeyPtr srckp, > char *dstpath, OIKeyPtr dstkp, OIPstringPtr attributes, > Queue* orders); >extern int oiepsInit(OIKeyPtr key, char *plugin_path); >extern void oiepsExit(OIKeyPtr key); >extern int oiepsGetPreferences(oiepsPreferences *oieps_preferences); >extern int oiepsTryMemmapRegion(OILfilePtr l_fp, uint32 l_rid, void *rdata, > OIoffset size, void **base, void **mem); >extern void oiepsUnmapRegion(void *base, OIoffset size); >extern int oiepsGetRasterGfx(char *path, OIKeyPtr kp, uint32 flags, oiepsHeaderData *header_data, char **plate_file_suffix, OIRsrcBlkPtr psrsrc, OIGfxInfoPtr gfx); >extern int oiepsGetPsGfx(char *path, OIKeyPtr kp, uint32 flags, oiepsHeaderData *header_data, char **plate_file_suffix, OIRsrcBlkPtr psrsrc, OIGfxInfoPtr gfx); >extern char *oiepsFgets(char *line, int size, Sfio_t *f, Boolean *to_be_continued); >extern int oiepsEncodeComments(OIADSCKeyword *parse_result, oiepsHeaderData *header_data); >extern int oiepsOpenDCSFiles(OILfilePtr fp, > oiepsHeaderData *header_data, > Strlist *plate_file_slp, > char *path, OIKeyPtr kp, > uint32 flags, void *rdata, OIItocHintsPtr itoc_hints); >extern int oiepsCloseDCSFiles(Strlist *plate_file_slp); >extern int oiepsReadDCSScanline(Strlist *plate_file_slp, uint32 scanline, > OIsize width, uint32 inkset, int *channel_index, > int channels, uint32 gfx_flags, uint8 *buf, OIsize *amount); >extern int oiepsCreateImageRegions(Sfio_t *f, OILfilePtr l_fp, > oiepsHeaderData *header_data, > OIRegionPtr eps_regp, > OIRegionPtr *eps_mask_regp, > OIRegionPtr *eps_image_regp, > OIRegionPtr *eps_bin_image_regp, > OIRegionPtr *eps_trail_regp); >extern int oiepsBuildFilename(char *path, char *plate, OIKeyPtr kp, uint32 flags, char *plate_path, char **plate_file_codings); >extern int oiepsSearchImageData(Sfio_t *f, oiepsImageData *image_data); >extern void oiepsClearHeaderData(oiepsHeaderData *header_data); >extern int oiepsResortPlatefileStrlist(Strlist *plate_file_slp); >extern int oiepsCreateICCProfileRegions(OILfilePtr l_fp, OIRegionPtr regp, OIoffset epsoffset, OIoffset image_offset, OIoffset image_size, OIoffset photoshop_start, OIoffset photoshop_end, Strlist *icc_profile_slp, void *rdata); >extern int oiepsReadICCProfiles(OILfilePtr l_fp, Strlist *icc_profile_slp, void *rdata); >extern void oiepsFreePhotoShop(oiepsPhotoShop *photoshop_res); >extern int oiepsCreatePhotoShopRegions(OILfilePtr l_fp, OIRegionPtr regp, oiepsPhotoShop *photoshop_res, > void *rdata); >extern void oiepsFreeXML(oiepsXML *photoshop_res); >extern int oiepsCreateXMLRegions(OILfilePtr l_fp, OIRegionPtr regp, oiepsXML *xml_res, > void *rdata); >extern int oiepsImageReadUnspec(OIImagePtr image_handle, uint8 *buf, OIoffset pos, > OIsize len, OIsize *amount); >extern int oiepsImageWriteUnspec(OIImagePtr image_handle, uint8 *buf, OIsize len, > OIsize *amount); > >extern void oiepsSetErr(uint32 cerrno, char *format, ...); >extern void oiepsLogWarning(char *format, ...); ># 31 "../h/oieps.h" 2 ># 1 "../h/oieps_error.h" 1 ># 32 "../h/oieps.h" 2 ># 1 "../h/obj-linuxppc/oiepsMsg.h" 1 ># 33 "../h/oieps.h" 2 ># 1 "../h/oieps_global.h" 1 ># 25 "../h/oieps_global.h" >extern catd_type g_oieps_catd; >extern oiepsPreferences g_oieps_preferences; >extern unsigned char g_oieps_isarr[]; >extern int g_oieps_aps_id; >extern int g_oieps_unix_id; >extern int g_oieps_eps_id; >extern int g_oieps_jpeg_id; >extern int g_oieps_tiff_id; >extern int g_oieps_bin_fext_id; >extern int g_oieps_dcs1bin_fext_id; >extern int g_oieps_dcs2bin_fext_id; >extern int g_oieps_dcs1_fext_id; >extern int g_oieps_dcs2_fext_id; >extern int g_oieps_fscope_eps_id; >extern int g_oieps_adobe_mask_id; ># 53 "../h/oieps_global.h" >extern nTraceHandlePtr g_oieps_tracehandle; ># 34 "../h/oieps.h" 2 ># 13 "oieps_itoc.h" 2 ># 1 "../h/oieps_itoc_priv.h" 1 ># 17 "../h/oieps_itoc_priv.h" >typedef struct { > int id; > OILfilePtr fp; > uint32 rid; >} oiepsFilter; > > > > >typedef struct { > uint32 gfx_flags; > int gfx_channels; > int gfx_cols; > int gfx_rows; > int gfx_bpc; > oiepsFilter filter[5]; > int filter_count; > Boolean read_open; > Boolean binary_header_written; > uint32 oid; > OIObjectPtr tiff_obp; > OIObjectPtr tiff_mask_obp; > OIObjectPtr mask_obp; > OIGfxValPtr valuator; > uint32 main_rid; > uint32 tiff_rid; > OILfile *fp; > Sfio_t *f; > uint32 rid; > void *rdata; > int creator; > int type; > int ext; > oiepsHeaderData header_data; >} oiepsItocHandle; > > > > > >extern int oiepsItocCreateBinaryRegions(oiepsHeaderData *header_data, OILfilePtr l_fp, > OIRegionPtr l_regp, > OIRegionPtr *eps_regp, OIRegionPtr *tiff_regp, > OIRegionPtr *meta_regp); >extern int oiepsItocOpenEps(oiepsItocHandle *itoc_handle, OIRegionPtr *eps_regpp, OIRegionPtr *tiff_regpp); >extern Boolean oiepsItocIsPlateFile(char *path, OIKeyPtr kp, uint32 flags, char **plate_file_suffix, char *main_path, char *fext); >extern int oiepsItocReadImageDataFromFile(char *path, OIKeyPtr kp, uint32 flags, void *rdata, oiepsImageData *image_data); >extern int oiepsItocReadImageDataFromOffset(OILfilePtr fp, OIoffset offset, OIKeyPtr kp, uint32 flags, void *rdata, oiepsImageData *image_data); ># 14 "oieps_itoc.h" 2 ># 1 "oieps_itoc_global.h" 1 ># 16 "oieps_itoc_global.h" >extern OIPstringPtr g_oieps_itoc_NULL_pstr; ># 15 "oieps_itoc.h" 2 ># 10 "oieps_itoc_tag.c" 2 ># 19 "oieps_itoc_tag.c" >typedef struct { > OIsize size; > OIoffset offset; > OIoffset new_offset; > OIoffset offset_offset; > int offset_digits; > char *line; > int newline_len; >} oiepsItocPlateFile; > >OIPstring oiPSDXMPName = {sizeof("XMP") - 1, (uint8 *)"XMP"}; >OIPstring oiPSDXMPPatch = {sizeof("\0") - 1, (uint8 *)"\0"}; > >typedef struct { > OIoffset section_offset; > OIoffset section_size; ># 45 "oieps_itoc_tag.c" > int section_type; > OIoffset new_section_offset; > OIoffset new_section_size; > Boolean section_skip; > oiepsItocPlateFile plate_file; >} oiepsItocSection; > > > > >typedef struct { > OILfilePtr src_fp; > OIRegionPtr src_regp; > Sfio_t *src_f; > OIRegionPtr tiff_regp; > OILfilePtr dst_fp; > OIRegionPtr dst_regp; > Sfio_t *dst_f; > OIGfxIccPtr iccp; > Boolean include_profile; > Boolean iccref_found; > Boolean icc_found; > Strlist *section_slp; > OIRsrcBlkPtr prsrc; > uint8 *rsrc_base; > uint8 *rsrc_mem; > off_t rsrc_len; > OIPstringPtr xmp; >} oiepsItocTagHandle; > > > >static int oiepsDetermineICCProfileRegion(oiepsItocTagHandle *tag_handle); >static int oiepsDetermineICCProfileReferenceRegion(oiepsItocTagHandle *tag_handle); >static int oiepsDetermineResourceRegions(oiepsItocTagHandle *tag_handle); >static int oiepsItocWriteEps(oiepsItocTagHandle *tag_handle, OIsize bytes_to_remove); >static int oiepsPutIccProfile(Sfio_t *ofp, OIGfxIccPtr iccp, Boolean include_profile); >static int oiepsItocAddPlateSection(oiepsItocTagHandle *tag_handle, char *plate_line, > OIoffset plate_start_offset, > OIoffset plate_end_offset); >static int oiepsSectionCompareFunc(StrItem *sip1, StrItem *sip2); >static int oiepsItocAddPsSections(oiepsItocTagHandle *tag_handle); >static int oiepsGetIccProfileSize(OIGfxIccPtr icc, > Boolean include_profile, OIsize *size); >static int oiepsGetPhotoshopSize(uint32 rsrc_len, OIsize *size); >static int oiepsGetXMPSize(uint32 xml_len, OIsize *size); >static int oiepsPutXMP(Sfio_t *ofp, OIPstringPtr xmp); > >ResourceValue *XMPtrailer, *XMPhead, *XMPend; > > > > >int oiepsItocIccTag(char *srcpath, OIKeyPtr srckp, > char *dstpath, OIKeyPtr dstkp, OIPstringPtr attributes, > Queue* orders) >{ > int result = -1; > oiepsItocHandle *itoc_handle; > oiepsItocTagHandle tag_handle; > OIoffset new_tiff_off, new_eps_off, new_meta_off; > OIoffset tiff_off, meta_off; > OIsize tiff_size, meta_size; > OIsize new_eps_size; > OIsize nbytes, amount; > OILfilePtr src_fp, dst_fp; > OIRegionPtr src_regp; > OIRegionPtr tiff_regp; > OIRegionPtr eps_regp; > OIKey tmpkey; > Sfio_t *f; > Boolean is_tmppath = (0); > StrItem *sip; > char tmppath[1024]; > uint32 infoflags =0, flags = 0; > OITagOrderPtr actOrder = ((void *)0); > OIsize bytes_to_remove = 0; > OIGfxIccPtr iccp = ((void *)0); > int err; > oiepsItocSection *section; > > > itoc_handle = ((void *)0); > src_fp = dst_fp = ((void *)0); > tiff_regp = ((void *)0); > eps_regp = ((void *)0); > tiff_off = 0; > meta_off = 0; > new_tiff_off = 0; > new_eps_off = 0; > new_meta_off = 0; > tiff_size = 0; > meta_size = 0; > new_eps_size = 0; > f = ((void *)0); > memset(&tag_handle, 0, sizeof(tag_handle)); > > > if ((err = HELGetResource("epsxmptrail1", (1 << 0), &XMPtrailer)) != 0 && err != DefLangUsedErr) { > ; > goto FNC_XIT; > } > if ((err = HELGetResource("epsxmptrail2", (1 << 0), &XMPhead)) != 0 && err != DefLangUsedErr) { > ; > goto FNC_XIT; > } > if ((err = HELGetResource("epsxmpend", (1 << 0), &XMPend)) != 0 && err != DefLangUsedErr) { > ; > goto FNC_XIT; > } > > tag_handle.iccp = iccp; > > if((tag_handle.section_slp = CreateStrlist(0x01)) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrlist"); > } > > if(dstpath == ((void *)0)) { > if(OILtmpnam(srcpath, srckp, tmppath) != 0) { > ; > goto FNC_XIT; > } > tmpkey = *srckp; > dstkp = &tmpkey; > is_tmppath = (1); > dstpath = tmppath; > } > > if(OItagOpenDefaults(srcpath, srckp, dstpath, dstkp, &src_fp, &dst_fp) != 0) { > ; > goto FNC_XIT; > } > itoc_handle = ((void *)0); > tag_handle.src_fp = src_fp; > tag_handle.dst_fp = dst_fp; > > if((src_regp = OIregionFromLfile(src_fp, 0)) == ((void *)0)) { > ; > goto FNC_XIT; > } > > if((tag_handle.dst_regp = OIregionFromLfile(dst_fp, 0)) == ((void *)0)) { > ; > goto FNC_XIT; > } > > > > if((itoc_handle = (oiepsItocHandle *)calloc(1, sizeof(oiepsItocHandle))) == ((void *)0)) { > oiepsSetErr(UnixErr, ((void *)0)); > goto FNC_XIT; > } > itoc_handle->read_open = (1); > > itoc_handle->fp = tag_handle.src_fp; > itoc_handle->rid = src_regp->rid; > itoc_handle->rdata = ((void *)0); > > if(oiepsItocOpenEps(itoc_handle, &eps_regp, &tiff_regp) != 0) { > ; > goto FNC_XIT; > } > tag_handle.src_f = itoc_handle->f; > tag_handle.src_regp = eps_regp; > > if((tag_handle.dst_f = OIsfioFromLfile(dst_fp, > tag_handle.dst_regp->rid, ((void *)0))) == ((void *)0)) { > ; > goto FNC_XIT; > } > > if((f = OIsfioFromLfile(src_fp, 0, ((void *)0))) == ((void *)0)) { > ; > goto FNC_XIT; > } > > if(oiepsDetermineICCProfileReferenceRegion(&tag_handle) != 0) { > ; > goto FNC_XIT; > } > > if(oiepsDetermineICCProfileRegion(&tag_handle) != 0) { > ; > goto FNC_XIT; > } > > if(oiepsDetermineResourceRegions(&tag_handle) != 0) { > ; > goto FNC_XIT; > } > > for ((actOrder) = (OITagOrderPtr)(orders)->q_forw; (actOrder) != (OITagOrderPtr)(orders); (actOrder) = (OITagOrderPtr)((actOrder)->link).q_forw) { > OIPstring rsrc; > OI_MRsrcInfoPtr actinfo; > uint16 id; > > if ((actOrder->action & 0x20000000) != 0) { > actinfo = actOrder->elem; > > if ((actOrder->action & 0x00000003) == 0x00000003) { > err = OIaddBlkRsrc(tag_handle.prsrc, (uint8 *)"8BIM", actinfo->id, actinfo->data, actinfo->name); > } else if ((actOrder->action & 0x00000001) != 0) { > if (actinfo->id >= 2000 && actinfo->id <= 2998) { > if (OIgetBlkRsrc(tag_handle.prsrc, (uint8 *)"8BIM", actinfo->id, &rsrc, ((void *)0)) == 0) { > id = 2000; > while (id < 2999 && OIgetBlkRsrc(tag_handle.prsrc, (uint8 *)"8BIM", actinfo->id, &rsrc, ((void *)0)) == 0) > id++; > if (id == 2999) { > id = 0; > actOrder->result = -1; > } > } else > id = actinfo->id; > } else > id = actinfo->id; > if (id) > err = OIaddBlkRsrc(tag_handle.prsrc, (uint8 *)"8BIM", actinfo->id, actinfo->data, actinfo->name); > else > err = -1; > } else if ((actOrder->action & 0x00000002) != 0) { > err = OIdelBlkRsrc(tag_handle.prsrc, (uint8 *)"8BIM", actinfo->id); > } > actOrder->result = err; > } else if ((actOrder->action & 0x10000000) != 0) { > if((actOrder->action & 0x00000001)){ > iccp = tag_handle.iccp = actOrder->elem; > if ((actOrder->action & 0x00000002) != 0) > flags |= 0x00000002; > else > flags |= 0x00000001; > } else if ((actOrder->action & 0x00000002) != 0) { > flags |= 0x00000003; > tag_handle.iccp = ((void *)0); > for ((sip) = (StrItem *)(&tag_handle.section_slp->strHead)->q_forw; (sip) != (StrItem *)(&tag_handle.section_slp->strHead); (sip) = (StrItem *)((sip)->strLink).q_forw) { > section = (oiepsItocSection *)sip->strUdata; > if(section->section_type == 3 || > section->section_type == 5) { > bytes_to_remove += section->section_size; > section->section_skip = (1); > } > } > } > if((actOrder->action & 0x00000010) != 0) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 290; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("try to include profile...\n"); } } } while (0); > tag_handle.include_profile = (1); > infoflags |= 0x00000010; > } > } else if ((actOrder->action & 0x40000000) != 0) { > if((actOrder->action & 0x00000001)){ > actinfo = actOrder->elem; > if (tag_handle.xmp) > OIdelPstring(tag_handle.xmp); > tag_handle.xmp = OIpstrdup(actinfo->data); > } else if ((actOrder->action & 0x00000002)) { > if (tag_handle.xmp) > OIdelPstring(tag_handle.xmp); > tag_handle.xmp = ((void *)0); > } > > } > } > > if(oiepsItocAddPsSections(&tag_handle) != 0) { > ; > goto FNC_XIT; > } ># 327 "oieps_itoc_tag.c" > ( (sfseek((tag_handle.src_f), (off_t)(0), (0)|0000100) < 0 ? -1 : 0 ) ); > ( (sfseek((tag_handle.dst_f), (off_t)(0), (0)|0000100) < 0 ? -1 : 0 ) ); > > if(itoc_handle->header_data.flags & (1 << 0)) { > > tiff_off = _oi_l_swap(itoc_handle->header_data.binary_header.tiff_start); > tiff_size = _oi_l_swap(itoc_handle->header_data.binary_header.tiff_len); > > meta_off = _oi_l_swap(itoc_handle->header_data.binary_header.meta_start); > meta_size = _oi_l_swap(itoc_handle->header_data.binary_header.meta_len); > > nbytes = 30; > > > > if(sfmove(f, tag_handle.dst_f, nbytes, -1) != nbytes) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > > if(tiff_off) { > > > new_tiff_off = ( sfseek((tag_handle.dst_f), (off_t)0, 1) ); > ( (sfseek((f), (off_t)(tiff_off), (0)|0000100) < 0 ? -1 : 0 ) ); > if(sfmove(f, tag_handle.dst_f, tiff_size, -1) != tiff_size) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > } > > if(meta_off) { > > > > new_meta_off = ( sfseek((tag_handle.dst_f), (off_t)0, 1) ); > ( (sfseek((f), (off_t)(meta_off), (0)|0000100) < 0 ? -1 : 0 ) ); > if(sfmove(f, tag_handle.dst_f, meta_size, -1) != meta_size) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > } > > > new_eps_off = ( sfseek((tag_handle.dst_f), (off_t)0, 1) ); > } > > > if(((flags) & 0xf) == 0x00000003) { > if(tag_handle.icc_found == (0) && tag_handle.iccref_found == (0)) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 380; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("nothing to remove.\n"); } } } while (0); > result = NotDoneErr; > goto FNC_XIT; > } else { > tag_handle.iccp = ((void *)0); > > infoflags |= 0x00000003; > goto WRITE_HEADER; > } > } > if(((flags) & 0xf) == 0x00000002 || ((flags) & 0xf) == 0x00000001) { > > for ((sip) = (StrItem *)(&tag_handle.section_slp->strHead)->q_forw; (sip) != (StrItem *)(&tag_handle.section_slp->strHead); (sip) = (StrItem *)((sip)->strLink).q_forw) { > section = (oiepsItocSection *)sip->strUdata; > if(section->section_type == 3 || > section->section_type == 5) { > bytes_to_remove += section->section_size; > } > } > infoflags |= 0x00000001; > } > >WRITE_HEADER: > if(oiepsItocWriteEps(&tag_handle, bytes_to_remove) != 0) { > ; > goto FNC_XIT; > } > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 408; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("tagging done.\n"); } } } while (0); > > if(itoc_handle->header_data.flags & (1 << 0)) { > > new_eps_size = ( sfseek((tag_handle.dst_f), (off_t)0, 1) ) - new_eps_off; > > > itoc_handle->header_data.binary_header.tiff_start = _oi_l_swap(new_tiff_off); > itoc_handle->header_data.binary_header.meta_start = _oi_l_swap(new_meta_off); > itoc_handle->header_data.binary_header.eps_start = _oi_l_swap(new_eps_off); > itoc_handle->header_data.binary_header.eps_len = _oi_l_swap(new_eps_size); > itoc_handle->header_data.binary_header.chksum = 0xFFFF; > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 422; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writing binary-header: eps: off=%I*d; size=%I*d\n", sizeof(new_eps_off), new_eps_off, sizeof(new_eps_size), new_eps_size); } } } while (0); > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 423; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("tiff: off=%I*d; size=%I*d\n", sizeof(new_tiff_off), new_tiff_off, sizeof(tiff_size), tiff_size); } } } while (0); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 424; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("meta: off=%I*d; size=%I*d\n", sizeof(new_meta_off), new_meta_off, sizeof(meta_size), meta_size); } } } while (0); > > > > if(( (sfseek((tag_handle.dst_f), (off_t)(0), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > if((amount = sfwrite(tag_handle.dst_f, &itoc_handle->header_data.binary_header, > 30)) != 30) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 23), > GetMsg(g_oieps_catd, 3, 11), > 30, amount); > goto FNC_XIT; > } > } > > result = 0; > >FNC_XIT: > > if(f) { > ( sfclose(f) ); > } > > if(tag_handle.src_f) { > ( sfclose(tag_handle.src_f) ); > tag_handle.src_f = ((void *)0); > } > > if(tag_handle.dst_f) { > ( sfclose(tag_handle.dst_f) ); > tag_handle.dst_f = ((void *)0); > } > > if(src_fp) { > if(OILclose(src_fp) != 0) { > ; > result = -1; > } > } > > if(tag_handle.section_slp) { > for ((sip) = (StrItem *)(&tag_handle.section_slp->strHead)->q_forw; (sip) != (StrItem *)(&tag_handle.section_slp->strHead); (sip) = (StrItem *)((sip)->strLink).q_forw) { > if(sip->strUdata) { > free(sip->strUdata); > sip->strUdata = ((void *)0); > } > } > DestroyStrlist(tag_handle.section_slp); > tag_handle.section_slp = ((void *)0); > } > > if(dst_fp) { > if (result == 0) > result = OItagUpdateInfo(dst_fp, infoflags, iccp?iccp->iccpath:((void *)0)); > if(OILclose(dst_fp) != 0) { > ; > result = -1; > } > } > > if(itoc_handle) { > oiepsClearHeaderData(&itoc_handle->header_data); > free(itoc_handle); > itoc_handle = ((void *)0); > } > > if(is_tmppath) { > if(result != 0) { > if(OILunlink(dstpath, dstkp, 0x00010000|0x00020000) != 0) { > ; > } > } else { > if(OILrename(dstpath, srcpath, srckp, 0x00010000|0x00020000) != 0) { > if(OILunlink(dstpath, dstkp, 0x00010000|0x00020000) != 0) { > ; > } > ; > result = -1; > } > } > } else { > if(result != 0 && dstpath) { > if(OILunlink(dstpath, dstkp, 0x00010000|0x00020000) != 0) { > ; > } > } > } > > if(result == NotDoneErr) { > result = 0; > } > > return(result); >} > > > > > > >static int oiepsDetermineICCProfileRegion(oiepsItocTagHandle *tag_handle) >{ > int result = -1; > OIoffset start_offset, end_offset; > OIoffset offset; > char line[1024]; > char dsc[256]; > Boolean to_be_continued, bin_flag; > OIoffset xbin_image_length; > OIMark emark; > long l; > Sfio_t *f; > StrItem *sip; > oiepsItocSection *section; > Boolean cleanIccRefs = (0); > > > start_offset = 0; > end_offset = 0; > xbin_image_length = 0; > section = ((void *)0); > sip = ((void *)0); > f = tag_handle->src_f; > > emark = OImarkerr(); > _stdsprintf(dsc, "%%%s:", "HELICCImageProfileRef"); > > if(( (sfseek((f), (off_t)(0), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > > > > offset = ( sfseek((f), (off_t)0, 1) ); to_be_continued = (0); bin_flag = (0); > while(oiepsFgets(line, sizeof(line), f, &to_be_continued)) { > > > if(!(__extension__ (__builtin_constant_p (14) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (14))) || (__builtin_constant_p ("%%BeginBinary:") && strlen ("%%BeginBinary:") < ((size_t) (14)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%BeginBinary:") && (__s1_len = strlen (line), __s2_len = strlen ("%%BeginBinary:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%BeginBinary:") + 1) - (size_t)(const void *)("%%BeginBinary:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%BeginBinary:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%BeginBinary:") && ((size_t)(const void *)(("%%BeginBinary:") + 1) - (size_t)(const void *)("%%BeginBinary:") == 1) ? __builtin_strcmp (line, "%%BeginBinary:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%BeginBinary:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%BeginBinary:") && ((size_t)(const void *)(("%%BeginBinary:") + 1) - (size_t)(const void *)("%%BeginBinary:") == 1) && (__s2_len = strlen ("%%BeginBinary:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%BeginBinary:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%BeginBinary:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%BeginBinary:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%BeginBinary:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%BeginBinary:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%BeginBinary:")))); }) : strncmp (line, "%%BeginBinary:", 14)))) { > l = strtol(&line[14], ((void *)0), 10); > xbin_image_length = (l < 0) ? 0 : (OIsize)l; > bin_flag = (1); > } else if(!(__extension__ (__builtin_constant_p (12) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (12))) || (__builtin_constant_p ("%%BeginData:") && strlen ("%%BeginData:") < ((size_t) (12)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%BeginData:") && (__s1_len = strlen (line), __s2_len = strlen ("%%BeginData:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%BeginData:") + 1) - (size_t)(const void *)("%%BeginData:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%BeginData:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%BeginData:") && ((size_t)(const void *)(("%%BeginData:") + 1) - (size_t)(const void *)("%%BeginData:") == 1) ? __builtin_strcmp (line, "%%BeginData:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%BeginData:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%BeginData:") && ((size_t)(const void *)(("%%BeginData:") + 1) - (size_t)(const void *)("%%BeginData:") == 1) && (__s2_len = strlen ("%%BeginData:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%BeginData:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%BeginData:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%BeginData:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%BeginData:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%BeginData:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%BeginData:")))); }) : strncmp (line, "%%BeginData:", 12)))) { > l = strtol(&line[12], ((void *)0), 10); > xbin_image_length = (l < 0) ? 0 : (OIsize)l; > bin_flag = (1); > } > > if(bin_flag) { > bin_flag = (0); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 579; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("skipping image-data; %I*d byte\n", sizeof(xbin_image_length), xbin_image_length); } } } while (0); > > if(( (sfseek((f), (off_t)(xbin_image_length), (1)|0000100) < 0 ? -1 : 0 ) ) == -1) { > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > offset = ( sfseek((f), (off_t)0, 1) ); > to_be_continued = (0); > continue; > } > > if(!(__extension__ (__builtin_constant_p (13) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (13))) || (__builtin_constant_p ("%%EndComments") && strlen ("%%EndComments") < ((size_t) (13)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%EndComments") && (__s1_len = strlen (line), __s2_len = strlen ("%%EndComments"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%EndComments") + 1) - (size_t)(const void *)("%%EndComments") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%EndComments") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%EndComments") && ((size_t)(const void *)(("%%EndComments") + 1) - (size_t)(const void *)("%%EndComments") == 1) ? __builtin_strcmp (line, "%%EndComments") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%EndComments"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%EndComments") && ((size_t)(const void *)(("%%EndComments") + 1) - (size_t)(const void *)("%%EndComments") == 1) && (__s2_len = strlen ("%%EndComments"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%EndComments") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%EndComments")))); }) : strncmp (line, "%%EndComments", 13)))) > cleanIccRefs = (1); > > if(cleanIccRefs && !(__extension__ (__builtin_constant_p (strlen(dsc)) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (strlen(dsc)))) || (__builtin_constant_p (dsc) && strlen (dsc) < ((size_t) (strlen(dsc))))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p (dsc) && (__s1_len = strlen (line), __s2_len = strlen (dsc), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((dsc) + 1) - (size_t)(const void *)(dsc) == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, dsc) : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p (dsc) && ((size_t)(const void *)((dsc) + 1) - (size_t)(const void *)(dsc) == 1) ? __builtin_strcmp (line, dsc) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (dsc); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (dsc) && ((size_t)(const void *)((dsc) + 1) - (size_t)(const void *)(dsc) == 1) && (__s2_len = strlen (dsc), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, dsc) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (dsc))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (dsc))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (dsc))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (dsc))[3]); } } __result; }))) : __builtin_strcmp (line, dsc)))); }) : strncmp (line, dsc, strlen(dsc))))) { > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("illegalICC-Reference", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = offset; > section->section_size = ( sfseek((f), (off_t)0, 1) )-offset; > section->section_type = 999; > section->section_skip = (1); > > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > section = ((void *)0); > sip = ((void *)0); > } > > if(!(__extension__ (__builtin_constant_p (18) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (18))) || (__builtin_constant_p ("%%BeginICCProfile:") && strlen ("%%BeginICCProfile:") < ((size_t) (18)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%BeginICCProfile:") && (__s1_len = strlen (line), __s2_len = strlen ("%%BeginICCProfile:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%BeginICCProfile:") + 1) - (size_t)(const void *)("%%BeginICCProfile:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%BeginICCProfile:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%BeginICCProfile:") && ((size_t)(const void *)(("%%BeginICCProfile:") + 1) - (size_t)(const void *)("%%BeginICCProfile:") == 1) ? __builtin_strcmp (line, "%%BeginICCProfile:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%BeginICCProfile:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%BeginICCProfile:") && ((size_t)(const void *)(("%%BeginICCProfile:") + 1) - (size_t)(const void *)("%%BeginICCProfile:") == 1) && (__s2_len = strlen ("%%BeginICCProfile:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%BeginICCProfile:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%BeginICCProfile:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%BeginICCProfile:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%BeginICCProfile:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%BeginICCProfile:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%BeginICCProfile:")))); }) : strncmp (line, "%%BeginICCProfile:", 18))) || !(__extension__ (__builtin_constant_p (17) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (17))) || (__builtin_constant_p ("%BeginICCProfile:") && strlen ("%BeginICCProfile:") < ((size_t) (17)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%BeginICCProfile:") && (__s1_len = strlen (line), __s2_len = strlen ("%BeginICCProfile:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%BeginICCProfile:") + 1) - (size_t)(const void *)("%BeginICCProfile:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%BeginICCProfile:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%BeginICCProfile:") && ((size_t)(const void *)(("%BeginICCProfile:") + 1) - (size_t)(const void *)("%BeginICCProfile:") == 1) ? __builtin_strcmp (line, "%BeginICCProfile:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%BeginICCProfile:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%BeginICCProfile:") && ((size_t)(const void *)(("%BeginICCProfile:") + 1) - (size_t)(const void *)("%BeginICCProfile:") == 1) && (__s2_len = strlen ("%BeginICCProfile:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%BeginICCProfile:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%BeginICCProfile:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%BeginICCProfile:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%BeginICCProfile:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%BeginICCProfile:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%BeginICCProfile:")))); }) : strncmp (line, "%BeginICCProfile:", 17)))) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 622; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > start_offset = offset; > } > > if(!(__extension__ (__builtin_constant_p (15) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (15))) || (__builtin_constant_p ("%%EndICCProfile") && strlen ("%%EndICCProfile") < ((size_t) (15)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%EndICCProfile") && (__s1_len = strlen (line), __s2_len = strlen ("%%EndICCProfile"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%EndICCProfile") + 1) - (size_t)(const void *)("%%EndICCProfile") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%EndICCProfile") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%EndICCProfile") && ((size_t)(const void *)(("%%EndICCProfile") + 1) - (size_t)(const void *)("%%EndICCProfile") == 1) ? __builtin_strcmp (line, "%%EndICCProfile") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%EndICCProfile"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%EndICCProfile") && ((size_t)(const void *)(("%%EndICCProfile") + 1) - (size_t)(const void *)("%%EndICCProfile") == 1) && (__s2_len = strlen ("%%EndICCProfile"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%EndICCProfile") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%EndICCProfile"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%EndICCProfile"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%EndICCProfile"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%EndICCProfile"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%EndICCProfile")))); }) : strncmp (line, "%%EndICCProfile", 15))) || !(__extension__ (__builtin_constant_p (14) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (14))) || (__builtin_constant_p ("%EndICCProfile") && strlen ("%EndICCProfile") < ((size_t) (14)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%EndICCProfile") && (__s1_len = strlen (line), __s2_len = strlen ("%EndICCProfile"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%EndICCProfile") + 1) - (size_t)(const void *)("%EndICCProfile") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%EndICCProfile") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%EndICCProfile") && ((size_t)(const void *)(("%EndICCProfile") + 1) - (size_t)(const void *)("%EndICCProfile") == 1) ? __builtin_strcmp (line, "%EndICCProfile") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%EndICCProfile"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%EndICCProfile") && ((size_t)(const void *)(("%EndICCProfile") + 1) - (size_t)(const void *)("%EndICCProfile") == 1) && (__s2_len = strlen ("%EndICCProfile"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%EndICCProfile") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%EndICCProfile"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%EndICCProfile"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%EndICCProfile"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%EndICCProfile"))[3]); } } __result; }))) : __builtin_strcmp (line, "%EndICCProfile")))); }) : strncmp (line, "%EndICCProfile", 14)))) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 627; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > end_offset = ( sfseek((f), (off_t)0, 1) ); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 630; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("ICC-Profile detected: start: %I*d; end:%I*d\n", sizeof(start_offset), start_offset, sizeof(end_offset), end_offset); } } } while (0); > > break; > } > offset = ( sfseek((f), (off_t)0, 1) ); > to_be_continued = (0); > } > OIclr2errmark(emark); > > > if(start_offset && end_offset) { > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("ICC-Profile", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = start_offset; > section->section_size = end_offset - start_offset; > section->section_type = 5; > section->section_skip = (0); > > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > tag_handle->icc_found = (1); > section = ((void *)0); > sip = ((void *)0); > } > > result = 0; > >FNC_XIT: > > if(section) { > free(section); > } > if(sip) { > DestroyStrItem(sip); > } > > return(result); >} > > > > > > >static int oiepsDetermineICCProfileReferenceRegion(oiepsItocTagHandle *tag_handle) >{ > int result = -1; > OIoffset plate_start_offset, plate_end_offset; > OIoffset offset; > OIoffset endcomment_offset, iccref_offset; > OIoffset endcomment_size, iccref_size; > char line[1024]; > char dsc[256]; > Boolean to_be_continued; > OIMark emark; > StrItem *sip; > int state, old_len, new_len; > char *plate_line; > Sfio_t *f; > oiepsItocSection *section; > > > plate_start_offset = 0; > plate_end_offset = 0; > state = 0; > f = tag_handle->src_f; > sip = ((void *)0); > section = ((void *)0); > > > iccref_offset = endcomment_offset = 0; > iccref_size = endcomment_size = 0; > _stdsprintf(dsc, "%%%s:", "HELICCImageProfileRef"); > emark = OImarkerr(); > > if(( (sfseek((f), (off_t)(0), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > > offset = ( sfseek((f), (off_t)0, 1) ); to_be_continued = (0); > while(oiepsFgets(line, sizeof(line), f, &to_be_continued)) { > > if(*line != '\0' && *line != '%') { > > > > > if(endcomment_offset == 0) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 733; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("virtual %%%%EndComment on offset %I*d\n", sizeof(offset), offset); } } } while (0); > endcomment_offset = offset; > endcomment_size = 0; > } > break; > } > > if(state == 1) { > > if((__extension__ (__builtin_constant_p (3) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (3))) || (__builtin_constant_p ("%%+") && strlen ("%%+") < ((size_t) (3)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%+") && (__s1_len = strlen (line), __s2_len = strlen ("%%+"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%+") + 1) - (size_t)(const void *)("%%+") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%+") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%+") && ((size_t)(const void *)(("%%+") + 1) - (size_t)(const void *)("%%+") == 1) ? __builtin_strcmp (line, "%%+") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%+"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%+") && ((size_t)(const void *)(("%%+") + 1) - (size_t)(const void *)("%%+") == 1) && (__s2_len = strlen ("%%+"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%+") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%+"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%+"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%+"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%+"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%+")))); }) : strncmp (line, "%%+", 3)))) { > > state = 0; > if(oiepsItocAddPlateSection(tag_handle, plate_line, > plate_start_offset, > plate_end_offset) != 0) { > ; > goto FNC_XIT; > } > free(plate_line); > plate_line = ((void *)0); > plate_start_offset = plate_end_offset = 0; > } else { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 756; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("continuation line: %s\n", line); } } } while (0); > old_len = strlen(plate_line); > new_len = old_len + strlen(&line[3]) + 1; > if((plate_line = realloc(plate_line, new_len)) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "realloc"); > goto FNC_XIT; > } > strcat(plate_line, line); > plate_end_offset = ( sfseek((f), (off_t)0, 1) ); > offset = ( sfseek((f), (off_t)0, 1) ); > to_be_continued = (0); > continue; > } > } > > > if(!(__extension__ (__builtin_constant_p (12) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (12))) || (__builtin_constant_p ("%%PlateFile:") && strlen ("%%PlateFile:") < ((size_t) (12)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%PlateFile:") && (__s1_len = strlen (line), __s2_len = strlen ("%%PlateFile:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%PlateFile:") + 1) - (size_t)(const void *)("%%PlateFile:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%PlateFile:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%PlateFile:") && ((size_t)(const void *)(("%%PlateFile:") + 1) - (size_t)(const void *)("%%PlateFile:") == 1) ? __builtin_strcmp (line, "%%PlateFile:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%PlateFile:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%PlateFile:") && ((size_t)(const void *)(("%%PlateFile:") + 1) - (size_t)(const void *)("%%PlateFile:") == 1) && (__s2_len = strlen ("%%PlateFile:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%PlateFile:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%PlateFile:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%PlateFile:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%PlateFile:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%PlateFile:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%PlateFile:")))); }) : strncmp (line, "%%PlateFile:", 12)))) { > > state = 1; > > if((plate_line = (__extension__ (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? (((__const char *) (line))[0] == '\0' ? (char *) calloc (1, 1) : ({ size_t __len = strlen (line) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, line, __len); __retval; })) : __strdup (line)))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "strdup"); > goto FNC_XIT; > } > plate_start_offset = offset; > plate_end_offset = ( sfseek((f), (off_t)0, 1) ); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 784; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > } > > > if(!(__extension__ (__builtin_constant_p (13) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (13))) || (__builtin_constant_p ("%%EndComments") && strlen ("%%EndComments") < ((size_t) (13)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%%EndComments") && (__s1_len = strlen (line), __s2_len = strlen ("%%EndComments"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%%EndComments") + 1) - (size_t)(const void *)("%%EndComments") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%%EndComments") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%%EndComments") && ((size_t)(const void *)(("%%EndComments") + 1) - (size_t)(const void *)("%%EndComments") == 1) ? __builtin_strcmp (line, "%%EndComments") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%%EndComments"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%%EndComments") && ((size_t)(const void *)(("%%EndComments") + 1) - (size_t)(const void *)("%%EndComments") == 1) && (__s2_len = strlen ("%%EndComments"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%%EndComments") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%%EndComments"))[3]); } } __result; }))) : __builtin_strcmp (line, "%%EndComments")))); }) : strncmp (line, "%%EndComments", 13)))) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 789; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > endcomment_offset = offset; > endcomment_size = ( sfseek((f), (off_t)0, 1) ) - offset; > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 793; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%%EndComments: off=%I*d; size=%I*d\n", sizeof(endcomment_offset), endcomment_offset, sizeof(endcomment_size), endcomment_size); } } } while (0); > > break; > } > > if(!(__extension__ (__builtin_constant_p (strlen(dsc)) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (strlen(dsc)))) || (__builtin_constant_p (dsc) && strlen (dsc) < ((size_t) (strlen(dsc))))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p (dsc) && (__s1_len = strlen (line), __s2_len = strlen (dsc), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((dsc) + 1) - (size_t)(const void *)(dsc) == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, dsc) : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p (dsc) && ((size_t)(const void *)((dsc) + 1) - (size_t)(const void *)(dsc) == 1) ? __builtin_strcmp (line, dsc) : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) (dsc); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (dsc) && ((size_t)(const void *)((dsc) + 1) - (size_t)(const void *)(dsc) == 1) && (__s2_len = strlen (dsc), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, dsc) : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) (dsc))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) (dsc))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) (dsc))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) (dsc))[3]); } } __result; }))) : __builtin_strcmp (line, dsc)))); }) : strncmp (line, dsc, strlen(dsc))))) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 799; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > iccref_offset = offset; > iccref_size = ( sfseek((f), (off_t)0, 1) ) - offset; > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 803; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%%HELICCImageProfileRef: off=%I*d; size=%I*d\n", sizeof(iccref_offset), iccref_offset, sizeof(iccref_size), iccref_size); } } } while (0); > > } > offset = ( sfseek((f), (off_t)0, 1) ); > to_be_continued = (0); > } > OIclr2errmark(emark); > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("EndComment", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = endcomment_offset; > section->section_size = endcomment_size; > section->section_type = 4; > section->section_skip = (0); > > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > section = ((void *)0); > sip = ((void *)0); > > if(iccref_size) { > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("ICC-Reference", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = iccref_offset; > section->section_size = iccref_size; > section->section_type = 3; > section->section_skip = (0); > > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > tag_handle->iccref_found = (1); > section = ((void *)0); > sip = ((void *)0); > } > > result = 0; > >FNC_XIT: > > if(section) { > free(section); > } > if(sip) { > DestroyStrItem(sip); > } > > return(result); >} > > > > > > >static int oiepsDetermineResourceRegions(oiepsItocTagHandle *tag_handle) >{ > int result = -1; > OIoffset psdstart_offset, psdend_offset, xmpstart_offset, xmpend_offset, code_offset; > OIoffset offset; > OIoffset psd_offset, xmp_offset, img_offset; > OIoffset psdblock_start, psdblock_end; > OIoffset psd_size, psdhexsize, xmp_size, xml_size, img_size; > OIsize psdmemsize, max; > char line[1024]; > Boolean to_be_continued; > OIMark emark; > Sfio_t *f, *prsrcfile, *xmpfile; > StrItem *sip; > oiepsItocSection *section; > char *fptr, *psdlenc; > uint8 *s; > Boolean foundXMPcode = (0); > ahxParams ahxp = {0x04, 2*32L, '%'}; > Sfdisc_t *dcsub, *dcahx; > ssize_t readlen; > char *xmllen; > > > > psdstart_offset = 0; > psdend_offset = 0; > xmpstart_offset = 0; > xmpend_offset = 0; > f = tag_handle->src_f; > sip = ((void *)0); > section = ((void *)0); > > psd_offset = code_offset = img_offset = 0; > psd_size = xmp_size = xml_size = img_size = 0; > > > emark = OImarkerr(); > > if(( (sfseek((f), (off_t)(0), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > > offset = ( sfseek((f), (off_t)0, 1) ); to_be_continued = (0); > while(oiepsFgets(line, sizeof(line), f, &to_be_continued)) { > > if(*line != '\0' && *line != '%' && !foundXMPcode) { > > > > break; > } > > if(!(__extension__ (__builtin_constant_p (11) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (11))) || (__builtin_constant_p ("%ImageData:") && strlen ("%ImageData:") < ((size_t) (11)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%ImageData:") && (__s1_len = strlen (line), __s2_len = strlen ("%ImageData:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%ImageData:") + 1) - (size_t)(const void *)("%ImageData:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%ImageData:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%ImageData:") && ((size_t)(const void *)(("%ImageData:") + 1) - (size_t)(const void *)("%ImageData:") == 1) ? __builtin_strcmp (line, "%ImageData:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%ImageData:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%ImageData:") && ((size_t)(const void *)(("%ImageData:") + 1) - (size_t)(const void *)("%ImageData:") == 1) && (__s2_len = strlen ("%ImageData:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%ImageData:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%ImageData:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%ImageData:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%ImageData:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%ImageData:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%ImageData:")))); }) : strncmp (line, "%ImageData:", 11)))) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 938; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > img_offset = offset; > img_size = ( sfseek((f), (off_t)0, 1) ) - offset; > } > > if(!(__extension__ (__builtin_constant_p (16) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (16))) || (__builtin_constant_p ("%BeginPhotoshop:") && strlen ("%BeginPhotoshop:") < ((size_t) (16)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%BeginPhotoshop:") && (__s1_len = strlen (line), __s2_len = strlen ("%BeginPhotoshop:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%BeginPhotoshop:") + 1) - (size_t)(const void *)("%BeginPhotoshop:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%BeginPhotoshop:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%BeginPhotoshop:") && ((size_t)(const void *)(("%BeginPhotoshop:") + 1) - (size_t)(const void *)("%BeginPhotoshop:") == 1) ? __builtin_strcmp (line, "%BeginPhotoshop:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%BeginPhotoshop:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%BeginPhotoshop:") && ((size_t)(const void *)(("%BeginPhotoshop:") + 1) - (size_t)(const void *)("%BeginPhotoshop:") == 1) && (__s2_len = strlen ("%BeginPhotoshop:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%BeginPhotoshop:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%BeginPhotoshop:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%BeginPhotoshop:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%BeginPhotoshop:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%BeginPhotoshop:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%BeginPhotoshop:")))); }) : strncmp (line, "%BeginPhotoshop:", 16)))) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 945; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > psdblock_start = ( sfseek((f), (off_t)0, 1) ); > psdstart_offset = offset; > for(fptr = &line[16]; *fptr; fptr++) { > if(!((*__ctype_b_loc ())[(int) (((unsigned char)(*fptr)))] & (unsigned short int) _ISspace)) { > break; > } > } > if((psdlenc = StrToken(fptr, fptr, " :\t")) == ((void *)0)) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 32), > GetMsg(g_oieps_catd, 3, 22)); > FreeToken(fptr); > fptr = ((void *)0); > goto FNC_XIT; > } > tag_handle->rsrc_len = strtoul(psdlenc, ((void *)0), 0); > } > > if(!(__extension__ (__builtin_constant_p (13) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (13))) || (__builtin_constant_p ("%EndPhotoshop") && strlen ("%EndPhotoshop") < ((size_t) (13)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%EndPhotoshop") && (__s1_len = strlen (line), __s2_len = strlen ("%EndPhotoshop"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%EndPhotoshop") + 1) - (size_t)(const void *)("%EndPhotoshop") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%EndPhotoshop") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%EndPhotoshop") && ((size_t)(const void *)(("%EndPhotoshop") + 1) - (size_t)(const void *)("%EndPhotoshop") == 1) ? __builtin_strcmp (line, "%EndPhotoshop") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%EndPhotoshop"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%EndPhotoshop") && ((size_t)(const void *)(("%EndPhotoshop") + 1) - (size_t)(const void *)("%EndPhotoshop") == 1) && (__s2_len = strlen ("%EndPhotoshop"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%EndPhotoshop") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%EndPhotoshop"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%EndPhotoshop"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%EndPhotoshop"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%EndPhotoshop"))[3]); } } __result; }))) : __builtin_strcmp (line, "%EndPhotoshop")))); }) : strncmp (line, "%EndPhotoshop", 13)))) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 965; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > psdend_offset = ( sfseek((f), (off_t)0, 1) ); > psdblock_end = offset; > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 969; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("Photoshop Resource detected: start: %I*d; end:%I*d\n", sizeof(psdstart_offset), psdstart_offset, sizeof(psdend_offset), psdend_offset); } } } while (0); > > psd_offset = psdstart_offset; > psd_size = (psdend_offset - psdstart_offset)+1; > to_be_continued = (0); > } > > if(!(__extension__ (__builtin_constant_p (15) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (15))) || (__builtin_constant_p ("%begin_xml_code") && strlen ("%begin_xml_code") < ((size_t) (15)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%begin_xml_code") && (__s1_len = strlen (line), __s2_len = strlen ("%begin_xml_code"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%begin_xml_code") + 1) - (size_t)(const void *)("%begin_xml_code") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%begin_xml_code") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%begin_xml_code") && ((size_t)(const void *)(("%begin_xml_code") + 1) - (size_t)(const void *)("%begin_xml_code") == 1) ? __builtin_strcmp (line, "%begin_xml_code") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%begin_xml_code"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%begin_xml_code") && ((size_t)(const void *)(("%begin_xml_code") + 1) - (size_t)(const void *)("%begin_xml_code") == 1) && (__s2_len = strlen ("%begin_xml_code"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%begin_xml_code") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%begin_xml_code"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%begin_xml_code"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%begin_xml_code"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%begin_xml_code"))[3]); } } __result; }))) : __builtin_strcmp (line, "%begin_xml_code")))); }) : strncmp (line, "%begin_xml_code", 15)))) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 977; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > foundXMPcode = (1); > code_offset = offset; > } > > if(!(__extension__ (__builtin_constant_p (18) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (18))) || (__builtin_constant_p ("%begin_xml_packet:") && strlen ("%begin_xml_packet:") < ((size_t) (18)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%begin_xml_packet:") && (__s1_len = strlen (line), __s2_len = strlen ("%begin_xml_packet:"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%begin_xml_packet:") + 1) - (size_t)(const void *)("%begin_xml_packet:") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%begin_xml_packet:") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%begin_xml_packet:") && ((size_t)(const void *)(("%begin_xml_packet:") + 1) - (size_t)(const void *)("%begin_xml_packet:") == 1) ? __builtin_strcmp (line, "%begin_xml_packet:") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%begin_xml_packet:"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%begin_xml_packet:") && ((size_t)(const void *)(("%begin_xml_packet:") + 1) - (size_t)(const void *)("%begin_xml_packet:") == 1) && (__s2_len = strlen ("%begin_xml_packet:"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%begin_xml_packet:") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%begin_xml_packet:"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%begin_xml_packet:"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%begin_xml_packet:"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%begin_xml_packet:"))[3]); } } __result; }))) : __builtin_strcmp (line, "%begin_xml_packet:")))); }) : strncmp (line, "%begin_xml_packet:", 18)))) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 984; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > xmpstart_offset = ( sfseek((f), (off_t)0, 1) ); > for(fptr = &line[18]; *fptr; fptr++) { > if(!((*__ctype_b_loc ())[(int) (((unsigned char)(*fptr)))] & (unsigned short int) _ISspace)) { > break; > } > } > if((xmllen = StrToken(fptr, fptr, " :\t")) == ((void *)0)) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 32), > GetMsg(g_oieps_catd, 3, 22)); > FreeToken(fptr); > fptr = ((void *)0); > goto FNC_XIT; > } > xml_size = strtoul(xmllen, ((void *)0), 0); > } > > if(!(__extension__ (__builtin_constant_p (13) && ((__builtin_constant_p (line) && strlen (line) < ((size_t) (13))) || (__builtin_constant_p ("%end_xml_code") && strlen ("%end_xml_code") < ((size_t) (13)))) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (line) && __builtin_constant_p ("%end_xml_code") && (__s1_len = strlen (line), __s2_len = strlen ("%end_xml_code"), (!((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("%end_xml_code") + 1) - (size_t)(const void *)("%end_xml_code") == 1) || __s2_len >= 4)) ? __builtin_strcmp (line, "%end_xml_code") : (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) && (__s1_len = strlen (line), __s1_len < 4) ? (__builtin_constant_p ("%end_xml_code") && ((size_t)(const void *)(("%end_xml_code") + 1) - (size_t)(const void *)("%end_xml_code") == 1) ? __builtin_strcmp (line, "%end_xml_code") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("%end_xml_code"); register int __result = (((__const unsigned char *) (__const char *) (line))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (line))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (line))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("%end_xml_code") && ((size_t)(const void *)(("%end_xml_code") + 1) - (size_t)(const void *)("%end_xml_code") == 1) && (__s2_len = strlen ("%end_xml_code"), __s2_len < 4) ? (__builtin_constant_p (line) && ((size_t)(const void *)((line) + 1) - (size_t)(const void *)(line) == 1) ? __builtin_strcmp (line, "%end_xml_code") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (line); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("%end_xml_code"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("%end_xml_code"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("%end_xml_code"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("%end_xml_code"))[3]); } } __result; }))) : __builtin_strcmp (line, "%end_xml_code")))); }) : strncmp (line, "%end_xml_code", 13)))) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1003; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("%s\n", line); } } } while (0); > xmpend_offset = ( sfseek((f), (off_t)0, 1) ); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1006; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("XML informations detected: start: %I*d; end:%I*d\n", sizeof(xmpstart_offset), xmpstart_offset, sizeof(xmpend_offset), xmpend_offset); } } } while (0); > > xmp_offset = xmpstart_offset; > xmp_size = xmpend_offset - code_offset; > to_be_continued = (0); > foundXMPcode = (0); > } > offset = ( sfseek((f), (off_t)0, 1) ); > } > OIclr2errmark(emark); > if (psd_offset && psd_size) { > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("Photoshop", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = psd_offset; > section->section_size = psd_size; > section->section_type = 6; > section->section_skip = (0); > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > section = ((void *)0); > sip = ((void *)0); > psdmemsize = tag_handle->rsrc_len; > psdhexsize = psdblock_end - psdblock_start; > if(psdhexsize) { > > if ((prsrcfile = sfnull(0000001)) != ((void *)0)) { > dcsub = dcNewSubStream( f, psdblock_start, psdhexsize); > if (dcsub) > sfdisc(prsrcfile, dcsub); > else > goto PSDERROR; > dcahx = dcNewAhx(dcDecoding, 0000001, 0, &ahxp); > if (dcahx) > sfdisc(prsrcfile, dcahx); > else > goto PSDERROR; > tag_handle->rsrc_mem = calloc(1, tag_handle->rsrc_len); > if (tag_handle->rsrc_mem) { > s = tag_handle->rsrc_mem; > max = psdmemsize; > while(max && (readlen = sfread(prsrcfile, s, max)) > 0) { > max -= readlen; > s+=readlen; > } > if (max <= ((void *)0)) > tag_handle->prsrc = OIopenRsrcBlk(tag_handle->rsrc_mem, psdmemsize); > } > sfclose(prsrcfile); > } > } > } >PSDERROR: > if (tag_handle->prsrc == ((void *)0)) { > tag_handle->prsrc = OIopenRsrcBlk(((void *)0), 0); > } > > if (xmp_size) { > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("XMP", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = code_offset; > section->section_size = xmp_size; > section->section_type = 7; > section->section_skip = (0); > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > section = ((void *)0); > sip = ((void *)0); > > if ((xmpfile = sfnull(0000001)) != ((void *)0)) { > dcsub = dcNewSubStream( f, xmpstart_offset, xml_size); > if (dcsub) > sfdisc(xmpfile, dcsub); > else > goto XMPERROR; > tag_handle->xmp = OInewPstring(((void *)0), xml_size); > if (tag_handle->xmp) { > s = tag_handle->xmp->data; > max = xml_size; > while(max && (readlen = sfread(xmpfile, s, max)) > 0) { > max -= readlen; > s+=readlen; > } > } > sfclose(xmpfile); > } > } else { >XMPERROR: > tag_handle->xmp = ((void *)0); > } > if(img_size) { > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("ImageData", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = img_offset; > section->section_size = img_size; > section->section_type = 8; > section->section_skip = (0); > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > section = ((void *)0); > sip = ((void *)0); > } > result = 0; > >FNC_XIT: > > if(section) { > free(section); > } > if(sip) { > DestroyStrItem(sip); > } > > return(result); >} > > > > >static int oiepsPutIccProfile(Sfio_t *ofp, OIGfxIccPtr icc, Boolean include_profile) >{ > int result = -1; > char id[8192]; > char buffer[8192]; > static int profile_count = 1; > int lines; > uint32 profilesize, cnt; > uint8 *s; > > if(!include_profile && icc->iccpath) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1171; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writings ICC-Reference...\n"); } } } while (0); > if(icc->reqicctime == ((void *)0) || strlen(icc->reqicctime) != 14) { > if(OIgetICCtime(icc, id) != 0) > strcpy(id, "00000000000000"); > } else { > strcpy(id, icc->reqicctime); > } > _stdfprintf(ofp, "%%%s: (%14.14s) (%s)\r", > "HELICCImageProfileRef", > id, OIADSCEnquote(icc->iccpath, buffer)); > } else if(include_profile) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1182; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writings ICC-Profile...\n"); } } } while (0); > if(OImapICCprofile(icc) != 0) { > ; > goto FNC_XIT; > } > if(icc->profileid == ((void *)0)) > if(icc->iccpath != ((void *)0)) > strcpy(id, icc->iccpath); > else > _stdsprintf(id, "ICC Profile #%I*d", sizeof(profile_count), profile_count++); > else > strcpy(id, icc->profileid); > profilesize = ((((uint32)*((uint8 *)icc->profile + 3)) & 0xff) | ((((uint32)*((uint8 *)icc->profile + 2)) << 8) & 0xff00) | ((((uint32)*((uint8 *)icc->profile + 1)) << 16) & 0xff0000) | ((((uint32)*((uint8 *)icc->profile)) << 24) & 0xff000000)); > lines = (profilesize + 32L - 1) / 32L; > _stdfprintf(ofp, "%%%%BeginICCProfile: (%s) %I*d Hex Lines", > OIADSCEnquote(id, buffer), sizeof(lines), lines); > for(s = icc->profile, cnt = 0; cnt < profilesize; cnt++, s++) { > if ((cnt % 32L) == 0) > _stdfprintf(ofp, "\r%% %02x", *s); > else > _stdfprintf(ofp, "%02x", *s); > } > OIunmapICCprofile(icc); > _stdfprintf(ofp, "\r%%%%EndICCProfile\r"); > } > result = 0; > >FNC_XIT: > > return(result); >} > >static int oiepsPutXMP(Sfio_t *ofp, OIPstringPtr xmp) >{ > uint8 *s; > uint32 len, glen; > int result; > > _stdfprintf(ofp, "%s%I*d%s%I*d\r", XMPtrailer->value, sizeof(xmp->len), xmp->len, XMPhead->value, sizeof(xmp->len), xmp->len); > glen = xmp->len; > s = xmp->data; > len = _stdfwrite(s, glen, 1, ofp); > _stdfprintf(ofp, "%s", XMPend->value); > if (len > 0) > result = 0; > else > result = -1; > return (result); >} > > > > > >static int oiepsItocAddPlateSection(oiepsItocTagHandle *tag_handle, char *plate_line, OIoffset plate_start_offset, OIoffset plate_end_offset) >{ > int digits, n, result = -1; > int newline_len, plate_line_len; > unsigned char *cptr, *line; > oiepsItocSection *section; > StrItem *sip; > > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1245; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("detected: %s\n", plate_line); } } } while (0); > > section = ((void *)0); > plate_line_len = strlen(plate_line); > newline_len = plate_end_offset - plate_start_offset - plate_line_len; > n = 0; > digits = 0; > sip = ((void *)0); > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > section->section_offset = plate_start_offset; > section->section_size = plate_end_offset - plate_start_offset; > section->section_type = 2; > section->section_skip = (0); > if((section->plate_file.line = (__extension__ (__builtin_constant_p (plate_line) && ((size_t)(const void *)((plate_line) + 1) - (size_t)(const void *)(plate_line) == 1) ? (((__const char *) (plate_line))[0] == '\0' ? (char *) calloc (1, 1) : ({ size_t __len = strlen (plate_line) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, plate_line, __len); __retval; })) : __strdup (plate_line)))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "strdup"); > goto FNC_XIT; > } > line = (unsigned char *)section->plate_file.line; > cptr = line + plate_line_len - 1; > > while(((*__ctype_b_loc ())[(int) ((*cptr))] & (unsigned short int) _ISspace) && cptr != line) { > cptr--; > n++; > } > if(cptr == line) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1276; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > > if(!((*__ctype_b_loc ())[(int) ((*cptr))] & (unsigned short int) _ISdigit)) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1283; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > > while(((*__ctype_b_loc ())[(int) ((*cptr))] & (unsigned short int) _ISdigit) && cptr != line) { > cptr--; > n++; > } > if(cptr == line) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1293; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > section->plate_file.size = strtoul((char *)cptr + 1, ((void *)0), 0); > > while(((*__ctype_b_loc ())[(int) ((*cptr))] & (unsigned short int) _ISspace) && cptr != line) { > cptr--; > n++; > digits++; > } > if(cptr == line) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1305; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > digits--; > if(!((*__ctype_b_loc ())[(int) ((*cptr))] & (unsigned short int) _ISdigit)) { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1312; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > > while(((*__ctype_b_loc ())[(int) ((*cptr))] & (unsigned short int) _ISdigit) && cptr != line) { > cptr--; > n++; > digits++; > } > if(cptr == line) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1323; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > > if(*cptr != '#') { > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1330; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("No single file EPSF!\n"); } } } while (0); > result = 0; > goto FNC_XIT; > } > > section->plate_file.offset = strtoul((char *)cptr + 1, ((void *)0), 0); > section->plate_file.offset_offset = plate_end_offset - n - newline_len; > section->plate_file.offset_digits = digits; > section->plate_file.newline_len = newline_len; > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1340; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("size of plate: %I*d\n", sizeof(section->plate_file.size), section->plate_file.size); } } } while (0); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1341; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("(old) offset to plate: %I*d\n", sizeof(section->plate_file.offset), section->plate_file.offset); } } } while (0); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1342; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("offset_digits: %I*d\n", sizeof(section->plate_file.offset_digits), section->plate_file.offset_digits); } } } while (0); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1343; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("offset_offset: %I*d\n", sizeof(section->plate_file.offset_offset), section->plate_file.offset_offset); } } } while (0); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1344; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("newline_len: %I*d\n", sizeof(section->plate_file.newline_len), section->plate_file.newline_len); } } } while (0); > > if((sip = CreateStrItem("PlateFile", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > sip = ((void *)0); > section = ((void *)0); > result = 0; > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1361; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("PlateFile added!\n"); } } } while (0); > >FNC_XIT: > > if(section) { > free(section); > section = ((void *)0); > } > > if(sip) { > DestroyStrItem(sip); > sip = ((void *)0); > } > > return(result); >} > > > > > > >static int oiepsSectionCompareFunc(StrItem *sip1, StrItem *sip2) >{ > oiepsItocSection *section1, *section2; > > section1 = (oiepsItocSection *)sip1->strUdata; > section2 = (oiepsItocSection *)sip2->strUdata; > > > return(section1->section_offset - section2->section_offset); >} > > > > > >static int oiepsItocAddPsSections(oiepsItocTagHandle *tag_handle) >{ > int i, result = -1; > oiepsItocSection *section, *fsection, *lsection; > OIoffset next_offset; > StrItem *sip, *nsip, *fsip, *lsip; > Strlist *slp; > > > sip = ((void *)0); > nsip = ((void *)0); > slp = ((void *)0); > section = ((void *)0); > > > if((slp = CreateStrlist(0)) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrlist"); > goto FNC_XIT; > } > > for ((sip) = (StrItem *)(&tag_handle->section_slp->strHead)->q_forw; (sip) != (StrItem *)(&tag_handle->section_slp->strHead); (sip) = (StrItem *)((sip)->strLink).q_forw) { > if((nsip = CreateStrItem(sip->strVal, sip->strUdata, 0)) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > if(AddStrItem(slp, nsip, 0) == 0) { > ; > } > } > sip = nsip = ((void *)0); > > > for(i=0; i < slp->strNitems - 1; i++) { > > if((fsip = GetNthItem(slp, i)) == ((void *)0)) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 26), GetMsg(g_oieps_catd, 3, 14)); > goto FNC_XIT; > } > fsection = (oiepsItocSection *)fsip->strUdata; > > if((lsip = GetNthItem(slp, i + 1)) == ((void *)0)) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 26), GetMsg(g_oieps_catd, 3, 14)); > goto FNC_XIT; > } > lsection = (oiepsItocSection *)lsip->strUdata; > > next_offset = fsection->section_offset + fsection->section_size; > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1453; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("foffset: %I*d; fsize: %I*d\n", sizeof(fsection->section_offset), fsection->section_offset, sizeof(fsection->section_size), fsection->section_size); } } } while (0); > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1455; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("loffset: %I*d; lsize: %I*d\n", sizeof(lsection->section_offset), lsection->section_offset, sizeof(lsection->section_size), lsection->section_size); } } } while (0); > > > if(lsection->section_offset > next_offset) { > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("PS", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = next_offset; > section->section_size = lsection->section_offset - next_offset; > section->section_type = 1; > > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > } > } > > > > if((fsip = GetNthItem(tag_handle->section_slp, 0)) == ((void *)0)) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 26), GetMsg(g_oieps_catd, 3, 14)); > goto FNC_XIT; > } > fsection = (oiepsItocSection *)fsip->strUdata; > > if((lsip = GetNthItem(tag_handle->section_slp, tag_handle->section_slp->strNitems - 1)) == ((void *)0)) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 26), GetMsg(g_oieps_catd, 3, 14)); > goto FNC_XIT; > } > lsection = (oiepsItocSection *)lsip->strUdata; > > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("Header-PS", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = 0; > section->section_size = fsection->section_offset; > section->section_type = 1; > section->section_skip = (0); > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > sip = ((void *)0); > section = ((void *)0); > > if((section = calloc(1, sizeof(*section))) == ((void *)0)) { > ; > oiepsSetErr(UnixErr, "calloc"); > goto FNC_XIT; > } > if((sip = CreateStrItem("Body-PS", (Ptr)section, ((void *)0))) == ((void *)0)) { > ; > (*__errno_location ()) = 12; > oiepsSetErr(UnixErr, "CreateStrItem"); > goto FNC_XIT; > } > section->section_offset = lsection->section_offset + lsection->section_size; > section->section_size = sfsize(tag_handle->src_f) - section->section_offset; > section->section_type = 9; > section->section_skip = (0); > if(ExtAddStrItem(tag_handle->section_slp, sip, oiepsSectionCompareFunc) == 0) { > ; > oiepsSetErr(UnixErr, "ExtAddStrItem"); > goto FNC_XIT; > } > sip = ((void *)0); > section = ((void *)0); > > result = 0; > >FNC_XIT: > > if(slp) { > DestroyStrlist(slp); > slp = ((void *)0); > } > > if(section) { > free(section); > section = ((void *)0); > } > if(sip) { > DestroyStrItem(sip); > sip = ((void *)0); > } > > return(result); >} > > > > > > > >static int oiepsItocWriteEps(oiepsItocTagHandle *tag_handle, OIsize bytes_to_remove) >{ > int i, l, result = -1; > int include_section; > OIsize nbytes; > StrItem *sip; > oiepsItocSection *section; > OIsize bytes_to_add = 0; > char buffer[80]; > OIsize rsrc_len, cnt, xmp_len; > OIsize mrsrc_len; > uint8 *s; > Boolean addedRsrc = (0); > Boolean addedXMP = (0); > > > > include_section = 0; > > > > if(tag_handle->iccp && oiepsGetIccProfileSize(tag_handle->iccp, > tag_handle->include_profile, > &bytes_to_add) != 0) { > ; > goto FNC_XIT; > } > > if (tag_handle->prsrc) { > if (OIcloseRsrcBlk(tag_handle->prsrc, &tag_handle->rsrc_mem, &mrsrc_len) != 0 || mrsrc_len == 0) { > tag_handle->prsrc = ((void *)0); > mrsrc_len = 0; > } > oiepsGetPhotoshopSize(mrsrc_len, &rsrc_len); > } > if (tag_handle->xmp) { > oiepsGetXMPSize(tag_handle->xmp->len, &xmp_len); > } else > xmp_len = 0; > for ((sip) = (StrItem *)(&tag_handle->section_slp->strHead)->q_forw; (sip) != (StrItem *)(&tag_handle->section_slp->strHead); (sip) = (StrItem *)((sip)->strLink).q_forw) { > section = (oiepsItocSection *)sip->strUdata; > switch(section->section_type) { > > case 2: > bytes_to_add += 10 - section->plate_file.offset_digits; > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1618; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("expand digits: %d\n", 10 - section->plate_file.offset_digits); } } } while (0); > > break; > case 3: > bytes_to_remove = section->section_size; > if(!tag_handle->include_profile) { > include_section = 3; > } > break; > case 5: > bytes_to_remove = section->section_size; > if(tag_handle->include_profile) { > include_section = 5; > } > break; > case 4: > if(include_section == 0) { > include_section = 4; > } > break; > case 8: > if(tag_handle->include_profile) { > if(include_section == 0 || > include_section == 4) { > include_section = 8; > } > } > break; > case 6: > if (!addedRsrc) { > addedRsrc = (1); > if (tag_handle->prsrc) { > > if (rsrc_len > section->section_size) > bytes_to_add += rsrc_len - section->section_size; > else > bytes_to_remove += section->section_size - rsrc_len; > } else { > bytes_to_remove += section->section_size; > } > } > break; > case 7: > if (!addedRsrc) { > addedRsrc = (1); > if (tag_handle->prsrc) { > > if (rsrc_len > section->section_size) > bytes_to_add += rsrc_len - section->section_size; > else > bytes_to_remove += section->section_size - rsrc_len; > } else { > bytes_to_remove += section->section_size; > } > } > if(!addedXMP) { > addedXMP = (1); > if (tag_handle->xmp) { > if (tag_handle->xmp->len > section->section_size) > bytes_to_add += xmp_len - section->section_size; > else > bytes_to_remove += section->section_size - xmp_len; > } else > bytes_to_remove += section->section_size; > } > break; > case 999: > bytes_to_remove += section->section_size; > break; > case 9: > if (!addedRsrc) { > addedRsrc = (1); > if (tag_handle->prsrc) { > bytes_to_add += rsrc_len; > } > } > if(!addedXMP) { > addedXMP = (1); > if (tag_handle->xmp) { > bytes_to_add += xmp_len; > } > } > break; > } > } > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1704; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("removing %I*d bytes; adding %I*d bytes.\n", sizeof(bytes_to_remove), bytes_to_remove, sizeof(bytes_to_add), bytes_to_add); } } } while (0); > > > > for ((sip) = (StrItem *)(&tag_handle->section_slp->strHead)->q_forw; (sip) != (StrItem *)(&tag_handle->section_slp->strHead); (sip) = (StrItem *)((sip)->strLink).q_forw) { > section = (oiepsItocSection *)sip->strUdata; > if (section->section_skip) { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1711; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("skipping %s: %I*d byte.\n", sip->strVal, sizeof(section->section_size), section->section_size); } } } while (0); > > continue; > } > switch(section->section_type) { > > case 2: > > > if(( (sfseek((tag_handle->src_f), (off_t)(section->section_offset), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > > > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > nbytes = section->plate_file.offset_offset - > section->section_offset; > if(sfmove(tag_handle->src_f, > tag_handle->dst_f, > nbytes, -1) != nbytes) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), > GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > section->plate_file.new_offset = > section->plate_file.offset - bytes_to_remove + > bytes_to_add; > _stdsprintf(buffer, "%0*I*d %d", > 10, > sizeof(section->plate_file.new_offset), > section->plate_file.new_offset, > section->plate_file.size); > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1744; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("New plate offset: %s\n", buffer); } } } while (0); > l = section->section_size - strlen(buffer) - nbytes - 1; > l += 10 - section->plate_file.offset_digits; > if( l < 0) { > ; > > goto FNC_XIT; > } > if(( sfputr((tag_handle->dst_f),(buffer),-1) ) == (-1)) { > ; > oiepsSetErr(UnixErr, "fputs"); > goto FNC_XIT; > } > for(i=0; i < l; i++) > _stdfputc(' ', tag_handle->dst_f); > > if(_stdfputc('\r', tag_handle->dst_f) == (-1)) { > ; > oiepsSetErr(UnixErr, "fputc"); > goto FNC_XIT; > } > break; > > case 3: > if(tag_handle->iccp) { > if (!tag_handle->include_profile) { > if(oiepsPutIccProfile(tag_handle->dst_f, > tag_handle->iccp, > tag_handle->include_profile) != 0) { > ; > goto FNC_XIT; > } > tag_handle->iccp = ((void *)0); > } > } else { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1780; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writing %s: %I*d byte.\n", sip->strVal, sizeof(section->section_size), section->section_size); } } } while (0); > > > if(( (sfseek((tag_handle->src_f), (off_t)(section->section_offset), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > > > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > if(section->section_size > 0) { > if(sfmove(tag_handle->src_f, > tag_handle->dst_f, > section->section_size, -1) != section->section_size) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), > GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > } > } > break; > case 5: > if(tag_handle->iccp) { > if (tag_handle->include_profile) { > if(oiepsPutIccProfile(tag_handle->dst_f, > tag_handle->iccp, > tag_handle->include_profile) != 0) { > ; > goto FNC_XIT; > } > tag_handle->iccp = ((void *)0); > } > } else { > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1814; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writing %s: %I*d byte.\n", sip->strVal, sizeof(section->section_size), section->section_size); } } } while (0); > > > if(( (sfseek((tag_handle->src_f), (off_t)(section->section_offset), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > > > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > if(section->section_size > 0) { > if(sfmove(tag_handle->src_f, > tag_handle->dst_f, > section->section_size, -1) != section->section_size) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), > GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > } > } > break; > case 4: > > if(tag_handle->iccp && !tag_handle->include_profile) { > if(oiepsPutIccProfile(tag_handle->dst_f, > tag_handle->iccp, > tag_handle->include_profile) != 0) { > ; > goto FNC_XIT; > } > tag_handle->iccp = ((void *)0); > } > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1847; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writing %s: %I*d byte.\n", sip->strVal, sizeof(section->section_size), section->section_size); } } } while (0); > > > if(( (sfseek((tag_handle->src_f), (off_t)(section->section_offset), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > > > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > if(section->section_size > 0) { > if(sfmove(tag_handle->src_f, > tag_handle->dst_f, > section->section_size, -1) != section->section_size) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), > GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > } > break; > case 6: > if (tag_handle->prsrc) { > > _stdfprintf(tag_handle->dst_f, "%%BeginPhotoshop: %I*d", sizeof(mrsrc_len), mrsrc_len); > for(s = tag_handle->rsrc_mem, cnt = 0; cnt < mrsrc_len; cnt++, s++) { > if ((cnt % 32L) == 0) > _stdfprintf(tag_handle->dst_f, "\r%% %02x", *s); > else > _stdfprintf(tag_handle->dst_f, "%02x", *s); > } > tag_handle->rsrc_len = mrsrc_len; > _stdfprintf(tag_handle->dst_f, "\r%%EndPhotoshop\r"); > free(tag_handle->rsrc_mem); > tag_handle->prsrc = ((void *)0); > } > break; > case 7: > if (tag_handle->xmp) { > if(oiepsPutXMP(tag_handle->dst_f, tag_handle->xmp) != 0) { > ; > goto FNC_XIT; > } > tag_handle->xmp = ((void *)0); > } > break; > case 999: > break; > case 9: > if (tag_handle->prsrc) { > _stdfprintf(tag_handle->dst_f, "%%BeginPhotoshop: %I*d", sizeof(mrsrc_len), mrsrc_len); > for(s = tag_handle->rsrc_mem, cnt = 0; cnt < mrsrc_len; cnt++, s++) { > if ((cnt % 32L) == 0) > _stdfprintf(tag_handle->dst_f, "\r%% %02x", *s); > else > _stdfprintf(tag_handle->dst_f, "%02x", *s); > } > tag_handle->rsrc_len = mrsrc_len; > _stdfprintf(tag_handle->dst_f, "\r%%EndPhotoshop\r"); > free(tag_handle->rsrc_mem); > tag_handle->prsrc = ((void *)0); > } > if (tag_handle->xmp) { > if(oiepsPutXMP(tag_handle->dst_f, tag_handle->xmp) != 0) { > ; > goto FNC_XIT; > } > tag_handle->xmp = ((void *)0); > } > if(tag_handle->iccp) { > if(oiepsPutIccProfile(tag_handle->dst_f, > tag_handle->iccp, > tag_handle->include_profile) != 0) { > ; > goto FNC_XIT; > } > tag_handle->iccp = ((void *)0); > } > default: > > > > > > do { if ((g_oieps_tracehandle) && ((0) | (((0x00000100)) & ((g_oieps_tracehandle)->level)))) { gl_trcHandleP = g_oieps_tracehandle; gl_trcHandleP->lastUsed = (0x00000100); gl_trcHandleP->line = 1931; gl_trcHandleP->file = "oieps_itoc_tag.c"; gl_trcHandleP->func = __func__; { tprintf("writing %s: %I*d byte.\n", sip->strVal, sizeof(section->section_size), section->section_size); } } } while (0); > > if(( (sfseek((tag_handle->src_f), (off_t)(section->section_offset), (0)|0000100) < 0 ? -1 : 0 ) ) == -1) { > > > ; > oiepsSetErr(UnixErr, "fseek"); > goto FNC_XIT; > } > if(sfmove(tag_handle->src_f, > tag_handle->dst_f, > section->section_size, -1) != section->section_size) { > ; > oiepsSetErr(((((ErrbaseOI)+500)) + 25), > GetMsg(g_oieps_catd, 3, 13)); > goto FNC_XIT; > } > break; > } > } > result = 0; > >FNC_XIT: > > return(result); >} > > > > > >static int oiepsGetIccProfileSize(OIGfxIccPtr icc, Boolean include_profile, OIsize *size) >{ > int result = -1; > char id[8192]; > char buffer[8192]; > char garbage[8192]; > static int profile_count = 1; > int lines; > uint32 profilesize; > OIsize bytes_written; > > *size = bytes_written = 0; > > if(!include_profile && icc->iccpath) { > if(icc->reqicctime == ((void *)0) || strlen(icc->reqicctime) != 14) { > if(OIgetICCtime(icc, id) != 0) > strcpy(id, "00000000000000"); > } else { > strcpy(id, icc->reqicctime); > } > _stdsprintf(garbage, "%%%s: (%14.14s) (%s)\r", > "HELICCImageProfileRef", id, OIADSCEnquote(icc->iccpath, buffer)); > bytes_written += strlen(garbage); > } else if(include_profile) { > if(OImapICCprofile(icc) != 0) { > ; > goto FNC_XIT; > } > if(icc->profileid == ((void *)0)) > if(icc->iccpath != ((void *)0)) > strcpy(id, icc->iccpath); > else > _stdsprintf(id, "ICC Profile #%I*d", sizeof(profile_count), profile_count++); > else > strcpy(id, icc->profileid); > profilesize = ((((uint32)*((uint8 *)icc->profile + 3)) & 0xff) | ((((uint32)*((uint8 *)icc->profile + 2)) << 8) & 0xff00) | ((((uint32)*((uint8 *)icc->profile + 1)) << 16) & 0xff0000) | ((((uint32)*((uint8 *)icc->profile)) << 24) & 0xff000000)); > lines = (profilesize + 32L - 1) / 32L; > _stdsprintf(garbage, "%%%%BeginICCProfile: (%s) %I*d Hex Lines", > OIADSCEnquote(id, buffer), sizeof(lines), lines); > bytes_written += strlen(garbage); > > bytes_written += profilesize * 2; > bytes_written += lines * 3; > > OIunmapICCprofile(icc); > bytes_written += 17; > } > *size = bytes_written; > result = 0; > >FNC_XIT: > > return(result); >} > > > > > >static int oiepsGetPhotoshopSize(uint32 rsrc_len, OIsize *size) >{ > int result = -1; > char garbage[8192]; > int lines; > OIsize bytes_written; > > *size = bytes_written = 0; > > lines = (rsrc_len + 32L - 1) / 32L; > _stdsprintf(garbage, "%%BeginPhotoshop: %I*d\r", sizeof(rsrc_len), rsrc_len); > bytes_written += strlen(garbage); > > bytes_written += rsrc_len * 2; > bytes_written += lines * 3; > > bytes_written += 15; > > *size = bytes_written; > result = 0; > > return(result); >} > > > > > > >static int oiepsGetXMPSize(uint32 xmp_len, OIsize *size) >{ > int result = -1; > char garbage[8192]; > OIsize bytes_written; > > *size = bytes_written = 0; > > if (xmp_len == 0) > return 0; > bytes_written += strlen(XMPtrailer->value); > _stdsprintf(garbage, "%I*d", sizeof(xmp_len), xmp_len); > bytes_written += strlen(garbage); > bytes_written += strlen(XMPhead->value); > _stdsprintf(garbage, "%I*d\r", sizeof(xmp_len), xmp_len); > bytes_written += strlen(garbage); > bytes_written += xmp_len; > bytes_written += strlen(XMPend->value); > > *size = bytes_written; > result = 0; > > return(result); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 236711
: 152778