GNUnet  0.11.x
plugin_datacache_postgres.c
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet
3  Copyright (C) 2006, 2009, 2010, 2012, 2015, 2017, 2018 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
20 
26 #include "platform.h"
27 #include "gnunet_util_lib.h"
28 #include "gnunet_pq_lib.h"
30 
31 #define LOG(kind, ...) GNUNET_log_from (kind, "datacache-postgres", __VA_ARGS__)
32 
36 #define OVERHEAD (sizeof(struct GNUNET_HashCode) + 24)
37 
41 struct Plugin
42 {
47 
52 
56  unsigned int num_items;
57 };
58 
59 
66 static int
68 {
69  struct GNUNET_PQ_ExecuteStatement es[] = {
70  GNUNET_PQ_make_execute ("CREATE TEMPORARY TABLE IF NOT EXISTS gn011dc ("
71  " type INTEGER NOT NULL,"
72  " prox INTEGER NOT NULL,"
73  " discard_time BIGINT NOT NULL,"
74  " key BYTEA NOT NULL,"
75  " value BYTEA NOT NULL,"
76  " path BYTEA DEFAULT NULL)"
77  "WITH OIDS"),
79  "CREATE INDEX IF NOT EXISTS idx_key ON gn011dc (key)"),
81  "CREATE INDEX IF NOT EXISTS idx_dt ON gn011dc (discard_time)"),
83  "ALTER TABLE gn011dc ALTER value SET STORAGE EXTERNAL"),
84  GNUNET_PQ_make_execute ("ALTER TABLE gn011dc ALTER key SET STORAGE PLAIN"),
86  };
87  struct GNUNET_PQ_PreparedStatement ps[] = {
88  GNUNET_PQ_make_prepare ("getkt",
89  "SELECT discard_time,type,value,path FROM gn011dc "
90  "WHERE key=$1 AND type=$2 AND discard_time >= $3",
91  3),
92  GNUNET_PQ_make_prepare ("getk",
93  "SELECT discard_time,type,value,path FROM gn011dc "
94  "WHERE key=$1 AND discard_time >= $2",
95  2),
96  GNUNET_PQ_make_prepare ("getex",
97  "SELECT length(value) AS len,oid,key FROM gn011dc"
98  " WHERE discard_time < $1"
99  " ORDER BY discard_time ASC LIMIT 1",
100  1),
101  GNUNET_PQ_make_prepare ("getm",
102  "SELECT length(value) AS len,oid,key FROM gn011dc"
103  " ORDER BY prox ASC, discard_time ASC LIMIT 1",
104  0),
105  GNUNET_PQ_make_prepare ("get_random",
106  "SELECT discard_time,type,value,path,key FROM gn011dc"
107  " WHERE discard_time >= $1"
108  " ORDER BY key ASC LIMIT 1 OFFSET $2",
109  2),
110  GNUNET_PQ_make_prepare ("get_closest",
111  "SELECT discard_time,type,value,path,key FROM gn011dc "
112  "WHERE key>=$1 AND discard_time >= $2 ORDER BY key ASC LIMIT $3",
113  3),
114  GNUNET_PQ_make_prepare ("delrow",
115  "DELETE FROM gn011dc WHERE oid=$1",
116  1),
117  GNUNET_PQ_make_prepare ("put",
118  "INSERT INTO gn011dc (type, prox, discard_time, key, value, path) "
119  "VALUES ($1, $2, $3, $4, $5, $6)",
120  6),
122  };
123 
124  plugin->dbh = GNUNET_PQ_connect_with_cfg (plugin->env->cfg,
125  "datacache-postgres",
126  NULL,
127  es,
128  ps);
129  if (NULL == plugin->dbh)
130  return GNUNET_SYSERR;
131  return GNUNET_OK;
132 }
133 
134 
149 static ssize_t
151  const struct GNUNET_HashCode *key,
152  uint32_t prox,
153  size_t data_size,
154  const char *data,
155  enum GNUNET_BLOCK_Type type,
156  struct GNUNET_TIME_Absolute discard_time,
157  unsigned int path_info_len,
158  const struct GNUNET_PeerIdentity *path_info)
159 {
160  struct Plugin *plugin = cls;
161  uint32_t type32 = (uint32_t) type;
162  struct GNUNET_PQ_QueryParam params[] = {
165  GNUNET_PQ_query_param_absolute_time (&discard_time),
167  GNUNET_PQ_query_param_fixed_size (data, data_size),
169  path_info_len * sizeof(struct
172  };
174 
176  "put",
177  params);
178  if (0 > ret)
179  return -1;
180  plugin->num_items++;
181  return data_size + OVERHEAD;
182 }
183 
184 
189 {
194 
198  void *iter_cls;
199 
203  const struct GNUNET_HashCode *key;
204 };
205 
206 
216 static void
217 handle_results (void *cls,
218  PGresult *result,
219  unsigned int num_results)
220 {
221  struct HandleResultContext *hrc = cls;
222 
223  for (unsigned int i = 0; i < num_results; i++)
224  {
225  struct GNUNET_TIME_Absolute expiration_time;
226  uint32_t type;
227  void *data;
228  size_t data_size;
229  struct GNUNET_PeerIdentity *path;
230  size_t path_len;
231  struct GNUNET_PQ_ResultSpec rs[] = {
232  GNUNET_PQ_result_spec_absolute_time ("discard_time",
233  &expiration_time),
235  &type),
237  &data,
238  &data_size),
240  (void **) &path,
241  &path_len),
243  };
244 
245  if (GNUNET_YES !=
246  GNUNET_PQ_extract_result (result,
247  rs,
248  i))
249  {
250  GNUNET_break (0);
251  return;
252  }
253  if (0 != (path_len % sizeof(struct GNUNET_PeerIdentity)))
254  {
255  GNUNET_break (0);
256  path_len = 0;
257  }
258  path_len %= sizeof(struct GNUNET_PeerIdentity);
260  "Found result of size %u bytes and type %u in database\n",
261  (unsigned int) data_size,
262  (unsigned int) type);
263  if ((NULL != hrc->iter) &&
264  (GNUNET_SYSERR ==
265  hrc->iter (hrc->iter_cls,
266  hrc->key,
267  data_size,
268  data,
269  (enum GNUNET_BLOCK_Type) type,
270  expiration_time,
271  path_len,
272  path)))
273  {
275  "Ending iteration (client error)\n");
277  return;
278  }
280  }
281 }
282 
283 
295 static unsigned int
297  const struct GNUNET_HashCode *key,
298  enum GNUNET_BLOCK_Type type,
300  void *iter_cls)
301 {
302  struct Plugin *plugin = cls;
303  uint32_t type32 = (uint32_t) type;
304  struct GNUNET_TIME_Absolute now;
305  struct GNUNET_PQ_QueryParam paramk[] = {
309  };
310  struct GNUNET_PQ_QueryParam paramkt[] = {
315  };
317  struct HandleResultContext hr_ctx;
318 
319  now = GNUNET_TIME_absolute_get ();
320  hr_ctx.iter = iter;
321  hr_ctx.iter_cls = iter_cls;
322  hr_ctx.key = key;
324  (0 == type) ? "getk" : "getkt",
325  (0 == type) ? paramk : paramkt,
327  &hr_ctx);
328  if (res < 0)
329  return 0;
330  return res;
331 }
332 
333 
341 static int
343 {
344  struct Plugin *plugin = cls;
345  struct GNUNET_PQ_QueryParam pempty[] = {
347  };
348  uint32_t size;
349  uint32_t oid;
350  struct GNUNET_HashCode key;
351  struct GNUNET_PQ_ResultSpec rs[] = {
353  &size),
355  &oid),
357  &key),
359  };
361  struct GNUNET_PQ_QueryParam dparam[] = {
364  };
365  struct GNUNET_TIME_Absolute now;
366  struct GNUNET_PQ_QueryParam xparam[] = {
369  };
370 
371  now = GNUNET_TIME_absolute_get ();
373  "getex",
374  xparam,
375  rs);
376  if (0 >= res)
378  "getm",
379  pempty,
380  rs);
381  if (0 > res)
382  return GNUNET_SYSERR;
384  {
385  /* no result */
387  "Ending iteration (no more results)\n");
388  return 0;
389  }
391  "delrow",
392  dparam);
393  if (0 > res)
394  {
396  return GNUNET_SYSERR;
397  }
398  plugin->num_items--;
399  plugin->env->delete_notify (plugin->env->cls,
400  &key,
401  size + OVERHEAD);
403  return GNUNET_OK;
404 }
405 
406 
415 static unsigned int
418  void *iter_cls)
419 {
420  struct Plugin *plugin = cls;
421  uint32_t off;
422  struct GNUNET_TIME_Absolute now;
423  struct GNUNET_TIME_Absolute expiration_time;
424  size_t data_size;
425  void *data;
426  size_t path_len;
427  struct GNUNET_PeerIdentity *path;
428  struct GNUNET_HashCode key;
429  uint32_t type;
431  struct GNUNET_PQ_QueryParam params[] = {
435  };
436  struct GNUNET_PQ_ResultSpec rs[] = {
437  GNUNET_PQ_result_spec_absolute_time ("discard_time",
438  &expiration_time),
440  &type),
442  &data,
443  &data_size),
445  (void **) &path,
446  &path_len),
448  &key),
450  };
451 
452  if (0 == plugin->num_items)
453  return 0;
454  if (NULL == iter)
455  return 1;
456  now = GNUNET_TIME_absolute_get ();
458  plugin->num_items);
460  "get_random",
461  params,
462  rs);
463  if (0 > res)
464  {
465  GNUNET_break (0);
466  return 0;
467  }
469  {
470  GNUNET_break (0);
471  return 0;
472  }
473  if (0 != (path_len % sizeof(struct GNUNET_PeerIdentity)))
474  {
475  GNUNET_break (0);
476  path_len = 0;
477  }
478  path_len %= sizeof(struct GNUNET_PeerIdentity);
480  "Found random value with key %s of size %u bytes and type %u in database\n",
481  GNUNET_h2s (&key),
482  (unsigned int) data_size,
483  (unsigned int) type);
484  (void) iter (iter_cls,
485  &key,
486  data_size,
487  data,
488  (enum GNUNET_BLOCK_Type) type,
489  expiration_time,
490  path_len,
491  path);
493  return 1;
494 }
495 
496 
501 {
506 
510  void *iter_cls;
511 };
512 
513 
523 static void
524 extract_result_cb (void *cls,
525  PGresult *result,
526  unsigned int num_results)
527 {
528  struct ExtractResultContext *erc = cls;
529 
530  if (NULL == erc->iter)
531  return;
532  for (unsigned int i = 0; i < num_results; i++)
533  {
534  struct GNUNET_TIME_Absolute expiration_time;
535  uint32_t type;
536  void *data;
537  size_t data_size;
538  struct GNUNET_PeerIdentity *path;
539  size_t path_len;
540  struct GNUNET_HashCode key;
541  struct GNUNET_PQ_ResultSpec rs[] = {
543  &expiration_time),
545  &type),
547  &data,
548  &data_size),
550  (void **) &path,
551  &path_len),
553  &key),
555  };
556 
557  if (GNUNET_YES !=
558  GNUNET_PQ_extract_result (result,
559  rs,
560  i))
561  {
562  GNUNET_break (0);
563  return;
564  }
565  if (0 != (path_len % sizeof(struct GNUNET_PeerIdentity)))
566  {
567  GNUNET_break (0);
568  path_len = 0;
569  }
570  path_len %= sizeof(struct GNUNET_PeerIdentity);
572  "Found result of size %u bytes and type %u in database\n",
573  (unsigned int) data_size,
574  (unsigned int) type);
575  if (GNUNET_SYSERR ==
576  erc->iter (erc->iter_cls,
577  &key,
578  data_size,
579  data,
580  (enum GNUNET_BLOCK_Type) type,
581  expiration_time,
582  path_len,
583  path))
584  {
586  "Ending iteration (client error)\n");
588  break;
589  }
591  }
592 }
593 
594 
608 static unsigned int
610  const struct GNUNET_HashCode *key,
611  unsigned int num_results,
613  void *iter_cls)
614 {
615  struct Plugin *plugin = cls;
616  uint32_t num_results32 = (uint32_t) num_results;
617  struct GNUNET_TIME_Absolute now;
618  struct GNUNET_PQ_QueryParam params[] = {
621  GNUNET_PQ_query_param_uint32 (&num_results32),
623  };
625  struct ExtractResultContext erc;
626 
627  erc.iter = iter;
628  erc.iter_cls = iter_cls;
629  now = GNUNET_TIME_absolute_get ();
631  "get_closest",
632  params,
634  &erc);
635  if (0 > res)
636  {
638  "Ending iteration (postgres error)\n");
639  return 0;
640  }
642  {
643  /* no result */
645  "Ending iteration (no more results)\n");
646  return 0;
647  }
648  return res;
649 }
650 
651 
658 void *
660 {
663  struct Plugin *plugin;
664 
665  plugin = GNUNET_new (struct Plugin);
666  plugin->env = env;
667 
668  if (GNUNET_OK != init_connection (plugin))
669  {
670  GNUNET_free (plugin);
671  return NULL;
672  }
673 
675  api->cls = plugin;
676  api->get = &postgres_plugin_get;
677  api->put = &postgres_plugin_put;
678  api->del = &postgres_plugin_del;
682  "Postgres datacache running\n");
683  return api;
684 }
685 
686 
693 void *
695 {
697  struct Plugin *plugin = api->cls;
698 
699  GNUNET_PQ_disconnect (plugin->dbh);
700  GNUNET_free (plugin);
701  GNUNET_free (api);
702  return NULL;
703 }
704 
705 
706 /* end of plugin_datacache_postgres.c */
void * cls
Closure to pass to all plugin functions.
static unsigned int postgres_plugin_get_random(void *cls, GNUNET_DATACACHE_Iterator iter, void *iter_cls)
Obtain a random key-value pair from the datacache.
void GNUNET_PQ_disconnect(struct GNUNET_PQ_Context *db)
Disconnect from the database, destroying the prepared statements and releasing other associated resou...
Definition: pq_connect.c:513
void * iter_cls
Closure for iter.
ssize_t(* put)(void *cls, const struct GNUNET_HashCode *key, uint32_t xor_distance, size_t size, const char *data, enum GNUNET_BLOCK_Type type, struct GNUNET_TIME_Absolute discard_time, unsigned int path_info_len, const struct GNUNET_PeerIdentity *path_info)
Store an item in the datastore.
int(* del)(void *cls)
Delete the entry with the lowest expiration value from the datacache right now.
static int postgres_plugin_del(void *cls)
Delete the entry with the lowest expiration value from the datacache right now.
struct GNUNET_PQ_ExecuteStatement GNUNET_PQ_make_execute(const char *sql)
Create a struct GNUNET_PQ_ExecuteStatement where errors are fatal.
Definition: pq_exec.c:36
void * iter_cls
Closure for iter.
GNUNET_BLOCK_Type
Blocks in the datastore and the datacache must have a unique type.
const struct GNUNET_CONFIGURATION_Handle * cfg
Configuration to use.
#define LOG(kind,...)
void * libgnunet_plugin_datacache_postgres_init(void *cls)
Entry point for the plugin.
enum GNUNET_DB_QueryStatus GNUNET_PQ_eval_prepared_multi_select(struct GNUNET_PQ_Context *db, const char *statement_name, const struct GNUNET_PQ_QueryParam *params, GNUNET_PQ_PostgresResultHandler rh, void *rh_cls)
Execute a named prepared statement that is a SELECT statement which may return multiple results in co...
Definition: pq_eval.c:209
static size_t data_size
Number of bytes in data.
Definition: gnunet-abd.c:187
uint32_t GNUNET_CRYPTO_random_u32(enum GNUNET_CRYPTO_Quality mode, uint32_t i)
Produce a random value.
Information needed to run a list of SQL statements using GNUNET_PQ_exec_statements().
Information needed to prepare a list of SQL statements using GNUNET_PQ_prepare_statements().
char * key
TLS key.
Description of a DB result cell.
static int ret
Return value of the commandline.
Definition: gnunet-abd.c:81
Closure for handle_results.
struct GNUNET_PQ_QueryParam GNUNET_PQ_query_param_absolute_time(const struct GNUNET_TIME_Absolute *x)
Generate query parameter for an absolute time value.
const char * GNUNET_h2s(const struct GNUNET_HashCode *hc)
Convert a hash value to a string (for printing debug messages).
#define GNUNET_new(type)
Allocate a struct or union of the given type.
Closure for extract_result_cb.
#define GNUNET_break(cond)
Use this for internal assertion violations that are not fatal (can be handled) but should not occur...
struct GNUNET_BLOCK_PluginFunctions * api
Plugin API.
Definition: block.c:47
static unsigned int postgres_plugin_get_closest(void *cls, const struct GNUNET_HashCode *key, unsigned int num_results, GNUNET_DATACACHE_Iterator iter, void *iter_cls)
Iterate over the results that are "close" to a particular key in the datacache.
GNUNET_DATACACHE_DeleteNotifyCallback delete_notify
Function to call whenever the plugin needs to discard content that it was asked to store...
#define OVERHEAD
Per-entry overhead estimate.
#define GNUNET_PQ_result_spec_end
End of result parameter specification.
#define GNUNET_PQ_query_param_end
End of query parameter specification.
Definition: gnunet_pq_lib.h:96
struct GNUNET_PQ_ResultSpec GNUNET_PQ_result_spec_variable_size(const char *name, void **dst, size_t *sptr)
Variable-size result expected.
struct GNUNET_PQ_ResultSpec GNUNET_PQ_result_spec_uint32(const char *name, uint32_t *u32)
uint32_t expected.
static void extract_result_cb(void *cls, PGresult *result, unsigned int num_results)
Function to be called with the results of a SELECT statement that has returned num_results results...
enum GNUNET_DB_QueryStatus GNUNET_PQ_eval_prepared_singleton_select(struct GNUNET_PQ_Context *db, const char *statement_name, const struct GNUNET_PQ_QueryParam *params, struct GNUNET_PQ_ResultSpec *rs)
Execute a named prepared statement that is a SELECT statement which must return a single result in co...
Definition: pq_eval.c:258
struct GNUNET_PQ_ResultSpec GNUNET_PQ_result_spec_absolute_time(const char *name, struct GNUNET_TIME_Absolute *at)
Absolute time expected.
struct GNUNET_DATACACHE_PluginEnvironment * env
Our execution environment.
unsigned int(* get_closest)(void *cls, const struct GNUNET_HashCode *key, unsigned int num_results, GNUNET_DATACACHE_Iterator iter, void *iter_cls)
Iterate over the results that are "close" to a particular key in the datacache.
#define GNUNET_PQ_query_param_auto_from_type(x)
Generate fixed-size query parameter with size determined by variable type.
Randomness for IVs etc.
static ssize_t postgres_plugin_put(void *cls, const struct GNUNET_HashCode *key, uint32_t prox, size_t data_size, const char *data, enum GNUNET_BLOCK_Type type, struct GNUNET_TIME_Absolute discard_time, unsigned int path_info_len, const struct GNUNET_PeerIdentity *path_info)
Store an item in the datastore.
struct returned by the initialization function of the plugin
static int result
Global testing status.
struct GNUNET_PQ_QueryParam GNUNET_PQ_query_param_uint32(const uint32_t *x)
Generate query parameter for an uint32_t in host byte order.
A 512-bit hashcode.
static void handle_results(void *cls, PGresult *result, unsigned int num_results)
Function to be called with the results of a SELECT statement that has returned num_results results...
void * libgnunet_plugin_datacache_postgres_done(void *cls)
Exit point from the plugin.
static int res
static char * plugin
Solver plugin name as string.
struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_get(void)
Get the current time.
Definition: time.c:118
struct GNUNET_PQ_Context * GNUNET_PQ_connect_with_cfg(const struct GNUNET_CONFIGURATION_Handle *cfg, const char *section, const char *load_path_suffix, const struct GNUNET_PQ_ExecuteStatement *es, const struct GNUNET_PQ_PreparedStatement *ps)
Connect to a postgres database using the configuration option "CONFIG" in section.
Definition: pq_connect.c:466
#define GNUNET_PQ_result_spec_auto_from_type(name, dst)
We expect a fixed-size result, with size determined by the type of * dst
#define GNUNET_PQ_PREPARED_STATEMENT_END
Terminator for prepared statement list.
helper functions for Postgres DB interactions
void * iter_cls
Iterator cls.
GNUNET_DATACACHE_Iterator iter
Function to call on each result, may be NULL.
enum GNUNET_DB_QueryStatus GNUNET_PQ_eval_prepared_non_select(struct GNUNET_PQ_Context *db, const char *statement_name, const struct GNUNET_PQ_QueryParam *params)
Execute a named prepared statement that is NOT a SELECT statement in connnection using the given para...
Definition: pq_eval.c:164
The identity of the host (wraps the signing key of the peer).
unsigned long long size
Size of all values we&#39;re storing.
Handle for a plugin.
Definition: block.c:37
struct GNUNET_PQ_Context * dbh
Native Postgres database handle.
GNUNET_DATACACHE_Iterator iter
Function to call for each result found.
Description of a DB query parameter.
Definition: gnunet_pq_lib.h:64
struct GNUNET_PQ_QueryParam GNUNET_PQ_query_param_fixed_size(const void *ptr, size_t ptr_size)
Generate query parameter for a buffer ptr of ptr_size bytes.
#define GNUNET_PQ_EXECUTE_STATEMENT_END
Terminator for executable statement list.
int(* GNUNET_DATACACHE_Iterator)(void *cls, const struct GNUNET_HashCode *key, size_t data_size, const char *data, enum GNUNET_BLOCK_Type type, struct GNUNET_TIME_Absolute exp, unsigned int path_info_len, const struct GNUNET_PeerIdentity *path_info)
An iterator over a set of items stored in the datacache.
void * cls
Closure to use for callbacks.
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model
Time for absolute times used by GNUnet, in microseconds.
GNUNET_DB_QueryStatus
Status code returned from functions running database commands.
Definition: gnunet_db_lib.h:34
unsigned int num_items
Number of key-value pairs in the database.
unsigned int(* get_random)(void *cls, GNUNET_DATACACHE_Iterator iter, void *iter_cls)
Return a random value from the datastore.
struct GNUNET_PQ_ExecuteStatement GNUNET_PQ_make_try_execute(const char *sql)
Create a struct GNUNET_PQ_ExecuteStatement where errors should be tolerated.
Definition: pq_exec.c:55
static int init_connection(struct Plugin *plugin)
Get a database handle.
The transaction succeeded, but yielded zero results.
Definition: gnunet_db_lib.h:53
uint32_t data
The data value.
static unsigned int postgres_plugin_get(void *cls, const struct GNUNET_HashCode *key, enum GNUNET_BLOCK_Type type, GNUNET_DATACACHE_Iterator iter, void *iter_cls)
Iterate over the results for a particular key in the datastore.
The datastore service will pass a pointer to a struct of this type as the first and only argument to ...
GNUNET_PEERSTORE_Processor iter
Iterator.
const struct GNUNET_HashCode * key
Key used.
Handle to Postgres database.
Definition: pq.h:34
struct GNUNET_PQ_PreparedStatement GNUNET_PQ_make_prepare(const char *name, const char *sql, unsigned int num_args)
Create a struct GNUNET_PQ_PreparedStatement.
Definition: pq_prepare.c:38
int GNUNET_PQ_extract_result(PGresult *result, struct GNUNET_PQ_ResultSpec *rs, int row)
Extract results from a query result according to the given specification.
Definition: pq.c:151
unsigned int(* get)(void *cls, const struct GNUNET_HashCode *key, enum GNUNET_BLOCK_Type type, GNUNET_DATACACHE_Iterator iter, void *iter_cls)
Iterate over the results for a particular key in the datastore.
#define GNUNET_free(ptr)
Wrapper around free.
void GNUNET_PQ_cleanup_result(struct GNUNET_PQ_ResultSpec *rs)
Free all memory that was allocated in rs during GNUNET_PQ_extract_result().
Definition: pq.c:130