source: trunk/mkspecs/os2-g++/qplatformdefs.h@ 21

Last change on this file since 21 was 21, checked in by Dmitry A. Kuminov, 16 years ago

Added netlabs.org copyright to all newly created OS/2-specific files.

File size: 3.7 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** Copyright (C) 2009 netlabs.org. OS/2 parts.
7**
8** This file is part of the qmake spec of the Qt Toolkit.
9**
10** $QT_BEGIN_LICENSE:LGPL$
11** Commercial Usage
12** Licensees holding valid Qt Commercial licenses may use this file in
13** accordance with the Qt Commercial License Agreement provided with the
14** Software or, alternatively, in accordance with the terms contained in
15** a written agreement between you and Nokia.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 2.1 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPL included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 2.1 requirements
23** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24**
25** In addition, as a special exception, Nokia gives you certain
26** additional rights. These rights are described in the Nokia Qt LGPL
27** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
28** package.
29**
30** GNU General Public License Usage
31** Alternatively, this file may be used under the terms of the GNU
32** General Public License version 3.0 as published by the Free Software
33** Foundation and appearing in the file LICENSE.GPL included in the
34** packaging of this file. Please review the following information to
35** ensure the GNU General Public License version 3.0 requirements will be
36** met: http://www.gnu.org/copyleft/gpl.html.
37**
38** If you are unsure which license is appropriate for your use, please
39** contact the sales department at [email protected].
40** $QT_END_LICENSE$
41**
42****************************************************************************/
43
44#ifndef QPLATFORMDEFS_H
45#define QPLATFORMDEFS_H
46
47// Get Qt defines/settings
48
49#include "qglobal.h"
50
51#include <io.h>
52#include <stdio.h>
53#include <fcntl.h>
54#include <errno.h>
55#include <sys/stat.h>
56#include <sys/process.h>
57#include <stdlib.h>
58
59#define Q_FS_FAT
60// @todo
61//#ifdef QT_LARGEFILE_SUPPORT
62// provide large file versions of functions?
63//#endif
64#define QT_STATBUF struct stat
65#define QT_STATBUF4TSTAT struct stat
66#define QT_STAT ::stat
67#define QT_FSTAT ::fstat
68#define QT_LSTAT ::lstat
69#define QT_STAT_REG S_IFREG
70#define QT_STAT_DIR S_IFDIR
71#define QT_STAT_MASK S_IFMT
72#if defined(_S_IFLNK)
73# define QT_STAT_LNK S_IFLNK
74#endif
75#define QT_FILENO fileno
76#define QT_OPEN ::open
77#define QT_TRUNCATE ::truncate
78#define QT_FTRUNCATE ::ftruncate
79#define QT_CLOSE ::close
80#define QT_LSEEK ::lseek
81#define QT_READ ::read
82#define QT_WRITE ::write
83#define QT_ACCESS ::access
84#define QT_GETCWD ::_getcwd2 // returns the drive letter with path
85#define QT_CHDIR ::_chdir2 // change the current drive if present
86#define QT_MKDIR(name) ::mkdir(name,0)
87#define QT_RMDIR ::rmdir
88#define QT_OPEN_LARGEFILE 0
89#define QT_OPEN_RDONLY O_RDONLY
90#define QT_OPEN_WRONLY O_WRONLY
91#define QT_OPEN_RDWR O_RDWR
92#define QT_OPEN_CREAT O_CREAT
93#define QT_OPEN_TRUNC O_TRUNC
94#define QT_OPEN_APPEND O_APPEND
95#if defined(O_TEXT)
96# define QT_OPEN_TEXT O_TEXT
97# define QT_OPEN_BINARY O_BINARY
98#endif
99
100#define QT_FOPEN ::fopen
101#define QT_FSEEK ::fseek
102#define QT_FTELL ::ftell
103#define QT_FGETPOS ::fgetpos
104#define QT_FSETPOS ::fsetpos
105#define QT_FPOS_T fpos_t
106#define QT_OFF_T long
107
108#define QT_SIGNAL_ARGS int
109
110#define QT_VSNPRINTF ::vsnprintf
111#define QT_SNPRINTF ::snprintf
112
113
114#endif // QPLATFORMDEFS_H
Note: See TracBrowser for help on using the repository browser.