csh and tcsh work

Sources of csh/getpwuid.c

csh と tcsh のソース

Bill Joy

First published: October, 1978.

Copyright © 1979 Regents of the University of California.

  1. 1
    /* Copyright (c) 1979 Regents of the University of California */
  2. 2
    #include <pwd.h>
  3. 3
  4. 4
    struct passwd *
  5. 5
    getpwuid(uid)
  6. 6
    register uid;
  7. 7
    {
  8. 8
    	register struct passwd *p;
  9. 9
    	struct passwd *getpwent();
  10. 10
  11. 11
    	setpwent();
  12. 12
    	while( (p = getpwent()) && p->pw_uid != uid );
  13. 13
    	endpwent();
  14. 14
    	return(p);
  15. 15
    }

To the top of this page