| 1 | /* $Id: direct.h 1519 2004-09-27 02:15:07Z bird $ */
|
|---|
| 2 | /** @file
|
|---|
| 3 | *
|
|---|
| 4 | * direct.h - VAC/MSC legacy.
|
|---|
| 5 | *
|
|---|
| 6 | * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>
|
|---|
| 7 | *
|
|---|
| 8 | *
|
|---|
| 9 | * This file is part of InnoTek LIBC.
|
|---|
| 10 | *
|
|---|
| 11 | * InnoTek LIBC is free software; you can redistribute it and/or modify
|
|---|
| 12 | * it under the terms of the GNU General Public License as published by
|
|---|
| 13 | * the Free Software Foundation; either version 2 of the License, or
|
|---|
| 14 | * (at your option) any later version.
|
|---|
| 15 | *
|
|---|
| 16 | * InnoTek LIBC is distributed in the hope that it will be useful,
|
|---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 19 | * GNU General Public License for more details.
|
|---|
| 20 | *
|
|---|
| 21 | * You should have received a copy of the GNU General Public License
|
|---|
| 22 | * along with InnoTek LIBC; if not, write to the Free Software
|
|---|
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|---|
| 24 | *
|
|---|
| 25 | */
|
|---|
| 26 |
|
|---|
| 27 | #ifndef _DIRECT_H_
|
|---|
| 28 | #define _DIRECT_H_
|
|---|
| 29 |
|
|---|
| 30 | #include <sys/cdefs.h>
|
|---|
| 31 | #include <sys/_types.h>
|
|---|
| 32 |
|
|---|
| 33 | #if !defined(_MODE_T_DECLARED) && !defined(_MODE_T)
|
|---|
| 34 | typedef __mode_t mode_t;
|
|---|
| 35 | #define _MODE_T_DECLARED
|
|---|
| 36 | #define _MODE_T
|
|---|
| 37 | #endif
|
|---|
| 38 |
|
|---|
| 39 | #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T)
|
|---|
| 40 | typedef __size_t size_t;
|
|---|
| 41 | #define _SIZE_T_DECLARED
|
|---|
| 42 | #define _SIZE_T
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
| 45 | __BEGIN_DECLS
|
|---|
| 46 |
|
|---|
| 47 | int _chdir (__const__ char *);
|
|---|
| 48 | char *_getcwd (char *, size_t);
|
|---|
| 49 | int _mkdir (__const__ char *, long);
|
|---|
| 50 | int _rmdir (__const__ char *);
|
|---|
| 51 |
|
|---|
| 52 | int chdir (const char *);
|
|---|
| 53 | char *getcwd (char *, size_t);
|
|---|
| 54 | int mkdir(const char *, mode_t);
|
|---|
| 55 | int rmdir (const char *);
|
|---|
| 56 |
|
|---|
| 57 | int _chdrive(char);
|
|---|
| 58 | char * _getdcwd(int, char *, int);
|
|---|
| 59 | char _getdrive(void);
|
|---|
| 60 |
|
|---|
| 61 | /* Special LIBC addition. */
|
|---|
| 62 | #ifdef __BSD_VISIBLE
|
|---|
| 63 | char *_getcwdux(char *, size_t);
|
|---|
| 64 | #endif
|
|---|
| 65 |
|
|---|
| 66 | __END_DECLS
|
|---|
| 67 |
|
|---|
| 68 | #endif
|
|---|