newlib: fix fstat file size
git-svn-id: svn://kolibrios.org@5369 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ca8fee6c6c
commit
179b91082e
@ -15,7 +15,9 @@ extern "C" {
|
||||
// #define DBG(format,...)
|
||||
//#endif
|
||||
|
||||
#define TYPE_3_BORDER_WIDTH 5
|
||||
#define TYPE_3_BORDER_WIDTH 5
|
||||
#define WIN_STATE_MINIMIZED 0x02
|
||||
#define WIN_STATE_ROLLED 0x04
|
||||
|
||||
typedef unsigned int color_t;
|
||||
|
||||
@ -428,7 +430,7 @@ void* user_realloc(void *mem, size_t size)
|
||||
|
||||
return val;
|
||||
};
|
||||
static inline void* UserRrealloc(void *mem, size_t size) __attribute__ ((alias ("user_realloc")));
|
||||
static inline void* UserRealloc(void *mem, size_t size) __attribute__ ((alias ("user_realloc")));
|
||||
|
||||
void *get_resource(void *data, uint32_t id);
|
||||
|
||||
|
33
contrib/sdk/sources/newlib/libc/include/pixlib3.h
Normal file
33
contrib/sdk/sources/newlib/libc/include/pixlib3.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef __PIXLIB3_H__
|
||||
#define __PIXLIB3_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define HW_BIT_BLIT (1<<0) /* BGRX blitter */
|
||||
#define HW_TEX_BLIT (1<<1) /* stretch blit */
|
||||
#define HW_VID_BLIT (1<<2) /* planar and packed video */
|
||||
|
||||
|
||||
struct bitmap;
|
||||
typedef struct bitmap bitmap_t;
|
||||
|
||||
uint32_t pxInit(int hw);
|
||||
void pxFini();
|
||||
|
||||
bitmap_t *pxCreateBitmap(uint32_t width, uint32_t height);
|
||||
|
||||
int pxDestroyBitmap(bitmap_t *bitmap);
|
||||
|
||||
void *pxLockBitmap(bitmap_t *bitmap, uint32_t *pitch);
|
||||
|
||||
int pxResizeBitmap(bitmap_t *bitmap, uint32_t width, uint32_t height);
|
||||
|
||||
int pxBlitBitmap(bitmap_t *bitmap, int dst_x, int dst_y,
|
||||
uint32_t w, uint32_t h, int src_x, int src_y);
|
||||
|
||||
int pxCreateClient(int x, int y, uint32_t width, uint32_t height);
|
||||
|
||||
int pxResizeClient(int x, int y, uint32_t width, uint32_t height);
|
||||
|
||||
#endif
|
||||
|
@ -43,7 +43,6 @@ extern "C" {
|
||||
#define O_NONBLOCK _FNONBLOCK
|
||||
#define O_NOCTTY _FNOCTTY
|
||||
/* For machines which care - */
|
||||
#if defined (_WIN32) || defined (__CYGWIN__)
|
||||
#define _FBINARY 0x10000
|
||||
#define _FTEXT 0x20000
|
||||
#define _FNOINHERIT 0x40000
|
||||
@ -66,7 +65,6 @@ extern "C" {
|
||||
#define _O_BINARY O_BINARY
|
||||
#define _O_RAW O_BINARY
|
||||
#define _O_NOINHERIT O_NOINHERIT
|
||||
#endif
|
||||
|
||||
#ifndef _POSIX_SOURCE
|
||||
|
||||
|
@ -59,6 +59,7 @@ _DEFUN (fstat, (fd, buf),
|
||||
buf->st_mode = S_IFREG|S_IRUSR|S_IWUSR|S_IXUSR;
|
||||
}
|
||||
buf->st_blksize = 4096;
|
||||
buf->st_size = info.size;
|
||||
|
||||
time.tm_sec = info.atime.sec;
|
||||
time.tm_min = info.atime.min;
|
||||
|
Loading…
Reference in New Issue
Block a user