Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 895059 Details for
Bug 1097151
CIFS: getdents call issued by a 32 bit executable fails with ENOMEM
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
This is a very simple re-implementation of ls.
myls.c (text/x-csrc), 605 bytes, created by
Armin W. Singer
on 2014-05-13 09:08:57 UTC
(
hide
)
Description:
This is a very simple re-implementation of ls.
Filename:
MIME Type:
Creator:
Armin W. Singer
Created:
2014-05-13 09:08:57 UTC
Size:
605 bytes
patch
obsolete
>#include <sys/types.h> >#include <dirent.h> >#include <errno.h> >#include <stdio.h> > > > >static void list_files(const char *dirname); > > > >int main(int argc, char **argv) >{ > int i; > > if (1 < argc) > { > for (i = 1; i < argc; i++) > { > printf("%s:\n",argv[i]); > list_files(argv[i]); > } > } > else > { > list_files("."); > } > > return 0; >} > > > >static void list_files(const char *dirname) >{ > DIR *d = opendir(dirname); > struct dirent *e; > > if (d == NULL) > { > perror("opendir"); > return; > } > > while ((e = readdir(d)) != NULL) > { > printf("\t%s\n",e->d_name); > } > > closedir(d); >}
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 1097151
: 895059