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 159344 Details for
Bug 248405
the open(2) man page lists an incorrect requirement on O_DIRECT buffer alignment
[?]
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.
reproducer program
t.c (text/plain), 562 bytes, created by
Jeff Moyer
on 2007-07-16 17:40:15 UTC
(
hide
)
Description:
reproducer program
Filename:
MIME Type:
Creator:
Jeff Moyer
Created:
2007-07-16 17:40:15 UTC
Size:
562 bytes
patch
obsolete
>#define _GNU_SOURCE >#include <stdio.h> >#include <stdlib.h> >#include <fcntl.h> >#include <unistd.h> >#include <string.h> >#include <errno.h> > >static unsigned char buffer[4096] __attribute((aligned (4096))); > >int main(void) >{ > int fd, ret; > char *buf = buffer + 512; > > fd = open("/tmp/x", O_CREAT|O_RDWR|O_DIRECT, 0600); > if (fd < 0) { > perror("open"); > exit(1); > } > > ret = ftruncate(fd, 300); > if (ret < 0) { > printf("truncate returned error %d\n", errno); > exit(1); > } > > ret = read(fd, buf, 512); > if (ret < 0) { > perror("read(2)"); > exit(1); > } > 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 248405
: 159344