diff options
Diffstat (limited to 'newlib/libc/sys/go32/sys')
-rw-r--r-- | newlib/libc/sys/go32/sys/dir.h | 33 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/dirent.h | 39 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/dos.h | 57 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/dpmi.h | 151 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/errno.h | 73 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/fcntl.h | 12 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/file.h | 31 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/go32.h | 69 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/param.h | 22 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/pc.h | 56 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/register.h | 28 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/resource.h | 50 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/setjmp.h | 44 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/stdc.h | 15 | ||||
-rw-r--r-- | newlib/libc/sys/go32/sys/uio.h | 23 |
15 files changed, 0 insertions, 703 deletions
diff --git a/newlib/libc/sys/go32/sys/dir.h b/newlib/libc/sys/go32/sys/dir.h deleted file mode 100644 index 6ac830f27..000000000 --- a/newlib/libc/sys/go32/sys/dir.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef _DIR_H_ -#define _DIR_H_ - -struct ffblk { - char ff_reserved[21]; - char ff_attrib; - short ff_ftime; - short ff_fdate; - short ff_filler; - long ff_fsize; - char ff_name[16]; -}; - -#define FA_RDONLY 1 -#define FA_HIDDEN 2 -#define FA_SYSTEM 4 -#define FA_LABEL 8 -#define FA_DIREC 16 -#define FA_ARCH 32 - -#ifdef __cplusplus -extern "C" { -#endif - -int findfirst(const char *pathname, struct ffblk *ffblk, int attrib); -int findnext(struct ffblk *ffblk); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/newlib/libc/sys/go32/sys/dirent.h b/newlib/libc/sys/go32/sys/dirent.h deleted file mode 100644 index 50ae799d8..000000000 --- a/newlib/libc/sys/go32/sys/dirent.h +++ /dev/null @@ -1,39 +0,0 @@ -/* This is file DIRENT.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _dirent_h_ -#define _dirent_h_ - -#include <sys/dir.h> - -struct dirent { - unsigned short d_namlen; - char d_name[14]; -}; - -typedef struct { - int num_read; - char *name; - struct ffblk ff; - struct dirent de; -} DIR; - -DIR *opendir(char *name); -struct dirent *readdir(DIR *dir); -long telldir(DIR *dir); -void seekdir(DIR *dir, long loc); -void rewinddir(DIR *dir); -int closedir(DIR *dir); - -#endif diff --git a/newlib/libc/sys/go32/sys/dos.h b/newlib/libc/sys/go32/sys/dos.h deleted file mode 100644 index ff3103f93..000000000 --- a/newlib/libc/sys/go32/sys/dos.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef _DOS_H_ -#define _DOS_H_ - -union REGS { - struct { - unsigned long ax; - unsigned long bx; - unsigned long cx; - unsigned long dx; - unsigned long si; - unsigned long di; - unsigned long cflag; - unsigned long flags; - } x; - struct { - unsigned char al; - unsigned char ah; - unsigned short upper_ax; - unsigned char bl; - unsigned char bh; - unsigned short upper_bx; - unsigned char cl; - unsigned char ch; - unsigned short upper_cx; - unsigned char dl; - unsigned char dh; - unsigned short upper_dx; - } h; -}; - -struct SREGS { - unsigned short cs; - unsigned short ds; - unsigned short es; - unsigned short fs; - unsigned short gs; - unsigned short ss; -}; - -#ifdef __cplusplus -extern "C" { -#endif - -int bdos(int func, unsigned dx, unsigned al); -int bdosptr(int func, void *dx, unsigned al); -int int86(int ivec, union REGS *in, union REGS *out); -int int86x(int ivec, union REGS *in, union REGS *out, struct SREGS *seg); -int intdos(union REGS *in, union REGS *out); -int intdosx(union REGS *in, union REGS *out, struct SREGS *seg); - -#ifdef __cplusplus -} -#endif - -#endif - - diff --git a/newlib/libc/sys/go32/sys/dpmi.h b/newlib/libc/sys/go32/sys/dpmi.h deleted file mode 100644 index 7a2cb13af..000000000 --- a/newlib/libc/sys/go32/sys/dpmi.h +++ /dev/null @@ -1,151 +0,0 @@ -/* This is file dpmi.h */
-/*
-** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
-**
-** This file is distributed under the terms listed in the document
-** "copying.dj", available from DJ Delorie at the address above.
-** A copy of "copying.dj" should accompany this file; if not, a copy
-** should be available from where this file was obtained. This file
-** may not be distributed without a verbatim copy of "copying.dj".
-**
-** This file is distributed WITHOUT ANY WARRANTY; without even the implied
-** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-*/
-
-#ifndef _DPMI_H_
-#define _DPMI_H_
-
-
-#include <sys/types.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef union {
- struct {
- u_long edi;
- u_long esi;
- u_long ebp;
- u_long res;
- u_long ebx;
- u_long edx;
- u_long ecx;
- u_long eax;
- } d;
- struct {
- u_short di, di_hi;
- u_short si, si_hi;
- u_short bp, bp_hi;
- u_short res, res_hi;
- u_short bx, bx_hi;
- u_short dx, dx_hi;
- u_short cx, cx_hi;
- u_short ax, ax_hi;
- u_short flags;
- u_short es;
- u_short ds;
- u_short fs;
- u_short gs;
- u_short ip;
- u_short cs;
- u_short sp;
- u_short ss;
- } x;
- struct {
- u_char edi[4];
- u_char esi[4];
- u_char ebp[4];
- u_char res[4];
- u_char bl, bh, ebx_b2, ebx_b3;
- u_char dl, dh, edx_b2, edx_b3;
- u_char cl, ch, ecx_b2, ecx_b3;
- u_char al, ah, eax_b2, eax_b3;
- } h;
-} _go32_dpmi_registers;
-
-typedef struct {
- u_long size;
- u_long pm_offset;
- u_short pm_selector;
- u_short rm_offset;
- u_short rm_segment;
-} _go32_dpmi_seginfo;
-
-typedef struct {
- u_long available_memory;
- u_long available_pages;
- u_long available_lockable_pages;
- u_long linear_space;
- u_long unlocked_pages;
- u_long available_physical_pages;
- u_long total_physical_pages;
- u_long free_linear_space;
- u_long max_pages_in_paging_file;
- u_long reserved[3];
-} _go32_dpmi_meminfo;
-
-/* returns zero if success, else dpmi error and info->size is max size */
-int _go32_dpmi_allocate_dos_memory(_go32_dpmi_seginfo *info);
- /* set size to bytes/16, call, use rm_segment. Do not
- change anthing but size until the memory is freed.
- If error, max size is returned in size as bytes/16. */
-int _go32_dpmi_free_dos_memory(_go32_dpmi_seginfo *info);
- /* set new size to bytes/16, call. If error, max size
- is returned in size as bytes/16 */
-int _go32_dpmi_resize_dos_memory(_go32_dpmi_seginfo *info);
- /* uses pm_selector to free memory */
-
-/* These both use the rm_segment:rm_offset fields only */
-int _go32_dpmi_get_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info);
-int _go32_dpmi_set_real_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info);
-
-/* These do NOT wrap the function in pm_offset in an iret handler.
- You must provide an assembler interface yourself, or alloc one below.
- You may NOT longjmp out of an interrupt handler. */
-int _go32_dpmi_get_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info);
- /* puts vector in pm_selector:pm_offset. */
-int _go32_dpmi_set_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info);
- /* sets vector from pm_offset and pm_selector */
-int _go32_dpmi_chain_protected_mode_interrupt_vector(int vector, _go32_dpmi_seginfo *info);
- /* sets up wrapper that calls function in pm_offset, chaining to old
- handler when it returns */
-
-/* These can be used to generate assember IRET-style wrappers for functions */
-int _go32_dpmi_allocate_iret_wrapper(_go32_dpmi_seginfo *info);
- /* Put function ptr in pm_offset, call, returns wrapper entry in pm_offset. */
-int _go32_dpmi_free_iret_wrapper(_go32_dpmi_seginfo *info);
- /* assumes pm_offset points to wrapper, frees it */
-
-/* simulate real mode calls. CS:IP from regs for non-interrupt */
-int _go32_dpmi_simulate_int(int vector, _go32_dpmi_registers *regs);
-int _go32_dpmi_simulate_fcall(_go32_dpmi_registers *regs);
-int _go32_dpmi_simulate_fcall_iret(_go32_dpmi_registers *regs);
-
-/* These automatically handle the tasks of restructuring the
- real-mode stack for the proper return type. The callback
- (info->pm_offset) is called as (*pmcb)(_go32_dpmi_registers *regs); */
-int _go32_dpmi_allocate_real_mode_callback_retf(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs);
- /* points callback at pm_offset, returns seg:ofs of callback addr
- in rm_segment:rm_offset. Do not change any fields until freed.
- Interface is added to simulate far return */
-int _go32_dpmi_allocate_real_mode_callback_iret(_go32_dpmi_seginfo *info, _go32_dpmi_registers *regs);
- /* same, but simulates iret */
-int _go32_dpmi_free_real_mode_callback(_go32_dpmi_seginfo *info);
- /* frees callback */
-
-/* Only available_memory is guaranteed to be valid. Try
- available_physical_pages for phys mem left */
-int _go32_dpmi_get_free_memory_information(_go32_dpmi_meminfo *info);
-
-/* Convenience functions. These use the above memory info call.
- The return value is *bytes* */
-u_long _go32_dpmi_remaining_physical_memory(void);
-u_long _go32_dpmi_remaining_virtual_memory(void);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/newlib/libc/sys/go32/sys/errno.h b/newlib/libc/sys/go32/sys/errno.h deleted file mode 100644 index 44852aee3..000000000 --- a/newlib/libc/sys/go32/sys/errno.h +++ /dev/null @@ -1,73 +0,0 @@ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -/* ??? This file has been modified to work with newlib's way of storing - `errno'. Arguably there's no need and arguably we shouldn't diverge - from go32 sources. If you feel strongly about it, please change it. - The interface between newlib and system's version of errno is via - __errno, so there's no problem in storing errno in a different place - (any changes can be dealt with inside __errno). */ - -#ifndef _SYS_ERRNO_H_ -#define _SYS_ERRNO_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#include <sys/reent.h> - -#ifndef _REENT_ONLY -#define errno (*__errno()) -extern int *__errno _PARAMS ((void)); -#endif - -#define __errno_r(ptr) ((ptr)->_errno) - -#define ENOENT 2 /* No such file or directory */ -#define ENOTDIR 3 /* No path */ -#define EMFILE 4 /* Too many open files */ -#define EACCES 5 /* Permission denied */ -#define EBADF 6 /* Bad file number */ -#define EARENA 7 /* Arena trashed */ -#define ENOMEM 8 /* Not enough core */ -#define ESEGV 9 /* invalid memory address */ -#define EBADENV 10 /* invalid environment */ -#define ENODEV 15 /* No such device */ -#define ENMFILE 18 /* No more files */ -#define EINVAL 19 /* Invalid argument */ -#define E2BIG EBADENV /* Arg list too long */ -#define ENOEXEC 21 /* Exec format error */ -#define EXDEV 17 /* Cross-device link */ -#define EPIPE 32 /* POHC */ -#define EDOM 33 /* Math argument */ -#define ERANGE 34 /* Result too large */ -#if 0 /* readline.c assumes that if this is defined, so is O_NDELAY. - Newlib doesn't use it, so comment it out. */ -#define EWOULDBLOCK 35 /* POHC */ -#endif -#define EEXIST 36 /* File already exists */ -#define EINTR 100 /* Interrupted system call */ -#define EIO 101 /* I/O or bounds error */ -#define ENOSPC 102 /* No space left on drive */ -#define EAGAIN 103 /* No more processes */ -#define ECHILD 200 /* child exited (porting only) */ -#define EFAULT 201 /* bad address */ -#define ENXIO ENODEV -#define EPERM EACCES - -/* New values required by newlib and the Cygnus toolchain. */ -#define ENOSYS 230 /* Function not implemented */ -#define ESPIPE 231 /* Illegal seek */ - -#endif diff --git a/newlib/libc/sys/go32/sys/fcntl.h b/newlib/libc/sys/go32/sys/fcntl.h deleted file mode 100644 index 792c0673d..000000000 --- a/newlib/libc/sys/go32/sys/fcntl.h +++ /dev/null @@ -1,12 +0,0 @@ -#define O_RDONLY 0x0001 -#define O_WRONLY 0x0002 -#define O_RDWR 0x0004 -#define O_CREAT 0x0100 -#define O_TRUNC 0x0200 -#define O_EXCL 0x0400 -#define O_APPEND 0x0800 -#define O_TEXT 0x4000 -#define O_BINARY 0x8000 - - - diff --git a/newlib/libc/sys/go32/sys/file.h b/newlib/libc/sys/go32/sys/file.h deleted file mode 100644 index 79f5f65f5..000000000 --- a/newlib/libc/sys/go32/sys/file.h +++ /dev/null @@ -1,31 +0,0 @@ -/* This is file FILE.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _FILE_H_ -#define _FILE_H_ - -#include <fcntl.h> - -#define L_SET 0 -#define L_CURR 1 -#define L_INCR 1 -#define L_XTND 2 - - -#define F_OK 0 /* does file exist */ -#define X_OK 1 /* is it executable by caller */ -#define W_OK 2 /* is it writable by caller */ -#define R_OK 4 /* is it readable by caller */ - -#endif diff --git a/newlib/libc/sys/go32/sys/go32.h b/newlib/libc/sys/go32/sys/go32.h deleted file mode 100644 index 4b6adefe1..000000000 --- a/newlib/libc/sys/go32/sys/go32.h +++ /dev/null @@ -1,69 +0,0 @@ -/* This is file go32.h */
-/*
-** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
-**
-** This file is distributed under the terms listed in the document
-** "copying.dj", available from DJ Delorie at the address above.
-** A copy of "copying.dj" should accompany this file; if not, a copy
-** should be available from where this file was obtained. This file
-** may not be distributed without a verbatim copy of "copying.dj".
-**
-** This file is distributed WITHOUT ANY WARRANTY; without even the implied
-** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-*/
-
-#ifndef _GO32_H_
-#define _GO32_H_
-
-#include <sys/types.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* This must match go32/proginfo.h */
-
-typedef struct {
- u_long size_of_this_structure_in_bytes;
- u_long linear_address_of_primary_screen;
- u_long linear_address_of_secondary_screen;
- u_long linear_address_of_transfer_buffer;
- u_long size_of_transfer_buffer; /* >= 4k */
- u_long pid;
- u_char master_interrupt_controller_base;
- u_char slave_interrupt_controller_base;
- u_short selector_for_linear_memory;
- u_long linear_address_of_stub_info_structure;
- u_long linear_address_of_original_psp;
- u_short run_mode;
- u_short run_mode_info;
-} Go32_Info_Block;
-
-extern Go32_Info_Block _go32_info_block;
-
-#define _GO32_RUN_MODE_UNDEF 0
-#define _GO32_RUN_MODE_RAW 1
-#define _GO32_RUN_MODE_XMS 2
-#define _GO32_RUN_MODE_VCPI 3
-#define _GO32_RUN_MODE_DPMI 4
-
-void dosmemget(int offset, int length, void *buffer);
-void dosmemput(const void *buffer, int length, int offset);
-void movedata(unsigned source_selector, unsigned source_offset,
- unsigned dest_selector, unsigned dest_offset,
- size_t length);
-
-/* returns number of times hit since last call. (zero first time) */
-u_long _go32_was_ctrl_break_hit(void);
-void _go32_want_ctrl_break(int yes); /* auto-yes if call above function */
-
-u_short _go32_my_cs(void);
-u_short _go32_my_ds(void);
-u_short _go32_my_ss(void);
-u_short _go32_conventional_mem_selector(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/newlib/libc/sys/go32/sys/param.h b/newlib/libc/sys/go32/sys/param.h deleted file mode 100644 index c912b4082..000000000 --- a/newlib/libc/sys/go32/sys/param.h +++ /dev/null @@ -1,22 +0,0 @@ -/* This is file PARAM.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _PARAM_H_ -#define _PARAM_H_ - -#define MAXPATHLEN 80 -/* 100, according to the real go32 sys/times.h */ -#define HZ (100) - -#endif diff --git a/newlib/libc/sys/go32/sys/pc.h b/newlib/libc/sys/go32/sys/pc.h deleted file mode 100644 index 4bce557d1..000000000 --- a/newlib/libc/sys/go32/sys/pc.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _PC_H_ -#define _PC_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -unsigned char inportb(unsigned short port); -unsigned short inportw(unsigned short port); -unsigned long inportl(unsigned short port); -unsigned char inportsb(unsigned short port, unsigned char *buf, unsigned len); -unsigned short inportsw(unsigned short port, unsigned short *buf, unsigned len); -unsigned long inportsl(unsigned short port, unsigned long *buf, unsigned len); -void outportb(unsigned short port, unsigned char data); -void outportw(unsigned short port, unsigned short data); -void outportl(unsigned short port, unsigned long data); -void outportsb(unsigned short port, unsigned char *buf, unsigned len); -void outportsw(unsigned short port, unsigned short *buf, unsigned len); -void outportsl(unsigned short port, unsigned long *buf, unsigned len); - -int kbhit(void); -int getkey(void); - -void sound(int frequency); - -extern short ScreenPrimary[]; -extern short ScreenSecondary[]; - -/* For the primary screen: */ -int ScreenRows(); -int ScreenCols(); -void ScreenPutChar(int ch, int attr, int x, int y); -void ScreenSetCursor(int row, int col); -void ScreenGetCursor(int *row, int *col); -void ScreenClear(); - - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/newlib/libc/sys/go32/sys/register.h b/newlib/libc/sys/go32/sys/register.h deleted file mode 100644 index 56fb737dd..000000000 --- a/newlib/libc/sys/go32/sys/register.h +++ /dev/null @@ -1,28 +0,0 @@ -/* This is file REGISTER.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct { - unsigned ax, bx, cx, dx, si, di, bp, f; - } REGISTERS; - -#define FLAGS_C 1 - -#ifdef __cplusplus -} -#endif - diff --git a/newlib/libc/sys/go32/sys/resource.h b/newlib/libc/sys/go32/sys/resource.h deleted file mode 100644 index afdf39217..000000000 --- a/newlib/libc/sys/go32/sys/resource.h +++ /dev/null @@ -1,50 +0,0 @@ -/* This is file RESOURCE.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _SYS_RESOURCE_H_ -#define _SYS_RESOURCE_H_ - -#include <sys/time.h> - -#define RUSAGE_SELF 0 /* calling process */ -#define RUSAGE_CHILDREN -1 /* terminated child processes */ - -struct rusage { - struct timeval ru_utime; /* user time used */ - struct timeval ru_stime; /* system time used */ - long ru_maxrss; /* integral max resident set size */ - long ru_ixrss; /* integral shared text memory size */ - long ru_idrss; /* integral unshared data size */ - long ru_isrss; /* integral unshared stack size */ - long ru_minflt; /* page reclaims */ - long ru_majflt; /* page faults */ - long ru_nswap; /* swaps */ - long ru_inblock; /* block input operations */ - long ru_oublock; /* block output operations */ - long ru_msgsnd; /* messages sent */ - long ru_msgrcv; /* messages received */ - long ru_nsignals; /* signals received */ - long ru_nvcsw; /* voluntary context switches */ - long ru_nivcsw; /* involuntary context switches */ -}; - - -#ifdef __cplusplus -extern "C" int getrusage(int who, struct rusage *rusage); -#else -extern int getrusage(int who, struct rusage *rusage); -#endif - -#endif - diff --git a/newlib/libc/sys/go32/sys/setjmp.h b/newlib/libc/sys/go32/sys/setjmp.h deleted file mode 100644 index 59e30c43e..000000000 --- a/newlib/libc/sys/go32/sys/setjmp.h +++ /dev/null @@ -1,44 +0,0 @@ -/*
-** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
-**
-** This file is distributed under the terms listed in the document
-** "copying.dj", available from DJ Delorie at the address above.
-** A copy of "copying.dj" should accompany this file; if not, a copy
-** should be available from where this file was obtained. This file
-** may not be distributed without a verbatim copy of "copying.dj".
-**
-** This file is distributed WITHOUT ANY WARRANTY; without even the implied
-** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-*/
-
-#ifndef _SETJMP_H_
-#define _SETJMP_H_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct {
- unsigned long eax;
- unsigned long ebx;
- unsigned long ecx;
- unsigned long edx;
- unsigned long esi;
- unsigned long edi;
- unsigned long ebp;
- unsigned long esp;
- unsigned long eip;
- unsigned short es;
- unsigned short fs;
- unsigned short gs;
- unsigned short ss;
-} jmp_buf[1];
-
-extern int setjmp(jmp_buf);
-extern void longjmp(jmp_buf, int);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/newlib/libc/sys/go32/sys/stdc.h b/newlib/libc/sys/go32/sys/stdc.h deleted file mode 100644 index b2e5bc19b..000000000 --- a/newlib/libc/sys/go32/sys/stdc.h +++ /dev/null @@ -1,15 +0,0 @@ -/* This is file STDC.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#include <sys/types.h> diff --git a/newlib/libc/sys/go32/sys/uio.h b/newlib/libc/sys/go32/sys/uio.h deleted file mode 100644 index d09fa5061..000000000 --- a/newlib/libc/sys/go32/sys/uio.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This is file UIO.H */ -/* -** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954 -** -** This file is distributed under the terms listed in the document -** "copying.dj", available from DJ Delorie at the address above. -** A copy of "copying.dj" should accompany this file; if not, a copy -** should be available from where this file was obtained. This file -** may not be distributed without a verbatim copy of "copying.dj". -** -** This file is distributed WITHOUT ANY WARRANTY; without even the implied -** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -*/ - -#ifndef _SYS_UIO_H_ -#define _SYS_UIO_H_ - -struct iovec { - void *iov_base; - unsigned long iov_len; -}; - -#endif |