w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

win32lib.h File Reference
#include <kpathsea/c-auto.h>
#include <kpathsea/c-proto.h>
#include <windows.h>
#include <kpathsea/types.h>
#include <malloc.h>
#include <stdlib.h>
#include <io.h>
#include <fcntl.h>
#include <stdio.h>
#include <process.h>
#include <direct.h>
Include dependency graph for win32lib.h:

Go to the source code of this file.

Macros

#define KPSE_COMPAT_API   1
 
#define DOSISH
 
#define MAXPATHLEN   _MAX_PATH
 
#define HAVE_DUP2   1
 
#define HAVE_RENAME   1
 
#define HAVE_RMDIR   1
 
#define HAVE_MKDIR   1
 
#define HAVE_GETHOSTNAME   1
 
#define HAVE_RANDOM   1
 
#define USE_UTIME   1
 
#define HAVE_MOUSE   1
 
#define HAVE_TZNAME   1
 
#define access   _access
 
#define alloca   _alloca
 
#define chdir   _chdir
 
#define chmod   _chmod
 
#define close   _close
 
#define creat   _creat
 
#define daylight   _daylight
 
#define dup   _dup
 
#define dup2   _dup2
 
#define execlp   _execlp
 
#define execvp   _execvp
 
#define fcloseall   _fcloseall
 
#define fdopen   _fdopen
 
#define fileno   _fileno
 
#define flushall   _flushall
 
#define fstat   _fstat
 
#define ftime   _ftime
 
#define getpid   _getpid
 
#define getcwd   _getcwd
 
#define inline   __inline
 
#define isascii   __isascii
 
#define isatty   _isatty
 
#define itoa   _itoa
 
#define link   _link
 
#define lseek   _lseek
 
#define memicmp   _memicmp
 
#define mktemp   _mktemp
 
#define open   _open
 
#define putenv   _putenv
 
#define read   _read
 
#define rmdir   _rmdir
 
#define setmode   _setmode
 
#define spawnlp   _spawnlp
 
#define stat   _stat
 
#define stricmp   _stricmp
 
#define strdup   _strdup
 
#define strlwr   _strlwr
 
#define strnicmp   _strnicmp
 
#define tempnam   _tempnam
 
#define timeb   _timeb
 
#define timezone   _timezone
 
#define unlink   _unlink
 
#define umask   _umask
 
#define utime   _utime
 
#define write   _write
 
#define getwd(dir)   GetCurrentDirectory(MAXPATHLEN, dir)
 
#define strcasecmp   _stricmp
 
#define strncasecmp   _strnicmp
 
#define S_IFMT   _S_IFMT
 
#define S_IFDIR   _S_IFDIR
 
#define S_IFCHR   _S_IFCHR
 
#define S_IFIFO   _S_IFIFO
 
#define S_IFREG   _S_IFREG
 
#define S_IREAD   _S_IREAD
 
#define S_IWRITE   _S_IWRITE
 
#define S_IEXEC   _S_IEXEC
 
#define S_IXUSR   _S_IEXEC
 
#define S_IXGRP   _S_IEXEC
 
#define S_IXOTH   _S_IEXEC
 
#define S_IRUSR   _S_IREAD
 
#define S_IWUSR   _S_IWRITE
 
#define S_IROTH   _S_IREAD
 
#define S_IWOTH   _S_IWRITE
 
#define S_IRGRP   _S_IREAD
 
#define S_IWGRP   _S_IWRITE
 
#define O_RDWR   _O_RDWR
 
#define O_CREAT   _O_CREAT
 
#define O_TRUNC   _O_TRUNC
 
#define O_RDONLY   _O_RDONLY
 
#define O_WRONLY   _O_WRONLY
 
#define O_APPEND   _O_APPEND
 
#define O_TEXT   _O_TEXT
 
#define O_BINARY   _O_BINARY
 
#define O_EXCL   _O_EXCL
 
#define S_ISCHR(m)   (((m)&S_IFMT) == S_IFCHR) /* character device */
 
#define S_ISDIR(m)   (((m)&S_IFMT) == S_IFDIR) /* directory */
 
#define S_ISREG(m)   (((m)&S_IFMT) == S_IFREG) /* file */
 
#define S_ISFIFO(m)   (((m)&S_IFMT) == S_IFIFO) /* fifo - named pipe */
 
#define _WINSOCKAPI_   1
 
#define boolean   saved_boolean
 
#define system(p)   win32_system(p)
 
