Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread David Wright
On Fri 25 Sep 2020 at 12:28:31 (+), Andy Smith wrote:
> On Fri, Sep 25, 2020 at 07:49:19AM -0400, Greg Wooledge wrote:
> > On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote:
> > > "hostid" tends to return a hexadecimal representation of the first
> > > IPv4 address (but isn't guaranteed to).
> > 
> > unicorn:~$ hostid
> > 007f0101
> > 
> > Doesn't look very useful.  That's just 127.0.1.1 in a 16-bit little
> > endian format.
> 
> Oh, none of mine do that, it seems to pick the other IP address for
> me. But if it's a problem there are other sources of "machine" ID as
> I mentioned. There's some more here:
> 
> http://0pointer.de/blog/projects/ids.html

IIRC Debian's recommendation is that a machine's own hosts entry
should be:

127.0.0.1   localhost
[…]
127.0.1.1   axis.corp   axis# 192.168.1.14

(The comment at the end is there because I generate my hosts file
with a script that puts the 127.0.1.1 into place.)

That might explain the monotonous 007f0101. Perhaps you don't
set you hosts files that way.

> > You know what else works really well?  Just putting a different start
> > time in each system's crontab.
> 
> If that works for you, great, but I have quite a few machines, VMs
> and containers provisioned identically and would rather not have to
> change the scripts or configuration on a per-host basis.

I don't know what scaling you require, nor the time resolution you
can detect, but the last octet of the IPv4 address × 10 seconds
gives you delays of up to ~42 minutes, unique on what was once
called a "Class C" network. (15 seconds will go just over the hour.)

Cheers,
David.



Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Andy Smith
Hello,

On Fri, Sep 25, 2020 at 07:49:19AM -0400, Greg Wooledge wrote:
> On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote:
> > "hostid" tends to return a hexadecimal representation of the first
> > IPv4 address (but isn't guaranteed to).
> 
> unicorn:~$ hostid
> 007f0101
> 
> Doesn't look very useful.  That's just 127.0.1.1 in a 16-bit little
> endian format.

Oh, none of mine do that, it seems to pick the other IP address for
me. But if it's a problem there are other sources of "machine" ID as
I mentioned. There's some more here:

http://0pointer.de/blog/projects/ids.html

> You know what else works really well?  Just putting a different start
> time in each system's crontab.

If that works for you, great, but I have quite a few machines, VMs
and containers provisioned identically and would rather not have to
change the scripts or configuration on a per-host basis.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



Re: Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Greg Wooledge
On Fri, Sep 25, 2020 at 07:44:25AM +, Andy Smith wrote:
> "hostid" tends to return a hexadecimal representation of the first
> IPv4 address (but isn't guaranteed to).

unicorn:~$ hostid
007f0101

Doesn't look very useful.  That's just 127.0.1.1 in a 16-bit little
endian format.

> On a systemd system one
> could instead use /etc/machine-id. On Linux there is also
> /proc/sys/kernel/random/boot_id (but needs dashes removed).
> 
> Systemd timers can do this sort of thing themselves, so no need
> there for this sort of scripting.

You know what else works really well?  Just putting a different start
time in each system's crontab.



Deterministic delays in POSIX shell scripts (Was: Re: notify via virtual terminal available packages)

2020-09-25 Thread Andy Smith
Hello,

On Thu, Sep 24, 2020 at 08:49:07AM -0600, Charles Curley wrote:
> On Thu, 24 Sep 2020 10:38:55 -0400
> Greg Wooledge  wrote:
> > So you're just doing "sleep 1" every time.
> 
> Ah, thank you. Yup. Which is weird, because it worked when I first
> wrote that many years ago.

In cron scripts where I want a "random" delay, I actually tend to
not really want it to be random, but just different for that host as
opposed to other hosts, otherwise deterministic. I like it if the
delay is the same every time on that host as long as it is a
different delay on different hosts.

So what I tend to do is something like:

sleep $(( $(printf %d "0x$(hostid)") % 60 ))m; /some/command

which will sleep for some amount of time between 0 and 59 minutes,
the same amount every time, but different on different hosts.

(Obviously change the "60" and the "m" to different values for
different things, like you might want "1440" and "m" for minutes in
a day.)

Note that in a file parsed by cron you do need to escape both the
'%' (like '\%').

The printf is needed to turn the hexadecimal value from the "hostid"
command into a decimal number. Is there a way to do that with pure
shell internals that isn't very verbose?

"hostid" tends to return a hexadecimal representation of the first
IPv4 address (but isn't guaranteed to). On a systemd system one
could instead use /etc/machine-id. On Linux there is also
/proc/sys/kernel/random/boot_id (but needs dashes removed).

Systemd timers can do this sort of thing themselves, so no need
there for this sort of scripting.

> But I will move toward more use of unattended-upgrades, which
> handles the original problem differently.

Yup, I use apticron and unattended-upgrades for solving these
problems these days.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Please consider the environment before reading this e-mail.
 — John Levine



Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-16 Thread David Wright
On Sat 12 Sep 2020 at 07:41:19 (-0500), Nate Bargmann wrote:
> * On 2020 12 Sep 02:06 -0500, Lone Learner wrote:
> > POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the
> > commands "bc" and "ed" to be part of POSIX.
> > 
> > Yet, in a brand new Debian installation (version 10 for example),
> > these commands are missing by default:
> > 
> > […]
> > 
> > Why does Debian not include these commands by default?
> 
> It's likely because the focus of the Debian Project is not that of
> shipping a strict POSIX compliant system out of the box.
> 
> > Of course, I can install them with "apt-get" and I did that.
> > 
> > apt-get install bc ed
> 
> I believe that 'apt' is preferred over "apt-get" these days.  Simple
> "apt" works well for me.

Some might prefer it for interactive use, but apt-get has a more
stable command line interface, so is better for scripting when,
say, installing all one's preferred packages on a new system.

Cheers,
David.



Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Nate Bargmann
* On 2020 12 Sep 02:06 -0500, Lone Learner wrote:
> POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the
> commands "bc" and "ed" to be part of POSIX.
> 
> Yet, in a brand new Debian installation (version 10 for example),
> these commands are missing by default:
> 
> $ bc
> bash: bc: command not found
> $ ed
> bash: ed: command not found
> 
> Why does Debian not include these commands by default?

It's likely because the focus of the Debian Project is not that of
shipping a strict POSIX compliant system out of the box.

> Of course, I can install them with "apt-get" and I did that.
> 
> apt-get install bc ed

I believe that 'apt' is preferred over "apt-get" these days.  Simple
"apt" works well for me.

> The "bc" binary is only 87K in size. The entire package including the
> man page and documentation is only 209K in size.
> 
> Similarly the "ed" binary is only 55K in size. The entire package is
> only 93K in size.
> 
> What good reason is there not to include these tiny packages even
> though they are specified in POSIX?

Debian has an opt-in survey of the most used packages/files via the
"popularity-contest" package:

https://popcon.debian.org/

It likely shows that the utilities in question are not used often so why
include something that is seldom used?  Those that need them know how to
install them and packages that depend on them will install them.
Including them  by default apparently does little to further the goals
of the Debian Project.

Of course, as one interested in Debian, you are free to create your own
spin that is as POSIX compliant as you can make it.

Good luck!

- Nate

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819



signature.asc
Description: PGP signature


Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Alex Mestiashvili
On 9/12/20 9:05 AM, Lone Learner wrote:
> POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the
> commands "bc" and "ed" to be part of POSIX.
> 
> Yet, in a brand new Debian installation (version 10 for example),
> these commands are missing by default:
> 
> $ bc
> bash: bc: command not found
> $ ed
> bash: ed: command not found
> 
> Why does Debian not include these commands by default? Of course, I
> can install them with "apt-get" and I did that.
> 
> apt-get install bc ed
> 
> The "bc" binary is only 87K in size. The entire package including the
> man page and documentation is only 209K in size.
> 
> Similarly the "ed" binary is only 55K in size. The entire package is
> only 93K in size.
> 
> What good reason is there not to include these tiny packages even
> though they are specified in POSIX?
> 
> [1]: https://pubs.opengroup.org/onlinepubs/009695399/idx/utilities.html
> 
> [2]: https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html
> 

Why should it include? POSIX is just a standard and Debian is even not POSIX
compliant AFAIK :) Also the certification is kind of costly.
But looking from the technical point of view, obviously none of reverse
dependencies of ed or bc are installed on your system and thus theses packages
are not needed. See apt-cache rdepends ed for example.

Best,
Alex



Re: Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Fabrice Bauzac
12 sept. 2020 09:06:19 Lone Learner :

> Why does Debian not include these [posix] commands by default?
> 
I guess many debian users don't care about these commands, so it would be rude 
to impose something wanted by only a part of the users.  And there's the case 
of tiny embedded scarce systems too. If posix compliance is needed, these 
packages (and maybe others) can be easily installed, though an additional 
POSIXLY_CORRECT global setting would need to be done also. Maybe we could 
decide to create a package called "posix" that woult depend on all of them, if 
really needed and someone cares to spend time on that. But if you need to use 
software that need e.g. bc, the package certainly already depends on bc anyway.

Best regards
Fabrice



Why does Debian not include POSIX-specified commands like bc and ed by default?

2020-09-12 Thread Lone Learner
POSIX.1-2001 Utilities[1] and POSIX.1-2008 Utilities[2] both list the
commands "bc" and "ed" to be part of POSIX.

Yet, in a brand new Debian installation (version 10 for example),
these commands are missing by default:

$ bc
bash: bc: command not found
$ ed
bash: ed: command not found

Why does Debian not include these commands by default? Of course, I
can install them with "apt-get" and I did that.

apt-get install bc ed

The "bc" binary is only 87K in size. The entire package including the
man page and documentation is only 209K in size.

Similarly the "ed" binary is only 55K in size. The entire package is
only 93K in size.

What good reason is there not to include these tiny packages even
though they are specified in POSIX?

[1]: https://pubs.opengroup.org/onlinepubs/009695399/idx/utilities.html

[2]: https://pubs.opengroup.org/onlinepubs/9699919799/idx/utilities.html



Re: POSIX compliant sed making newline character

2020-08-22 Thread john doe

On 8/22/2020 6:33 PM, Andrei POPESCU wrote:

On Vi, 21 aug 20, 21:06:05, john doe wrote:


When I can not get the command I want, I break it down to the simplest
command as possible then I build from there to the command I realy want.


Have you considered that solution(s) found might not be usable in the
bigger context, basically wasting your time (as well as of those trying
to help you)?



Actually, Greg has provided me with what I was looking for.

So thanks to Greg and to you for your input.

--
John Doe



Re: POSIX compliant sed making newline character

2020-08-22 Thread Andrei POPESCU
On Vi, 21 aug 20, 21:06:05, john doe wrote:
> 
> When I can not get the command I want, I break it down to the simplest
> command as possible then I build from there to the command I realy want.

Have you considered that solution(s) found might not be usable in the 
bigger context, basically wasting your time (as well as of those trying 
to help you)?

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: POSIX compliant sed making newline character

2020-08-21 Thread john doe

On 8/21/2020 9:00 PM, Greg Wooledge wrote:

On Fri, Aug 21, 2020 at 08:51:44PM +0200, john doe wrote:

Okay, it uses the same syntax as for a subshell '$()'.


No, one of them is $'' and the other is $().  They have nothing in common.

One of them is a form of quoting.  It acts just like '' except that it
performs various backslash expansions.

The other is a command substitution.


Next step is to find a way in which I can use variable substitution.


THIS IS WHY YOU SHOW THE **ACTUAL** COMMAND instead of this obufuscated
bullshit.



When I can not get the command I want, I break it down to the simplest
command as possible then I build from there to the command I realy want.

Thanks anyway.

--
John Doe



Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 08:51:44PM +0200, john doe wrote:
> Okay, it uses the same syntax as for a subshell '$()'.

No, one of them is $'' and the other is $().  They have nothing in common.

One of them is a form of quoting.  It acts just like '' except that it
performs various backslash expansions.

The other is a command substitution.

> Next step is to find a way in which I can use variable substitution.

THIS IS WHY YOU SHOW THE **ACTUAL** COMMAND instead of this obufuscated
bullshit.



Re: POSIX compliant sed making newline character

2020-08-21 Thread john doe

On 8/21/2020 8:37 PM, Greg Wooledge wrote:

On Fri, Aug 21, 2020 at 02:35:35PM -0400, Greg Wooledge wrote:

No.  Use $'...' instead of '...'.

sed '/line1/{N;N;a line-to-add\n}' input-file


Crap.  Of course I meant to write

sed $'/line1/{N;N;a line-to-add\n}' input-file



Okay, it uses the same syntax as for a subshell '$()'.

Next step is to find a way in which I can use variable substitution.

I appriciate your help Greg.


--
John Doe



Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 02:35:35PM -0400, Greg Wooledge wrote:
> No.  Use $'...' instead of '...'.
> 
> sed '/line1/{N;N;a line-to-add\n}' input-file

Crap.  Of course I meant to write

sed $'/line1/{N;N;a line-to-add\n}' input-file



Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 08:09:26PM +0200, john doe wrote:
> On 8/21/2020 7:51 PM, Greg Wooledge wrote:
> > If you're doing this from bash, you could use bash's special $'...'
> > quoting to pass a newline encoded as \n .
> 
> So something like the following:
> 
> $ sed '/line1/{N;N;a line-to-add$'\n'}' input-file

No.  Use $'...' instead of '...'.

sed '/line1/{N;N;a line-to-add\n}' input-file

> > Otherwise, put an ACTUAL newline inside the quotes.  You know, by
> > pressing the Enter key.  That's portable to every sh family shell.
> 
> Actually, I do not know, that is why  I'm  asking in here! :)

The Subject: header is a bit ambiguous, because you mention "POSIX
compliant sed", but you're asking on debian-user, where sed is not
necessarily POSIX compliant (GNU sed is notorious for having many
extensions).

Morever, it's not clear whether your operating environment is also
a POSIX *shell*.

Using a literal newline inside the single quotes is POSIX shell
compatible.  $'...' is not.



Re: POSIX compliant sed making newline character

2020-08-21 Thread john doe

On 8/21/2020 7:51 PM, Greg Wooledge wrote:

On Fri, Aug 21, 2020 at 07:49:07PM +0200, john doe wrote:

Hello all,

I'm trying to use the command provided at (1):

$ sed '/pattern{N;N;a try\d10}' input-file
sed: -e expression #1, char 0: unmatched `{'


Are you missing a second / character after the pattern?

Why are you obfuscating the command?  Why not SHOW the actual command?



Yes, I'm missing a '/'.

the command is:

$ sed '/line1/{N;N;a line-to-add}' input-file


As I understanded, I should make a newline before the right brace.
I thought that '\d10' should do it but as shown above it does not.


I have no idea how you came up with that.

If you're doing this from bash, you could use bash's special $'...'
quoting to pass a newline encoded as \n .



So something like the following:

$ sed '/line1/{N;N;a line-to-add$'\n'}' input-file


Otherwise, put an ACTUAL newline inside the quotes.  You know, by
pressing the Enter key.  That's portable to every sh family shell.



Actually, I do not know, that is why  I'm  asking in here! :)

--
John Doe



Re: POSIX compliant sed making newline character

2020-08-21 Thread Greg Wooledge
On Fri, Aug 21, 2020 at 07:49:07PM +0200, john doe wrote:
> Hello all,
> 
> I'm trying to use the command provided at (1):
> 
> $ sed '/pattern{N;N;a try\d10}' input-file
> sed: -e expression #1, char 0: unmatched `{'

Are you missing a second / character after the pattern?

Why are you obfuscating the command?  Why not SHOW the actual command?

> As I understanded, I should make a newline before the right brace.
> I thought that '\d10' should do it but as shown above it does not.

I have no idea how you came up with that.

If you're doing this from bash, you could use bash's special $'...'
quoting to pass a newline encoded as \n .

Otherwise, put an ACTUAL newline inside the quotes.  You know, by
pressing the Enter key.  That's portable to every sh family shell.



POSIX compliant sed making newline character

2020-08-21 Thread john doe

Hello all,

I'm trying to use the command provided at (1):

$ sed '/pattern{N;N;a try\d10}' input-file
sed: -e expression #1, char 0: unmatched `{'

As I understanded, I should make a newline before the right brace.
I thought that '\d10' should do it but as shown above it does not.

What am I missing?


The idea is to be able to append a line two lines after a match while
being POSIX compliant.

1)
https://stackoverflow.com/questions/30099736/sed-insert-line-after-x-lines-after-match

--
John Doe



Re: Archiver supporting POSIX ACLs, file caps and xattrs?

2012-06-07 Thread Camaleón
On Tue, 05 Jun 2012 22:30:02 +0400, Konstantin Khomoutov wrote:

> I'd like to dump an ext3 filesystem which might uses xattrs and might
> use file capabilities.  I'd very much like to pipe its output to another
> machine (via netcat or some other means) which frames out fsarchiver [1]
> which requires lseeks() on the file it generates. So I'd like to use
> something like tar, cpio or pax.
> 
> Unfortunately, it seems that tar did not support any extended file
> properties yet [2], [3] even though it seems there are patches around
> [5].  Can anyone please suggest a tool which could do *full* archival of
> an ext3 filesystem and which supports dumping its output to stdout?

Have you considered "bsdtar/bsdcpio"? They're both packaged for Debian 
and seem to support acl and extended attributes (at least up to certain 
level):

https://github.com/libarchive/libarchive/wiki/TarExtendedAttributes

> Please Cc me as I'm not subscribed.

Sorry, I can't ;-(

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jqqobg$dr8$1...@dough.gmane.org



Archiver supporting POSIX ACLs, file caps and xattrs?

2012-06-05 Thread Konstantin Khomoutov
I'd like to dump an ext3 filesystem which might uses xattrs and might
use file capabilities.  I'd very much like to pipe its output to
another machine (via netcat or some other means) which frames out
fsarchiver [1] which requires lseeks() on the file it generates.
So I'd like to use something like tar, cpio or pax.

Unfortunately, it seems that tar did not support any extended file
properties yet [2], [3] even though it seems there are patches around
[5].  Can anyone please suggest a tool which could do *full* archival of
an ext3 filesystem and which supports dumping its output to stdout?

Please Cc me as I'm not subscribed.

1. http://www.fsarchiver.org
2. http://lists.gnu.org/archive/html/bug-tar/2008-12/msg4.html
3. http://www.gnu.org/software/tar/#TOCreleases
4. 
http://magazine.redhat.com/2007/07/02/tips-from-an-rhce-tar-vs-star-the-battle-of-xattrs/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120605223002.99245eed.kos...@domain007.com



Re: LDAP and POSIX groups

2008-11-04 Thread Ansgar Burchardt
Alex Samad <[EMAIL PROTECTED]> writes:
> plus I started to use libnss-ldapd, found it a bit more stable

I gave libnss-ldapd a try and it's now working fine without changes on
the configuration.  Thanks.

Ansgar

-- 
PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: LDAP and POSIX groups

2008-11-03 Thread Alex Samad
On Mon, Nov 03, 2008 at 03:19:11PM +0100, frank wrote:
> On Sun, 2008-11-02 at 15:48 +0100, Ansgar Burchardt wrote:
> > 
> > I'm having problems setting up LDAP with POSIX groups.  I can see groups
> > and members with "getent group mygroup", but am not a member after
> > logging in.
> > 
> > To configure LDAP, I added
> > 
> > nss_base_group ou=Group,dc=example,dc=com?sub
> > 
> > to /etc/libnss-ldap.conf and pam_ldap.conf.  This made the "getent"
> > command work.  The LDAP entry for the group looks like this:
> > 
> > dn: cn=mygroup,ou=Group,dc=example,dc=com
> > objectClass: top
> > objectClass: posixGroup
> > cn: mygroup
> > gidNumber: 1000
> > memberUid: ansgar
> > 
> > In online documentation, I also read about the object classes
> > groupOfNames and groupOfUniqueNames, but have no idea how to use them
> > (only posixGroup seems to have the gidNumber property and all three
> > classes are structural).
> 
> The ldap documentation is very rare. Have you modified you
> nsswitch.conf?
could also be ldap security, I found when I getent it would work but not
when I did a id 

plus I started to use libnss-ldapd, found it a bit more stable

> 
> Regards
> Frank
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 

-- 
The sum of the Universe is zero.


signature.asc
Description: Digital signature


Re: LDAP and POSIX groups

2008-11-03 Thread Ansgar Burchardt
Hi,

frank <[EMAIL PROTECTED]> writes:
> On Sun, 2008-11-02 at 15:48 +0100, Ansgar Burchardt wrote:
>> I'm having problems setting up LDAP with POSIX groups.  I can see groups
>> and members with "getent group mygroup", but am not a member after
>> logging in.

> The ldap documentation is very rare. Have you modified you
> nsswitch.conf?

Yes, it says
group: files ldap
right now.  The getent program also works just fine (I think it uses the
functions provided by nsswitch).

Regards,
Ansgar

-- 
PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: LDAP and POSIX groups

2008-11-03 Thread frank
On Sun, 2008-11-02 at 15:48 +0100, Ansgar Burchardt wrote:
> 
> I'm having problems setting up LDAP with POSIX groups.  I can see groups
> and members with "getent group mygroup", but am not a member after
> logging in.
> 
> To configure LDAP, I added
> 
> nss_base_group ou=Group,dc=example,dc=com?sub
> 
> to /etc/libnss-ldap.conf and pam_ldap.conf.  This made the "getent"
> command work.  The LDAP entry for the group looks like this:
> 
> dn: cn=mygroup,ou=Group,dc=example,dc=com
> objectClass: top
> objectClass: posixGroup
> cn: mygroup
> gidNumber: 1000
> memberUid: ansgar
> 
> In online documentation, I also read about the object classes
> groupOfNames and groupOfUniqueNames, but have no idea how to use them
> (only posixGroup seems to have the gidNumber property and all three
> classes are structural).

The ldap documentation is very rare. Have you modified you
nsswitch.conf?

Regards
Frank


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



LDAP and POSIX groups

2008-11-02 Thread Ansgar Burchardt
Hi,

I'm having problems setting up LDAP with POSIX groups.  I can see groups
and members with "getent group mygroup", but am not a member after
logging in.

To configure LDAP, I added

nss_base_group ou=Group,dc=example,dc=com?sub

to /etc/libnss-ldap.conf and pam_ldap.conf.  This made the "getent"
command work.  The LDAP entry for the group looks like this:

dn: cn=mygroup,ou=Group,dc=example,dc=com
objectClass: top
objectClass: posixGroup
cn: mygroup
gidNumber: 1000
memberUid: ansgar

In online documentation, I also read about the object classes
groupOfNames and groupOfUniqueNames, but have no idea how to use them
(only posixGroup seems to have the gidNumber property and all three
classes are structural).

Regards,
Ansgar

-- 
PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



select() in sh (POSIX is crap, but something to have anyway :)

2007-09-25 Thread Oleg Verych
07-08-2007, Vincent Lefevre:
[]
> Not every system has bash. If this is for compatibility, you can learn
> POSIX sh, but e.g. Solaris /bin/sh is not a POSIX sh.

And Windows will have `sh` soon, called "Microsoft Suxe Shell" (C) Novell.

> For this reason and because POSIX sh is limited (you can't execute a
> command and have a timeout on it), I now write all my portable scripts
> in Perl since it is on every system I've met.

Yes. Not having select()-like functionality in the most basic tool, like
shell is a very bad mis-design of POSIX and prior art of BSD. As bad as
whole `make` crap, which is accepted non standard feature of

`test ARG1 -nt ARG2`

So, do you need that useless `sh` wrapper called `make` after that? 

Timeouts can be implemented also. Not portably (maybe), but i don't care
about hype of POSIX(R)ability. Here's thread to read (features debian
kernel team member):

<http://www.zytor.com/pipermail/klibc/2007-September/002167.html>

==
Perl. Perl is XISOP. Whatever, i don't care.
--
-o--=O`C
 #oo'L O
<___=E M


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Shouldn't pax (required by POSIX) have the required priority?

2007-01-27 Thread Roberto C. Sanchez
On Sat, Jan 27, 2007 at 02:21:36AM +0100, Vincent Lefevre wrote:
> The pax package is optional. But as the pax utility is required by
> POSIX[*], shouldn't this package be required?
> 
> [*] http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html
> 
Why?  RPM is also required by LSB and it is not "required" in Debian.
There is nothing saying that your Debian install has to be POSIX
compliant.  Remember, people build embedded devices on Debian using
alternative libc implementations and other such things.  If you want
POSIX compliance, you can install it.

Also, if you read up on the different priorities in Debian, you will see
that optional is the correct priority for pax.

Regards,

-Roberto

-- 
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com


signature.asc
Description: Digital signature


Shouldn't pax (required by POSIX) have the required priority?

2007-01-26 Thread Vincent Lefevre
The pax package is optional. But as the pax utility is required by
POSIX[*], shouldn't this package be required?

[*] http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: POSIX regex packahe

2007-01-24 Thread Kevin Ross
> > I'm surprised that libc6-dev is only a "recommends" and not 
> > a "depends" for gcc.
> 
> Gcc is quite useful without libc6-dev.  For compiling a kernel, for
> example.

Good point.

> > To build slapd, you may also need (according to apt-build 
> info slapd)
> 
> 'apt-get build-dep slapd' will install all of the build 
> dependencies for slapd.

I'm guessing that was meant for the OP, since I didn't want to
install the dependencies, just get a list of them.

-- Kevin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: POSIX regex packahe

2007-01-24 Thread John Hasler
Kevin Ross writes:
> I'm surprised that libc6-dev is only a "recommends" and not a "depends"
> for gcc.

Gcc is quite useful without libc6-dev.  For compiling a kernel, for
example.

> To build slapd, you may also need (according to apt-build info slapd)

'apt-get build-dep slapd' will install all of the build dependencies for
slapd.
-- 
John Hasler


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: POSIX regex packahe

2007-01-24 Thread Kevin Ross
> I need  POSIX regex to compile openldap-2.3.28. Does anyone know which
> package has it?

libc6-dev

I'm surprised that libc6-dev is only a "recommends" and not a "depends" for
gcc.  But whatever.

To build slapd, you may also need (according to apt-build info slapd): 
automake1.9
diffstat
libltdl3-dev
libperl-dev
libsasl2-modules
libsasl2-dev
libwrap0-dev
quilt
libdb4.2-dev
libslp-dev

Hope this helps!
-- Kevin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



POSIX regex packahe

2007-01-24 Thread supercroc1974
Hi,

I need  POSIX regex to compile openldap-2.3.28. Does anyone know which
package has it?

Thanks,

Andre


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



POSIX ACLs on Debian

2006-06-30 Thread Jean-Sebastien Pilon
Hi all, 

I would like to implement POSIX ACLs on a Debian server. 

The partition is formatted with ReiserFS. 

I am using the default 2.4 kernel in 3.1r2 (2.4.27-2-386)

I understand that POSIX ACLs were introduced with 2.6 kernels.

I see that Debian most likely patched the 2.4 kernel for POSIX ACLs 

# cat /boot/config-2.4.27-2-386 | grep POSIX
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_FS_POSIX_ACL=y

But ReiserFS seems to be missing. Can I get it to work with that 2.4
kernel?? 

Or can I install a ReiserFS/POSIX ACLs enabled kernel without having to
compile anything?

Thanks for your help.

NOTICE: This email contains privileged and confidential information and is 
intended only for the individual to whom it is addressed. If you are not the 
named addressee, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately by e-mail if you have received this 
transmission by mistake and delete this communication from your system. E-mail 
transmission cannot be guaranteed to be secured or error-free as information 
could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses. 

AVIS: Le présent courriel contient des renseignements de nature privilégiée et 
confidentielle et n’est destiné qu'à la personne à qui il est adressé. Si vous 
n’êtes pas le destinataire prévu, vous êtes par les présentes avisés que toute 
diffusion, distribution ou reproduction de cette communication est strictement 
interdite.  Si vous avez reçu ce courriel par erreur, veuillez en aviser 
immédiatement l’expéditeur et le supprimer de votre système. Notez que la 
transmission de courriel ne peut en aucun cas être considéré comme inviolable 
ou exempt d’erreur puisque les informations qu’il contient pourraient être 
interceptés, corrompues, perdues, détruites, arrivées en retard ou incomplètes 
ou contenir un virus.  



Re: Posix and SysV message queues

2006-05-10 Thread John L Fjellstad
Magnus Therning <[EMAIL PROTECTED]> writes:

> Are you using Sarge?

Actually, I'm on Kubuntu Dapper. I just checked my Sarge installation,
and the manpage is not there either, so I'm guessing it's a recent
addition.

> I'm on Sid, and the manpage lives in the package manpages (which
> manpages-posix recommends you install :-).

Well, google showed me the actual manpage (once I knew the name), and 
it's exactly what I was looking for.  Thanks alot.

-- 
John L. Fjellstad
web: http://www.fjellstad.org/  Quis custodiet ipsos custodes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Posix and SysV message queues

2006-05-10 Thread Magnus Therning
On Tue, May 09, 2006 at 09:12:59AM -0700, John L Fjellstad wrote:
>Magnus Therning <[EMAIL PROTECTED]> writes:
>
>> Have you read the relevant manpage (mq_overview)?
>> You can't get the information you're interested in from the virtual
>> filesystem, /dev/mqueue?
>
>Doing a man on mq_overview tells me there is no such man page.  man on
>mqueue.h and mq_open doesn't mention a mq_overview man page.
>There is no /dev/mqueue on my filesystem (using udev).
>
>I have the posix man pages installed (both manpages-posix and
>manpages-posix-dev), so I think I should have everything installed (in
>regards to man pages)
>
>I appreciate the help.

Are you using Sarge?

I'm on Sid, and the manpage lives in the package manpages (which
manpages-posix recommends you install :-).

/M

-- 
Magnus Therning(OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

In order to understand recursion you must first understand recursion.


pgpjoVuEhF6yf.pgp
Description: PGP signature


Re: Posix and SysV message queues

2006-05-09 Thread John L Fjellstad
Magnus Therning <[EMAIL PROTECTED]> writes:

> Have you read the relevant manpage (mq_overview)?
> You can't get the information you're interested in from the virtual
> filesystem, /dev/mqueue?

Doing a man on mq_overview tells me there is no such man page.  man on
mqueue.h and mq_open doesn't mention a mq_overview man page.
There is no /dev/mqueue on my filesystem (using udev).

I have the posix man pages installed (both manpages-posix and
manpages-posix-dev), so I think I should have everything installed (in
regards to man pages)

I appreciate the help.

-- 
John L. Fjellstad
web: http://www.fjellstad.org/  Quis custodiet ipsos custodes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Posix and SysV message queues

2006-05-09 Thread Magnus Therning
On Tue, May 09, 2006 at 12:13:19AM -0700, John L Fjellstad wrote:
>I'm trying to write a program using posix and sysV message queues. For
>sysV, there is a utility, ipcs and icprm that lets me inspect and
>remove messages from the queue.  Anyone know if there is a similar
>utility for posix msg queues?

Have you read the relevant manpage (mq_overview)?
You can't get the information you're interested in from the virtual
filesystem, /dev/mqueue?

/M

-- 
Magnus Therning(OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

DRM discourages piracy like Thalidomide promotes healthy childbirth.
 -- Mark Hewitt, on the ORG discuss list


pgpdH6Hb6fUI4.pgp
Description: PGP signature


Posix and SysV message queues

2006-05-09 Thread John L Fjellstad
I'm trying to write a program using posix and sysV message queues. For
sysV, there is a utility, ipcs and icprm that lets me inspect and remove
messages from the queue.  Anyone know if there is a similar utility for
posix msg queues?

-- 
John L. Fjellstad
web: http://www.fjellstad.org/  Quis custodiet ipsos custodes


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



SOLVED Re: Sid: How to clear locales = posix

2006-05-04 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ok, I did the dpkg-reconfigure, and this time set the system-wide 
locale toggle to "yes" from "none". I've been loath to set such 
system-wide things, rather leaving it to "as needed".

That makes everything equal to "en_US", and the alphabetic order is 
followed rather than being separated out by upper-lower case.

Curt-

On Thursday 04 May 2006 11:46, Curt Howland was heard to say:
> Ok, I'm stuck with everything equalling "POSIX". I looked through
> the archives and cannot find how to clear the problem. I recall it
> was something like "delete this file and reconfigure locales", but
> as I said I cannot find the references anywhere.
>
> Does anyone else remember?
>
> =====
> $ locale
> LANG=
> LANGUAGE=en_US:en_GB:en
> LC_CTYPE="POSIX"
> LC_NUMERIC="POSIX"
> LC_TIME="POSIX"
> LC_COLLATE="POSIX"
> LC_MONETARY="POSIX"
> LC_MESSAGES="POSIX"
> LC_PAPER="POSIX"
> LC_NAME="POSIX"
> LC_ADDRESS="POSIX"
> LC_TELEPHONE="POSIX"
> LC_MEASUREMENT="POSIX"
> LC_IDENTIFICATION="POSIX"
> LC_ALL=
> =

- -- 
September 11th, 2001
The proudest day for gun control and central 
planning advocates in American history

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)

iQEVAwUBRFpQ6S9Y35yItIgBAQJ47wf7BtuAyYUXSdjSvKuvu/x8CVWLZMz3I2ZU
CtjWiRyhsfuHq97fNghXO6rFvv+F3RzXR/qGSkLJ49BbxDiH8aosB+GfjoZ57zli
4bTkYhvHCVowuXAMpurQvWbXjwgT2nofi9FP67Vel1u4RB9HC14tYLXiyEP686zG
9Tu5v2ZYp0oAVbqFqWGxpuah0sFZPfujPacnitMNN6xUPVh68+N5e+MRv1DHCzhm
mFhET68Cy8uHbGCmw2SKoew0ijHmukBfMfHTV9S46xqO8lnYw6ohBLCWRQl4sD/i
bvlr1kGNfiYK/cRT8/bDED+kUfVX64bj52QdVzbT/zzfeOwSJGEZGw==
=dS2c
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Sid: How to clear locales = posix

2006-05-04 Thread Curt Howland
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ok, I'm stuck with everything equalling "POSIX". I looked through the 
archives and cannot find how to clear the problem. I recall it was 
something like "delete this file and reconfigure locales", but as I 
said I cannot find the references anywhere.

Does anyone else remember?

=
$ locale
LANG=
LANGUAGE=en_US:en_GB:en
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
=


- -- 
September 11th, 2001
The proudest day for gun control and central 
planning advocates in American history

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)

iQEVAwUBRFohvC9Y35yItIgBAQLjsQf/bVTHED+eX4ZGt+KriLrJu1M3Vap+16iR
hjGUWcf7h1nw4FJ9PbjaJyBGc/UwYTyKItLEUjlPwPsh0SHBalqa0+6D4vSOdjGI
fNa+87O8IY6Kno13l95l49hZdCpFJYtOZWUvvCtQIEZ+DYnXeff3kvJ9GIKZEsCj
obrOL4axUUv1bjnbf3EWUs6gxCGlizSmRQinLxlnViLN4XOrt+upvj1IQ55rvPTI
oXWRNs9kB2HvMrcgZ4M4Ukid3zDUDCOA/J9zg2b3vrUU54TOwIkhqgGQRuWgz7lS
f1KdT2o8jAu5F8Vbl4llVr+L8QQ9XjRkFgEo5VUwR8VAjrYGEz/v4w==
=XovS
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Requesting POSIX/SUS features from glibc

2005-10-31 Thread Paulo M C Aragão
Hi,

Feature test macro _POSIX_SOURCE refers to which edition of POSIX.1 ?

And _XOPEN_SOURCE refers to which SUS version ?

I've got installed libc6 and glibc-doc both 2.3.5-7. I've carefully read the 
documentation from these packages, but couldn't find clear, unambiguous 
answers. It was clear that:

_POSIX_C_SOURCE >=1 POSIX.1 1990
_POSIX_C_SOURCE >=2 POSIX.2 1992
_POSIX_C_SOURCE >= 199309L  POSIX.1 1993
_POSIX_C_SOURCE >= 199506L  POSIX.1 1996
_XOPEN_SOURCE 500   SUS2

but _POSIX_SOURCE vaguely referred to the POSIX.1 standard, no edition 
mentioned, and _XOPEN_SOURCE to "functionality described in the X/Open 
Portability Guide".

Thanks
Paulo


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Ken Irving
On Thu, Apr 01, 2004 at 02:10:46PM -0800, William Ballard wrote:
> Given:
> 
> A - 1
> A - 2
> B - 1
> B - 2
> 
> what's the simplest command or perl script to print it as:
> 
> A (1, 2)
> B (1, 2)
> 
> or something equivalent.

Hmm, one of the zillions of ways of doing something equivalent, with the
data in file tmp/msg-data:

  $ perl -nae '{push @{$x{$F[0]}},$F[2]}END{foreach(sort keys %x){print "$_ ("; print 
join(", ",@{$x{$_}});print ")\n"}}' tmp/msg-data 
  A (1, 2)
  B (1, 2)

or perhaps a bit more legibly:

#!/usr/bin/perl -w
use strict;

my %x;

while (  ) {
chomp;
my @F = split;
push @{$x{$F[0]}}, $F[2]
}

foreach ( sort keys %x ) {
print "$_ (";
print join(", ",@{$x{$_}});
print ")\n"
}

__END__
A - 1
A - 2
B - 1
B - 2

This builds a hash keyed on the first space-delimited token on a line,
with the hash value being an array reference to which the 3rd token
is pushed.  Afterwards the hash is iterated for printing, and the arrays
pretty-printed using join.

Ken

-- 
Ken Irving, Research Analyst, [EMAIL PROTECTED], 907-474-6152
Water and Environmental Research Center
Institute of Northern Engineering
University of Alaska, Fairbanks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Thorsten Haude
Moin,

* William Ballard wrote (2004-04-02 00:10):
>Given:
>
>A - 1
>A - 2
>B - 1
>B - 2
>
>what's the simplest command or perl script to print it as:
>
>A (1, 2)
>B (1, 2)
>
>or something equivalent.

Is that an array? Depending on the size and whether it's fixed I would
use either printf or something with join.


Thorsten
-- 
Once upon the time, the music industry had something to offer to us - they
distributed the music we would have never heard without them.
Now, they need laws that prevent us to do ourself what they do for money.


pgp0.pgp
Description: PGP signature


Stumped with a Posix/Perl Question

2004-04-01 Thread William Ballard
Given:

A - 1
A - 2
B - 1
B - 2

what's the simplest command or perl script to print it as:

A (1, 2)
B (1, 2)

or something equivalent.

Thanks


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



POSIX spec (was: Linux permissions and which(1))

2003-09-06 Thread moseley
Ok, I'm seeing different behavior with differnet shells and different 
operating systems.

I've tried looking for the POSIX spec to see the correct behavior but 
not having much luck with my googling skills today.

Anyone know where to look up the POSIX spec on how a shell is suppose to
use the PATH and file permissions to locate a program to run?


-- 
Bill Moseley
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Runaway processes-Native Posix threading Library-Old linux threads

2003-06-12 Thread SRIKANTH NS
Hi All,

I had an experience today. I opened www.kumudam.com   (an Indian
vernacular language site) using opera7.11 in RH7.3 (Celeron 900 MHz,
128 MB  RAM with IceWm desktop, not the KDE) with the fonts (
kumudam.ttf)  installed. The site did not open fully and there was lot
of disk thrashing going  began. I thought of giving "top" to see the
offending program, but no way. Nothing registered, mouse clicks, key
strokes, nothing. After waiting for more than 7 minutes, I had no
other go other than a hard reset.
Then I was reading "All about kernel 2.6 " in Linux For U Magazine
(www.linuxforu.com  , a magazine for linux users in India )  by KT
Ligesh in which a paragraph about old linux threads was mentioned. It
was mentioned that it can take about 15 minutes for that old threading
to start &stop 1,00,000 threads. With new Native Posix threading
Library (NPTL) an eightfold improvement is expected.

Anyway all this geeky jargon is way over my head,  my only doubt is
whether such a phenomenon is the one causing problems like I mentioned
in first paragraph. At that time apart from Opera only gedit was open
and  three more terminal windows.
I was having this problem of runaway processes when I used KDE ,
that's why I switched to IceWm, but even here ? Or am I looking in the
wrong direction?

Any more light on the problem faced as well as this improved threading
in Linux by Gurus in this group will be very much appreciated.

N S Srikanth


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: POSIX shell

2002-11-10 Thread Bob Proulx
Stephen Gran <[EMAIL PROTECTED]> [2002-11-10 19:41:08 -0500]:
> This one time, at band camp, Bruce Park said:
> > What exactly is a POSIX shell?

> It is a shell that complies with the Portable Operating System Interface
> - basically, system calls, expected behaviors and that sort of thing.
> Makes it easier for programmers to write cross-platform programs.
> 
> Grossly oversimplified, but google could give you quite a bit more, if
> you're interested in looking around.

Yes.  You might want to poke around here.  (v3 is out but I don't know
of an online version of it.)  This is the standard to which a standard
conforming shell must comply.  Or it is a bug and you can chastise them
publicly for it.  :-0

  http://www.unix-systems.org/single_unix_specification_v2/xcu/sh.html

Bob



msg12230/pgp0.pgp
Description: PGP signature


Re: POSIX shell

2002-11-10 Thread Stephen Gran
This one time, at band camp, Bruce Park said:
> What exactly is a POSIX shell?
> 
> bp

It is a shell that complies with the Portable Operating System Interface
- basically, system calls, expected behaviors and that sort of thing.
Makes it easier for programmers to write cross-platform programs.

Grossly oversimplified, but google could give you quite a bit more, if
you're interested in looking around.
-- 
 --
|Stephen Gran  |  You'll wish that you had done some of the|
|[EMAIL PROTECTED] |hard things when they were easier  |
|http://www.lobefin.net/~steve |  to do.   |
 --



msg12226/pgp0.pgp
Description: PGP signature


POSIX shell

2002-11-10 Thread Bruce Park
What exactly is a POSIX shell?

bp





_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Enabling thread concurrency in Posix Threads.

2002-06-18 Thread Shivakumar Patil



Hi There,


I have Potato 2.2.19 kernel and the following packages installed 
libc6-dev 2.2.5-4,
libpth-dev   1.4.1-2 and glibc-doc 2.2.5-4.  I was trying to understand the 
concepts of threads on linux. I executed a program from Stevens book and is 
attached to this mail. On the commandline I passed the following arguments.


   The first argument being the executable , then no of items 
to be processed , no of threads that are used to process these items. 
Following is the output. From the this output , It seems to me that only one 
thread is performing and rest of them are not allowed to run. The 
Set_concurrency() method uses pthread_setconcurrency() internally, so I 
donot where the problem is and I am linking the obj with pthread library.





~/unpv22e/mutex$ ./prodcons1 100 10
In void Set_concurrency(int level)
count[0] = 100
count[1] = 0
count[2] = 0
count[3] = 0
count[4] = 0
count[5] = 0
count[6] = 0
count[7] = 0
count[8] = 0
count[9] = 0

  Can anybody suggest me where the problem is?









_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
/* include main */
#include	"unpipc.h"

#define	MAXNITEMS 		100
#define	MAXNTHREADS			100

int		nitems;			/* read-only by producer and consumer */
struct {
  pthread_mutex_t	mutex;
  int	buff[MAXNITEMS];
  int	nput;
  int	nval;
} shared = { PTHREAD_MUTEX_INITIALIZER };

void	*produce(void *), *consume(void *);

int
main(int argc, char **argv)
{
	int			i, nthreads, count[MAXNTHREADS];
	pthread_t	tid_produce[MAXNTHREADS], tid_consume;

	if (argc != 3)
		err_quit("usage: prodcons1 <#items> <#threads>");
	nitems = min(atoi(argv[1]), MAXNITEMS);
	nthreads = min(atoi(argv[2]), MAXNTHREADS);

	Set_concurrency(nthreads);
	for (i = 0; i < nthreads; i++) {
		count[i] = 0;
		Pthread_create(&tid_produce[i], NULL, produce, &count[i]);
	}

	for (i = 0; i < nthreads; i++) {
		Pthread_join(tid_produce[i], NULL);
		printf("count[%d] = %d\n", i, count[i]);	
	}

	Pthread_create(&tid_consume, NULL, consume, NULL);
	Pthread_join(tid_consume, NULL);

	exit(0);
}
/* end main */

/* include produce */
void *
produce(void *arg)
{
	for ( ; ; ) {
		if (shared.nput >= nitems) {
			return(NULL);		/* array is full, we're done */
		}
		shared.buff[shared.nput] = shared.nval;
		shared.nput++;
		shared.nval++;
		*((int *) arg) += 1;
	}
}

void *
consume(void *arg)
{
	int		i;

	for (i = 0; i < nitems; i++) {
		if (shared.buff[i] != i)
			printf("buff[%d] = %d\n", i, shared.buff[i]);
	}
	return(NULL);
}
/* end produce */



POSIX

2001-09-09 Thread Wendell Cochran

  Re: dpkg-scanpackages on an official  [ "der.hans"
<[EMAIL PROTECTED]> ]
  Re: how do i setup a maildir structu  [ Rino Mardo <[EMAIL PROTECTED]>
]
  gmix audio level problems [ Craig Holyoak
<[EMAIL PROTECTED]> ]
  Re: Good mail management techniques?  [ Erik Steffl
<[EMAIL PROTECTED]> ]
  Re: PCMCIA & 2.4.9[ [EMAIL PROTECTED] (Bostjan
Mull ]
  Re: Can the scsi emulation kill the   [ Timeboy <[EMAIL PROTECTED]> ]
  Re: gmix audio level problems [ Timeboy <[EMAIL PROTECTED]> ]
  mailq [ "Michael P. Soulier"
 ]
  Re: mailq [ Davor Balder
<[EMAIL PROTECTED] ]
  Re: dpkg-scanpackages on an official  [ Martin F Krafft
<[EMAIL PROTECTED] ]
  Re: newbe-ish question - POSIX ?  [ Davor Balder
<[EMAIL PROTECTED] ]
  printing on hp610cdjet[ --- <[EMAIL PROTECTED]> ]
  how to make ksymoops log into a read  [ --- <[EMAIL PROTECTED]> ]
  Re: OT - blocking mail from specific  [ [EMAIL PROTECTED]
(Miquel v ]
  Re: kernel 2.4.x and unstable [ Ross Burton
<[EMAIL PROTECTED]> ]
  Re: PCMCIA & 2.4.9[ secher <[EMAIL PROTECTED]> ]


  Date: 
Sun, 9 Sep 2001 02:24:09 -0700 (MST)
  From: 
"der.hans" <[EMAIL PROTECTED]>
To: 
debian users 
Subject: 
Re: dpkg-scanpackages on an official mirror
   Message-ID: 
   
<[EMAIL PROTECTED]>
  Content-Type: 
TEXT/PLAIN; charset=ISO-8859-15
 Content-Transfer-Encoding: 
QUOTED-PRINTABLE



Am 09. Sep, 2001 schwätzte Martin F Krafft so:

> also sprach der.hans (on Sat, 08 Sep 2001 01:38:13PM -0700):
> > Am 08. Sep, 2001 schwäzte Martin F Krafft so:
>
>schwätzte...

Blöder Tippfehler, gell? :(

> well, i know this. but the official mirror's pool/ tree has
> duplicates in it, as all of potato, woody, and sid index into it. some
> package version 2.0 might only be in woody while 1.3 exists in
> potato... then pool/m/myprogram will exist in two version and the
> Packages.gz file of the respective distro should include only the
> appropriate version/package.

Hmm. What's the source for determining what's in potato, woody and sid?

> or is this what ./override is for? if not, what is *it's* purpose?

It's for overriding stuff :). As I remember the docs, they said
something
about CD vendors. Allows them to make changes. Might be important for
CD1
vs. CD2, etc. Might enable them to include/remove things, e.g. crypto
packages.

ciao,

der.hans
-- 
# [EMAIL PROTECTED] home.pages.de/~lufthans/ www.DevelopOnline.com
#  kill telnet, long live ssh - der.hans


   Date: 
 Sun, 9 Sep 2001 12:40:20 +0800
   From: 
 Rino Mardo <[EMAIL PROTECTED]>
 To: 
 debian-user@lists.debian.org
 CC: 
 Martin F Krafft <[EMAIL PROTECTED]>
 Subject: 
 Re: how do i setup a maildir structure with
postfix?
Message-ID: 
 <[EMAIL PROTECTED]>
   Content-Type: 
 multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
 boundary="mxv5cy4qt+RJ9ypb"
 Content-Disposition: 
 inline




On Sat, Sep 08, 2001 at 05:42:33PM +0200 or thereabouts, Martin F Krafft
wrote:
> also sprach Rino Mardo (on Sat, 08 Sep 2001 11:39:54AM +0800):
> > the question is: how do i setup a maildir structure in linux with the above
> > configuration in mind.
> 
> Maildir uses the directory ~/Maildir/ by default, so add the following
> line to your postfix's main.cf:
> 
> home_mailbox = Maildir/
> 
> from now on, postfix will deliver to Maildir/ in Maildir format
> (because of the trailing slash, Maildir's "flag") by default.
> 
> however, since you are using procmail, you don't have to make that
> site-wide, because you can simply postfix your mailboxes with a slash
> to make them Maildirs. for instance, the following procmailrc will
> deliver to Maildirs.
> 
> ===
> VERBOSE=no
> LOGABSTRACT=yes
> MAILDIR=$HOME/Mail
> DEFAULT=$MAILDIR/inbox/
> 
> :0
> * ^Return-Path:[EMAIL PROTECTED]
> $MAILDIR/debian/
> ===
> 
> which will write all messages to debian user into the ~/Mail/debian/
> Maildir (containing cur, tmp, and new), and everything else into
> ~/Mail/inbox/
>

Re: newbe-ish question - POSIX ?

2001-09-09 Thread Davor Balder
On Sun, Sep 09, 2001 at 06:08:48PM +0530, [EMAIL PROTECTED] wrote:
> What is POSIX and what does it entail ?
> 
> Thanks (Sorry for the stupid question)
> SK
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Hi!!!

There are no stupid questions, just supid answers... 


POSIX means Portable Operating System Interface for Computer Environments. This 
is system developed by Institute of Electrical and Electronics Engineers 
(I) because many different UNIX-like systems were developed. Basically, 
this standard defines how Unix like systems should operate and it is a de-facto 
standard to which all Unix-like systems should (or rather must) adhere. 
Basically, this has to do with system calls.

Linux also adheres to Linux Filesystem Standard (FSSTND) and that defines where 
specific files and directories should be placed in the Linux file structure.

I hope this helps, 


Take care, 


Davor


pgpsZynkf1lE9.pgp
Description: PGP signature


newbe-ish question - POSIX ?

2001-09-09 Thread shyamk
What is POSIX and what does it entail ?

Thanks (Sorry for the stupid question)
SK



Antivirus para proteger el correo electrónico Posix

2001-08-23 Thread Carlos Del Prado
Hola.

Cual es el mejor antivirus para su distribución, es para el servidor de
correo.

Gracias.



POSIX tar archive

2000-02-20 Thread lbianca
a friend asked me to extract a text file from a floppy "unix formatted".
I can see this file looking with mc (is a little data base of pc spare 
parts) in /dev/fd0, but i can't mount the floppy: no vfat, no ext2, no 
sysv.
The command " file /tmp/foo " produces this output:
" POSIX tar archive " but the command " tar xvfp /dev/fd0 " 
produces a strange file that i can't view in mc. 

Could somebody help me to understand a little more ;-))

Luigi

i cp /dev/fd0  to /mnt/dos1 and after i cancelled all the "garbage" 
before and after the file ...  but that's the way winzozz's peoples 
resolve problems ... and i would NOT dye as a winzozz man ;-)))


POSIX arguments

1998-09-15 Thread Ole J. Tetlie
Is there any electronic information available that describes
what a getopt library (no, not another one in C :-) must
allow and disallow to be POSIX compliant?

-- 
.elOle.


Re: posix procs: where is it gone ?

1998-06-24 Thread Torsten Hilbrich
On: Tue, 23 Jun 1998 17:07:42 +0200 (METDST) Stelios Parnassidis writes:
> 
>  Is the old (?) ps, the one with the PS_PEERSONALITY setting, to
>  find under debian ?
> 
>  I'm running/poerting a huge package related to my job, which rely
>  very heavy on the posix conform switches of 'ps'.
> 
>  One of a sudden sometime ago nothing goes anymore because in many
>  cases system("ps -ef ... ) is used, and it must stay like
>  that... :(

>From the manpage:

   to function correctly at some point in the future.  If you
   want to turn off the warnings, set the  I_WANT_A_BROKEN_PS
   environment variable.

This seems to be the quickest solution.

Torsten

-- 
Whenever a system becomes completely defined, some damn fool discovers
something which either abolishes the system or expands it beyond recognition.
Fortune Cookie
PGP Public key available


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


posix procs: where is it gone ?

1998-06-23 Thread Stelios Parnassidis

 Is the old (?) ps, the one with the PS_PEERSONALITY setting, to find
 under debian ?

 I'm running/poerting a huge package related to my job, which rely
 very heavy on the posix conform switches of 'ps'.

 One of a sudden sometime ago nothing goes anymore because
 in many cases system("ps -ef ... ) is used, and it must stay like
 that... :(


 Stelios Parnassidis



--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: What happened to the ps POSIX options

1998-02-23 Thread Scott Ellis
On 23 Feb 1998, Tommi Kaariainen wrote:

> I updated procps (+ other stuff) to the newest version(s) in the Debian
> mirror I use (sunsite.auc.dk) and found out that the (much more useful) 
> POSIX-style ps options no longer work. Why were they removed?

Debian fell back to use the unmodified upstream procps release, which
doesn't have POSIX/UNIX98-style options yet.  There are plans for the
upstream source to incorperate these options again in the future, but they
are gone for the moment.

-- 
Scott K. Ellis <[EMAIL PROTECTED]> http://www.gate.net/~storm/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: What happened to the ps POSIX options

1998-02-23 Thread Tommi Kaariainen
Tommi Kaariainen <[EMAIL PROTECTED]> writes:

> I updated procps (+ other stuff) to the newest version(s) in the Debian
> mirror I use (sunsite.auc.dk) and found out that the (much more useful) 
> POSIX-style ps options no longer work. Why were they removed?
> 
> /Tommi Kääriäinen/  

Aargh, this is not what I meant to write. What I was thinking goes 
like this:

I updated procps (+ other stuff) in my system (running hamm) to the newest 
version(s) _from_ the Debian mirror I use (sunsite.auc.dk) and found out 
that the (much more useful) POSIX-style ps options no longer work. Why 
were they removed?

/Tommi Kääriäinen/


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


What happened to the ps POSIX options

1998-02-23 Thread Tommi Kaariainen

I updated procps (+ other stuff) to the newest version(s) in the Debian
mirror I use (sunsite.auc.dk) and found out that the (much more useful) 
POSIX-style ps options no longer work. Why were they removed?

/Tommi Kääriäinen/  


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: IEEE POSIX Standards and Linux

1997-09-26 Thread David Wright
On 26 Sep 1997, TENCC01.LEWIS01 wrote:

> To be an actual factual posix system you have to pass a test suite that 
> requires
> a bunch of money.  If the test suite is ever put in public domain, linux may 
> get
> a posix rating.

These are rather old postings but I think they shed some light:

--8<

Date: Sat Oct 12 00:27:36 BST 1996
From: [EMAIL PROTECTED], Bruce Perens <[EMAIL PROTECTED]>
To: debian-announce@lists.debian.org, debian-announce@lists.debian.org
Subject: Debian and POSIX

  DEBIAN AND POSIX

Many Linux distribution creators have published statements about their
committment to the POSIX standard recently. The POSIX standard is a
method of assuring source-code-level compatibility across a number of
different software platforms. It specifies the software interface of a
Unix-like operating system. A program using the standard facilities
should compile properly and run the same way on any system that
complies with the standard.

Linux was already close to POSIX before anyone started working on
actual compliance with the standard. In the past year or so it has
gotten much closer to POSIX, as some Linux distribution creators have
been running POSIX compliance tests and have been feeding the bugs they
find back to the authors. We thank them for this effort.

Until recently it was prohibitively expensive for the Debian GNU/Linux
project to participate in the POSIX effort, because there was a high
fee for copies of the standard, the compliance test software, and
certification by a POSIX lab. Now, the U.S. Government National
Institute of Standards and Technology has released a free version of
their Federal Information Processing Standard 151-2 compliance test
software, which tests for compliance with a superset of POSIX. They
decided to make that software free so that more people would implement
POSIX, and we applaud that decision. We got right to work on Debian's
POSIX compliance. We currently plan to provide the capability for
end-user verification - you can run the POSIX test suite on your own
system if you like.

There will be several POSIX-compliant Linux distributions available under
the GPL. Debian GNU/Linux is the only one that's made by a non-profit
organization rather than a for-profit concern. Our team of 110 volunteer
developers have built a system that's equal to or better than any Linux
distribution you can find.

As always, we invite all organizations, for-profit and non-profit, to
derive their systems and software from Debian GNU/Linux and to
participate in the Debian development effort. In this way, you can
acquire a POSIX-compliant base upon which you can add value.
You don't need our permission to distribute and sell Debian, you need
only comply with the software licenses of the programs it contains.
This offer is even open to the developers of other Linux distributions.

Many Thanks

Bruce Perens
Debian Project Leader

--

Date: Sun Oct 13 01:20:36 BST 1996
From: [EMAIL PROTECTED], David Frey <[EMAIL PROTECTED]>
To: Bruce Perens <[EMAIL PROTECTED]>, Bruce Perens <[EMAIL PROTECTED]>
Cc: debian-user@lists.debian.org, debian-user@lists.debian.org
Subject: Re: Debian + POSIX

Hi Bruce,

>Actually, until recently you could only be POSIX compliant by paying
>a lot of money. You paid for copies of the standard, you paid for
>validation software, and you paid for a POSIX compliance lab to certify
>you. So it was a way for the well-funded commercial Linux projects to
>differentiate themselves from high-quality but underfunded efforts like
>Debian. Now, they will have to use the still-costly X/Open standards
>to differentiate themselves.

Just my CHF 0.02:
I suppose that the POSIX-compliance test is relatively cheap[1] in 
comparison
to the XPG4 branding (afterward the branding are allowed to call your 
``Un*x''-clone a ``Unix'' [note the capitalization]).
I don't know how much the POSIX compliance testing actually costs, but
buying the standards is affordable[2] (quoting IEEE 1996 catalog):
   member  list
1003.1b-1993 (POSIX.1, C-API, Realtime extension)  $68.40 $114.00 
1003.2d-1994 (POSIX.2, Shell&Utilities, Amendment 1)   $40.08  $68.00
1003.3-1991  (Test methods for measuring conformance to POSIX)
   $22.20  $37.00
[skipping FORTRAN]
9945-1:1990(E) (POSIX.1, C-API f. Sys. Application C)  $54.00  $90.00
9945-2:1993(E) (POSIX.2 Shell and utilities)  $111.00 $185.00
2003.1:1992(Test methods for measuring system conformance to POSIX
part 1: System Integration)$57.60  $96.60

>NIST developed a compliance test suite for the U.S. Federal Information
>Processing Standard. This is a superset of POSIX. They recently decided
>to make it free, so that more people would implement POSIX. W

Re: IEEE POSIX Standards and Linux

1997-09-26 Thread TENCC01.LEWIS01

I can't say debian is "posix conformant".  However, I have been
developing c code on hpux, dec osf1, and aix for some years now.  Linux
is as good as any of those.  When it comes to supporting old standards
like bsd, linux is probably a bit better.

To be an actual factual posix system you have to pass a test suite that requires
a bunch of money.  If the test suite is ever put in public domain, linux may get
a posix rating.

jim

__ Reply Separator _
Subject: IEEE POSIX Standards and Linux
Author:  [EMAIL PROTECTED] (SMTP.MNETO1) at ~AMSCCSSW
Date:9/25/97 9:23 PM


Dear Sirs,

  I am a Linux user and I need information regarding linux (debian,RedHat,
Slackware) and its conformance to IEEE POSIX standards, specially those
that Microsoft Windows NT is not compliant.

  Best regards,

Mario de Mello B. Neto.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] .
Trouble?  e-mail to [EMAIL PROTECTED] .


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: IEEE POSIX Standards and Linux

1997-09-26 Thread jdassen
On Sep 25, Mario de Mello B. Neto wrote
>   I am a Linux user and I need information regarding linux (debian,RedHat,
> Slackware) and its conformance to IEEE POSIX standards, specially those
> that Microsoft Windows NT is not compliant.

I'm nowhere near a standards expert, but I suspect most Linux distributions
are in effect POSIX.1 compliant, or very close.

[extracted from http://www.lasermoon.co.uk/ft2/FT2.html]
| The NIST (National Institute of Standards and Technology) have made the
| POSIX.1 FIPS151-2 test suites freely available and as such the kernel and
| relevant libraries have been made Conformant and are already freely
| available.

These test suites can be found on Debian mirrors as
project/misc/NIST-PCTS_151-2.tar.gz . You might one to check them out.

On Sep 25, Britton wrote
> From what I have heard, this could be tricky.  It seems amazing, but the
> IEEE, in it's infinite wisdom, has decided that people should pay to find
> out about some of the standards it issues.  Anyone know if this is still
> the case?

Probably. The development of standards by standards organizations is often
financed by selling the standards.

HTH,
Ray
Ray
-- 
Obsig: developing a new sig


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: IEEE POSIX Standards and Linux

1997-09-26 Thread Britton

>From what I have heard, this could be tricky.  It seems amazing, but the
IEEE, in it's infinite wisdom, has decided that people should pay to find
out about some of the standards it issues.  Anyone know if this is still
the case?

On Thu, 25 Sep 1997, Mario de Mello B. Neto wrote:

> Dear Sirs,
> 
>   I am a Linux user and I need information regarding linux (debian,RedHat,
> Slackware) and its conformance to IEEE POSIX standards, specially those
> that Microsoft Windows NT is not compliant.
> 
>   Best regards,
> 
> Mario de Mello B. Neto.
> 
> 
> --
> TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
> [EMAIL PROTECTED] . 
> Trouble?  e-mail to [EMAIL PROTECTED] .
> 
> 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


IEEE POSIX Standards and Linux

1997-09-26 Thread Mario de Mello B. Neto
Dear Sirs,

  I am a Linux user and I need information regarding linux (debian,RedHat,
Slackware) and its conformance to IEEE POSIX standards, specially those
that Microsoft Windows NT is not compliant.

  Best regards,

Mario de Mello B. Neto.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


xntp mystery solved: POSIX timezone brain damage

1997-04-02 Thread Randy Gobbel
[For anti-spam purposes, my email address does not appear in canonical form
in this message, but if you're not trying to sell me anything, I welcome
replies.  My username is gobbel, the name of myhost is cogsci.ucsd.edu. -RG]

After digging around a bit more, I discovered that the 20-second offset is
due to overzealous compliance with a broken POSIX requirement in version
7.55 of the timezone package.  Apparently the POSIX committee, in a moment
of idiocy, decreed that POSIX time leave off the leap seconds that have
been added to UTC periodically since 1972.  There have been 20 of them,
leading to the 20-second discrepancy.  It appears that this breakage will
be remedied in the next release of timezone.  The interim cure is to revert
to version 7.48-3, in the stable distribution.

-Randy



Re: Debian + POSIX

1996-10-12 Thread David Frey
Hi Bruce,

>Actually, until recently you could only be POSIX compliant by paying
>a lot of money. You paid for copies of the standard, you paid for
>validation software, and you paid for a POSIX compliance lab to certify
>you. So it was a way for the well-funded commercial Linux projects to
>differentiate themselves from high-quality but underfunded efforts like
>Debian. Now, they will have to use the still-costly X/Open standards
>to differentiate themselves.

Just my CHF 0.02:
I suppose that the POSIX-compliance test is relatively cheap[1] in 
comparison
to the XPG4 branding (afterward the branding are allowed to call your 
``Un*x''-clone a ``Unix'' [note the capitalization]).
I don't know how much the POSIX compliance testing actually costs, but
buying the standards is affordable[2] (quoting IEEE 1996 catalog):
   member  list
1003.1b-1993 (POSIX.1, C-API, Realtime extension)  $68.40 $114.00 
1003.2d-1994 (POSIX.2, Shell&Utilities, Amendment 1)   $40.08  $68.00
1003.3-1991  (Test methods for measuring conformance to POSIX)
   $22.20  $37.00
[skipping FORTRAN]
9945-1:1990(E) (POSIX.1, C-API f. Sys. Application C)  $54.00  $90.00
9945-2:1993(E) (POSIX.2 Shell and utilities)  $111.00 $185.00
2003.1:1992(Test methods for measuring system conformance to POSIX
part 1: System Integration)$57.60  $96.60

>NIST developed a compliance test suite for the U.S. Federal Information
>Processing Standard. This is a superset of POSIX. They recently decided
>to make it free, so that more people would implement POSIX. We think
>that's a great idea, and we got right to work.

Yes, I wholeheartily agree.

[1] extrapolating from the standard prices
[2] at least if you are a member, they are still cheap compared to the
ISO/ITU-T prices...

Thanks,
  David

-- 
David Frey <[EMAIL PROTECTED]>  |Microsoft isn't the answer...it's the QUESTION.
Schlieren, Switzerland  |``No'' is the answer.
51F35923114FC8647D05FF173C61EFDE|Use Debian GNU/Linux!


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Debian + POSIX

1996-10-11 Thread Bruce Perens
From: [EMAIL PROTECTED] (Gith)

> Is the Debian distribution going to push for POSIX conformity?

Yes, because it just got easy and cheap.

> I may be missing something here, ( I'm still a relative newbie
> to Linux ) but what is the importance of it? After viewing the
> Linux-FT web pages, the only good thing I can see about a Posix
> certification is the right to go around patting yourself on the
> back for having one. ( Just the feeling I got from the site. )

Actually, until recently you could only be POSIX compliant by paying
a lot of money. You paid for copies of the standard, you paid for
validation software, and you paid for a POSIX compliance lab to certify
you. So it was a way for the well-funded commercial Linux projects to
differentiate themselves from high-quality but underfunded efforts like
Debian. Now, they will have to use the still-costly X/Open standards
to differentiate themselves.

NIST developed a compliance test suite for the U.S. Federal Information
Processing Standard. This is a superset of POSIX. They recently decided
to make it free, so that more people would implement POSIX. We think
that's a great idea, and we got right to work.

And now, the POSIX standard can be used for what it was intended for:
insuring source-level compatibility across multiple software platforms.

Thanks

Bruce Perens
Debian Project Leader
--
Bruce Perens, Pixar Animation Studios
*** "Toy Story" video tape in U.S. stores October 30 ***
Worldwide box office total for "Toy Story": $353,275,005

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Debian + POSIX

1996-10-11 Thread Gith

Is the Debian distribution going to push for POSIX conformity?
I may be missing something here, ( I'm still a relative newbie
to Linux ) but what is the importance of it? After viewing the
Linux-FT web pages, the only good thing I can see about a Posix
certification is the right to go around patting yourself on the
back for having one. ( Just the feeling I got from the site. )

Willie Daniel
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]