Changeset 46c20c8 in mainline for uspace/lib/c/include/sys
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c/include/sys
- Files:
-
- 1 added
- 4 moved
-
mman.h (moved) (moved from uspace/lib/libc/include/sys/mman.h ) (2 diffs)
-
stat.h (moved) (moved from uspace/lib/libc/include/sys/stat.h ) (2 diffs)
-
time.h (moved) (moved from uspace/lib/libc/include/sys/time.h ) (2 diffs)
-
typefmt.h (added)
-
types.h (moved) (moved from uspace/lib/libc/include/sys/types.h ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/sys/mman.h
rfb150d78 r46c20c8 41 41 #define MAP_FAILED ((void *) -1) 42 42 43 #define MAP_SHARED (1 << 0)44 #define MAP_PRIVATE (1 << 1)45 #define MAP_FIXED (1 << 2)46 #define MAP_ANONYMOUS (1 << 3)43 #define MAP_SHARED (1 << 0) 44 #define MAP_PRIVATE (1 << 1) 45 #define MAP_FIXED (1 << 2) 46 #define MAP_ANONYMOUS (1 << 3) 47 47 48 48 #define PROTO_READ AS_AREA_READ … … 50 50 #define PROTO_EXEC AS_AREA_EXEC 51 51 52 extern void *mmap(void *start, size_t length, int prot, int flags, int fd,53 off_t offset);52 extern void *mmap(void *start, size_t length, int prot, int flags, int fd, 53 aoff64_t offset); 54 54 extern int munmap(void *start, size_t length); 55 55 -
uspace/lib/c/include/sys/stat.h
rfb150d78 r46c20c8 31 31 */ 32 32 /** @file 33 */ 33 */ 34 34 35 35 #ifndef LIBC_SYS_STAT_H_ … … 43 43 struct stat { 44 44 fs_handle_t fs_handle; 45 dev _handle_t dev_handle;45 devmap_handle_t devmap_handle; 46 46 fs_index_t index; 47 47 unsigned int lnkcnt; 48 48 bool is_file; 49 49 bool is_directory; 50 off_t size;51 dev _handle_t device;50 aoff64_t size; 51 devmap_handle_t device; 52 52 }; 53 53 -
uspace/lib/c/include/sys/time.h
rfb150d78 r46c20c8 31 31 */ 32 32 /** @file 33 */ 33 */ 34 34 35 35 #ifndef LIBC_SYS_TIME_H_ … … 43 43 typedef long suseconds_t; 44 44 45 typedef uint32_t useconds_t; 46 typedef uint32_t mseconds_t; 47 45 48 struct timeval { 46 time_t tv_sec; /* seconds */47 suseconds_t tv_usec; /* microseconds */49 time_t tv_sec; /* seconds */ 50 suseconds_t tv_usec; /* microseconds */ 48 51 }; 49 52 50 53 struct timezone { 51 int tz_minuteswest;/* minutes W of Greenwich */52 int tz_dsttime;/* type of dst correction */54 int tz_minuteswest; /* minutes W of Greenwich */ 55 int tz_dsttime; /* type of dst correction */ 53 56 }; 54 57 -
uspace/lib/c/include/sys/types.h
rfb150d78 r46c20c8 38 38 #include <libarch/types.h> 39 39 40 typedef long off_t; 41 typedef int mode_t; 42 typedef uint64_t bn_t; /**< Block number type. */ 40 typedef unsigned int mode_t; 43 41 44 typedef int32_t wchar_t; 42 /** Relative offset */ 43 typedef int64_t off64_t; 44 45 /** Absolute offset */ 46 typedef uint64_t aoff64_t; 45 47 46 48 typedef volatile uint8_t ioport8_t;
Note:
See TracChangeset
for help on using the changeset viewer.