#define popen(cmd, mode)   win32_popen(cmd, mode)
 
#define pclose(file)   win32_pclose(file)
 
#define off_t   __int64
 
#define xfseeko   xfseek64
 
#define xftello   xftell64
 

Functions

KPSEDLL double win32_floor (double x)
 
KPSEDLL FILEwin32_popen (const char *cmd, const char *mode)
 
KPSEDLL int win32_pclose (FILE *f)
 
KPSEDLL struct passwd * kpathsea_getpwnam (kpathsea kpse, char *name)
 
KPSEDLL int win32_system (const char *cmd)
 
KPSEDLL void kpathsea_init_user_info (kpathsea kpse)
 
KPSEDLL struct passwd * getpwnam (char *name)
 
KPSEDLL void texlive_gs_init (void)
 
KPSEDLL int kpathsea_getlongpath (kpathsea kpse, char *output, char *input, int len)
 
KPSEDLL char * kpathsea_get_home_directory (kpathsea kpse)
 
KPSEDLL int getlongpath (char *output, char *input, int len)
 
KPSEDLL char * get_home_directory (void)
 

Macro Definition Documentation

◆ _WINSOCKAPI_

#define _WINSOCKAPI_   1

Definition at line 226 of file win32lib.h.

◆ access

#define access   _access

Definition at line 59 of file win32lib.h.

◆ alloca

#define alloca   _alloca

Definition at line 60 of file win32lib.h.

◆ boolean

#define boolean   saved_boolean

Definition at line 229 of file win32lib.h.

◆ chdir

#define chdir   _chdir

Definition at line 61 of file win32lib.h.

◆ chmod

#define chmod   _chmod

Definition at line 62 of file win32lib.h.

◆ close

#define close   _close

Definition at line 63 of file win32lib.h.

◆ creat

#define creat   _creat

Definition at line 64 of file win32lib.h.

◆ daylight

#define daylight   _daylight

Definition at line 65 of file win32lib.h.

◆ DOSISH

#define DOSISH

Definition at line 38 of file win32lib.h.

◆ dup

#define dup   _dup

Definition at line 66 of file win32lib.h.

◆ dup2

#define dup2   _dup2

Definition at line 67 of file win32lib.h.

◆ execlp

#define execlp   _execlp

Definition at line 68 of file win32lib.h.

◆ execvp

#define execvp   _execvp

Definition at line 69 of file win32lib.h.

◆ fcloseall

#define fcloseall (   void)    _fcloseall

Definition at line 70 of file win32lib.h.

◆ fdopen

#define fdopen   _fdopen

Definition at line 71 of file win32lib.h.

◆ fileno

#define fileno   _fileno

Definition at line 72 of file win32lib.h.

◆ flushall

#define flushall (   void)    _flushall

Definition at line 73 of file win32lib.h.

◆ fstat

#define fstat   _fstat

Definition at line 74 of file win32lib.h.

◆ ftime

#define ftime   _ftime

Definition at line 75 of file win32lib.h.

◆ getcwd

#define getcwd   _getcwd

Definition at line 77 of file win32lib.h.

◆ getpid

#define getpid (   void)    _getpid

Definition at line 76 of file win32lib.h.

◆ getwd

#define getwd (   dir)    GetCurrentDirectory(MAXPATHLEN, dir)

Definition at line 106 of file win32lib.h.

◆ HAVE_DUP2

#define HAVE_DUP2   1

Definition at line 45 of file win32lib.h.

◆ HAVE_GETHOSTNAME

#define HAVE_GETHOSTNAME   1

Definition at line 49 of file win32lib.h.

◆ HAVE_MKDIR

#define HAVE_MKDIR   1

Definition at line 48 of file win32lib.h.

◆ HAVE_MOUSE

#define HAVE_MOUSE   1

Definition at line 52 of file win32lib.h.

◆ HAVE_RANDOM

#define HAVE_RANDOM   1

Definition at line 50 of file win32lib.h.

◆ HAVE_RENAME

#define HAVE_RENAME   1

Definition at line 46 of file win32lib.h.

◆ HAVE_RMDIR

#define HAVE_RMDIR   1

Definition at line 47 of file win32lib.h.

◆ HAVE_TZNAME

#define HAVE_TZNAME   1

Definition at line 53 of file win32lib.h.

◆ inline

#define inline   __inline

Definition at line 78 of file win32lib.h.

◆ isascii

#define isascii   __isascii

