summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/pipe
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-06-08 12:59:51 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-06-08 12:59:51 +0000
commiteaee27b0b9b9dd243512e10ff8988ec66751474a (patch)
tree3265b365c2285f4060b8ad97c6428da020de72d8 /cpukit/libfs/src/pipe
parent2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-eaee27b0b9b9dd243512e10ff8988ec66751474a.tar.bz2
2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1524/filesystem * libcsupport/src/rtems_mkdir.c: New file. * libcsupport/src/Makefile.am: Reflect change above. * libcsupport/include/rtems/libio.h: Added rtems_mkdir(). * libmisc/fsmount/fsmount.h, libmisc/fsmount/fsmount.c, libblock/src/bdpart-mount.c, libnetworking/rtems/mkrootfs.h, libnetworking/rtems/mkrootfs.c, libfs/src/pipe/pipe.c: Use rtems_mkdir(). Removed rtems_fsmount_create_mount_point() and rtems_rootfs_mkdir().
Diffstat (limited to 'cpukit/libfs/src/pipe')
-rw-r--r--cpukit/libfs/src/pipe/pipe.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/cpukit/libfs/src/pipe/pipe.c b/cpukit/libfs/src/pipe/pipe.c
index 0cc8c9acdb..a7a78e95fa 100644
--- a/cpukit/libfs/src/pipe/pipe.c
+++ b/cpukit/libfs/src/pipe/pipe.c
@@ -30,20 +30,11 @@ int pipe_create(
int filsdes[2]
)
{
- rtems_filesystem_location_info_t loc;
rtems_libio_t *iop;
int err = 0;
- /* Create /tmp if not exists */
- /* FIXME: We should use a general mkdir function for this */
- if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE)
- != 0) {
- if (errno != ENOENT)
- return -1;
- if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0)
- return -1;
- }
- else
- rtems_filesystem_freenode(&loc);
+
+ if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)
+ return -1;
/* /tmp/.fifoXXXX */
char fifopath[15];