Re: [DNG] semantic of sizeof operator in C

2019-06-12 Thread Didier Kryn
Le 12/06/2019 à 19:12, s@po a écrit : First of all, I think that this subject derailed to a diferent subject. I Apologise for give my opinion on a concrete subject, because, I never felt it would turn out "to be almost personal.."     Never saw anything personal here and the discussion

Re: [DNG] backups from ext4 to ntfs - extended attributes and access control lists

2019-06-12 Thread spiralofhope
On 2019-05-28 15:53, Rick Moen wrote: [1] Last I heard, Microsoft OSes had nothing quite like a symlink, which was one reason why Cygwin was a bit of a kludge. (They may have fixed that; I wouldn't know ... Yes, they are possible. Notes: https://blog.spiralofhope.com/?p=13539 Tested in

Re: [DNG] semantic of sizeof operator in C (was: simple-netaid from scratch)

2019-06-12 Thread John Morris
On Wed, 2019-06-12 at 08:40 -0400, Hendrik Boom wrote: > > More precisely, sizeof(foo) is the spacing of consecutive elements of > type foo. Most importantly for most people, malloc(sizeof(foo)*n) must not cause unexpected things like a kaboom. signature.asc Description: This is a digitally

Re: [DNG] semantic of sizeof operator in C

2019-06-12 Thread s
Hello guys, First of all, I think that this subject derailed to a diferent subject. I Apologise for give my opinion on a concrete subject, because, I never felt it would turn out "to be almost personal.." My Opinion is based on the Idea that we should not create extra complications, When we are

Re: [DNG] semantic of sizeof operator in C

2019-06-12 Thread Didier Kryn
Le 12/06/2019 à 16:29, Irrwahn a écrit : More precisely, sizeof(foo) is the spacing of consecutive elements of type foo. -- hendrik Thank you Hendrik, that is indeed very aptly phrased! Just for the sake of completeness, the actual language definition takes the usual wordy but precise

Re: [DNG] semantic of sizeof operator in C (was: simple-netaid from scratch)

2019-06-12 Thread Irrwahn
Hendrik Boom wrote on 12.06.19 14:40: > On Wed, Jun 12, 2019 at 01:47:42PM +0200, Irrwahn wrote: > >> >> There is nothing wrong here. Gcc reports the size that is necessary to >> store an object of type sesqui_int, including any padding that has been >> applied, e.g. for alignment reasons. An

Re: [DNG] semantic of sizeof operator in C (was: simple-netaid from scratch)

2019-06-12 Thread Hendrik Boom
On Wed, Jun 12, 2019 at 01:47:42PM +0200, Irrwahn wrote: > > There is nothing wrong here. Gcc reports the size that is necessary to > store an object of type sesqui_int, including any padding that has been > applied, e.g. for alignment reasons. An array of n elements of that type > will in

Re: [DNG] semantic of sizeof operator in C (was: simple-netaid from scratch)

2019-06-12 Thread Irrwahn
Didier Kryn wrote on 12.06.19 12:15: [...] Hi Didier, please allow me to clear up some apparent misconceptions below. > >     What I meant in this discussion is that sizeof() allows to > calculate the number of elements of an array, because we make > assumptions on data layout, but this is

Re: [DNG] backups from ext4 to ntfs - extended attributes and access control lists

2019-06-12 Thread Alexander Bochmann
...on Tue, May 28, 2019 at 04:17:44PM -0700, Bruce Ferrell wrote: > You *could* make a tarball and copy that to NTFS.  Imperfect but no semantic > loss that way Last I checked, --no-xattrs --no-acls --no-selinux still was the default for GNU tar. So if you want to keep any of those, you

Re: [DNG] simple-netaid from scratch

2019-06-12 Thread aitor
Hi Didier, En 12 de junio de 2019 7:40:08 Didier Kryn escribió: sizeof() is not a real function. Its syntax makes it look like a function but it is not. Its argument can be either a variable or a type (which no function can have). It is evaluated at compile time - which is equivalent to