Definition at line 79 of file win32lib.h.

◆ isatty

#define isatty   _isatty

Definition at line 80 of file win32lib.h.

◆ itoa

#define itoa   _itoa

Definition at line 81 of file win32lib.h.

◆ KPSE_COMPAT_API

#define KPSE_COMPAT_API   1

Definition at line 24 of file win32lib.h.

◆ link

#define link   _link

Definition at line 82 of file win32lib.h.

◆ lseek

#define lseek   _lseek

Definition at line 83 of file win32lib.h.

◆ MAXPATHLEN

#define MAXPATHLEN   _MAX_PATH

Definition at line 42 of file win32lib.h.

◆ memicmp

#define memicmp   _memicmp

Definition at line 84 of file win32lib.h.

◆ mktemp

#define mktemp   _mktemp

Definition at line 85 of file win32lib.h.

◆ O_APPEND

#define O_APPEND   _O_APPEND

Definition at line 182 of file win32lib.h.

◆ O_BINARY

#define O_BINARY   _O_BINARY

Definition at line 188 of file win32lib.h.

◆ O_CREAT

#define O_CREAT   _O_CREAT

Definition at line 170 of file win32lib.h.

◆ O_EXCL

#define O_EXCL   _O_EXCL

Definition at line 191 of file win32lib.h.

◆ O_RDONLY

#define O_RDONLY   _O_RDONLY

Definition at line 176 of file win32lib.h.

◆ O_RDWR

#define O_RDWR   _O_RDWR

Definition at line 167 of file win32lib.h.

◆ O_TEXT

#define O_TEXT   _O_TEXT

Definition at line 185 of file win32lib.h.

◆ O_TRUNC

#define O_TRUNC   _O_TRUNC

Definition at line 173 of file win32lib.h.

◆ O_WRONLY

#define O_WRONLY   _O_WRONLY

Definition at line 179 of file win32lib.h.

◆ off_t

#define off_t   __int64

Definition at line 286 of file win32lib.h.

◆ open

#define open   _open

Definition at line 86 of file win32lib.h.

◆ pclose

#define pclose (   file)    win32_pclose(file)

Definition at line 271 of file win32lib.h.

◆ popen

#define popen (   cmd,
  mode 
)    win32_popen(cmd, mode)

Definition at line 270 of file win32lib.h.

◆ putenv

#define putenv   _putenv

Definition at line 87 of file win32lib.h.

◆ read

#define read   _read

Definition at line 88 of file win32lib.h.

◆ rmdir

#define rmdir   _rmdir

Definition at line 89 of file win32lib.h.

◆ S_IEXEC

#define S_IEXEC   _S_IEXEC

Definition at line 138 of file win32lib.h.

◆ S_IFCHR

#define S_IFCHR   _S_IFCHR

Definition at line 124 of file win32lib.h.

◆ S_IFDIR

#define S_IFDIR   _S_IFDIR

Definition at line 121 of file win32lib.h.

◆ S_IFIFO

#define S_IFIFO   _S_IFIFO

Definition at line 127 of file win32lib.h.

◆ S_IFMT

#define S_IFMT   _S_IFMT

Definition at line 118 of file win32lib.h.

◆ S_IFREG

#define S_IFREG   _S_IFREG

Definition at line 130 of file win32lib.h.

◆ S_IREAD

#define S_IREAD   _S_IREAD

Definition at line 133 of file win32lib.h.

◆ S_IRGRP

#define S_IRGRP   _S_IREAD

Definition at line 161 of file win32lib.h.

◆ S_IROTH

#define S_IROTH   _S_IREAD

Definition at line 155 of file win32lib.h.

◆ S_IRUSR

#define S_IRUSR   _S_IREAD

Definition at line 149 of file win32lib.h.

◆ S_ISCHR

#define S_ISCHR (   m)    (((m)&S_IFMT) == S_IFCHR) /* character device */

Definition at line 199 of file win32lib.h.

◆ S_ISDIR

#define S_ISDIR (   m)    (((m)&S_IFMT) == S_IFDIR) /* directory */

Definition at line 203 of file win32lib.h.

◆ S_ISFIFO

#define S_ISFIFO (   m)    (((m)&S_IFMT) == S_IFIFO) /* fifo - named pipe */

Definition at line 211 of file win32lib.h.

◆ S_ISREG

#define S_ISREG (   m)    (((m)&S_IFMT) == S_IFREG) /* file */

Definition at line 207 of file win32lib.h.

◆ S_IWGRP

#define S_IWGRP   _S_IWRITE

Definition at line 164 of file win32lib.h.

◆ S_IWOTH

#define S_IWOTH   _S_IWRITE

Definition at line 158 of file win32lib.h.

◆ S_IWRITE

#define S_IWRITE   _S_IWRITE

Definition at line 136 of file win32lib.h.

◆ S_IWUSR

#define S_IWUSR   _S_IWRITE

Definition at line 152 of file win32lib.h.

◆ S_IXGRP

#define S_IXGRP   _S_IEXEC

Definition at line 143 of file win32lib.h.

◆ S_IXOTH

#define S_IXOTH   _S_IEXEC

Definition at line 146 of file win32lib.h.

◆ S_IXUSR

#define S_IXUSR   _S_IEXEC

Definition at line 140 of file win32lib.h.

◆ setmode

#define setmode   _setmode

Definition at line 90 of file win32lib.h.

◆ spawnlp

#define spawnlp   _spawnlp

Definition at line 91 of file win32lib.h.

◆ stat

#define stat   _stat

Definition at line 92 of file win32lib.h.

◆ strcasecmp

#define strcasecmp   _stricmp

Definition at line 114 of file win32lib.h.

◆ strdup

#define strdup   _strdup

Definition at line 94 of file win32lib.h.

◆ stricmp

#define stricmp   _stricmp

Definition at line 93 of file win32lib.h.

◆ strlwr

#define strlwr   _strlwr

Definition at line 95 of file win32lib.h.

◆ strncasecmp

#define strncasecmp   _strnicmp

Definition at line 115 of file win32lib.h.

◆ strnicmp

#define strnicmp   _strnicmp

Definition at line 96 of file win32lib.h.

◆ system

#define system (   p)    win32_system(p)

Definition at line 269 of file win32lib.h.

◆ tempnam

#define tempnam   _tempnam

Definition at line 97 of file win32lib.h.

◆ timeb

#define timeb   _timeb

Definition at line 98 of file win32lib.h.

◆ timezone

#define timezone   _timezone

Definition at line 99 of file win32lib.h.

◆ umask

#define umask   _umask

Definition at line 101 of file win32lib.h.

◆ unlink

#define unlink   _unlink

Definition at line 100 of file win32lib.h.

◆ USE_UTIME

#define USE_UTIME   1

Definition at line 51 of file win32lib.h.

◆ utime

#define utime   _utime

Definition at line 102 of file win32lib.h.

◆ write

#define write   _write

Definition at line 103 of file win32lib.h.

◆ xfseeko

#define xfseeko   xfseek64

Definition at line 287 of file win32lib.h.

◆ xftello

#define xftello   xftell64

Definition at line 288 of file win32lib.h.

Function Documentation

◆ get_home_directory()

KPSEDLL char* get_home_directory ( void  )

◆ getlongpath()

KPSEDLL int getlongpath ( char *  output,
char *  input,
int  len 
)

Referenced by ex_selfdir().

◆ getpwnam()

◆ kpathsea_get_home_directory()

KPSEDLL char* kpathsea_get_home_directory ( kpathsea  kpse)

Definition at line 309 of file win32lib.c.

◆ kpathsea_getlongpath()

KPSEDLL int kpathsea_getlongpath ( kpathsea  kpse,
char *  output,
char *  input,
int  len 
)

Definition at line 189 of file win32lib.c.

◆ kpathsea_getpwnam()

KPSEDLL struct passwd* kpathsea_getpwnam ( kpathsea  kpse,
char *  name 
)

Definition at line 350 of file win32lib.c.

◆ kpathsea_init_user_info()

KPSEDLL void kpathsea_init_user_info ( kpathsea  kpse)

Definition at line 365 of file win32lib.c.

◆ texlive_gs_init()

KPSEDLL void texlive_gs_init ( void  )

Definition at line 132 of file win32lib.c.

◆ win32_floor()

KPSEDLL double win32_floor ( double  x)

Definition at line 34 of file win32lib.c.

◆ win32_pclose()

KPSEDLL int win32_pclose ( FILE f)

Definition at line 67 of file win32lib.c.

◆ win32_popen()

KPSEDLL FILE* win32_popen ( const char *  cmd,
const char *  mode 
)

Definition at line 39 of file win32lib.c.

◆ win32_system()

KPSEDLL int win32_system ( const char *  cmd)

Definition at line 403 of file win32lib.c.