search for: do_name

Displaying 11 results from an estimated 11 matches for "do_name".

Did you mean: d_name
2006 Mar 21
2
[PATCH] initramfs: CPIO unpacking fix
...a retransmission. init/initramfs.c | 3 +++ 1 files changed, 3 insertions(+) Index: linux-2.6.15/init/initramfs.c =================================================================== --- linux-2.6.15.orig/init/initramfs.c +++ linux-2.6.15/init/initramfs.c @@ -249,6 +249,7 @@ static int __init do_name(void) if (dry_run) return 0; if (S_ISREG(mode)) { + sys_unlink(collected); if (maybe_link() >= 0) { wfd = sys_open(collected, O_WRONLY|O_CREAT, mode); if (wfd >= 0) { @@ -263,6 +264,7 @@ static int __init do_name(void) sys_chmod(collected, mode); } else if (S_ISBLK(mod...
2015 Jan 25
2
names function for environments?
...to inspect an environment interactively and also serves deeper in code as the accessor for an environment's names/keys. I propose that we separate these two conflicting goals, keeping ls for interactive use and adding names for a quick listing of the hash keys. This involves adding two lines to do_names in attrib.c. The 'ls' function and its 'objects' synonym appear very frequently in performance-critical code like base/R/namespace.R and throughout the methods package. These functions are currently among the major contributors to execution time in package loading. This two-line...
2006 Oct 15
1
Feature request: names(someEnv) same as ls(someEnv)
Hi, I would be nice if names() returned the equivalent of ls() for environments. --- a/src/main/attrib.c +++ b/src/main/attrib.c @@ -687,6 +687,8 @@ SEXP attribute_hidden do_names(SEXP call s = CAR(args); if (isVector(s) || isList(s) || isLanguage(s)) return getAttrib(s, R_NamesSymbol); + if (isEnvironment(s)) + return R_lsInternal(s, 0); return R_NilValue; } + seth -- Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research...
2006 Feb 21
1
[PATCH] initramfs: multiple CPIO unpacking fix
...ikey@neuling.org> --- initramfs.c | 3 +++ 1 files changed, 3 insertions(+) Index: linux-2.6.15/init/initramfs.c =================================================================== --- linux-2.6.15.orig/init/initramfs.c +++ linux-2.6.15/init/initramfs.c @@ -249,6 +249,7 @@ static int __init do_name(void) if (dry_run) return 0; if (S_ISREG(mode)) { + sys_unlink(collected); if (maybe_link() >= 0) { wfd = sys_open(collected, O_WRONLY|O_CREAT, mode); if (wfd >= 0) { @@ -263,6 +264,7 @@ static int __init do_name(void) sys_chmod(collected, mode); } else if (S_ISBLK(mod...
2015 Jan 27
2
names function for environments?
...r in code as the > > accessor for an environment's names/keys. I propose that we separate > > these two conflicting goals, keeping ls for interactive use and > adding > > names for a quick listing of the hash keys. This involves adding two > > lines to do_names in attrib.c. > > > The 'ls' function and its 'objects' synonym appear very frequently in > > performance-critical code like base/R/namespace.R and throughout the > > methods package. These functions are currently among the major > > contri...
2015 Jan 27
2
names function for environments?
...environment's names/keys. I propose that we > separate > >> > these two conflicting goals, keeping ls for interactive use and > >> adding > >> > names for a quick listing of the hash keys. This involves adding > two > >> > lines to do_names in attrib.c. > >> > >> > The 'ls' function and its 'objects' synonym appear very frequently > >> in > >> > performance-critical code like base/R/namespace.R and throughout > the > >> > methods package. These funct...
2015 Jan 27
0
names function for environments?
...ely and also serves deeper in code as the > accessor for an environment's names/keys. I propose that we separate > these two conflicting goals, keeping ls for interactive use and adding > names for a quick listing of the hash keys. This involves adding two > lines to do_names in attrib.c. > The 'ls' function and its 'objects' synonym appear very frequently in > performance-critical code like base/R/namespace.R and throughout the > methods package. These functions are currently among the major > contributors to execution time...
2004 Dec 03
2
INITRAMFS: allow no trailer
...3 deletions(-) diff -puN init/initramfs.c~allow-no-trailer init/initramfs.c --- gr_work/init/initramfs.c~allow-no-trailer 2004-12-03 16:54:02.778579302 -0600 +++ gr_work-miltonm/init/initramfs.c 2004-12-03 16:54:02.789577561 -0600 @@ -241,10 +241,9 @@ static __initdata int wfd; static int __init do_name(void) { state = SkipIt; - next_state = Start; + next_state = Reset; if (strcmp(collected, "TRAILER!!!") == 0) { free_hash(); - next_state = Reset; return 0; } if (dry_run) @@ -295,7 +294,7 @@ static int __init do_symlink(void) sys_symlink(collected + N_ALIGN(name_len), c...
2015 Jan 27
0
names function for environments?
...;> > accessor for an environment's names/keys. I propose that we separate >> > these two conflicting goals, keeping ls for interactive use and >> adding >> > names for a quick listing of the hash keys. This involves adding two >> > lines to do_names in attrib.c. >> >> > The 'ls' function and its 'objects' synonym appear very frequently >> in >> > performance-critical code like base/R/namespace.R and throughout the >> > methods package. These functions are currently among the m...
2015 Jan 29
0
names function for environments?
...>> separate >> >> > these two conflicting goals, keeping ls for interactive use and >> >> adding >> >> > names for a quick listing of the hash keys. This involves adding >> two >> >> > lines to do_names in attrib.c. >> >> >> >> > The 'ls' function and its 'objects' synonym appear very frequently >> >> in >> >> > performance-critical code like base/R/namespace.R and throughout >> the >&gt...
2015 Jan 29
1
names function for environments?
...;> >> > these two conflicting goals, keeping ls for interactive > use and > >> >> adding > >> >> > names for a quick listing of the hash keys. This involves > adding > >> two > >> >> > lines to do_names in attrib.c. > >> >> > >> >> > The 'ls' function and its 'objects' synonym appear very > frequently > >> >> in > >> >> > performance-critical code like base/R/namespace.R and > throughou...