Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
31f61ddd
Commit
31f61ddd
authored
Jan 18, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved development-platform specific files to subdirectories
parent
65201197
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
Mac/mwerks/errno_unix.h
Mac/mwerks/errno_unix.h
+18
-0
Mac/mwerks/mwerksglue.c
Mac/mwerks/mwerksglue.c
+43
-0
No files found.
Mac/mwerks/errno_unix.h
0 → 100644
View file @
31f61ddd
#define ENOTDIR (-120)
#define EACCES (-54)
#define EEXIST (-48)
#define EBUSY (-47)
#define EROFS (-44)
#define ENOENT (-43)
#define ENFILE (-42)
#define EIO (-36)
#define ENOSPC (-34)
#define ESRCH 3
#define EINTR 4
#define EBADF 9
#define ENODEV 19
#define EINVAL 22
#define EMFILE 24
Mac/mwerks/mwerksglue.c
0 → 100644
View file @
31f61ddd
/*
** Glue code for MetroWerks CodeWarrior, which misses
** unix-like routines for file-access.
*/
#ifdef __MWERKS__
#include <Types.h>
#include <Files.h>
#include <Strings.h>
#include <stdio.h>
#include <errno.h>
int
fileno
(
fp
)
FILE
*
fp
;
{
if
(
fp
==
stdin
)
return
0
;
else
if
(
fp
==
stdout
)
return
1
;
else
if
(
fp
==
stderr
)
return
2
;
else
return
3
;
}
int
isatty
(
fd
)
int
fd
;
{
return
(
fd
>=
0
&&
fd
<=
2
);
}
int
unlink
(
old
)
char
*
old
;
{
OSErr
err
;
if
((
err
=
FSDelete
(
c2pstr
(
old
),
0
))
==
noErr
)
return
0
;
errno
=
err
;
return
-
1
;
}
#endif
/* __MWERKS__ */
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment