Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 882813 Details for
Bug 922642
sys-libs/glibc: seekdir() unexpected directory stream positioning on 32bit arm
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
seekdir test
main.c (text/x-csrc), 744 bytes, created by
Petre Rodan
on 2024-01-22 06:53:47 UTC
(
hide
)
Description:
seekdir test
Filename:
MIME Type:
Creator:
Petre Rodan
Created:
2024-01-22 06:53:47 UTC
Size:
744 bytes
patch
obsolete
>#define _GNU_SOURCE >#include <stdio.h> >#include <sys/types.h> >#include <dirent.h> >#include <stdlib.h> > >int main() >{ > DIR *dp; > const char device_dir[] = "/sys/bus/"; > char *scan_el_dir; > int ret; > const struct dirent *ent; > > dp = opendir(device_dir); > if (!dp) > return -1; > > printf(" pre: "); > while (ent = readdir(dp), ent) { > printf(" %s", ent->d_name); > } > printf("\n"); > > seekdir(dp, 0); > printf(" s0 location: %lu\n", telldir(dp)); > printf(" s0 entries: "); > while (ent = readdir(dp), ent) { > printf(" %s", ent->d_name); > } > printf("\n"); > > rewinddir(dp); > printf(" rew location: %lu\n", telldir(dp)); > printf(" rew entries: "); > while (ent = readdir(dp), ent) { > printf(" %s", ent->d_name); > } > printf("\n"); > > return 0; >}
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 Raw
Actions:
View
Attachments on
bug 922642
: 882813