Displaying 20 results from an estimated 162 matches for "scandir".
2007 Jun 09
41
zfs reports small st_size for directories?
Why does ZFS report such small directory sizes? For example, take a maildir directory with ten entries:
total 2385
drwx------ 8 17121 vmail 10 Jun 8 23:50 .
drwx--x--x 14 root root 14 May 12 2006 ..
drwx------ 5 17121 vmail 5 May 25 18:16 .Trash
drwx------ 5 17121 staff 6 Jun 9 00:01 .testing
-rw------- 1 17121 staff 0 Jun
2011 Jul 29
3
[PATCH 1/3] klibc: Add scandir() and alphasort() support.
Add support for scandir() and alphasort() as defined in POSIX.1-2008.
Signed-off-by: Mike Waychison <mikew at google.com>
---
usr/include/dirent.h | 7 +++++
usr/klibc/Kbuild | 2 +
usr/klibc/scandir.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 84 insertions(+), 1 deleti...
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() call.
This patchset introduces two different drop directories, though this is
of course subject to change and these are only presented in an effort t...
2006 Jan 16
1
php/scandir
Hi everyone,
I like to use php function scandir(), but I have PHP 4.3.9. How do I
update php to ver. 5 so I can use scandir().
Many thanks,
JC
--
2006 Oct 03
2
strverscmp, scandir, alphasort and versionsort
Hello,
These are implementations of strverscmp, scandir, alphasort and
versionsort, and some test cases for them.
I know these aren't in POSIX, but they're useful, nonetheless, and
someone else might be interested in them.
Regards,
Luciano Rocha
--
lfr
0/0
-------------- next part --------------
/* -------------------------------------------...
2012 Jun 06
3
[LLVMdev] llvm-tv
...he code to sort out the
build errors.
Have you tried compiling/using llvm-tv with these versions of poolalloc and
LLVM-3.0?
Here is the llvm-tv build error -
/home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5: error:
use of undeclared identifier 'perror'
perror("scandir");
^
/home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5: error:
use of undeclared identifier 'perror'
perror("scandir");
^
On Tue, Jun 5, 2012 at 8:23 AM, John Criswell <criswell at illinois.edu> wrote:
> On 6/1/12 7:33 PM, AbhishekR...
2008 Mar 18
4
Solaris 10 x86 + ZFS / NFS server "cp" problem with AIX
Friends,
I have recently built a file server on x2200 with solaris x86 having zfs (version4) and running NFS version2 & samba.
the AIX 5.2 & AIX 5.2 client give error while running command "cp -R <zfs_nfs_mount_source> <zfs_nfs_mount_desticantion> as below:
cp: 0653-440 directory/1: name too long.
cp: 0653-438 cannot read directory directory/1.
and the cp core dumps in
2012 Jun 06
0
[LLVMdev] llvm-tv
...gt; Have you tried compiling/using llvm-tv with these versions of
> poolalloc and LLVM-3.0?
>
> Here is the llvm-tv build error -
>
> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5:
> error: use of undeclared identifier 'perror'
> perror("scandir");
> ^
> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5:
> error: use of undeclared identifier 'perror'
> perror("scandir");
The perror() function is a Unix/Posix function. The llvm-tv code is
probably assuming that some LLVM heade...
2011 Aug 03
2
[PATCH v3 0/2] 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.
This functionality is implemented in a newly introduced run_parts()
call, which calls scandir() to iterate through files which in then
executes in sequence.
run_parts() is also available as a minimal run-parts executable (that
doesn't yet take any flags).
This patchset then introduces two different drop directories, though
this is of course subject to change and these are only present...
2012 Jun 06
2
[LLVMdev] llvm-tv
...t; Have you tried compiling/using llvm-tv with these versions of poolalloc
> and LLVM-3.0?
>
> Here is the llvm-tv build error -
>
> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5:
> error: use of undeclared identifier 'perror'
> perror("scandir");
> ^
> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5:
> error: use of undeclared identifier 'perror'
> perror("scandir");
>
>
> The perror() function is a Unix/Posix function. The llvm-tv code is
> probably assuming tha...
2010 Mar 01
1
adding directory contents to ogg123 playing in sorted order?
Would a patch to ogg123 for using scandir(3) and alphasort(3) instead
of opendir(3) and readdir(3) in playlist_append_directory() be
accepted, or are those not sufficiently portable? On Linux,
_SVID_SOURCE or _BSD_SOURCE is required to use them. This shouldn't be
hard to implement and I'd like very much to have directories added to...
2012 Jun 06
0
[LLVMdev] llvm-tv
.../using llvm-tv with these versions of poolalloc
>> and LLVM-3.0?
>>
>> Here is the llvm-tv build error -
>>
>> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:32:5:
>> error: use of undeclared identifier 'perror'
>> perror("scandir");
>> ^
>> /home/arhishee/work/llvm-tv/llvm-tv/lib/Snapshot/FileUtils.cpp:50:5:
>> error: use of undeclared identifier 'perror'
>> perror("scandir");
>>
>>
>> The perror() function is a Unix/Posix function. The llvm-tv code i...
2012 Jun 05
0
[LLVMdev] llvm-tv
On 6/1/12 7:33 PM, AbhishekR wrote:
> I am trying to compile llvm-tv as per the instructions from the link -
> http://llvm.org/svn/llvm-project/television/trunk/README.txt
>
> The poolalloc doesn't seem to be in synch with the llvm svn version
> mentioned (78786). It is giving lot of errors during compilation. I
> fixed a few of them by bringing in functions/header files
2007 Jul 31
1
[Bridge] brctl uses incorrect sysfs path
...t i, count;
struct dirent **namelist;
char path[SYSFS_PATH_MAX];
+ struct stat st;
- snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brport", brname);
+ snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/brif", brname);
count = scandir(path, &namelist, 0, alphasort);
if (count < 0)
return old_foreach_port(brname, iterator, arg);
for (i = 0; i < count; i++) {
+ if (stat(namelist[i]->d_name, &st) == -1)
+ continue;
+ if (!S_ISL...
2011 Aug 10
1
[PATCH v2] dirent.h add fdopendir()
...ild
index c4f9ae2..48575a5 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -42,7 +42,8 @@ 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 nullenv.o \
- getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \
+ getopt.o getopt_long.o \
+ readdir.o scandir.o fdopendir.o alphasort.o remove.o \
syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \
time.o utime.o llseek.o nice.o getpriority.o \
qsort.o bsearch.o \
diff --git a/usr/klibc/fdopendir.c b/u...
2007 Nov 15
1
program I used to test xattrs
...clude <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <dirent.h>
#include <unistd.h>
static int get_dir_list(char *dir, char ***filelist)
{
struct dirent **namelist;
int n = 0, temp, i = 0, size = 0;
struct stat buf;
temp = n = scandir(dir, &namelist, NULL, alphasort);
if (n < 0) {
perror("scandir");
return -1;
}
if (n == 2) {
while (n--)
free(namelist[n]);
free(namelist);
return n;
}
/* we don't want '.' or '..' */
n -= 2;
(*filelist) = (char **) malloc(sizeof(char *) *...
2012 Jun 02
3
[LLVMdev] llvm-tv
I am trying to compile llvm-tv as per the instructions from the link -
http://llvm.org/svn/llvm-project/television/trunk/README.txt
The poolalloc doesn't seem to be in synch with the llvm svn version
mentioned (78786). It is giving lot of errors during compilation. I fixed a
few of them by bringing in functions/header files etc. wherever required
from the mainline llvm. But this exercise
2017 Feb 08
2
cifs-utils: regression in (mulituser?) mounting 'CIFS VFS: Send error in SessSetup = -126'
...=128.104.160.17
Feb 8 09:51:46 trog cifs.upcall: sec=1
Feb 8 09:51:46 trog cifs.upcall: uid=0
Feb 8 09:51:46 trog cifs.upcall: creduid=0
Feb 8 09:51:46 trog cifs.upcall: user=smbadmin at PHYSICS.WISC.EDU
Feb 8 09:51:46 trog cifs.upcall: pid=27600
Feb 8 09:51:46 trog cifs.upcall: find_krb5_cc: scandir error on
directory '/run/user/0': No such file or directory
Feb 8 09:51:46 trog cifs.upcall: find_krb5_cc: considering /tmp/krb5cc_0
Feb 8 09:51:46 trog cifs.upcall: find_krb5_cc: FILE:/tmp/krb5cc_0 is
valid ccache
Feb 8 09:51:46 trog cifs.upcall: find_krb5_cc: considering
/tmp/krb5cc_14...
2016 Jan 06
0
[klibc:master] Remove obsolete getpt() function
...ibc/Kbuild b/usr/klibc/Kbuild
index 7d95e87..5521038 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -52,7 +52,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \
getenv.o setenv.o putenv.o __put_env.o unsetenv.o \
clearenv.o nullenv.o \
getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \
- syslog.o closelog.o pty.o getpt.o posix_openpt.o isatty.o reboot.o \
+ syslog.o closelog.o pty.o posix_openpt.o isatty.o reboot.o \
time.o utime.o lseek.o nice.o getpriority.o \
qsort.o bsearch.o \
lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o...
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
...ibc/Kbuild b/usr/klibc/Kbuild
index a0e440d..eba6add 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -52,7 +52,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \
getenv.o setenv.o putenv.o __put_env.o unsetenv.o \
clearenv.o nullenv.o \
getopt.o getopt_long.o readdir.o scandir.o alphasort.o remove.o \
- syslog.o closelog.o pty.o posix_openpt.o isatty.o reboot.o \
+ syslog.o closelog.o pty.o isatty.o reboot.o \
time.o utime.o lseek.o nice.o getpriority.o \
qsort.o bsearch.o \
lrand48.o jrand48.o mrand48.o nrand48.o srand48.o seed48.o \
diff --git a/usr/kli...