Précédent   Forum des professionnels en informatique > Systèmes > Linux > Applications > Shell
Shell Vos questions sur l'utilisation des commandes shell
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 07/12/2007, 20h27   #1
Membre émérite
 
Inscription : juin 2006
Messages : 1 117
Détails du profil
Informations personnelles :
Âge : 26

Informations forums :
Inscription : juin 2006
Messages : 1 117
Points : 989
Points : 989
Par défaut probleme avec les pages de manuel

Bonjour, je n'arrive pas à retrouver le resume de toutes les fonctions C ayant à voir avec la bibliothèque time.h.

En faisant man 3 string, j'ai :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
STRING(3)                                                     Manuel du programmeur Linux                                                     STRING(3)
 
NOM
       strcasecmp,  strcat, strchr, strcmp, strcoll, strcpy, strcspn, strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, strrchr,
       strsep, strspn, strstr, strtok, strxfrm, index, rindex - Opérations sur les chaînes de caractères
 
SYNOPSIS
       #include <strings.h>
 
       int strc
[...]
 
       Vous pouvez toujours avoir accès à la version anglaise de ce document en utilisant la commande « man -L C <section> <page_de_man> ».
 
                                                                      9 avril 1993                                                            STRING(3)
, mais rien en tapant man 3 time dans la console. Pouvez-vous m'aider ? Merci beaucoup.
kromartien est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 08/12/2007, 00h52   #2
Membre chevronné

 
Avatar de D[r]eadLock
 
