[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Dishonest docs ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Arun Sharma forced the electrons to say:
> $ man getcontext
> 
> GETCONTEXT(2)       Linux Programmer's Manual       GETCONTEXT(2)

Similar stuff... this time with glibc... The source is from the SRPM on RHL
6.1 CD.

(I have removed the copyright notices and such...)

My question is, why does the select in my code work? Is it because I have
libc5 also installed on my machine? Does this mean that glibc is still
incomplete?

Afterwards, just check out the implementation of mkdir in glibc - it is too
long to include here. :-) The path is sysdeps/unix/mkdir.c

Binand

Script started on Thu Mar 23 12:28:15 2000
binand@gateway[~/glibc-2.1] cat sysdeps/generic/select.c 
/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

#include <sys/time.h>
#include <sys/types.h>
#include <errno.h>

/* Check the first NFDS descriptors each in READFDS (if not NULL) for read
int
__select (nfds, readfds, writefds, exceptfds, timeout)
     int nfds;
     fd_set *readfds;
     fd_set *writefds;
     fd_set *exceptfds;
     struct timeval *timeout;
{
  __set_errno (ENOSYS);
  return -1;
}
stub_warning (select)

weak_alias (__select, select)
#include <stub-tag.h>
binand@gateway[~/glibc-2.1] exit

Script done on Thu Mar 23 12:28:31 2000

- -- 
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
- --------------- Binand Raj S. (binand@xxxxxxxxxxxxxxxxxxxxx)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE42cJTGXtiwttetWoRAi4gAJoDXcNODpykWfrWoWgihuLRg3FSSwCcCdYf
sntkgVfaTAwUq7mp5Q1HQQE=
=UAlr
-----END PGP SIGNATURE-----