Fix fmt -j.
[rsc] --rw-rw-r-- M 785568 glenda sys 4078 Jan 18 11:59 sys/src/cmd/fmt.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/fmt.c:210,216 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/fmt.c:210,216
nsp = nspaceafter(w[i-1]->text);
if(col+nsp+utflen(w[i]->text) > extraindent+length)
break; /* fold line */
- if(!join && n != 0 && w[i]->bol)
+ if(!join && w[i]->bol)
break;
for(j=0; j<nsp; j++)
Bputc(&bout, ' '); /* emit space; another word will follow */
Remove redundant copyright messages.
[rsc] --rw-rw-r-- M 785568 rsc drawterm 1203 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/charstod.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/charstod.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/charstod.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 9020 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/dofmt.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/dofmt.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/dofmt.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 791 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/dorfmt.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/dorfmt.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/dorfmt.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 6302 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fltfmt.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fltfmt.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fltfmt.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include <float.h>
[rsc] --rw-rw-r-- M 785568 rsc drawterm 3444 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmt.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmt.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmt.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 2714 Jan 18 16:22 sys/src/cmd/unix/drawterm/libc/fmtdef.h
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtdef.h:1,18 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtdef.h:1,4
/*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY
- * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
-
- /*
* dofmt -- format to a buffer
* the number of characters formatted is returned,
* or -1 if there was an error.
[rsc] --rw-rw-r-- M 785568 rsc drawterm 543 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtfd.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtfd.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtfd.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <inttypes.h>
#include <u.h>
#include <libc.h>
[rsc] --rw-rw-r-- M 785568 rsc drawterm 510 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 4763 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtquote.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtquote.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtquote.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 328 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtrune.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtrune.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtrune.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 167 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtstr.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtstr.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtstr.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 519 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtvprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtvprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtvprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 194 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 1195 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/pow10.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/pow10.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/pow10.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 184 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/print.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/print.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/print.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 164 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runefmtstr.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runefmtstr.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runefmtstr.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 224 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runeseprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runeseprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runeseprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 196 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runesmprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runesmprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runesmprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 223 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runesnprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runesnprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runesnprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 212 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runesprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runesprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runesprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 364 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runevseprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runevseprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runevseprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 1103 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runevsmprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runevsmprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runevsmprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 374 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/runevsnprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/runevsnprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/runevsnprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 216 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/seprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/seprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/seprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 188 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/smprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/smprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/smprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 215 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/snprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/snprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/snprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 444 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/sprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/sprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/sprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 8363 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/strtod.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/strtod.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/strtod.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 330 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/fmtfdflush.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/fmtfdflush.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/fmtfdflush.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <inttypes.h>
#include <u.h>
#include <libc.h>
[rsc] --rw-rw-r-- M 785568 rsc drawterm 295 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/vfprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/vfprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/vfprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 358 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/vseprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/vseprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/vseprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 1002 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/vsmprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/vsmprint.c:1,17 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/vsmprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
-
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
[rsc] --rw-rw-r-- M 785568 rsc drawterm 368 Jan 18 16:21 sys/src/cmd/unix/drawterm/libc/vsnprint.c
/n/sourcesdump/2006/0118/plan9/sys/src/cmd/unix/drawterm/libc/vsnprint.c:1,16 -
/n/sourcesdump/2006/0119/plan9/sys/src/cmd/unix/drawterm/libc/vsnprint.c:1,3
- /*
- * The authors of this software are Rob Pike and Ken Thompson.
- * Copyright (c) 2002 by Lucent Technologies.
- * Permission to use, copy, modify, and distribute this software for any
- * purpose without fee is hereby granted, provided that this entire notice
- * is included in all copies of any software which is or includes a copy
- * or modification of this software and in all copies of the supporting
- * documentation for such software.
- * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
- * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE
- * ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
- * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
- */
#include <u.h>
#include <libc.h>
#include "fmtdef.h"
Make REBOOTADDR a physical address again.
[jmk] --rw-rw-r-- M 785568 glenda sys 5203 Jan 18 17:13 sys/src/9/pc/mem.h
/n/sourcesdump/2006/0118/plan9/sys/src/9/pc/mem.h:56,62 -
/n/sourcesdump/2006/0119/plan9/sys/src/9/pc/mem.h:56,62
#define RMCODE (KZERO+0x8000) /* copy of first page of KTEXT */
#define RMBUF (KZERO+0x9000) /* buffer for user space - known to vga */
#define IDTADDR (KZERO+0x10800) /* idt */
- #define REBOOTADDR (KZERO+0x11000) /* reboot code - physical address */
+ #define REBOOTADDR (0x11000) /* reboot code - physical address */
#define CPU0PDB (KZERO+0x12000) /* bootstrap processor PDB */
#define CPU0PTE (KZERO+0x13000) /* bootstrap processor PTE's for 0-4MB */
#define CPU0GDT (KZERO+0x14000) /* bootstrap processor GDT */
[jmk] --rw-rw-r-- M 785568 glenda sys 3572 Jan 18 17:21 sys/src/9/pc/mkfile
/n/sourcesdump/2006/0118/plan9/sys/src/9/pc/mkfile:118,124 -
/n/sourcesdump/2006/0119/plan9/sys/src/9/pc/mkfile:118,124
reboot.h: rebootcode.s
$AS rebootcode.s
- $LD -l -s -T0x1000 -R4 -o reboot.out rebootcode.$O
+ $LD -l -s -T0x11000 -R4 -o reboot.out rebootcode.$O
{echo 'uchar rebootcode[]={'
xd -1x reboot.out |
sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
[jmk] --rw-rw-r-- M 785568 glenda sys 15153 Jan 18 17:14 sys/src/9/port/sysproc.c
/n/sourcesdump/2006/0118/plan9/sys/src/9/port/sysproc.c:320,326 -
/n/sourcesdump/2006/0119/plan9/sys/src/9/port/sysproc.c:320,326
if(((ulong)argp&(BY2PG-1)) < BY2WD)
validaddr((ulong)argp, BY2WD, 0);
validaddr((ulong)a, 1, 0);
- nbytes += (vmemchr(a, 0, 0x7FFFFFFF) - a) + 1;
+ nbytes += ((char*)vmemchr(a, 0, 0x7FFFFFFF) - a) + 1;
nargs++;
}
ssize = BY2WD*(nargs+1) + ((nbytes+(BY2WD-1)) & ~(BY2WD-1));
|