Displaying 20 results from an estimated 166 matches for "fdopendir".
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
Initial implemenation with quick test.
Signed-off-by: maximilian attems <max at stro.at>
---
v2: seperate file.
usr/include/dirent.h | 1 +
usr/klibc/Kbuild | 3 ++-
usr/klibc/fdopendir.c | 40 ++++++++++++++++++++++++++++++++++++++++
usr/klibc/tests/Kbuild | 1 +
usr/klibc/tests/fdopendir.c | 31 +++++++++++++++++++++++++++++++
5 files changed, 75 insertions(+), 1 deletions(-)
create mode 100644 usr/klibc/fdopendir.c
create mode 100644 usr/klibc/tests/fdopendi...
2008 Dec 04
0
[PATCH 1/1] COM32: Add directory functions
...^
ERROR: need consistent spacing around '*' (ctx:WxB)
#39: FILE: com32/include/dirent.h:33:
+__extern int closedir(DIR *);
^
ERROR: need consistent spacing 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...
2009 Feb 11
1
[PATCH 1/1] COM32 API: Add functions for directory use
...;
+};
+
+typedef struct {
+ short dd_stat; /* status return from last lookup */
+ uint16_t dd_fd;
+ size_t dd_sect;
+ char dd_name[NAME_MAX + 1]; /* directory */
+} DIR;
+
+__extern DIR *opendir(const char *);
+__extern struct dirent *readdir(DIR *);
+__extern int closedir(DIR *);
+__extern DIR *fdopendir(int);
+
+#endif /* Not _DIRENT_H */
diff --git a/com32/include/unistd.h b/com32/include/unistd.h
index d0b8309..c0b52d6 100644
--- a/com32/include/unistd.h
+++ b/com32/include/unistd.h
@@ -22,6 +22,9 @@ __extern int isatty(int);
__extern int getscreensize(int, int *, int *);
+__extern char *getc...
2011 Aug 12
4
klibc current state
...--------------------------------
- mikew/drop_cap - kinit: Add drop_capabilities support
adds the ability to kinit to allow the dropping of POSIX
capabilities. (patch even referenced on lwn :)
- mikew/run-parts - kinit: Add run_parts()
adds possibility to run boot scripts from kinit
- maks/fdopendir - dirent.h add fdopendir()
initial implementation
aboves patches are for wider testing in:
http://git.kernel.org/?p=libs/klibc/klibc-queue.git
* Patches in the works:
-----------------------
- mikew/bootscripts - kinit: Add callsites to execute files
Needs discussion about /scripts path, ma...
2019 Sep 23
0
[PATCH v2 5/5] build: remove unused gnulib modules
Remove gnulib modules that provide stuff clearly not used within
libguestfs (library, daemon, and C tools). Among directly and
indirectly modules used previous (and now no more), they are:
cycle-check
d-ino
dev-ino
dup3
dup3-tests
fcntl-safer
fcntl-safer-tests
fdopendir
fdopendir-tests
filevercmp
filevercmp-tests
ftell
ftell-tests
ftello
ftello-tests
fts
getaddrinfo
getaddrinfo-tests
getcwd
getcwd-tests
gnu-make
hostent
i-ring
i-ring-tests
iconv
iconv-tests
inet_ntop
inet_ntop-tests
isatty
isatty-tests
openat-safer
o...
2010 Dec 14
8
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2011 Jan 14
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2011 Feb 15
7
builder-ubuntu febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2011 Jan 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2011 Feb 15
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2010 Dec 14
7
builder-debian febootstrap success 85db2a664c820e01a02ddc3b33b3da26fe05dc5b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2011 May 13
3
builder-debian febootstrap success 6ab9465001dfaa52edc5992ee71f2e9aecc2085d
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2010 Dec 07
0
builder-debian febootstrap FAILED configure step af9f9305a0a48829392a57d24aee30978b449d1d
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2011 Mar 22
1
builder-debian febootstrap success 6720ad28eddbcd671032c151f7219a35ba615b1b
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
...| 1 -
modules/c-stack | 1 +
modules/carray-list-tests | 1 -
modules/copy-file-tests | 1 -
modules/error | 1 +
modules/exclude-tests | 1 -
modules/fchownat-tests | 1 -
modules/fdopendir-tests | 1 -
modules/filenamecat-tests | 1 -
modules/fstatat-tests | 1 -
modules/fstrcmp-tests | 1 -
modules/getprogname | 28 ++++++
modules/git-merge-changelog | 2 +-
modules/linked-list-tests...
2009 Mar 06
4
rosh patch
...( inc == '\t') )
+ {
+ rv = 1 ;
}
return rv;
} /* ros_issp */
@@ -384,8 +384,7 @@
if (S_ISDIR(fdstat.st_mode)) {
ROSH_DEBUG("PATH '%s' is a directory\n", ifilstr);
d = fdopendir(fd);
- de = readdir(d);
- while (de != NULL) {
+ while ( de = readdir(d) ) {
#ifdef DO_DEBUG
filestr2[0] = 0;
file2pos = strlen(filestr);
@@ -401,7 +400,6 @@
#ifdef DO...
2010 Dec 07
0
builder-ubuntu febootstrap success 2dfc659c33c5ceb298e8027e219547416b286661
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2010 Dec 10
0
builder-ubuntu febootstrap success 27a911ca193ad5a56a7afac4f6100b3a3f732680
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2010 Dec 07
0
builder-debian febootstrap success af9f9305a0a48829392a57d24aee30978b449d1d
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...
2010 Dec 10
0
builder-debian febootstrap success 27a911ca193ad5a56a7afac4f6100b3a3f732680
...ir-long
chown
cloexec
close
close-hook
cycle-check
d-ino
d-type
dev-ino
dirent
dirent-safer
dirfd
dirname-lgpl
double-slash-root
dup2
errno
error
exitfail
extensions
fchdir
fclose
fcntl
fcntl-h
fcntl-safer
fdopendir
filevercmp
float
fts
full-write
getcwd
getdtablesize
getopt-gnu
getopt-posix
gettext-h
hash
hash-pjw
i-ring
include_next
inline
intprops
inttypes
lchown
lstat
malloc-posix
memchr
mempcpy
memrchr
mkdir
multiarch...