summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f067c19)
SCCS-vsn: lib/libc/gen/closedir.c 4.5
SCCS-vsn: lib/libc/gen/ctime.c 4.3
SCCS-vsn: lib/libc/gen/opendir.c 4.5
SCCS-vsn: lib/libc/gen/readdir.c 4.5
SCCS-vsn: lib/libc/gen/scandir.c 4.2
SCCS-vsn: lib/libc/gen/seekdir.c 4.10
SCCS-vsn: lib/libc/gen/sleep.c 4.4
SCCS-vsn: lib/libc/gen/telldir.c 4.5
SCCS-vsn: lib/libc/gen/valloc.c 4.3
-/* Copyright (c) 1982 Regents of the University of California */
-
-static char sccsid[] = "@(#)closedir.c 4.4 %G%";
+#ifndef lint
+static char sccsid[] = "@(#)closedir.c 4.5 (Berkeley) %G%";
+#endif
-/* @(#)ctime.c 4.2 (Berkeley) %G% */
+#ifndef lint
+static char sccsid[] = "@(#)ctime.c 4.3 (Berkeley) %G%";
+#endif
/*
* This routine converts time as follows.
* The epoch is 0000 Jan 1 1970 GMT.
/*
* This routine converts time as follows.
* The epoch is 0000 Jan 1 1970 GMT.
* ctime(t) just calls localtime, then asctime.
*/
* ctime(t) just calls localtime, then asctime.
*/
#include <sys/types.h>
#include <sys/timeb.h>
#include <sys/types.h>
#include <sys/timeb.h>
-/* Copyright (c) 1982 Regents of the University of California */
-
-static char sccsid[] = "@(#)opendir.c 4.4 %G%";
+#ifndef lint
+static char sccsid[] = "@(#)opendir.c 4.5 (Berkeley) %G%";
+#endif
-/* Copyright (c) 1982 Regents of the University of California */
-
-static char sccsid[] = "@(#)readdir.c 4.4 %G%";
+#ifndef lint
+static char sccsid[] = "@(#)readdir.c 4.5 (Berkeley) %G%";
+#endif
/*
* get next entry in a directory.
/*
* get next entry in a directory.
-/* scandir.c 4.1 82/12/13 */
+#ifndef lint
+static char sccsid[] = "@(#)scandir.c 4.2 (Berkeley) %G%";
+#endif
+
/*
* Scan the directory dirname calling select to make a list of selected
* directory entries then sort using qsort and compare routine dcomp.
/*
* Scan the directory dirname calling select to make a list of selected
* directory entries then sort using qsort and compare routine dcomp.
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
scandir(dirname, namelist, select, dcomp)
char *dirname;
scandir(dirname, namelist, select, dcomp)
char *dirname;
-/* Copyright (c) 1982 Regents of the University of California */
-
-static char sccsid[] = "@(#)seekdir.c 4.9 %G%";
+#ifndef lint
+static char sccsid[] = "@(#)seekdir.c 4.10 (Berkeley) %G%";
+#endif
/*
* seek to an entry in a directory.
/*
* seek to an entry in a directory.
-/* @(#)sleep.c 4.3 (Berkeley) %G% */
+#ifndef lint
+static char sccsid[] = "@(#)sleep.c 4.4 (Berkeley) %G%";
+#endif
#include <signal.h>
#include <setjmp.h>
#include <signal.h>
#include <setjmp.h>
-/* Copyright (c) 1982 Regents of the University of California */
-
-static char sccsid[] = "@(#)telldir.c 4.4 %G%";
+#ifndef lint
+static char sccsid[] = "@(#)telldir.c 4.5 (Berkeley) %G%";
+#endif
/*
* return a pointer into a directory
/*
* return a pointer into a directory
-/* valloc.c 4.2 83/07/01 */
+#ifndef lint
+static char sccsid[] = "@(#)valloc.c 4.3 (Berkeley) %G%";
+#endif
int i;
{
int valsiz = getpagesize(), j;
int i;
{
int valsiz = getpagesize(), j;
- char *cp = malloc(i + (valsize-1));
+ char *cp = malloc(i + (valsiz-1));
j = ((int)cp + (valsiz-1)) &~ (valsiz-1);
return ((char *)j);
j = ((int)cp + (valsiz-1)) &~ (valsiz-1);
return ((char *)j);