Inscription : mai 2002
Messages : 504
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : mai 2002
Messages : 504
Points : 622
Points : 622
grep extern /usr/include/time.h
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
extern clock_t clock (void) __THROW;
extern time_t time (time_t *__timer) __THROW;
extern double difftime (time_t __time1, time_t __time0)
extern time_t mktime (struct tm *__tp) __THROW;
extern size_t strftime (char *__restrict __s, size_t __maxsize,
extern char *strptime (__const char *__restrict __s,
extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
extern char *strptime_l (__const char *__restrict __s,
extern struct tm *gmtime (__const time_t *__timer) __THROW;
extern struct tm *localtime (__const time_t *__timer) __THROW;
extern struct tm *gmtime_r (__const time_t *__restrict __timer,
extern struct tm *localtime_r (__const time_t *__restrict __timer,
extern char *asctime (__const struct tm *__tp) __THROW;
extern char *ctime (__const time_t *__timer) __THROW;
extern char *asctime_r (__const struct tm *__restrict __tp,
extern char *ctime_r (__const time_t *__restrict __timer,
extern char *__tzname[2];       /* Current timezone names.  */
extern int __daylight;          /* If daylight-saving time is ever in use.  */
extern long int __timezone;     /* Seconds west of UTC.  */
extern char *tzname[2];
extern void tzset (void) __THROW;
extern int daylight;
extern long int timezone;
extern int stime (__const time_t *__when) __THROW;
extern time_t timegm (struct tm *__tp) __THROW;
extern time_t timelocal (struct tm *__tp) __THROW;
extern int dysize (int __year) __THROW  __attribute__ ((__const__));
extern int nanosleep (__const struct timespec *__requested_time,
extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW;
extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW;
extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
extern int clock_nanosleep (clockid_t __clock_id, int __flags,
extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW;
extern int timer_create (clockid_t __clock_id,
extern int timer_delete (timer_t __timerid) __THROW;
extern int timer_settime (timer_t __timerid, int __flags,
extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
extern int timer_getoverrun (timer_t __timerid) __THROW;
extern int getdate_err;
extern struct tm *getdate (__const char *__string);
extern int getdate_r (__const char *__restrict __string,
ou encore man 7 time
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
TIME(7)                                                       Linux Programmer's Manual                                                      TIME(7)
 
 
 
NAME
       time - overview of time
 
DESCRIPTION
   Real time and process time
       Real  time  is defined as time measured from some fixed point, either from a standard point in the past (see the description of the Epoch and
       calendar time below), or from some point (e.g., the start) in the life of a process (elapsed time).
 
       Process time is defined as the amount of CPU time used by a process.  This is sometimes divided into user and system  components.   User  CPU
       time  is  the  time spent executing code in user mode.  System CPU time is the time spent by the kernel executing in system mode on behalf of
       the process (e.g., executing system calls).  The time(1) command can be used to determine the amount of CPU time consumed during  the  execu-
       tion of a program.  A program can determine the amount of CPU time it has consumed using times(2), getrusage(2), or clock(3).
 
   The Hardware Clock
       Most  computers  have  a (battery-powered) hardware clock which the kernel reads at boot time in order to initialize the software clock.  For
       further details, see rtc(4) and hwclock(8).
 
   The Software Clock, HZ, and Jiffies
       The accuracy of many system calls and timestamps is limited by the resolution of the software clock, a clock maintained by the  kernel  which
       measures  time  in  jiffies.  The size of a jiffy is determined by the value of the kernel constant HZ.  The value of HZ varies across kernel
       versions and hardware platforms.  On x86 the situation is as follows: on kernels up to and including 2.4.x, HZ was 100, giving a jiffy  value
       of  0.01  seconds; starting with 2.6.0, HZ was raised to 1000, giving a jiffy of 0.001 seconds; since kernel 2.6.13, the HZ value is a kernel
       configuration parameter and can be 100, 250 (the default) or 1000, yielding a jiffies value of, respectively, 0.01, 0.004, or 0.001  seconds.
       Since  kernel 2.6.20, a further frequency is available: 300, a number that divides evenly for the common video frame rates (PAL, 25 HZ; NTSC,
       30 HZ).
 
   The Epoch
      Unix systems represent time in seconds since the Epoch, which is defined as 0:00:00 UTC on the morning of 1 January 1970.
 
       A program can determine the calendar time using gettimeofday(2), which returns time (in seconds and microseconds) that have elapsed since the
       Epoch;  time(2)  provides similar information, but only with accuracy to the nearest second.  The system time can be changed using settimeof-
       day(2).
 
   Broken-down time
       Certain library functions use a structure of type tm to represent broken-down time, which stores time value separated out into distinct  com-
       ponents (year, month, day, hour, minute, second, etc.).  This structure is described in ctime(3), which also describes functions that convert
       between calendar time and broken-down time.  Functions for converting between broken-down time and printable string  representations  of  the
       time are described in ctime(3), strftime(3), and strptime(3).
 
   Sleeping and Setting Timers
       Various  system  calls  and  functions  allow  a  program  to  sleep (suspend execution) for a specified period of time; see nanosleep(2) and
       sleep(3).
 
       Various system calls allow a process to set a timer that expires at some point in the future,  and  optionally  at  repeated  intervals;  see
       alarm(2), getitimer(2), and timer_create(3).
 
SEE ALSO
       date(1), time(1), adjtimex(2), alarm(2), getitimer(2), getrlimit(2), getrusage(2), gettimeofday(2), nanosleep(2), stat(2), time(2), times(2),
       utime(2), adjtime(3), clock(3), sleep(3), timeradd(3), ctime(3), strftime(3), strptime(3), usleep(3), rtc(4), hwclock(8)
 
COLOPHON
       This page is part of release 2.69 of the Linux man-pages project.  A description of the project, and information about reporting bugs, can be
       found at http://www.kernel.org/doc/man-pages/.
 
 
 
Linux                                                                2006-04-28                                                              TIME(7)
__________________
1)Avant de poster, merci de lire les règles. 2)Utiliser [code] [/code] pour quoter le code ! 3)Conseils pour le forum C [a lire en entier!]
D[r]eadLock est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/12/2007, 18h06   #3
Futur Membre du Club
 
Inscription : octobre 2006
Messages : 21
Détails du profil
Informations forums :
Inscription : octobre 2006
Messages : 21
Points : 17
Points : 17
la commande man -k "ma recherche" est ton amie
KLnikita est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 16h37.


 
 
 
 
Partenaires

Hébergement Web