diff options
author | Roland McGrath <roland@gnu.org> | 1996-06-02 19:47:36 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-06-02 19:47:36 +0000 |
commit | 9004bc202e5ea7b8eabca183f4e6c6abe573f802 (patch) | |
tree | c7aa3f8254f9f7019c84bfaf1de8a9d7ee18e31c /sysdeps | |
parent | 847242451c6e53156abead29aa47a3f56cfcc928 (diff) | |
download | glibc-9004bc202e5ea7b8eabca183f4e6c6abe573f802.zip glibc-9004bc202e5ea7b8eabca183f4e6c6abe573f802.tar.gz glibc-9004bc202e5ea7b8eabca183f4e6c6abe573f802.tar.bz2 |
Sun Jun 2 14:56:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* login/pututline_r.c: Fix typo in sizeof for DATA_TMP alloca.
* sysdeps/generic/gnu/types.h (__clock_t): New type.
* sysdeps/unix/sysv/linux/gnu/types.h (__clock_t, __fsid_t): Define
using kernel types.
* time/time.h (clock_t): Include <gnu/types.h> and define using
__clock_t.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/gnu/types.h | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/gnu/types.h | 10 |
2 files changed, 5 insertions, 8 deletions
diff --git a/sysdeps/generic/gnu/types.h b/sysdeps/generic/gnu/types.h index 2a40702..3f0c806 100644 --- a/sysdeps/generic/gnu/types.h +++ b/sysdeps/generic/gnu/types.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1994, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 94, 95, 96 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -50,6 +50,7 @@ typedef long int __off_t; /* Type of file sizes and offsets. */ typedef int __pid_t; /* Type of process identifications. */ typedef int __ssize_t; /* Type of a byte count, or error. */ typedef __u_quad_t __fsid_t; /* Type of file system IDs. */ +typedef long int __clock_t; /* Type of CPU usage counts. */ /* Everythin' else. */ typedef long int __daddr_t; /* The type of a disk address. */ diff --git a/sysdeps/unix/sysv/linux/gnu/types.h b/sysdeps/unix/sysv/linux/gnu/types.h index 4f1b096..939d205 100644 --- a/sysdeps/unix/sysv/linux/gnu/types.h +++ b/sysdeps/unix/sysv/linux/gnu/types.h @@ -43,6 +43,7 @@ typedef struct __u_long val[2]; } __u_quad_t; #endif + typedef __kernel_dev_t __dev_t; /* Type of device numbers. */ typedef __kernel_uid_t __uid_t; /* Type of user identifications. */ typedef __kernel_gid_t __gid_t; /* Type of group identifications. */ @@ -52,13 +53,7 @@ typedef __kernel_nlink_t __nlink_t; /* Type of file link counts. */ typedef __kernel_off_t __off_t; /* Type of file sizes and offsets. */ typedef __kernel_pid_t __pid_t; /* Type of process identifications. */ typedef __kernel_ssize_t __ssize_t; /* Type of a byte count, or error. */ -#ifdef __GNUC__ -typedef long long int __fsid_t; /* Type of file system IDs. */ -#else -typedef struct { /* Type of file system IDs. */ - long val[2]; -} __fsid_t; -#endif +typedef __kernel_fsid_t __fsid_t; /* Type of file system IDs. */ /* Everythin' else. */ typedef __kernel_daddr_t __daddr_t; /* The type of a disk address. */ @@ -68,5 +63,6 @@ typedef long int __swblk_t; /* Type of a swap block maybe? */ /* fd_set for select. */ typedef __kernel_fd_set __fd_set; +typedef __kernel_clock_t __clock_t; #endif /* gnu/types.h */ |