elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elks
/
tools
/
fixomf
/
wio.h
File editor
/**************************************************************************** * * Open Watcom Project * * Copyright (c) 2002-2022 The Open Watcom Contributors. All Rights Reserved. * Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved. * * ======================================================================== * * This file contains Original Code and/or Modifications of Original * Code as defined in and that are subject to the Sybase Open Watcom * Public License version 1.0 (the 'License'). You may not use this file * except in compliance with the License. BY USING THIS FILE YOU AGREE TO * ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is * provided with the Original Code and Modifications, and is also * available at www.sybase.com/developer/opensource. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR * NON-INFRINGEMENT. Please see the License for the specific language * governing rights and limitations under the License. * * ======================================================================== * * Description: Include appropriate header defining POSIX I/O function. * ****************************************************************************/ #ifndef _WIO_H_INCLUDED #define _WIO_H_INCLUDED #include <fcntl.h> #include <sys/stat.h> #if defined( __WATCOMC__ ) || defined( __UNIX__ ) #include <unistd.h> #else #include <io.h> #if defined( _MSC_VER ) #include <stdio.h> #endif #if !defined( STDIN_FILENO ) #define STDIN_FILENO _fileno( stdin ) #endif #if !defined( STDOUT_FILENO ) #define STDOUT_FILENO _fileno( stdout ) #endif #if !defined( STDERR_FILENO ) #define STDERR_FILENO _fileno( stderr ) #endif #endif #if defined( _MSC_VER ) #define F_OK 0 #define X_OK 1 #define W_OK 2 #define R_OK 4 #endif #if defined( __UNIX__ ) && !defined( __WATCOMC__ ) #ifndef O_BINARY #define O_BINARY 0 #endif #ifndef O_TEXT #define O_TEXT 0 #endif #endif /* * MACROS to unify file permision * */ #if defined( __UNIX__ ) #define PMODE_R (S_IRUSR | S_IRGRP | S_IROTH) #define PMODE_W (S_IWUSR | S_IWGRP | S_IWOTH) #define PMODE_X (S_IXUSR | S_IXGRP | S_IXOTH) #define PMODE_USR_RW (S_IRUSR | S_IWUSR) #define PMODE_USR_W S_IWUSR #else #define PMODE_R (S_IREAD) #define PMODE_W (S_IWRITE) #define PMODE_X (S_IEXEC) #define PMODE_USR_RW (S_IREAD | S_IWRITE) #define PMODE_USR_W S_IWRITE #endif #define PMODE_RW (PMODE_R | PMODE_W) #define PMODE_RWX (PMODE_R | PMODE_W | PMODE_X) #define PMODE_R_USR_W (PMODE_R | PMODE_USR_W) #define PMODE_RX_USR_W (PMODE_R | PMODE_X | PMODE_USR_W) #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history