| From | Subject | Date |
|---|---|---|
| Alexander Best | mmap/munmap with zero length
i'm wondering why mmap and munmap behave differently when it comes to a length
argument of zero. allocating memory with mmap for a zero length file returns a
valid pointer to the mapped region.
munmap however isn't able to remove a mapping with no length.
wouldn't it be better to either forbid this in mmap or to allow it in munmap?
cheers.
alex
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To...
| Jul 4, 6:48 pm 2009 |
| Giorgos Keramidas | Re: c question: *printf'ing arrays
No not really. You have to do the sizeof() dance.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
| Jul 4, 2:51 am 2009 |
| Giorgos Keramidas | Re: c question: *printf'ing arrays
Note that %x will only print *one* digit for values smaller than 16,
For multi-byte fields, it makes sense to print "0x" first and then
iterate. For single-byte values, it's probably a tiny bit faster to go
only _once_ through for *printf() family formatter, i.e.:
- fprintf(stderr, "\nFixed Value: 0x");
- fprintf(stderr, "%x", hdr->fixed_val);
+ fprintf(stderr, "\nFixed Value: 0x%x", hdr->fixed_val);
Some terminal setups will *not* output the last line if it does not
f...
| Jul 4, 2:59 am 2009 |
| Igor Mozolevsky | Re: c question: *printf'ing arrays
2009/7/4 Giorgos Keramidas <keramida@ceid.upatras.gr>:
[snip]
s/0x%/%#.2hh/g
--
Igor
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
| Jul 4, 4:52 am 2009 |
| xorquewasp | Re: bootstrapping gnat GCC on amd64
Status update:
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00102.html
I replied to the last email in the thread but haven't
heard back yet. Presumably I'll be maintaining the FreeBSD
x86_64 port.
I'm about to start work on the FreeBSD port now.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
| Jul 4, 9:09 am 2009 |
| previous day | today | next day |
|---|---|---|
| July 3, 2009 | July 4, 2009 | July 5, 2009 |
| Washington Odhiambo | Weird Problem with NAT - more details |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | -mm merge plans for 2.6.23 |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [GIT]: Networking |
| Denys Fedoryshchenko | thousands of classes, e1000 TX unit hang |
