4.104.114.84.95
Last change
on this file since 64f55e7 was
07a3253d,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 19:07:58
|
Added base version of file system infrastructure. This includes a major
overhaul of the RTEMS system call interface. This base file system is
the "In-Memory File System" aka IMFS.
The design and implementation was done by the following people:
+ Joel Sherrill (joel@…)
+ Jennifer Averett (jennifer@…)
+ Steve "Mr Mount" Salitasc (salitasc@…)
+ Kerwin Wade (wade@…)
PROBLEMS
========
+ It is VERY likely that merging this will break the UNIX port. This
can/will be fixed.
+ There is likely some reentrancy/mutual exclusion needed.
+ Eventually, there should be a "mini-IMFS" description table to
eliminate links, symlinks, etc to save memory. All you need to
have "classic RTEMS" functionality is technically directories
and device IO. All the rest could be left out to save memory.
|
-
Property mode set to
100644
|
File size:
536 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #include <limits.h> |
---|
6 | #include <errno.h> |
---|
7 | #include <string.h> |
---|
8 | #include <sys/types.h> |
---|
9 | |
---|
10 | #include <rtems/system.h> |
---|
11 | #include <rtems/score/object.h> |
---|
12 | #include <rtems/posix/seterr.h> |
---|
13 | |
---|
14 | /*PAGE |
---|
15 | * |
---|
16 | * 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83 |
---|
17 | */ |
---|
18 | |
---|
19 | pid_t getpid( void ) |
---|
20 | { |
---|
21 | return _Objects_Local_node; |
---|
22 | } |
---|
23 | |
---|
24 | /* |
---|
25 | * _getpid_r |
---|
26 | * |
---|
27 | * This is the Newlib dependent reentrant version of getpid(). |
---|
28 | */ |
---|
29 | |
---|
30 | #if defined(RTEMS_NEWLIB) |
---|
31 | |
---|
32 | #include <reent.h> |
---|
33 | |
---|
34 | pid_t _getpid_r( |
---|
35 | struct _reent *ptr |
---|
36 | ) |
---|
37 | { |
---|
38 | return getpid(); |
---|
39 | } |
---|
40 | #endif |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.