From 7fc7db1332c801ab0c1834d6eda80496908292d8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 4 Sep 2016 17:42:32 -0500 Subject: Remove a chunk of copied header that hasn't been upated in a while. --- www/code.html | 61 ++++++++++------------------------------------------------- 1 file changed, 10 insertions(+), 51 deletions(-) (limited to 'www/code.html') diff --git a/www/code.html b/www/code.html index c0566b4c..77b0b211 100644 --- a/www/code.html +++ b/www/code.html @@ -743,12 +743,8 @@ away in libc.

  • struct passwd *xgetpwuid(uid_t uid)
    struct group *xgetgrgid(gid_t gid)
    struct passwd *xgetpwnam(char *name)

    - -

  • - -
  • void xsetuser(struct passwd *pwd)
  • char *xreadlink(char *name)
  • char *xreadfile(char *name, char *buf, off_t len)
  • @@ -760,53 +756,7 @@ struct passwd *xgetpwnam(char *name)

    lib/lib.c

    -

    Eight gazillion common functions:

    - - +

    Eight gazillion common functions, see lib/lib.h for the moment:

    lib/portability.h

    @@ -1087,6 +1037,15 @@ in the same order they're declared, and that padding won't be inserted between consecutive variables of register size. Thus the first few entries can be longs or pointers corresponding to the saved arguments.

    +

    The main downside is that numeric arguments ("#" and "-" format) +are limited to +- 2 billion on 32 bit platforms (the "truncate -s 8G" +problem), because long is only 64 bits on 64 bit hosts, so the capabilities +of some tools differ when built in 32 bit vs 64 bit mode. Fixing this +kind of ugly and even embedded designs are slowly moving to 64 bits, +so our current plan is to document the problem and wait it out. (If +"x32 mode" and similar becomes popular enough, we may revisit this +decision.)

    +

    See toys/example/*.c for longer examples of parsing options into the GLOBALS block.

    -- cgit v1.2.3