Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 12774 Details for
Bug 18033
modified glibc for building a cross compiler tool chain
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes alignment issues of the stat struct
glibc-2.3.1-struct-stat.patch (text/plain), 2.50 KB, created by
Uwe Reimann
on 2003-06-04 04:14:09 UTC
(
hide
)
Description:
Fixes alignment issues of the stat struct
Filename:
MIME Type:
Creator:
Uwe Reimann
Created:
2003-06-04 04:14:09 UTC
Size:
2.50 KB
patch
obsolete
> * sysdeps/unix/sysv/linux/bits/stat.h (struct stat): Move __pad1 > and __pad2 inside #ifndef/else __USE_FILE_OFFSET64. Use types > matching stat64. > >Index: sysdeps/unix/sysv/linux/bits/stat.h >=================================================================== >RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/bits/stat.h,v >retrieving revision 1.15 >diff -c -p -r1.15 stat.h >*** sysdeps/unix/sysv/linux/bits/stat.h 8 Feb 2002 07:48:10 -0000 1.15 >--- sysdeps/unix/sysv/linux/bits/stat.h 3 Jun 2003 08:57:55 -0000 >*************** >*** 1,4 **** >! /* Copyright (C) 1992, 1995-2001, 2002 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 >--- 1,4 ---- >! /* Copyright (C) 1992, 1995-2001, 2002, 2003 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 >*************** >*** 36,45 **** > struct stat > { > __dev_t st_dev; /* Device. */ >- unsigned short int __pad1; > #ifndef __USE_FILE_OFFSET64 > __ino_t st_ino; /* File serial number. */ > #else > __ino_t __st_ino; /* 32bit file serial number. */ > #endif > __mode_t st_mode; /* File mode. */ >--- 36,46 ---- > struct stat > { > __dev_t st_dev; /* Device. */ > #ifndef __USE_FILE_OFFSET64 >+ unsigned short int __pad1; > __ino_t st_ino; /* File serial number. */ > #else >+ unsigned int __pad1; > __ino_t __st_ino; /* 32bit file serial number. */ > #endif > __mode_t st_mode; /* File mode. */ >*************** struct stat >*** 47,56 **** > __uid_t st_uid; /* User ID of the file's owner. */ > __gid_t st_gid; /* Group ID of the file's group.*/ > __dev_t st_rdev; /* Device number, if device. */ >- unsigned short int __pad2; > #ifndef __USE_FILE_OFFSET64 > __off_t st_size; /* Size of file, in bytes. */ > #else > __off64_t st_size; /* Size of file, in bytes. */ > #endif > __blksize_t st_blksize; /* Optimal block size for I/O. */ >--- 48,58 ---- > __uid_t st_uid; /* User ID of the file's owner. */ > __gid_t st_gid; /* Group ID of the file's group.*/ > __dev_t st_rdev; /* Device number, if device. */ > #ifndef __USE_FILE_OFFSET64 >+ unsigned short int __pad2; > __off_t st_size; /* Size of file, in bytes. */ > #else >+ unsigned int __pad2; > __off64_t st_size; /* Size of file, in bytes. */ > #endif > __blksize_t st_blksize; /* Optimal block size for I/O. */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18033
:
9716
|
12709
| 12774 |
12918