PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Limitation on environment variable length
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Limitation on environment variable length

Réponse
 
LinkBack Outils de la discussion
Vieux 26/07/2007, 21h47   #1
Stu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Limitation on environment variable length

Does anybody know if there is a limitiation on the length of an
environment variable value. In particular I concerned about

Solaris 2.8, 2.9, 2.10

Thanks in advance to all who answer this post

  Réponse avec citation
Vieux 27/07/2007, 10h15   #2
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Limitation on environment variable length

2007-07-26, 13:47(-07), Stu:
> Does anybody know if there is a limitiation on the length of an
> environment variable value. In particular I concerned about
>
> Solaris 2.8, 2.9, 2.10
>
> Thanks in advance to all who answer this post


There's a limit on the combined size of the arguments and
environments passed in an execve(). So that incurs a limit on
the size of the environment.

You find though that most systems won't restrict you to do as
many and as big putenv/setenv(3) as you wish, but you'll find
then that you can no longer execute other commands. The libc
maintains a buffer (allocated dynamically) to store the
environment settings done via putenv/setenv, and that buffer is
used upon execl/execp/execv/excvp(3) to construct the envp
argument to the execve(2) system call.

Solaris is known to have a relatively (to other OSes) high limit
on that size. Linux was known to have a relatively low one. Hurd
is the only one that is known to have no limit at all to my
knowledge.

--
Stéphane
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h28.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09549 seconds with 10 queries