search for: tok

Displaying 20 results from an estimated 144 matches for "tok".

Did you mean: to
2012 Aug 22
1
Reshaping dataframes
...ing rbind.fill from the reshape package on two data frames I would get a data frame like trg_type child_type_1 1 Scientists NA 2 of used Now to get rid of NA values I use the following function, which works for data frames with only factor values: substitute_na <- function(tok, na_factor_level = "NOT_REALIZED") { for (i in 1:length(tok)) {levels(tok[,i]) <- c(levels(tok[,i]), na_factor_level)} tok[is.na(tok)] <- as.factor(na_factor_level) return(tok) } Is there a better/faster way to do it? It would also be great to be able to distinguish f...
2003 Jul 05
2
Unhelpful error message when matching hosts in access list [PATCH]
...then this match either should not be done, or the confusing error message should not be printed. 2. The "malformed address" message is written whenever getaddrinfo() fails, ignoring the error code. Suggestion: Instead of rprintf(FERROR,"malformed address %s\n", tok); use gai_strerror(3) to get a more helpful error description: rprintf(FERROR,"error matching address %s: %s\n", tok, gai_strerror(gai)); ---------------------------------------------------------------------- Below is a patch that fixes these bugs. Seems to work just fine. T...
2004 Feb 01
1
innetgr revised netgroup patch against 2.6.0
...t find it in my 15 seconds of looking.. --- access.c 2003-07-30 16:12:27.000000000 +1000 +++ ../rsync-2.6.0-Linux/access.c 2004-02-01 23:21:12.000000000 +1100 @@ -22,10 +22,21 @@ */ #include "rsync.h" +#include <netdb.h> static int match_hostname(char *host, char *tok) { + char *netgroup; + + if(strlen(tok)>1){ + if(tok[0]=='@'){ + netgroup=tok+1; + if(innetgr(netgroup, host, NULL, NULL)){ + return(1); + } + } +...
2009 Sep 11
1
[PATCH] guestfish: Enable grouping in string lists
This change adds the ability to group entries in a string list with single quotes. So the string: "'foo bar'" becomes 1 token rather than 2. Consequently single quotes must now be escaped: "\'" resolves to a literal single quote. Incidentally, this change also alters another, probably unintentional behaviour of the previous implementation, in that tokens are separated by any amount of whitespace rather...
2002 May 07
0
Fixing exclude/exclude wildcard handling
...o lib/compat.o lib/snprintf.o lib/mdfour.o \ lib/permstring.o \ @LIBOBJS@ ZLIBOBJ=zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o \ Index: access.c --- access.c 2002/04/11 02:25:53 1.5 +++ access.c 2002/05/08 04:19:50 @@ -27,7 +27,7 @@ static int match_hostname(char *host, char *tok) { if (!host || !*host) return 0; - return (fnmatch(tok, host, 0) == 0); + return wildmat(host, tok); } Index: authenticate.c --- authenticate.c 2002/01/24 02:33:45 1.19 +++ authenticate.c 2002/05/08 04:19:50 @@ -239,7 +239,7 @@ if (!users) return NULL; for (tok=strtok(users," ,\...
2003 Jan 16
3
unsafe_symlink change (Re: CVS update: rsync)
The patch from 2-1/2 years ago for changing copy-unsafe-links to follow unsafe links on the destination side also included essentially this patch. When I looked at it, however, I asked why in the world is unsafe_symlink() doing strdup() in the first place. I think you could get rid of the calls to strdup() and the new local variables and possibly do a couple casts inside the function instead. -
2012 Dec 12
2
[PATCHv9 0/2] virtio_console: Add rproc_serial driver
...eparation for introducing "rproc_serial" I've done a refactoring of the transmit buffer handling. NOTE: These two patches are identical to first two patches of the V8 patch-set, but are rebased to virtio-next. Regards, Sjur Sjur Br?ndeland (2): virtio_console: Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial drivers/char/virtio_console.c | 317 +++++++++++++++++++++++++++------------ include/uapi/linux/virtio_ids.h | 1 + 2 files changed, 221 insertions(+), 97 deletions(-) -- 1.7.5.4
2012 Dec 12
2
[PATCHv9 0/2] virtio_console: Add rproc_serial driver
...eparation for introducing "rproc_serial" I've done a refactoring of the transmit buffer handling. NOTE: These two patches are identical to first two patches of the V8 patch-set, but are rebased to virtio-next. Regards, Sjur Sjur Br?ndeland (2): virtio_console: Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial drivers/char/virtio_console.c | 317 +++++++++++++++++++++++++++------------ include/uapi/linux/virtio_ids.h | 1 + 2 files changed, 221 insertions(+), 97 deletions(-) -- 1.7.5.4
2009 Jun 21
0
[PATCH] nv50: better insn generation
...lium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index d7ab28a..5594560 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -1294,18 +1294,20 @@ static boolean nv50_program_tx_insn(struct nv50_pc *pc, const union tgsi_full_token *tok) { const struct tgsi_full_instruction *inst = &tok->FullInstruction; - struct nv50_reg *rdst[4], *dst[4], *src[3][4], *temp; - unsigned mask, sat, unit; + struct nv50_reg *rdst[4], *dst[4], *src[3][4]; + struct nv50_reg **pp_rtmp, *rtmp = NULL, *temp = NULL; + unsigned mask, sat, u...
2012 Oct 30
5
[PATCHv8 0/3]virtio_console: Add rproc_serial driver
...rtio-next branch. - Removed extra added lines. - Removed superfluous checks before calling reclaim_dma_bufs(). - Rusty raised some question regarding garbage collection of the out-vq, so I moved this into a separate patch. Thanks, Sjur Sjur Br?ndeland (3): virtio_console: Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial virtio_console: Remove buffers from out_vq at port removal drivers/char/virtio_console.c | 325 +++++++++++++++++++++++++++------------ include/uapi/linux/virtio_ids.h | 1 + 2 files changed, 230 insertions(+),...
2012 Oct 30
5
[PATCHv8 0/3]virtio_console: Add rproc_serial driver
...rtio-next branch. - Removed extra added lines. - Removed superfluous checks before calling reclaim_dma_bufs(). - Rusty raised some question regarding garbage collection of the out-vq, so I moved this into a separate patch. Thanks, Sjur Sjur Br?ndeland (3): virtio_console: Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial virtio_console: Remove buffers from out_vq at port removal drivers/char/virtio_console.c | 325 +++++++++++++++++++++++++++------------ include/uapi/linux/virtio_ids.h | 1 + 2 files changed, 230 insertions(+),...
2020 Jun 04
2
pre-merge checks are switching to buildkite build system
...rser.cpp > index 9c25e107d44..b8da2c23b55 100644 > --- clang/lib/Format/UnwrappedLineParser.cpp > +++ clang/lib/Format/UnwrappedLineParser.cpp > @@ -2744 +2744,2 @@ LLVM_ATTRIBUTE_UNUSED static void printDebugInfo(const > UnwrappedLine &Line, > - llvm::dbgs() << I->Tok->Tok.getName() << "[" << "T=" << > I->Tok->getType() > + llvm::dbgs() << I->Tok->Tok.getName() << "[" > + << "T=" << I->Tok->getType() > > Reading the documentat...
2012 Aug 09
8
[PATCH V2 0/6] virtio-trace: Support virtio-trace
Hi All, The following patch set provides a low-overhead system for collecting kernel tracing data of guests by a host in a virtualization environment. A guest OS generally shares some devices with other guests or a host, so reasons of any problems occurring in a guest may be from other guests or a host. Then, to collect some tracing data of a number of guests and a host is needed when some
2012 Aug 09
8
[PATCH V2 0/6] virtio-trace: Support virtio-trace
Hi All, The following patch set provides a low-overhead system for collecting kernel tracing data of guests by a host in a virtualization environment. A guest OS generally shares some devices with other guests or a host, so reasons of any problems occurring in a guest may be from other guests or a host. Then, to collect some tracing data of a number of guests and a host is needed when some
2020 Jun 03
3
pre-merge checks are switching to buildkite build system
Hello friends, We are switching the pre-merge test build system from Jenkins to Buildkite. That will give authors and reviewers more transparency on what's going on during the build process. For now only members of "pre-merge beta testing" [0] group are affected. As usual, please tell us if something is off. [0] https://reviews.llvm.org/project/view/78/ Kind regards, Mikhail
2009 Sep 11
1
[FOR REVIEW ONLY] guestfish: Enable grouping in string lists
This patch lacks updated documentation and tests. This change adds the ability to group entries in a string list with single quotes. So the string: "'foo bar'" becomes 1 token rather than 2. Consequently single quotes must now be escaped: "\'" resolves to a literal single quote. Incidentally, this change also alters another, probably unintentional behaviour of the previous implementation, in that tokens are separated by any amount of whitespace rather...
2012 Sep 25
5
[PATCHv6 0/3] virtio_console: Add rproc_serial device
...sty at rustcorp.com.au> cc: Michael S. Tsirkin <mst at redhat.com> cc: Amit Shah <amit.shah at redhat.com> cc: Linus Walleij <linus.walleij at linaro.org> cc: Masami Hiramatsu <masami.hiramatsu.pt at hitachi.com> Sjur Br?ndeland (3): virtio_console:Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial virtio_console: Don't initialize buffers to zero drivers/char/virtio_console.c | 318 +++++++++++++++++++++++++++++------------ include/linux/virtio_ids.h | 1 + 2 files changed, 228 insertions(+), 91 delet...
2012 Sep 25
5
[PATCHv6 0/3] virtio_console: Add rproc_serial device
...sty at rustcorp.com.au> cc: Michael S. Tsirkin <mst at redhat.com> cc: Amit Shah <amit.shah at redhat.com> cc: Linus Walleij <linus.walleij at linaro.org> cc: Masami Hiramatsu <masami.hiramatsu.pt at hitachi.com> Sjur Br?ndeland (3): virtio_console:Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial virtio_console: Don't initialize buffers to zero drivers/char/virtio_console.c | 318 +++++++++++++++++++++++++++++------------ include/linux/virtio_ids.h | 1 + 2 files changed, 228 insertions(+), 91 delet...
2012 Oct 15
7
[PATCHv7 0/4] virtio_console: Add rproc_serial driver
...set from Sept 25th, hopefully all review comments has been addressed. The fist patch is a bugfix and migth be applicable for 3.7. Thanks, Sjur Sjur Br?ndeland (4): virtio_console: Free buffer if splice fails virtio_console: Use kmalloc instead of kzalloc virtio_console: Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial drivers/char/virtio_console.c | 328 +++++++++++++++++++++++++++++------------ include/linux/virtio_ids.h | 1 + 2 files changed, 234 insertions(+), 95 deletions(-) -- 1.7.5.4
2012 Oct 15
7
[PATCHv7 0/4] virtio_console: Add rproc_serial driver
...set from Sept 25th, hopefully all review comments has been addressed. The fist patch is a bugfix and migth be applicable for 3.7. Thanks, Sjur Sjur Br?ndeland (4): virtio_console: Free buffer if splice fails virtio_console: Use kmalloc instead of kzalloc virtio_console: Merge struct buffer_token into struct port_buffer virtio_console: Add support for remoteproc serial drivers/char/virtio_console.c | 328 +++++++++++++++++++++++++++++------------ include/linux/virtio_ids.h | 1 + 2 files changed, 234 insertions(+), 95 deletions(-) -- 1.7.5.4