mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 14:50:17 +00:00
Define off_t and mode_t.
This commit is contained in:
parent
666a50491c
commit
b71889137b
@ -1,5 +1,5 @@
|
|||||||
/* Definitions for BSD-style memory management.
|
/* Definitions for BSD-style memory management.
|
||||||
Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
|
Copyright (C) 1994-1999, 2000 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -25,6 +25,20 @@
|
|||||||
#define __need_size_t
|
#define __need_size_t
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#ifndef off_t
|
||||||
|
# ifndef __USE_FILE_OFFSET64
|
||||||
|
typedef __off_t off_t;
|
||||||
|
# else
|
||||||
|
typedef __off64_t off_t;
|
||||||
|
# endif
|
||||||
|
# define off_t off_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef mode_t
|
||||||
|
typedef __mode_t mode_t;
|
||||||
|
# define mode_t mode_t
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <bits/mman.h>
|
#include <bits/mman.h>
|
||||||
|
|
||||||
/* Return value of `mmap' in case of an error. */
|
/* Return value of `mmap' in case of an error. */
|
||||||
|
Loading…
Reference in New Issue
Block a user