X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rossubsys%2Fposix%2Finclude%2Fpsx%2Ffdtable.h;fp=rossubsys%2Fposix%2Finclude%2Fpsx%2Ffdtable.h;h=0000000000000000000000000000000000000000;hp=edc88318c5b5ac8a6c28e9172c1ad3c9bada2340;hb=c2c66aff7dacc62d125f2cd61d1167e9a2aa3fd6;hpb=b94e2d8ca0b7bb9c17f624e1b4b7e3e7f5b853ac diff --git a/rossubsys/posix/include/psx/fdtable.h b/rossubsys/posix/include/psx/fdtable.h deleted file mode 100644 index edc88318c5b..00000000000 --- a/rossubsys/posix/include/psx/fdtable.h +++ /dev/null @@ -1,73 +0,0 @@ -/* $Id: fdtable.h,v 1.5 2002/10/29 04:45:13 rex Exp $ - */ -/* - * psx/fdtable.h - * - * POSIX+ subsystem file descriptor table data structure - * - * This file is part of the ReactOS Operating System. - * - * Contributors: - * Created by KJK::Hyperion - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - */ -#ifndef __PSX_FDTABLE_H_INCLUDED__ -#define __PSX_FDTABLE_H_INCLUDED__ - -/* INCLUDES */ -#include -#include -#include -#include - -/* OBJECTS */ - -/* TYPES */ -typedef struct __tagfildes_t -{ - void *FileHandle; - int OpenFlags; - int FdFlags; - size_t ExtraDataSize; - void *ExtraData; -} __fildes_t; - -typedef struct __tagfdtable_t -{ - __magic_t Signature; - int32_t LowestUnusedFileNo; - int32_t UsedDescriptors; - int32_t AllocatedDescriptors; - uint32_t DescriptorsBitmap[OPEN_MAX / 32]; - __fildes_t *Descriptors; -} __fdtable_t; - -/* CONSTANTS */ - -/* PROTOTYPES */ -int __fdtable_init(__fdtable_t *); -int __fdtable_free(__fdtable_t *); - -int __fdtable_entry_isavail(__fdtable_t *, int); -int __fdtable_entry_nextavail(__fdtable_t *, int); -int __fdtable_entry_add(__fdtable_t *, int, __fildes_t *, __fildes_t **); -int __fdtable_entry_remove(__fdtable_t *, int); -__fildes_t *__fdtable_entry_get(__fdtable_t *, int); - -/* MACROS */ -#define __FDTABLE_MAGIC MAGIC('F', 'D', 'T', 'B') - -#endif /* __PSX_FDTABLE_H_INCLUDED__ */ - -/* EOF */ -