Displaying 5 results from an estimated 5 matches for "_dirent_h".
Did you mean:
dirent_h
2009 Feb 11
1
[PATCH 1/1] COM32 API: Add functions for directory use
...SIX
compliance such that a small application written to use these 4 POSIX
calls will work properly.
diff --git a/com32/include/dirent.h b/com32/include/dirent.h
new file mode 100644
index 0000000..956b911
--- /dev/null
+++ b/com32/include/dirent.h
@@ -0,0 +1,36 @@
+/*
+ * dirent.h
+ */
+
+#ifndef _DIRENT_H
+#define _DIRENT_H
+
+#include <klibc/extern.h>
+#include <klibc/compiler.h>
+#include <stddef.h>
+#include <sys/types.h>
+
+#ifndef NAME_MAX
+#define NAME_MAX 255
+#endif
+
+struct dirent {
+ long d_ino; /* Inode/File number */
+ off_t d_size; /* Size of file */
+ mode_...
2008 Dec 04
0
[PATCH 1/1] COM32: Add directory functions
...around '*' (ctx:WxV)
#40: FILE: com32/include/dirent.h:34:
+__extern DIR *fdopendir(int);
diff --git a/com32/include/dirent.h b/com32/include/dirent.h
new file mode 100644
index 0000000..956b911
--- /dev/null
+++ b/com32/include/dirent.h
@@ -0,0 +1,36 @@
+/*
+ * dirent.h
+ */
+
+#ifndef _DIRENT_H
+#define _DIRENT_H
+
+#include <klibc/extern.h>
+#include <klibc/compiler.h>
+#include <stddef.h>
+#include <sys/types.h>
+
+#ifndef NAME_MAX
+#define NAME_MAX 255
+#endif
+
+struct dirent {
+ long d_ino; /* Inode/File number */
+ off_t d_size; /* Size of file */
+ mode_...
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
...urn __d->__fd;
}
+__extern int scandir(const char *dirp, struct dirent ***namelist,
+ int (*filter)(const struct dirent *),
+ int (*compar)(const struct dirent **,
+ const struct dirent **));
+
+int alphasort(const struct dirent **a, const struct dirent **b);
+
#endif /* _DIRENT_H */
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index af40367..40e61da 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -42,7 +42,7 @@ klib-y := vsnprintf.o snprintf.o vsprintf.o sprintf.o \
seteuid.o setegid.o \
getenv.o setenv.o putenv.o __put_env.o unsetenv.o \
clearenv.o...
2004 Sep 11
1
[PATCH] fchdir syscall, opendir function
...2002-08-11 06:35:43.000000000 +0200
+++ ./klibc/include/dirent.h 2004-09-11 20:57:27.268620024 +0200
@@ -16,5 +16,6 @@ typedef struct _IO_dir DIR;
__extern DIR *opendir(const char *);
__extern struct dirent *readdir(DIR *);
__extern int closedir(DIR *);
+__extern int dirfd (DIR *);
#endif /* _DIRENT_H */
diff -purNx linux ../klibc-0.172/klibc/include/unistd.h ./klibc/include/unistd.h
--- ../klibc-0.172/klibc/include/unistd.h 2004-08-25 23:56:50.000000000 +0200
+++ ./klibc/include/unistd.h 2004-09-11 21:06:09.259265384 +0200
@@ -60,6 +60,7 @@ __extern int access(const char *, int);
__extern int...
2011 Aug 02
6
[PATCH v2 0/4] Support drop directories directly from kinit
This patchset applies to klibc mainline.
This patchset introduces the ability to kinit to execute scripts or
executable files present in in the initramfs before switching over to
the root filesystem.
It is implemented by first implementing scandir() and alphasort() as
present in POSIX.1-2008 in klibc itself, and then using that as the
basis for iterating and executing files via a run_scripts()