2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
* include/io.h (_commit): Add declaration. Thanks to: "stefan" <stefan@lkcc.org> 2001-10-30 Danny Smith <dannysmith@users.sourceforge.net> * include/sys/stat.h: Make S_IS* macros safer. 2001-10-27 Danny Smith <dannysmith@users.sourceforge.net> * include/stdlib.h (EXIT_FAILURE): Change value to 1. 2001-10-12 Danny Smith <dannysmith@users.sourceforge.net> * include/stdlib.h (__p__environ, __p__wenviron): Use __STDC__ prototypes.
This commit is contained in:
parent
a6a6f9fece
commit
5cf6708ef4
@ -1,3 +1,21 @@
|
||||
2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/io.h (_commit): Add declaration.
|
||||
Thanks to: "stefan" <stefan@lkcc.org>
|
||||
|
||||
2001-10-30 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/sys/stat.h: Make S_IS* macros safer.
|
||||
|
||||
2001-10-27 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/stdlib.h (EXIT_FAILURE): Change value to 1.
|
||||
|
||||
2001-10-12 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* include/stdlib.h (__p__environ, __p__wenviron): Use
|
||||
__STDC__ prototypes.
|
||||
|
||||
2001-09-19 Earnie Boyd <earnie@SF.net>
|
||||
|
||||
* Makefile.in: Remove the /usr from the install target.
|
||||
|
@ -126,6 +126,7 @@ int _mkdir (const char*);
|
||||
char* _mktemp (char*);
|
||||
int _rmdir (const char*);
|
||||
|
||||
|
||||
#ifdef __MSVCRT__
|
||||
__int64 _filelengthi64(int);
|
||||
long _findfirsti64(const char*, struct _finddatai64_t*);
|
||||
@ -176,6 +177,7 @@ extern "C" {
|
||||
int _access (const char*, int);
|
||||
int _chsize (int, long);
|
||||
int _close (int);
|
||||
int _commit(int);
|
||||
|
||||
/* NOTE: The only significant bit in unPermissions appears to be bit 7 (0x80),
|
||||
* the "owner write permission" bit (on FAT). */
|
||||
|
@ -48,7 +48,7 @@
|
||||
* These values may be used as exit status codes.
|
||||
*/
|
||||
#define EXIT_SUCCESS 0
|
||||
#define EXIT_FAILURE -1
|
||||
#define EXIT_FAILURE 1
|
||||
|
||||
/*
|
||||
* Definitions for path name functions.
|
||||
@ -150,8 +150,8 @@ int* __doserrno(void);
|
||||
*/
|
||||
|
||||
#ifdef __MSVCRT__
|
||||
extern char *** __p__environ();
|
||||
extern wchar_t *** __p__wenviron();
|
||||
extern char *** __p__environ(void);
|
||||
extern wchar_t *** __p__wenviron(void);
|
||||
# define _environ (*__p__environ())
|
||||
# define _wenviron (*__p__wenviron())
|
||||
#else /* ! __MSVCRT__ */
|
||||
|
@ -46,7 +46,7 @@
|
||||
*/
|
||||
#define _S_IFIFO 0x1000 /* FIFO */
|
||||
#define _S_IFCHR 0x2000 /* Character */
|
||||
#define _S_IFBLK 0x3000 /* Block */
|
||||
#define _S_IFBLK 0x3000 /* Block: Is this ever set under w32? */
|
||||
#define _S_IFDIR 0x4000 /* Directory */
|
||||
#define _S_IFREG 0x8000 /* Regular */
|
||||
|
||||
@ -61,11 +61,11 @@
|
||||
#define _S_IWUSR _S_IWRITE
|
||||
#define _S_IRUSR _S_IREAD
|
||||
|
||||
#define _S_ISDIR(m) ((m) & _S_IFDIR)
|
||||
#define _S_ISFIFO(m) ((m) & _S_IFIFO)
|
||||
#define _S_ISCHR(m) ((m) & _S_IFCHR)
|
||||
#define _S_ISBLK(m) ((m) & _S_IFBLK)
|
||||
#define _S_ISREG(m) ((m) & _S_IFREG)
|
||||
#define _S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
|
||||
#define _S_ISFIFO(m) (((m) & _S_IFMT) == _S_IFIFO)
|
||||
#define _S_ISCHR(m) (((m) & _S_IFMT) == _S_IFCHR)
|
||||
#define _S_ISBLK(m) (((m) & _S_IFMT) == _S_IFBLK)
|
||||
#define _S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||
|
||||
#ifndef _NO_OLDNAMES
|
||||
|
||||
@ -83,11 +83,11 @@
|
||||
#define S_IWUSR _S_IWUSR
|
||||
#define S_IRUSR _S_IRUSR
|
||||
|
||||
#define S_ISDIR(m) ((m) & S_IFDIR)
|
||||
#define S_ISFIFO(m) ((m) & S_IFIFO)
|
||||
#define S_ISCHR(m) ((m) & S_IFCHR)
|
||||
#define S_ISBLK(m) ((m) & S_IFBLK)
|
||||
#define S_ISREG(m) ((m) & S_IFREG)
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
||||
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
||||
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
|
||||
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
|
||||
#endif /* Not _NO_OLDNAMES */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user