root/lib-src/ntlib.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


     1 /* Utility and Unix shadow routines for GNU Emacs support programs on NT.
     2    Copyright (C) 1994, 2002-2023 Free Software Foundation, Inc.
     3 
     4 This file is part of GNU Emacs.
     5 
     6 GNU Emacs is free software: you can redistribute it and/or modify
     7 it under the terms of the GNU General Public License as published by
     8 the Free Software Foundation, either version 3 of the License, or (at
     9 your option) any later version.
    10 
    11 GNU Emacs is distributed in the hope that it will be useful,
    12 but WITHOUT ANY WARRANTY; without even the implied warranty of
    13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14 GNU General Public License for more details.
    15 
    16 You should have received a copy of the GNU General Public License
    17 along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
    18 
    19 #include <pwd.h>
    20 #include <malloc.h>
    21 
    22 /* Include these headers now so we don't have to worry about include
    23    order dependencies in common source files.  */
    24 #include <direct.h>
    25 #include <fcntl.h>
    26 #include <io.h>
    27 #include <stdio.h>
    28 
    29 #ifdef sleep
    30 #undef sleep
    31 #endif
    32 unsigned sleep (unsigned seconds);
    33 char *getwd (char *dir);
    34 int getppid (void);
    35 char * getlogin (void);
    36 unsigned getegid (void);
    37 unsigned getgid (void);
    38 int setuid (unsigned uid);
    39 int setregid (unsigned rgid, unsigned gid);
    40 char * getpass (const char * prompt);
    41 int fchown (int fd, unsigned uid, unsigned gid);
    42 
    43 /* redirect or undo interceptions created by config.h */
    44 #undef access
    45 #define access  _access
    46 #undef chdir
    47 #define chdir   _chdir
    48 #undef chmod
    49 #define chmod   _chmod
    50 #undef close
    51 #define close   _close
    52 #undef creat
    53 #define creat   _creat
    54 #undef ctime
    55 #undef dup
    56 #define dup     _dup
    57 #undef dup2
    58 #define dup2    _dup2
    59 #undef fopen
    60 #undef pipe
    61 #define pipe    _pipe
    62 #undef read
    63 #define read    _read
    64 #undef rmdir
    65 #define rmdir   _rmdir
    66 #undef unlink
    67 #define unlink  _unlink
    68 #undef write
    69 #define write   _write
    70 
    71 /* map to MSVC names */
    72 #define execlp    _execlp
    73 #define execvp    _execvp
    74 #define fdopen    _fdopen
    75 #ifndef fileno
    76 #define fileno    _fileno
    77 #endif
    78 #define getcwd    _getcwd
    79 #define getw      _getw
    80 #define getpid    _getpid
    81 #define isatty    _isatty
    82 #define locking   _locking
    83 #define logb      _logb
    84 #define _longjmp  longjmp
    85 #define popen     _popen
    86 #define pclose    _pclose
    87 #define umask     _umask
    88 #define utime     _utime
    89 #define index     strchr
    90 #define rindex    strrchr
    91 
    92 /* Make standard winsock definitions available if needed.  */
    93 #undef _WINSOCKAPI_
    94 #undef _WINSOCK_H
    95 
    96 /* end of ntlib.h */

/* [<][>][^][v][top][bottom][index][help] */